美文网首页
关于ribbon的懒加载及zuul的懒加载导致第一次请求服务延时

关于ribbon的懒加载及zuul的懒加载导致第一次请求服务延时

作者: 是瑞瀛呀 | 来源:发表于2018-06-22 14:42 被阅读0次
    ribbon: 
      eager-load:
          enabled: true
          clients: ees-ent, ees-flight, ees-merchant, ees-msg, ees-mst, ees-pay, ees-sys, ees-tem, ees-workflow
    

    上述配置写在消费端配置内,开启消费端饥饿加载ribbon
    zuul

    2018-06-22 09:44:21 [main] INFO  - Client: ees-ent instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-ent,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
    2018-06-22 09:44:21 [main] INFO  - Using serverListUpdater PollingServerListUpdater
    2018-06-22 09:44:21 [main] INFO  - DynamicServerListLoadBalancer for client ees-ent initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-ent,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@11a5bcaf
    2018-06-22 09:44:22 [main] INFO  - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@55746c3e: startup date [Fri Jun 22 09:44:22 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7bab3384
    2018-06-22 09:44:22 [main] INFO  - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    2018-06-22 09:44:22 [main] INFO  - Flipping property: ees-flight.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:22 [main] INFO  - Shutdown hook installed for: NFLoadBalancer-PingTimer-ees-flight
    2018-06-22 09:44:22 [main] INFO  - Client: ees-flight instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-flight,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
    2018-06-22 09:44:22 [main] INFO  - Using serverListUpdater PollingServerListUpdater
    2018-06-22 09:44:22 [main] INFO  - DynamicServerListLoadBalancer for client ees-flight initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-flight,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@5e256f00
    2018-06-22 09:44:22 [main] INFO  - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@ac9f06a: startup date [Fri Jun 22 09:44:22 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7bab3384
    2018-06-22 09:44:22 [main] INFO  - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    2018-06-22 09:44:22 [main] INFO  - Flipping property: ees-merchant.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:22 [main] INFO  - Shutdown hook installed for: NFLoadBalancer-PingTimer-ees-merchant
    2018-06-22 09:44:22 [main] INFO  - Client: ees-merchant instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-merchant,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
    2018-06-22 09:44:22 [main] INFO  - Using serverListUpdater PollingServerListUpdater
    2018-06-22 09:44:22 [main] INFO  - DynamicServerListLoadBalancer for client ees-merchant initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-merchant,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@d99a0fd
    2018-06-22 09:44:22 [main] INFO  - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@3e4cdc9: startup date [Fri Jun 22 09:44:22 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7bab3384
    2018-06-22 09:44:23 [main] INFO  - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    2018-06-22 09:44:23 [main] INFO  - Flipping property: ees-msg.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:23 [main] INFO  - Shutdown hook installed for: NFLoadBalancer-PingTimer-ees-msg
    2018-06-22 09:44:23 [main] INFO  - Client: ees-msg instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-msg,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
    2018-06-22 09:44:23 [main] INFO  - Using serverListUpdater PollingServerListUpdater
    2018-06-22 09:44:23 [main] INFO  - DynamicServerListLoadBalancer for client ees-msg initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-msg,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@28c96e20
    2018-06-22 09:44:23 [main] INFO  - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@505442e1: startup date [Fri Jun 22 09:44:23 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7bab3384
    2018-06-22 09:44:23 [main] INFO  - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    2018-06-22 09:44:23 [main] INFO  - Flipping property: ees-mst.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:23 [main] INFO  - Shutdown hook installed for: NFLoadBalancer-PingTimer-ees-mst
    2018-06-22 09:44:23 [main] INFO  - Client: ees-mst instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-mst,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
    2018-06-22 09:44:23 [main] INFO  - Using serverListUpdater PollingServerListUpdater
    2018-06-22 09:44:23 [main] INFO  - Flipping property: ees-mst.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:23 [main] INFO  - DynamicServerListLoadBalancer for client ees-mst initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-mst,current list of Servers=[16101164-15-PC:8113],Load balancer stats=Zone stats: {defaultzone=[Zone:defaultzone;   Instance count:1;   Active connections count: 0;    Circuit breaker tripped count: 0;   Active connections per server: 0.0;]
    },Server stats: [[Server:16101164-15-PC:8113;   Zone:defaultZone;   Total Requests:0;   Successive connection failure:0;    Total blackout seconds:0;   Last connection made:Thu Jan 01 08:00:00 CST 1970;  First connection made: Thu Jan 01 08:00:00 CST 1970;    Active Connections:0;   total failure count in last (1000) msecs:0; average resp time:0.0;  90 percentile resp time:0.0;    95 percentile resp time:0.0;    min resp time:0.0;  max resp time:0.0;  stddev resp time:0.0]
    ]}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@7d05b36e
    2018-06-22 09:44:23 [main] INFO  - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@54cbf3c9: startup date [Fri Jun 22 09:44:23 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7bab3384
    2018-06-22 09:44:23 [main] INFO  - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    2018-06-22 09:44:24 [main] INFO  - Flipping property: ees-pay.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:24 [main] INFO  - Shutdown hook installed for: NFLoadBalancer-PingTimer-ees-pay
    2018-06-22 09:44:24 [main] INFO  - Client: ees-pay instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-pay,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
    2018-06-22 09:44:24 [main] INFO  - Using serverListUpdater PollingServerListUpdater
    2018-06-22 09:44:24 [main] INFO  - DynamicServerListLoadBalancer for client ees-pay initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-pay,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@686248ff
    2018-06-22 09:44:24 [main] INFO  - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@65bd2d71: startup date [Fri Jun 22 09:44:24 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7bab3384
    2018-06-22 09:44:24 [main] INFO  - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    2018-06-22 09:44:24 [main] INFO  - Flipping property: ees-sys.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:24 [main] INFO  - Shutdown hook installed for: NFLoadBalancer-PingTimer-ees-sys
    2018-06-22 09:44:24 [main] INFO  - Client: ees-sys instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-sys,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
    2018-06-22 09:44:24 [main] INFO  - Using serverListUpdater PollingServerListUpdater
    2018-06-22 09:44:24 [main] INFO  - Flipping property: ees-sys.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:24 [main] INFO  - DynamicServerListLoadBalancer for client ees-sys initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-sys,current list of Servers=[16101164-15-PC:8112],Load balancer stats=Zone stats: {defaultzone=[Zone:defaultzone;   Instance count:1;   Active connections count: 0;    Circuit breaker tripped count: 0;   Active connections per server: 0.0;]
    },Server stats: [[Server:16101164-15-PC:8112;   Zone:defaultZone;   Total Requests:0;   Successive connection failure:0;    Total blackout seconds:0;   Last connection made:Thu Jan 01 08:00:00 CST 1970;  First connection made: Thu Jan 01 08:00:00 CST 1970;    Active Connections:0;   total failure count in last (1000) msecs:0; average resp time:0.0;  90 percentile resp time:0.0;    95 percentile resp time:0.0;    min resp time:0.0;  max resp time:0.0;  stddev resp time:0.0]
    ]}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@78fdd5d3
    2018-06-22 09:44:24 [main] INFO  - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@7e73829e: startup date [Fri Jun 22 09:44:24 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7bab3384
    2018-06-22 09:44:24 [PollingServerListUpdater-1] INFO  - Flipping property: ees-mst.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:24 [main] INFO  - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    2018-06-22 09:44:25 [main] INFO  - Flipping property: ees-tem.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:25 [main] INFO  - Shutdown hook installed for: NFLoadBalancer-PingTimer-ees-tem
    2018-06-22 09:44:25 [main] INFO  - Client: ees-tem instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-tem,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
    2018-06-22 09:44:25 [main] INFO  - Using serverListUpdater PollingServerListUpdater
    2018-06-22 09:44:25 [main] INFO  - DynamicServerListLoadBalancer for client ees-tem initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-tem,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@56be9252
    2018-06-22 09:44:25 [main] INFO  - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@23dceb99: startup date [Fri Jun 22 09:44:25 CST 2018]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7bab3384
    2018-06-22 09:44:25 [main] INFO  - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    2018-06-22 09:44:25 [main] INFO  - Flipping property: ees-workflow.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
    2018-06-22 09:44:25 [main] INFO  - Shutdown hook installed for: NFLoadBalancer-PingTimer-ees-workflow
    2018-06-22 09:44:25 [main] INFO  - Client: ees-workflow instantiated a LoadBalancer: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-workflow,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
    2018-06-22 09:44:25 [main] INFO  - Using serverListUpdater PollingServerListUpdater
    2018-06-22 09:44:25 [main] INFO  - DynamicServerListLoadBalancer for client ees-workflow initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=ees-workflow,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:org.springframework.cloud.netflix.ribbon.eureka.DomainExtractingServerList@6b1c2084
    2018-06-22 09:44:25 [main] INFO  - Started EesHotelApplication in 33.977 seconds (JVM running for 47.341)
    

    相关文章

      网友评论

          本文标题:关于ribbon的懒加载及zuul的懒加载导致第一次请求服务延时

          本文链接:https://www.haomeiwen.com/subject/oxohyftx.html