微服务日志记 - gsjzhbj/cloud-service-example GitHub Wiki

  • 服务网关访问Timeout 2020-06-21 10:51:21.273 WARN 6774 --- [io-10012-exec-2] o.s.c.n.z.f.r.s.AbstractRibbonCommand : The Hystrix timeout of 6000ms for the command user-consumer is set lower than the combination of the Ribbon read and connect timeout, 20250ms. 2020-06-21 10:51:22.236 INFO 6774 --- [erListUpdater-0] c.netflix.config.ChainedDynamicProperty : Flipping property: user-consumer.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647 2020-06-21 10:51:50.864 WARN 6774 --- [io-10012-exec-4] o.s.c.n.z.f.r.s.AbstractRibbonCommand : The Hystrix timeout of 6000ms for the command user-consumer is set lower than the combination of the Ribbon read and connect timeout, 20250ms.
  • 服务提供者配置多注册中心,重启后,难道是降级策略?居然不能及时访问 2020-06-21 10:28:58.624 ERROR 98825 --- [et_127.0.0.1-14] c.n.e.cluster.ReplicationTaskProcessor : Network level connection to peer 127.0.0.1; retrying after delay
  • Eureka不能保证服务的一致性,即服务提供者不保证所有注册中心都有配置信息

带来的问题:注册中心宕机,服务路由到其他注册中心后,由于缺配置仍然不可用。 解决办法:服务提供者配置多注册中心

  • 服务提供者挂掉,服务不可用状态(单服务瓶颈) 2020-06-21 10:07:21.618 ERROR 4677 --- [tbeatExecutor-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_SPRING-EUREKA-PROVIDER/192.168.0.104:spring-eureka-provider:9000 - was unable to send heartbeat!

com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

  • 服务提供者仅配置台注册中心,服务会默认连接失败 2020-06-21 10:12:08.858 ERROR 5630 --- [nfoReplicator-0] c.n.d.s.t.d.RedirectingEurekaHttpClient : Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8090/eureka/}

com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused (Connection refused)