解决eureka注册中心集群模式defaultZone参数使用localhost+端口无效问题
-
处理方案
-
增加 eureka.server.my-url参数
eureka: server: my-url: xxx
-
-
问题描述
-
application.yml配置文件
-
启动日志
2019-11-07 12:29:32.798 INFO 41060 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$4d165f6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.2.0.RELEASE) 2019-11-07 12:29:34.105 INFO 41060 --- [ main] c.s.c.eurekademo.EurekaDemoApplication : No active profile set, falling back to default profiles: default 2019-11-07 12:29:34.716 WARN 41060 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format. 2019-11-07 12:29:34.835 INFO 41060 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=8499f6d8-af8a-3259-98e1-f06caac0f7ef 2019-11-07 12:29:34.964 INFO 41060 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$4d165f6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-11-07 12:29:35.155 INFO 41060 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8761 (http) 2019-11-07 12:29:35.163 INFO 41060 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2019-11-07 12:29:35.164 INFO 41060 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.27] 2019-11-07 12:29:35.262 INFO 41060 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2019-11-07 12:29:35.262 INFO 41060 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1144 ms 2019-11-07 12:29:35.331 WARN 41060 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2019-11-07 12:29:35.331 INFO 41060 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2019-11-07 12:29:35.340 INFO 41060 --- [ main] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@7c8d5312 2019-11-07 12:29:36.687 INFO 41060 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname 2019-11-07 12:29:36.940 INFO 41060 --- [ main] c.s.j.s.i.a.WebApplicationImpl : Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM' 2019-11-07 12:29:36.986 INFO 41060 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson 2019-11-07 12:29:36.987 INFO 41060 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson 2019-11-07 12:29:37.064 INFO 41060 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml 2019-11-07 12:29:37.064 INFO 41060 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml 2019-11-07 12:29:37.312 WARN 41060 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2019-11-07 12:29:37.312 INFO 41060 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2019-11-07 12:29:37.450 INFO 41060 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2019-11-07 12:29:38.857 INFO 41060 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname 2019-11-07 12:29:38.888 WARN 41060 --- [ main] ockingLoadBalancerClientRibbonWarnLogger : You already have RibbonLoadBalancerClient on your classpath. It will be used by default. As Spring Cloud Ribbon is in maintenance mode. We recommend switching to BlockingLoadBalancerClient instead. In order to use it, set the value of `spring.cloud.loadbalancer.ribbon.enabled` to `false` or remove spring-cloud-starter-netflix-ribbon from your project. 2019-11-07 12:29:38.938 INFO 41060 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING 2019-11-07 12:29:38.959 INFO 41060 --- [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1 2019-11-07 12:29:38.960 INFO 41060 --- [ main] com.netflix.discovery.DiscoveryClient : Client configured to neither register nor query for data. 2019-11-07 12:29:38.965 INFO 41060 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1573100978964 with initial instances count: 0 2019-11-07 12:29:38.996 INFO 41060 --- [ main] c.n.eureka.DefaultEurekaServerContext : Initializing ... 2019-11-07 12:29:38.998 WARN 41060 --- [ main] c.n.eureka.cluster.PeerEurekaNodes : The replica size seems to be empty. Check the route 53 DNS Registry 2019-11-07 12:29:39.012 INFO 41060 --- [ main] c.n.e.registry.AbstractInstanceRegistry : Finished initializing remote region registries. All known remote regions: [] 2019-11-07 12:29:39.013 INFO 41060 --- [ main] c.n.eureka.DefaultEurekaServerContext : Initialized 2019-11-07 12:29:39.027 INFO 41060 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator' 2019-11-07 12:29:39.115 INFO 41060 --- [ main] o.s.c.n.e.s.EurekaServiceRegistry : Registering application EURKA-SERVER with eureka with status UP 2019-11-07 12:29:39.117 INFO 41060 --- [ Thread-27] o.s.c.n.e.server.EurekaServerBootstrap : Setting the eureka configuration.. 2019-11-07 12:29:39.118 INFO 41060 --- [ Thread-27] o.s.c.n.e.server.EurekaServerBootstrap : Eureka data center value eureka.datacenter is not set, defaulting to default 2019-11-07 12:29:39.118 INFO 41060 --- [ Thread-27] o.s.c.n.e.server.EurekaServerBootstrap : Eureka environment value eureka.environment is not set, defaulting to test 2019-11-07 12:29:39.134 INFO 41060 --- [ Thread-27] o.s.c.n.e.server.EurekaServerBootstrap : isAws returned false 2019-11-07 12:29:39.135 INFO 41060 --- [ Thread-27] o.s.c.n.e.server.EurekaServerBootstrap : Initialized server context 2019-11-07 12:29:39.135 INFO 41060 --- [ Thread-27] c.n.e.r.PeerAwareInstanceRegistryImpl : Got 1 instances from neighboring DS node 2019-11-07 12:29:39.135 INFO 41060 --- [ Thread-27] c.n.e.r.PeerAwareInstanceRegistryImpl : Renew threshold is: 1 2019-11-07 12:29:39.135 INFO 41060 --- [ Thread-27] c.n.e.r.PeerAwareInstanceRegistryImpl : Changing status to UP 2019-11-07 12:29:39.145 INFO 41060 --- [ Thread-27] e.s.EurekaServerInitializerConfiguration : Started Eureka Server 2019-11-07 12:29:39.165 INFO 41060 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8761 (http) with context path '' 2019-11-07 12:29:39.166 INFO 41060 --- [ main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8761 2019-11-07 12:29:40.285 INFO 41060 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname 2019-11-07 12:29:40.287 INFO 41060 --- [ main] c.s.c.eurekademo.EurekaDemoApplication : Started EurekaDemoApplication in 9.645 seconds (JVM running for 10.524) 2019-11-07 12:29:40.680 INFO 41060 --- [)-192.168.5.111] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' 2019-11-07 12:29:40.680 INFO 41060 --- [)-192.168.5.111] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 2019-11-07 12:29:40.688 INFO 41060 --- [)-192.168.5.111] o.s.web.servlet.DispatcherServlet : Completed initialization in 8 ms
-
日志上并没有集群节点的日志输出,修改defaultZone参数后重试
-
修改后的启动日志
2019-11-07 13:16:05.794 INFO 46944 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$4f3a88c0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.2.0.RELEASE) 2019-11-07 13:16:07.047 INFO 46944 --- [ main] c.s.c.eurekademo.EurekaDemoApplication : No active profile set, falling back to default profiles: default 2019-11-07 13:16:07.679 WARN 46944 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format. 2019-11-07 13:16:07.800 INFO 46944 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=8499f6d8-af8a-3259-98e1-f06caac0f7ef 2019-11-07 13:16:07.929 INFO 46944 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$4f3a88c0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-11-07 13:16:08.137 INFO 46944 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8761 (http) 2019-11-07 13:16:08.148 INFO 46944 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2019-11-07 13:16:08.149 INFO 46944 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.27] 2019-11-07 13:16:08.246 INFO 46944 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2019-11-07 13:16:08.246 INFO 46944 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1185 ms 2019-11-07 13:16:08.304 WARN 46944 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2019-11-07 13:16:08.304 INFO 46944 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2019-11-07 13:16:08.311 INFO 46944 --- [ main] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@22a0d4ea 2019-11-07 13:16:09.681 INFO 46944 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname 2019-11-07 13:16:09.966 INFO 46944 --- [ main] c.s.j.s.i.a.WebApplicationImpl : Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM' 2019-11-07 13:16:10.010 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson 2019-11-07 13:16:10.011 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson 2019-11-07 13:16:10.095 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml 2019-11-07 13:16:10.096 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml 2019-11-07 13:16:10.351 WARN 46944 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2019-11-07 13:16:10.351 INFO 46944 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2019-11-07 13:16:10.482 INFO 46944 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2019-11-07 13:16:11.910 INFO 46944 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname 2019-11-07 13:16:11.942 WARN 46944 --- [ main] ockingLoadBalancerClientRibbonWarnLogger : You already have RibbonLoadBalancerClient on your classpath. It will be used by default. As Spring Cloud Ribbon is in maintenance mode. We recommend switching to BlockingLoadBalancerClient instead. In order to use it, set the value of `spring.cloud.loadbalancer.ribbon.enabled` to `false` or remove spring-cloud-starter-netflix-ribbon from your project. 2019-11-07 13:16:11.996 INFO 46944 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING 2019-11-07 13:16:12.016 INFO 46944 --- [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1 2019-11-07 13:16:12.017 INFO 46944 --- [ main] com.netflix.discovery.DiscoveryClient : Client configured to neither register nor query for data. 2019-11-07 13:16:12.022 INFO 46944 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1573103772021 with initial instances count: 0 2019-11-07 13:16:12.050 INFO 46944 --- [ main] c.n.eureka.DefaultEurekaServerContext : Initializing ... 2019-11-07 13:16:12.052 INFO 46944 --- [ main] c.n.eureka.cluster.PeerEurekaNodes : Adding new peer nodes [http://127.0.0.1:8761/eureka/, http://127.0.0.1:8773/eureka/] 2019-11-07 13:16:12.173 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson 2019-11-07 13:16:12.173 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson 2019-11-07 13:16:12.173 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml 2019-11-07 13:16:12.173 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml 2019-11-07 13:16:12.261 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson 2019-11-07 13:16:12.261 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson 2019-11-07 13:16:12.261 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml 2019-11-07 13:16:12.261 INFO 46944 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml 2019-11-07 13:16:12.304 INFO 46944 --- [ main] c.n.eureka.cluster.PeerEurekaNodes : Replica node URL: http://127.0.0.1:8761/eureka/ 2019-11-07 13:16:12.305 INFO 46944 --- [ main] c.n.eureka.cluster.PeerEurekaNodes : Replica node URL: http://127.0.0.1:8773/eureka/ 2019-11-07 13:16:12.311 INFO 46944 --- [ main] c.n.e.registry.AbstractInstanceRegistry : Finished initializing remote region registries. All known remote regions: [] 2019-11-07 13:16:12.311 INFO 46944 --- [ main] c.n.eureka.DefaultEurekaServerContext : Initialized 2019-11-07 13:16:12.329 INFO 46944 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator' 2019-11-07 13:16:12.396 INFO 46944 --- [ main] o.s.c.n.e.s.EurekaServiceRegistry : Registering application EURKA-SERVER with eureka with status UP 2019-11-07 13:16:12.397 INFO 46944 --- [ Thread-27] o.s.c.n.e.server.EurekaServerBootstrap : Setting the eureka configuration.. 2019-11-07 13:16:12.398 INFO 46944 --- [ Thread-27] o.s.c.n.e.server.EurekaServerBootstrap : Eureka data center value eureka.datacenter is not set, defaulting to default 2019-11-07 13:16:12.399 INFO 46944 --- [ Thread-27] o.s.c.n.e.server.EurekaServerBootstrap : Eureka environment value eureka.environment is not set, defaulting to test 2019-11-07 13:16:12.420 INFO 46944 --- [ Thread-27] o.s.c.n.e.server.EurekaServerBootstrap : isAws returned false 2019-11-07 13:16:12.420 INFO 46944 --- [ Thread-27] o.s.c.n.e.server.EurekaServerBootstrap : Initialized server context 2019-11-07 13:16:12.421 INFO 46944 --- [ Thread-27] c.n.e.r.PeerAwareInstanceRegistryImpl : Got 1 instances from neighboring DS node 2019-11-07 13:16:12.421 INFO 46944 --- [ Thread-27] c.n.e.r.PeerAwareInstanceRegistryImpl : Renew threshold is: 1 2019-11-07 13:16:12.421 INFO 46944 --- [ Thread-27] c.n.e.r.PeerAwareInstanceRegistryImpl : Changing status to UP 2019-11-07 13:16:12.428 INFO 46944 --- [ Thread-27] e.s.EurekaServerInitializerConfiguration : Started Eureka Server 2019-11-07 13:16:12.445 INFO 46944 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8761 (http) with context path '' 2019-11-07 13:16:12.446 INFO 46944 --- [ main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8761 2019-11-07 13:16:13.574 INFO 46944 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname 2019-11-07 13:16:13.575 INFO 46944 --- [ main] c.s.c.eurekademo.EurekaDemoApplication : Started EurekaDemoApplication in 9.998 seconds (JVM running for 10.93) 2019-11-07 13:16:14.105 INFO 46944 --- [)-192.168.5.111] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' 2019-11-07 13:16:14.105 INFO 46944 --- [)-192.168.5.111] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 2019-11-07 13:16:14.114 INFO 46944 --- [)-192.168.5.111] o.s.web.servlet.DispatcherServlet : Completed initialization in 9 ms
-
-
问题排查
- 通过yml文件进入defaultZone参数作用类为EurekaClientConfigBean类的serviceUrl变量
- Alt+F7搜索使用该参数的地方
- 设置断点debug启动,getEurekaServerServiceUrls方法将集群节点以逗号进行分割组成list返回
- 调用链往前推,最终在PeerEurekaNodes类resolvePeerUrls方法上找到过滤节点的代码
- 循环调用isThisMyUrl方法进行过滤,方法较为简单,hostFromUrl方法获取主机名,可以看到,如果使用localhost作为defaultZone参数,则这里 hostName.equals(myInfoComparator) 参数比较就会返回true从而过滤全部以localhost配置的节点
- 综上问题已经确定,通过设置 myUrl 参数使 isThisMyUrl 方法返回 false 即可跳过下面的判断
- myUrl 参数由eureka.server.myUrl提供
- 通过yml文件进入defaultZone参数作用类为EurekaClientConfigBean类的serviceUrl变量
-
测试
-
配置文件增加 my-url 参数
-
启动日志
2019-11-07 14:05:53.514 INFO 52032 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$564e109e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.2.0.RELEASE) 2019-11-07 14:05:54.827 INFO 52032 --- [ main] c.s.c.eurekademo.EurekaDemoApplication : No active profile set, falling back to default profiles: default 2019-11-07 14:05:55.740 WARN 52032 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format. 2019-11-07 14:05:55.902 INFO 52032 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=8499f6d8-af8a-3259-98e1-f06caac0f7ef 2019-11-07 14:05:56.056 INFO 52032 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$564e109e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-11-07 14:05:56.304 INFO 52032 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8761 (http) 2019-11-07 14:05:56.313 INFO 52032 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2019-11-07 14:05:56.314 INFO 52032 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.27] 2019-11-07 14:05:56.433 INFO 52032 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2019-11-07 14:05:56.434 INFO 52032 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1583 ms 2019-11-07 14:05:56.506 WARN 52032 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2019-11-07 14:05:56.506 INFO 52032 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2019-11-07 14:05:56.519 INFO 52032 --- [ main] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@245ec1a6 2019-11-07 14:05:57.955 INFO 52032 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname 2019-11-07 14:05:58.190 INFO 52032 --- [ main] c.s.j.s.i.a.WebApplicationImpl : Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM' 2019-11-07 14:05:58.235 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson 2019-11-07 14:05:58.236 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson 2019-11-07 14:05:58.315 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml 2019-11-07 14:05:58.315 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml 2019-11-07 14:05:58.564 WARN 52032 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2019-11-07 14:05:58.564 INFO 52032 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2019-11-07 14:05:58.691 INFO 52032 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2019-11-07 14:06:00.132 INFO 52032 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname 2019-11-07 14:06:00.160 WARN 52032 --- [ main] ockingLoadBalancerClientRibbonWarnLogger : You already have RibbonLoadBalancerClient on your classpath. It will be used by default. As Spring Cloud Ribbon is in maintenance mode. We recommend switching to BlockingLoadBalancerClient instead. In order to use it, set the value of `spring.cloud.loadbalancer.ribbon.enabled` to `false` or remove spring-cloud-starter-netflix-ribbon from your project. 2019-11-07 14:06:00.208 INFO 52032 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING 2019-11-07 14:06:00.230 INFO 52032 --- [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1 2019-11-07 14:06:00.230 INFO 52032 --- [ main] com.netflix.discovery.DiscoveryClient : Client configured to neither register nor query for data. 2019-11-07 14:06:00.235 INFO 52032 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1573106760234 with initial instances count: 0 2019-11-07 14:06:00.280 INFO 52032 --- [ main] c.n.eureka.DefaultEurekaServerContext : Initializing ... 2019-11-07 14:06:00.281 INFO 52032 --- [ main] c.n.eureka.cluster.PeerEurekaNodes : Adding new peer nodes [http://localhost:8761/eureka/, http://localhost:8773/eureka/] 2019-11-07 14:06:00.379 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson 2019-11-07 14:06:00.379 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson 2019-11-07 14:06:00.379 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml 2019-11-07 14:06:00.379 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml 2019-11-07 14:06:00.460 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson 2019-11-07 14:06:00.460 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson 2019-11-07 14:06:00.460 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml 2019-11-07 14:06:00.460 INFO 52032 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml 2019-11-07 14:06:00.505 INFO 52032 --- [ main] c.n.eureka.cluster.PeerEurekaNodes : Replica node URL: http://localhost:8761/eureka/ 2019-11-07 14:06:00.505 INFO 52032 --- [ main] c.n.eureka.cluster.PeerEurekaNodes : Replica node URL: http://localhost:8773/eureka/ 2019-11-07 14:06:00.511 INFO 52032 --- [ main] c.n.e.registry.AbstractInstanceRegistry : Finished initializing remote region registries. All known remote regions: [] 2019-11-07 14:06:00.512 INFO 52032 --- [ main] c.n.eureka.DefaultEurekaServerContext : Initialized 2019-11-07 14:06:00.525 INFO 52032 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator' 2019-11-07 14:06:00.590 INFO 52032 --- [ main] o.s.c.n.e.s.EurekaServiceRegistry : Registering application EURKA-SERVER with eureka with status UP 2019-11-07 14:06:00.592 INFO 52032 --- [ Thread-29] o.s.c.n.e.server.EurekaServerBootstrap : Setting the eureka configuration.. 2019-11-07 14:06:00.593 INFO 52032 --- [ Thread-29] o.s.c.n.e.server.EurekaServerBootstrap : Eureka data center value eureka.datacenter is not set, defaulting to default 2019-11-07 14:06:00.593 INFO 52032 --- [ Thread-29] o.s.c.n.e.server.EurekaServerBootstrap : Eureka environment value eureka.environment is not set, defaulting to test 2019-11-07 14:06:00.609 INFO 52032 --- [ Thread-29] o.s.c.n.e.server.EurekaServerBootstrap : isAws returned false 2019-11-07 14:06:00.610 INFO 52032 --- [ Thread-29] o.s.c.n.e.server.EurekaServerBootstrap : Initialized server context 2019-11-07 14:06:00.610 INFO 52032 --- [ Thread-29] c.n.e.r.PeerAwareInstanceRegistryImpl : Got 1 instances from neighboring DS node 2019-11-07 14:06:00.610 INFO 52032 --- [ Thread-29] c.n.e.r.PeerAwareInstanceRegistryImpl : Renew threshold is: 1 2019-11-07 14:06:00.610 INFO 52032 --- [ Thread-29] c.n.e.r.PeerAwareInstanceRegistryImpl : Changing status to UP 2019-11-07 14:06:00.624 INFO 52032 --- [ Thread-29] e.s.EurekaServerInitializerConfiguration : Started Eureka Server 2019-11-07 14:06:00.642 INFO 52032 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8761 (http) with context path '' 2019-11-07 14:06:00.643 INFO 52032 --- [ main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 8761 2019-11-07 14:06:01.771 INFO 52032 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname 2019-11-07 14:06:01.772 INFO 52032 --- [ main] c.s.c.eurekademo.EurekaDemoApplication : Started EurekaDemoApplication in 10.468 seconds (JVM running for 11.526) 2019-11-07 14:06:01.953 INFO 52032 --- [)-192.168.5.111] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' 2019-11-07 14:06:01.953 INFO 52032 --- [)-192.168.5.111] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 2019-11-07 14:06:01.962 INFO 52032 --- [)-192.168.5.111] o.s.web.servlet.DispatcherServlet : Completed initialization in 9 ms
-