viernes, 28 de junio de 2019

Spring Cloud Netflix, Microservice, Load Balance (Ribbon), java parte 5

Verificación de Asignaciones de Servicios de Forma Balanceada

referecias
https://cloud.spring.io/spring-cloud-static/spring-cloud.html


  Para verificar que servicio Productor fue asignado a cada servicio Consumidor modificaremos los servicios para que nos proporciones información de en que puerto estan asignados, y a que puerto del servicio Productor se asignaron.

  Para esto definimos una clase estatica en el paquete com.bext.model llamada Info, la cual servira de transporte dentro de la aplicación para tomar los valores al arrancar el servicio. y posteriormente esta misma clase estatica Info será usada por el punto de entrada REST /info. que desplegará la información de los servicios tanto productores como consumidores.

La visualización de estos cambios los podemos ver aquí
https://github.com/jalbertomr/SpringCloudNetflix/commit/a20295bf6deed4e3321d870d1278c093ae4031d0



 Ahora para obtener la información de los puertos y asignaciones de los servicios tanto productores y consumidores bastará con darle click en los nombres de los servicios en la página de nuertro servidor eureka. aquí tenemos un resumen de lo que nos arrojan la información de servicios.


Ahora podemos ver que tenemos dos productores en puertos 8080, 8081, y 4 consumidores en puertos 8092, 8094, 8093, 8091. los cuales tomaron diferentes Productores.
la razón de que salga null, pero en la dirección de browser se vea 8080, es por que la respuesta REST /info toma del archivo application.properties el valor que se le asigno al servicio con la llave server.port. pero como no se le asigno ninguna por default toma 8080 y null para la propiedad que lee.

El log de un servicio productor en consola:

2019-06-28 20:49:12.697  INFO 824 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@35cabb2a: startup date [Fri Jun 28 20:49:12 CDT 2019]; root of context hierarchy
2019-06-28 20:49:13.287  INFO 824 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-06-28 20:49:13.380  INFO 824 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$5d0b4f48] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.1.RELEASE)

2019-06-28 20:49:14.954  INFO 824 --- [           main] com.bext.SpringBootProducerApplication   : No active profile set, falling back to default profiles: default
2019-06-28 20:49:15.001  INFO 824 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@413f69cc: startup date [Fri Jun 28 20:49:15 CDT 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@35cabb2a
2019-06-28 20:49:16.795  WARN 824 --- [           main] o.s.c.a.ConfigurationClassPostProcessor  : Cannot enhance @Configuration bean definition 'refreshScope' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
2019-06-28 20:49:17.026  INFO 824 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=68326ab6-45be-32d5-b3dd-64da0e63c72e
2019-06-28 20:49:17.042  INFO 824 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-06-28 20:49:17.089  INFO 824 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$5d0b4f48] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-06-28 20:49:17.795  INFO 824 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2019-06-28 20:49:17.827  INFO 824 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2019-06-28 20:49:17.834  INFO 824 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.5
2019-06-28 20:49:18.147  INFO 824 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-06-28 20:49:18.147  INFO 824 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 3146 ms
2019-06-28 20:49:18.696  INFO 824 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2019-06-28 20:49:18.712  INFO 824 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2019-06-28 20:49:18.712  INFO 824 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2019-06-28 20:49:18.712  INFO 824 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2019-06-28 20:49:18.712  INFO 824 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2019-06-28 20:49:20.813  INFO 824 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@413f69cc: startup date [Fri Jun 28 20:49:15 CDT 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@35cabb2a
2019-06-28 20:49:20.964  INFO 824 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/info],methods=[GET]}" onto public java.lang.String com.bext.controllers.TestController.infoPage()
2019-06-28 20:49:20.964  INFO 824 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/empleado],methods=[GET]}" onto public com.bext.model.Employee com.bext.controllers.TestController.firstPage()
2019-06-28 20:49:20.980  INFO 824 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2019-06-28 20:49:20.980  INFO 824 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2019-06-28 20:49:21.089  INFO 824 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-06-28 20:49:21.089  INFO 824 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-06-28 20:49:21.198  INFO 824 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-06-28 20:49:21.951  WARN 824 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-06-28 20:49:21.951  INFO 824 --- [           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-06-28 20:49:21.957  WARN 824 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-06-28 20:49:21.957  INFO 824 --- [           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-06-28 20:49:22.176  INFO 824 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2019-06-28 20:49:22.207  INFO 824 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshScope' has been autodetected for JMX exposure
2019-06-28 20:49:22.207  INFO 824 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'environmentManager' has been autodetected for JMX exposure
2019-06-28 20:49:22.207  INFO 824 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
2019-06-28 20:49:22.226  INFO 824 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2019-06-28 20:49:22.257  INFO 824 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2019-06-28 20:49:22.289  INFO 824 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=413f69cc,type=ConfigurationPropertiesRebinder]
2019-06-28 20:49:22.773  INFO 824 --- [           main] o.s.c.support.DefaultLifecycleProcessor  : Starting beans in phase 0
2019-06-28 20:49:22.789  INFO 824 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2019-06-28 20:49:25.957  INFO 824 --- [           main] c.n.e.EurekaDiscoveryClientConfiguration : Registering application empleado-productor with eureka with status UP
2019-06-28 20:49:26.471  INFO 824 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2019-06-28 20:49:26.487  INFO 824 --- [           main] c.n.e.EurekaDiscoveryClientConfiguration : Updating port to 8080
2019-06-28 20:49:26.502  INFO 824 --- [           main] com.bext.SpringBootProducerApplication   : Started SpringBootProducerApplication in 15.734 seconds (JVM running for 18.119)
server.port:null
2019-06-28 20:50:32.820  INFO 824 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring FrameworkServlet 'dispatcherServlet'
2019-06-28 20:50:32.820  INFO 824 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started
2019-06-28 20:50:32.877  INFO 824 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 57 ms


El log de un servicio consumidor en consola:

2019-06-28 21:01:46.662  INFO 7740 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@564fabc8: startup date [Fri Jun 28 21:01:46 CDT 2019]; root of context hierarchy
2019-06-28 21:01:47.215  INFO 7740 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-06-28 21:01:47.309  INFO 7740 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$464605d8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.4.1.RELEASE)

2019-06-28 21:01:48.980  INFO 7740 --- [           main] com.bext.SpringBootConsumerApplication   : No active profile set, falling back to default profiles: default
2019-06-28 21:01:49.012  INFO 7740 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3bd323e9: startup date [Fri Jun 28 21:01:49 CDT 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@564fabc8
2019-06-28 21:01:50.484  INFO 7740 --- [           main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'consumerControllerClient' with a different definition: replacing [Generic bean: class [com.bext.controllers.ConsumerControllerClient]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [C:\Users\Bext\workspace\employee-consumer\target\classes\com\bext\controllers\ConsumerControllerClient.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=springBootConsumerApplication; factoryMethodName=consumerControllerClient; initMethodName=null; destroyMethodName=(inferred); defined in com.bext.SpringBootConsumerApplication]
2019-06-28 21:01:50.900  WARN 7740 --- [           main] o.s.c.a.ConfigurationClassPostProcessor  : Cannot enhance @Configuration bean definition 'refreshScope' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
2019-06-28 21:01:51.166  INFO 7740 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=e1c2c950-3593-3497-a05d-b5a8a8d58f26
2019-06-28 21:01:51.213  INFO 7740 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-06-28 21:01:51.307  INFO 7740 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$464605d8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-06-28 21:01:52.153  INFO 7740 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8092 (http)
2019-06-28 21:01:52.182  INFO 7740 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2019-06-28 21:01:52.182  INFO 7740 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.5
2019-06-28 21:01:52.495  INFO 7740 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-06-28 21:01:52.510  INFO 7740 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 3498 ms
2019-06-28 21:01:52.950  INFO 7740 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2019-06-28 21:01:52.966  INFO 7740 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2019-06-28 21:01:52.966  INFO 7740 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2019-06-28 21:01:52.966  INFO 7740 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2019-06-28 21:01:52.966  INFO 7740 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2019-06-28 21:01:53.937  INFO 7740 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3bd323e9: startup date [Fri Jun 28 21:01:49 CDT 2019]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@564fabc8
2019-06-28 21:01:54.089  INFO 7740 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/info],methods=[GET]}" onto public java.lang.String com.bext.controllers.TestController.infoPage()
2019-06-28 21:01:54.105  INFO 7740 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2019-06-28 21:01:54.105  INFO 7740 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2019-06-28 21:01:54.199  INFO 7740 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-06-28 21:01:54.199  INFO 7740 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-06-28 21:01:54.324  INFO 7740 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-06-28 21:01:56.328  WARN 7740 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-06-28 21:01:56.328  INFO 7740 --- [           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-06-28 21:01:56.345  WARN 7740 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-06-28 21:01:56.345  INFO 7740 --- [           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-06-28 21:01:56.595  INFO 7740 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2019-06-28 21:01:56.626  INFO 7740 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'refreshScope' has been autodetected for JMX exposure
2019-06-28 21:01:56.626  INFO 7740 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'environmentManager' has been autodetected for JMX exposure
2019-06-28 21:01:56.641  INFO 7740 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
2019-06-28 21:01:56.641  INFO 7740 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2019-06-28 21:01:56.688  INFO 7740 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2019-06-28 21:01:56.720  INFO 7740 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=3bd323e9,type=ConfigurationPropertiesRebinder]
2019-06-28 21:01:57.379  INFO 7740 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8092 (http)
2019-06-28 21:01:57.392  INFO 7740 --- [           main] com.bext.SpringBootConsumerApplication   : Started SpringBootConsumerApplication in 12.718 seconds (JVM running for 14.915)
com.bext.controllers.ConsumerControllerClient@70e13fa
server.port:8092
2019-06-28 21:01:57.408  INFO 7740 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@6ff415ad: startup date [Fri Jun 28 21:01:57 CDT 2019]; parent: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3bd323e9
2019-06-28 21:01:57.502  INFO 7740 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-06-28 21:01:57.907  INFO 7740 --- [           main] c.netflix.config.ChainedDynamicProperty  : Flipping property: empleado-productor.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2019-06-28 21:01:57.954  INFO 7740 --- [           main] c.n.u.concurrent.ShutdownEnabledTimer    : Shutdown hook installed for: NFLoadBalancer-PingTimer-empleado-productor
2019-06-28 21:01:58.016  INFO 7740 --- [           main] c.netflix.loadbalancer.BaseLoadBalancer  : Client:empleado-productor instantiated a LoadBalancer:DynamicServerListLoadBalancer:{NFLoadBalancer:name=empleado-productor,current list of Servers=[],Load balancer stats=Zone stats: {},Server stats: []}ServerList:null
2019-06-28 21:01:58.032  INFO 7740 --- [           main] c.n.l.DynamicServerListLoadBalancer      : Using serverListUpdater PollingServerListUpdater
2019-06-28 21:01:58.063  INFO 7740 --- [           main] o.s.c.n.eureka.InstanceInfoFactory       : Setting initial instance status as: STARTING
2019-06-28 21:02:01.495  INFO 7740 --- [           main] c.netflix.config.ChainedDynamicProperty  : Flipping property: empleado-productor.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2019-06-28 21:02:01.506  INFO 7740 --- [           main] c.n.l.DynamicServerListLoadBalancer      : DynamicServerListLoadBalancer for client empleado-productor initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=empleado-productor,current list of Servers=[android-ae23f0022eea:8081, android-ae23f0022eea:8080],Load balancer stats=Zone stats: {defaultzone=[Zone:defaultzone;    Instance count:2;    Active connections count: 0;    Circuit breaker tripped count: 0;    Active connections per server: 0.0;]
},Server stats: [[Server:android-ae23f0022eea:8080;    Zone:defaultZone;    Total Requests:0;    Successive connection failure:0;    Total blackout seconds:0;    Last connection made:Wed Dec 31 18:00:00 CST 1969;    First connection made: Wed Dec 31 18:00:00 CST 1969;    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]
, [Server:android-ae23f0022eea:8081;    Zone:defaultZone;    Total Requests:0;    Successive connection failure:0;    Total blackout seconds:0;    Last connection made:Wed Dec 31 18:00:00 CST 1969;    First connection made: Wed Dec 31 18:00:00 CST 1969;    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@6fcd31c3
serviceInstance.getUri():http://android-ae23f0022eea:8081
{"empId":"1","name":"emp1","designation":"manager","salary":3000.0}
2019-06-28 21:02:31.498  INFO 7740 --- [erListUpdater-0] c.netflix.config.ChainedDynamicProperty  : Flipping property: empleado-productor.ribbon.ActiveConnectionsLimit to use NEXT property: niws.loadbalancer.availabilityFilteringRule.activeConnectionsLimit = 2147483647
2019-06-28 21:02:55.950  INFO 7740 --- [nio-8092-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring FrameworkServlet 'dispatcherServlet'
2019-06-28 21:02:55.950  INFO 7740 --- [nio-8092-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started
2019-06-28 21:02:56.012  INFO 7740 --- [nio-8092-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 62 ms


eot

No hay comentarios:

Publicar un comentario