eureka实现负载均衡

原创 Laughing  2020-03-08 13:17  阅读 34 次 评论 0 条

eureka基本使用中,我们介绍了eureka的基本使用,这篇文章,我们接着使用之前的代码,改造支持负载均衡。

hosts文件配置

我这里用的surface电脑,需要配置hosts文件,这里我服务用的分别是slave1和slave2,所以配置如下
127.0.0.1 slave1 slave2

服务端改造

修改配置文件
  1. server:  
  2.   port: 8761  
  3. eureka:  
  4.   client:  
  5.     register-with-eureka: false  
  6.     fetch-registry: false  
  7.     service-url:  
  8.       defaultZone: http://localhost:8762/eureka  
  9.   instance:  
  10.     instance-id: slave1  
  11. spring:  
  12.   application:  
  13.     name: first-ek-server  
  14.   profiles: slave1  
  15.   
  16. ---  
  17. server:  
  18.   port: 8762  
  19. spring:  
  20.   application:  
  21.     name: fitst-ek-server  
  22.   profiles: slave2  
  23. eureka:  
  24.   instance:  
  25.     instance-id: slave2  
  26.   client:  
  27.     service-url:  
  28.       defaultZone: http://localhost:8761/eureka  
修改启动类,动态加载配置文件
  1. package com.example.first.ek.server;  
  2.   
  3. import org.springframework.boot.SpringApplication;  
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;  
  5. import org.springframework.boot.builder.SpringApplicationBuilder;  
  6. import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;  
  7.   
  8. import java.util.Scanner;  
  9.   
  10. @SpringBootApplication  
  11. @EnableEurekaServer  
  12. public class FirstEkServerApplication {  
  13.   
  14.     public static void main(String[] args) {  
  15. //        SpringApplication.run(FirstEkServerApplication.class, args);  
  16.         Scanner scanner = new Scanner(System.in);  
  17.         String profile = scanner.nextLine();  
  18.         new SpringApplicationBuilder(FirstEkServerApplication.class)  
  19.                 .profiles(profile)  
  20.                 .run(args);  
  21.     }  
  22.   
  23. }  

服务提供者改造

修改配置文件
  1. eureka:  
  2.   client:  
  3.     service-url:  
  4.       defaultZone: http://localhost:8761/eureka,http://localhost:8762/eureka  
  5.   instance:  
  6.     hostname: localhost  
  7. spring:  
  8.   application:  
  9.     name: first-ek-service-provider  
修改启动类,动态设置端口
  1. package demo.com.first.ek.service.provider;  
  2.   
  3. import org.springframework.boot.SpringApplication;  
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;  
  5. import org.springframework.boot.builder.SpringApplicationBuilder;  
  6. import org.springframework.cloud.netflix.eureka.EnableEurekaClient;  
  7.   
  8. import java.util.Scanner;  
  9.   
  10. @SpringBootApplication  
  11. @EnableEurekaClient  
  12. public class FirstEkServiceProviderApplication {  
  13.     public static void main(String[] arg) {  
  14. //        SpringApplication.run(FirstEkServiceProviderApplication.class);  
  15.         Scanner scanner = new Scanner(System.in);  
  16.         String port = scanner.nextLine();  
  17.         new SpringApplicationBuilder(FirstEkServiceProviderApplication.class)  
  18.                 .properties("server.port=" + port)  
  19.                 .run(arg);  
  20.     }  
  21.   
  22. }  
修改服务,暴露请求地址
  1. package demo.com.first.ek.service.provider.controller;  
  2.   
  3. import demo.com.first.ek.service.provider.entity.Person;  
  4. import org.springframework.http.MediaType;  
  5. import org.springframework.web.bind.annotation.GetMapping;  
  6. import org.springframework.web.bind.annotation.PathVariable;  
  7. import org.springframework.web.bind.annotation.RestController;  
  8.   
  9. import javax.servlet.http.HttpServletRequest;  
  10.   
  11. @RestController  
  12. public class FirstController {  
  13.   
  14.     @GetMapping(value = "/person/{name}",produces = MediaType.APPLICATION_JSON_VALUE)  
  15.     public Person findPerson(@PathVariable("name") String name, HttpServletRequest request){  
  16.         Person person = new Person();  
  17.         person.setAge(30);  
  18.         person.setName(name);  
  19.         person.setMessage(request.getRequestURL().toString());  
  20.         return person;  
  21.     }  
  22.   
  23. }  

服务调用者改造

修改配置文件
  1. server:  
  2.   port: 9000  
  3. eureka:  
  4.   instance:  
  5.     hostname: localhost  
  6.   client:  
  7.     service-url:  
  8.       defaultZone: http://slave1:8761/eureka,http://slave2:8762/eureka  
  9. spring:  
  10.   application:  
  11.     name: first-ek-service-invoker  

REST客户端测试

  1. "C:\Program Files\Java\jdk1.8.0_181\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2019.2\lib\idea_rt.jar=63882:C:\Program Files\JetBrains\IntelliJ IDEA 2019.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_181\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\rt.jar;D:\我的文档\IdeaProjects\first-ek-rest-client\target\classes;D:\我的文档\apache-maven-3.6.1\Repository\org\springframework\boot\spring-boot-starter\2.2.5.RELEASE\spring-boot-starter-2.2.5.RELEASE.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\springframework\boot\spring-boot\2.2.5.RELEASE\spring-boot-2.2.5.RELEASE.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\springframework\spring-context\5.2.4.RELEASE\spring-context-5.2.4.RELEASE.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\springframework\spring-aop\5.2.4.RELEASE\spring-aop-5.2.4.RELEASE.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\springframework\spring-beans\5.2.4.RELEASE\spring-beans-5.2.4.RELEASE.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\springframework\spring-expression\5.2.4.RELEASE\spring-expression-5.2.4.RELEASE.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\springframework\boot\spring-boot-autoconfigure\2.2.5.RELEASE\spring-boot-autoconfigure-2.2.5.RELEASE.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\springframework\boot\spring-boot-starter-logging\2.2.5.RELEASE\spring-boot-starter-logging-2.2.5.RELEASE.jar;D:\我的文档\apache-maven-3.6.1\Repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\我的文档\apache-maven-3.6.1\Repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;D:\我的文档\apache-maven-3.6.1\Repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\springframework\spring-core\5.2.4.RELEASE\spring-core-5.2.4.RELEASE.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\springframework\spring-jcl\5.2.4.RELEASE\spring-jcl-5.2.4.RELEASE.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\apache\httpcomponents\httpclient\4.5.11\httpclient-4.5.11.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\apache\httpcomponents\httpcore\4.4.13\httpcore-4.4.13.jar;D:\我的文档\apache-maven-3.6.1\Repository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;D:\我的文档\apache-maven-3.6.1\Repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar" com.example.first.ek.rest.client.FirstEkRestClientApplication  
  2. 13:15:41.654 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  3. 13:15:41.702 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  4. 13:15:41.706 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 0; route allocated: 0 of 2; total allocated: 0 of 20]  
  5. 13:15:41.743 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 0][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  6. 13:15:41.749 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:9000  
  7. 13:15:41.754 [main] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:9000  
  8. 13:15:41.757 [main] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:63889<->127.0.0.1:9000  
  9. 13:15:41.758 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  10. 13:15:41.759 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  11. 13:15:41.759 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  12. 13:15:41.764 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> GET /router HTTP/1.1  
  13. 13:15:41.764 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: localhost:9000  
  14. 13:15:41.764 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive  
  15. 13:15:41.764 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  16. 13:15:41.764 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate  
  17. 13:15:41.765 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "GET /router HTTP/1.1[\r][\n]"  
  18. 13:15:41.765 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Host: localhost:9000[\r][\n]"  
  19. 13:15:41.765 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"  
  20. 13:15:41.765 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  21. 13:15:41.765 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  22. 13:15:41.765 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "[\r][\n]"  
  23. 13:15:41.791 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "HTTP/1.1 200 [\r][\n]"  
  24. 13:15:41.791 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Type: application/json[\r][\n]"  
  25. 13:15:41.791 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Length: 72[\r][\n]"  
  26. 13:15:41.792 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Date: Sun, 08 Mar 2020 05:15:41 GMT[\r][\n]"  
  27. 13:15:41.792 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Keep-Alive: timeout=60[\r][\n]"  
  28. 13:15:41.792 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Connection: keep-alive[\r][\n]"  
  29. 13:15:41.792 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "[\r][\n]"  
  30. 13:15:41.792 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "{"name":"lisen","age":30,"message":"http://localhost:7777/person/lisen"}"  
  31. 13:15:41.797 [main] DEBUG org.apache.http.headers - http-outgoing-0 << HTTP/1.1 200   
  32. 13:15:41.797 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Type: application/json  
  33. 13:15:41.797 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Length: 72  
  34. 13:15:41.797 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Date: Sun, 08 Mar 2020 05:15:41 GMT  
  35. 13:15:41.797 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Keep-Alive: timeout=60  
  36. 13:15:41.797 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Connection: keep-alive  
  37. 13:15:41.813 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 60000 MILLISECONDS  
  38. 13:15:41.829 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 0][route: {}->http://localhost:9000] can be kept alive for 60.0 seconds  
  39. 13:15:41.831 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-0: set socket timeout to 0  
  40. 13:15:41.831 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 0][route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  41. {"name":"lisen","age":30,"message":"http://localhost:7777/person/lisen"}  
  42. 13:15:41.833 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  43. 13:15:41.833 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  44. 13:15:41.833 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  45. 13:15:41.833 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 0][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  46. 13:15:41.835 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-0: set socket timeout to 0  
  47. 13:15:41.835 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  48. 13:15:41.836 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  49. 13:15:41.836 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  50. 13:15:41.836 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> GET /router HTTP/1.1  
  51. 13:15:41.836 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: localhost:9000  
  52. 13:15:41.836 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive  
  53. 13:15:41.836 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  54. 13:15:41.836 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate  
  55. 13:15:41.837 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "GET /router HTTP/1.1[\r][\n]"  
  56. 13:15:41.837 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Host: localhost:9000[\r][\n]"  
  57. 13:15:41.837 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"  
  58. 13:15:41.837 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  59. 13:15:41.837 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  60. 13:15:41.837 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "[\r][\n]"  
  61. 13:15:41.848 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "HTTP/1.1 200 [\r][\n]"  
  62. 13:15:41.849 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Type: application/json[\r][\n]"  
  63. 13:15:41.849 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Length: 72[\r][\n]"  
  64. 13:15:41.850 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Date: Sun, 08 Mar 2020 05:15:41 GMT[\r][\n]"  
  65. 13:15:41.850 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Keep-Alive: timeout=60[\r][\n]"  
  66. 13:15:41.850 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Connection: keep-alive[\r][\n]"  
  67. 13:15:41.850 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "[\r][\n]"  
  68. 13:15:41.851 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "{"name":"lisen","age":30,"message":"http://localhost:8888/person/lisen"}"  
  69. 13:15:41.851 [main] DEBUG org.apache.http.headers - http-outgoing-0 << HTTP/1.1 200   
  70. 13:15:41.851 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Type: application/json  
  71. 13:15:41.851 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Length: 72  
  72. 13:15:41.851 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Date: Sun, 08 Mar 2020 05:15:41 GMT  
  73. 13:15:41.851 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Keep-Alive: timeout=60  
  74. 13:15:41.851 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Connection: keep-alive  
  75. 13:15:41.852 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 60000 MILLISECONDS  
  76. 13:15:41.852 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 0][route: {}->http://localhost:9000] can be kept alive for 60.0 seconds  
  77. 13:15:41.852 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-0: set socket timeout to 0  
  78. 13:15:41.853 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 0][route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  79. {"name":"lisen","age":30,"message":"http://localhost:8888/person/lisen"}  
  80. 13:15:41.853 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  81. 13:15:41.853 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  82. 13:15:41.854 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  83. 13:15:41.854 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 0][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  84. 13:15:41.854 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-0: set socket timeout to 0  
  85. 13:15:41.854 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  86. 13:15:41.854 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  87. 13:15:41.854 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  88. 13:15:41.854 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> GET /router HTTP/1.1  
  89. 13:15:41.855 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Host: localhost:9000  
  90. 13:15:41.855 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Connection: Keep-Alive  
  91. 13:15:41.855 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  92. 13:15:41.855 [main] DEBUG org.apache.http.headers - http-outgoing-0 >> Accept-Encoding: gzip,deflate  
  93. 13:15:41.855 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "GET /router HTTP/1.1[\r][\n]"  
  94. 13:15:41.855 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Host: localhost:9000[\r][\n]"  
  95. 13:15:41.855 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"  
  96. 13:15:41.855 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  97. 13:15:41.855 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  98. 13:15:41.855 [main] DEBUG org.apache.http.wire - http-outgoing-0 >> "[\r][\n]"  
  99. 13:15:43.906 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "HTTP/1.1 500 [\r][\n]"  
  100. 13:15:43.906 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Content-Type: application/json[\r][\n]"  
  101. 13:15:43.906 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Transfer-Encoding: chunked[\r][\n]"  
  102. 13:15:43.906 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Date: Sun, 08 Mar 2020 05:15:43 GMT[\r][\n]"  
  103. 13:15:43.906 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "Connection: close[\r][\n]"  
  104. 13:15:43.906 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "[\r][\n]"  
  105. 13:15:43.906 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "12e[\r][\n]"  
  106. 13:15:43.906 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "{"timestamp":"2020-03-08T05:15:43.883+0000","status":500,"error":"Internal Server Error","message":"I/O error on GET request for \"http://first-ek-service-provider/person/lisen\": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect","path":"/router"}[\r][\n]" 
  107. 13:15:43.906 [main] DEBUG org.apache.http.headers - http-outgoing-0 << HTTP/1.1 500  
  108. 13:15:43.906 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Content-Type: application/json 
  109. 13:15:43.906 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Transfer-Encoding: chunked 
  110. 13:15:43.906 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Date: Sun, 08 Mar 2020 05:15:43 GMT 
  111. 13:15:43.906 [main] DEBUG org.apache.http.headers - http-outgoing-0 << Connection: close 
  112. 13:15:43.909 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "0[\r][\n]" 
  113. 13:15:43.909 [main] DEBUG org.apache.http.wire - http-outgoing-0 << "[\r][\n]" 
  114. 13:15:43.910 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-0: Close connection 
  115. 13:15:43.911 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection discarded 
  116. 13:15:43.911 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 0][route: {}->http://localhost:9000][total available: 0; route allocated: 0 of 2; total allocated: 0 of 20] 
  117. {"timestamp":"2020-03-08T05:15:43.883+0000","status":500,"error":"Internal Server Error","message":"I/O error on GET request for \"http://first-ek-service-provider/person/lisen\": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect","path":"/router"}  
  118. 13:15:43.911 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  119. 13:15:43.911 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  120. 13:15:43.911 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 0; route allocated: 0 of 2; total allocated: 0 of 20]  
  121. 13:15:43.912 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 1][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  122. 13:15:43.912 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:9000  
  123. 13:15:43.912 [main] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:9000  
  124. 13:15:43.913 [main] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:63893<->127.0.0.1:9000  
  125. 13:15:43.913 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  126. 13:15:43.914 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  127. 13:15:43.914 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  128. 13:15:43.914 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> GET /router HTTP/1.1  
  129. 13:15:43.914 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> Host: localhost:9000  
  130. 13:15:43.914 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> Connection: Keep-Alive  
  131. 13:15:43.914 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  132. 13:15:43.914 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> Accept-Encoding: gzip,deflate  
  133. 13:15:43.915 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "GET /router HTTP/1.1[\r][\n]"  
  134. 13:15:43.915 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "Host: localhost:9000[\r][\n]"  
  135. 13:15:43.915 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"  
  136. 13:15:43.915 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  137. 13:15:43.915 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  138. 13:15:43.915 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"  
  139. 13:15:43.927 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "HTTP/1.1 200 [\r][\n]"  
  140. 13:15:43.927 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Type: application/json[\r][\n]"  
  141. 13:15:43.927 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Length: 72[\r][\n]"  
  142. 13:15:43.927 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "Date: Sun, 08 Mar 2020 05:15:43 GMT[\r][\n]"  
  143. 13:15:43.927 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "Keep-Alive: timeout=60[\r][\n]"  
  144. 13:15:43.927 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "Connection: keep-alive[\r][\n]"  
  145. 13:15:43.927 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]"  
  146. 13:15:43.927 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "{"name":"lisen","age":30,"message":"http://localhost:8888/person/lisen"}"  
  147. 13:15:43.928 [main] DEBUG org.apache.http.headers - http-outgoing-1 << HTTP/1.1 200   
  148. 13:15:43.928 [main] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Type: application/json  
  149. 13:15:43.928 [main] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Length: 72  
  150. 13:15:43.928 [main] DEBUG org.apache.http.headers - http-outgoing-1 << Date: Sun, 08 Mar 2020 05:15:43 GMT  
  151. 13:15:43.928 [main] DEBUG org.apache.http.headers - http-outgoing-1 << Keep-Alive: timeout=60  
  152. 13:15:43.929 [main] DEBUG org.apache.http.headers - http-outgoing-1 << Connection: keep-alive  
  153. 13:15:43.929 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 60000 MILLISECONDS  
  154. 13:15:43.930 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 1][route: {}->http://localhost:9000] can be kept alive for 60.0 seconds  
  155. 13:15:43.930 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-1: set socket timeout to 0  
  156. 13:15:43.930 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 1][route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  157. {"name":"lisen","age":30,"message":"http://localhost:8888/person/lisen"}  
  158. 13:15:43.930 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  159. 13:15:43.931 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  160. 13:15:43.931 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  161. 13:15:43.931 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 1][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  162. 13:15:43.931 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-1: set socket timeout to 0  
  163. 13:15:43.931 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  164. 13:15:43.931 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  165. 13:15:43.931 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  166. 13:15:43.931 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> GET /router HTTP/1.1  
  167. 13:15:43.932 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> Host: localhost:9000  
  168. 13:15:43.932 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> Connection: Keep-Alive  
  169. 13:15:43.932 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  170. 13:15:43.932 [main] DEBUG org.apache.http.headers - http-outgoing-1 >> Accept-Encoding: gzip,deflate  
  171. 13:15:43.932 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "GET /router HTTP/1.1[\r][\n]"  
  172. 13:15:43.932 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "Host: localhost:9000[\r][\n]"  
  173. 13:15:43.932 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"  
  174. 13:15:43.932 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  175. 13:15:43.933 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  176. 13:15:43.933 [main] DEBUG org.apache.http.wire - http-outgoing-1 >> "[\r][\n]"  
  177. 13:15:45.953 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "HTTP/1.1 500 [\r][\n]"  
  178. 13:15:45.954 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "Content-Type: application/json[\r][\n]"  
  179. 13:15:45.954 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "Transfer-Encoding: chunked[\r][\n]"  
  180. 13:15:45.954 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "Date: Sun, 08 Mar 2020 05:15:45 GMT[\r][\n]"  
  181. 13:15:45.954 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "Connection: close[\r][\n]"  
  182. 13:15:45.954 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]"  
  183. 13:15:45.954 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "12e[\r][\n]"  
  184. 13:15:45.954 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "{"timestamp":"2020-03-08T05:15:45.950+0000","status":500,"error":"Internal Server Error","message":"I/O error on GET request for \"http://first-ek-service-provider/person/lisen\": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect","path":"/router"}[\r][\n]" 
  185. 13:15:45.954 [main] DEBUG org.apache.http.headers - http-outgoing-1 << HTTP/1.1 500  
  186. 13:15:45.954 [main] DEBUG org.apache.http.headers - http-outgoing-1 << Content-Type: application/json 
  187. 13:15:45.954 [main] DEBUG org.apache.http.headers - http-outgoing-1 << Transfer-Encoding: chunked 
  188. 13:15:45.954 [main] DEBUG org.apache.http.headers - http-outgoing-1 << Date: Sun, 08 Mar 2020 05:15:45 GMT 
  189. 13:15:45.955 [main] DEBUG org.apache.http.headers - http-outgoing-1 << Connection: close 
  190. 13:15:45.955 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "0[\r][\n]" 
  191. 13:15:45.956 [main] DEBUG org.apache.http.wire - http-outgoing-1 << "[\r][\n]" 
  192. 13:15:45.956 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-1: Close connection 
  193. 13:15:45.956 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection discarded 
  194. 13:15:45.956 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 1][route: {}->http://localhost:9000][total available: 0; route allocated: 0 of 2; total allocated: 0 of 20] 
  195. {"timestamp":"2020-03-08T05:15:45.950+0000","status":500,"error":"Internal Server Error","message":"I/O error on GET request for \"http://first-ek-service-provider/person/lisen\": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect","path":"/router"}  
  196. 13:15:45.957 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  197. 13:15:45.957 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  198. 13:15:45.957 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 0; route allocated: 0 of 2; total allocated: 0 of 20]  
  199. 13:15:45.958 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 2][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  200. 13:15:45.958 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {}->http://localhost:9000  
  201. 13:15:45.958 [main] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to localhost/127.0.0.1:9000  
  202. 13:15:45.959 [main] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection established 127.0.0.1:63895<->127.0.0.1:9000  
  203. 13:15:45.959 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  204. 13:15:45.959 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  205. 13:15:45.959 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  206. 13:15:45.960 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> GET /router HTTP/1.1  
  207. 13:15:45.960 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Host: localhost:9000  
  208. 13:15:45.960 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Connection: Keep-Alive  
  209. 13:15:45.960 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  210. 13:15:45.961 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Accept-Encoding: gzip,deflate  
  211. 13:15:45.961 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "GET /router HTTP/1.1[\r][\n]"  
  212. 13:15:45.961 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Host: localhost:9000[\r][\n]"  
  213. 13:15:45.961 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"  
  214. 13:15:45.961 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  215. 13:15:45.961 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  216. 13:15:45.961 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"  
  217. 13:15:45.978 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "HTTP/1.1 200 [\r][\n]"  
  218. 13:15:45.979 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Type: application/json[\r][\n]"  
  219. 13:15:45.979 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Length: 72[\r][\n]"  
  220. 13:15:45.979 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Date: Sun, 08 Mar 2020 05:15:45 GMT[\r][\n]"  
  221. 13:15:45.979 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Keep-Alive: timeout=60[\r][\n]"  
  222. 13:15:45.979 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Connection: keep-alive[\r][\n]"  
  223. 13:15:45.979 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "[\r][\n]"  
  224. 13:15:45.979 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "{"name":"lisen","age":30,"message":"http://localhost:7777/person/lisen"}"  
  225. 13:15:45.980 [main] DEBUG org.apache.http.headers - http-outgoing-2 << HTTP/1.1 200   
  226. 13:15:45.980 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Type: application/json  
  227. 13:15:45.980 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Length: 72  
  228. 13:15:45.980 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Date: Sun, 08 Mar 2020 05:15:45 GMT  
  229. 13:15:45.980 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Keep-Alive: timeout=60  
  230. 13:15:45.980 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Connection: keep-alive  
  231. 13:15:45.981 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 60000 MILLISECONDS  
  232. 13:15:45.981 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 2][route: {}->http://localhost:9000] can be kept alive for 60.0 seconds  
  233. 13:15:45.981 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  234. 13:15:45.982 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 2][route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  235. {"name":"lisen","age":30,"message":"http://localhost:7777/person/lisen"}  
  236. 13:15:45.982 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  237. 13:15:45.983 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  238. 13:15:45.983 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  239. 13:15:45.983 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 2][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  240. 13:15:45.983 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  241. 13:15:45.983 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  242. 13:15:45.983 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  243. 13:15:45.983 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  244. 13:15:45.983 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> GET /router HTTP/1.1  
  245. 13:15:45.983 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Host: localhost:9000  
  246. 13:15:45.983 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Connection: Keep-Alive  
  247. 13:15:45.983 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  248. 13:15:45.983 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Accept-Encoding: gzip,deflate  
  249. 13:15:45.983 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "GET /router HTTP/1.1[\r][\n]"  
  250. 13:15:45.983 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Host: localhost:9000[\r][\n]"  
  251. 13:15:45.983 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"  
  252. 13:15:45.984 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  253. 13:15:45.984 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  254. 13:15:45.984 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"  
  255. 13:15:45.996 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "HTTP/1.1 200 [\r][\n]"  
  256. 13:15:45.996 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Type: application/json[\r][\n]"  
  257. 13:15:45.996 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Length: 72[\r][\n]"  
  258. 13:15:45.996 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Date: Sun, 08 Mar 2020 05:15:45 GMT[\r][\n]"  
  259. 13:15:45.996 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Keep-Alive: timeout=60[\r][\n]"  
  260. 13:15:45.996 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Connection: keep-alive[\r][\n]"  
  261. 13:15:45.996 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "[\r][\n]"  
  262. 13:15:45.996 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "{"name":"lisen","age":30,"message":"http://localhost:8888/person/lisen"}"  
  263. 13:15:45.997 [main] DEBUG org.apache.http.headers - http-outgoing-2 << HTTP/1.1 200   
  264. 13:15:45.997 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Type: application/json  
  265. 13:15:45.997 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Length: 72  
  266. 13:15:45.997 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Date: Sun, 08 Mar 2020 05:15:45 GMT  
  267. 13:15:45.997 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Keep-Alive: timeout=60  
  268. 13:15:45.997 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Connection: keep-alive  
  269. 13:15:45.998 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 60000 MILLISECONDS  
  270. 13:15:45.998 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 2][route: {}->http://localhost:9000] can be kept alive for 60.0 seconds  
  271. 13:15:45.998 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  272. 13:15:45.998 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 2][route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  273. {"name":"lisen","age":30,"message":"http://localhost:8888/person/lisen"}  
  274. 13:15:45.999 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  275. 13:15:45.999 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  276. 13:15:46.000 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  277. 13:15:46.000 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 2][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  278. 13:15:46.000 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  279. 13:15:46.000 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  280. 13:15:46.000 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  281. 13:15:46.000 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  282. 13:15:46.000 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> GET /router HTTP/1.1  
  283. 13:15:46.000 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Host: localhost:9000  
  284. 13:15:46.000 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Connection: Keep-Alive  
  285. 13:15:46.001 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  286. 13:15:46.001 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Accept-Encoding: gzip,deflate  
  287. 13:15:46.001 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "GET /router HTTP/1.1[\r][\n]"  
  288. 13:15:46.001 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Host: localhost:9000[\r][\n]"  
  289. 13:15:46.001 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"  
  290. 13:15:46.001 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  291. 13:15:46.001 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  292. 13:15:46.001 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"  
  293. 13:15:46.010 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "HTTP/1.1 200 [\r][\n]"  
  294. 13:15:46.010 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Type: application/json[\r][\n]"  
  295. 13:15:46.010 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Length: 72[\r][\n]"  
  296. 13:15:46.011 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Date: Sun, 08 Mar 2020 05:15:45 GMT[\r][\n]"  
  297. 13:15:46.011 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Keep-Alive: timeout=60[\r][\n]"  
  298. 13:15:46.011 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Connection: keep-alive[\r][\n]"  
  299. 13:15:46.011 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "[\r][\n]"  
  300. 13:15:46.011 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "{"name":"lisen","age":30,"message":"http://localhost:7777/person/lisen"}"  
  301. 13:15:46.011 [main] DEBUG org.apache.http.headers - http-outgoing-2 << HTTP/1.1 200   
  302. 13:15:46.011 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Type: application/json  
  303. 13:15:46.011 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Length: 72  
  304. 13:15:46.011 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Date: Sun, 08 Mar 2020 05:15:45 GMT  
  305. 13:15:46.011 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Keep-Alive: timeout=60  
  306. 13:15:46.011 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Connection: keep-alive  
  307. 13:15:46.012 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 60000 MILLISECONDS  
  308. 13:15:46.012 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 2][route: {}->http://localhost:9000] can be kept alive for 60.0 seconds  
  309. 13:15:46.012 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  310. 13:15:46.013 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 2][route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  311. {"name":"lisen","age":30,"message":"http://localhost:7777/person/lisen"}  
  312. 13:15:46.013 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  313. 13:15:46.013 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  314. 13:15:46.014 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  315. 13:15:46.014 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 2][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  316. 13:15:46.014 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  317. 13:15:46.014 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  318. 13:15:46.014 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  319. 13:15:46.014 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  320. 13:15:46.014 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> GET /router HTTP/1.1  
  321. 13:15:46.014 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Host: localhost:9000  
  322. 13:15:46.014 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Connection: Keep-Alive  
  323. 13:15:46.014 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  324. 13:15:46.014 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Accept-Encoding: gzip,deflate  
  325. 13:15:46.015 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "GET /router HTTP/1.1[\r][\n]"  
  326. 13:15:46.015 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Host: localhost:9000[\r][\n]"  
  327. 13:15:46.015 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"  
  328. 13:15:46.015 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  329. 13:15:46.015 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  330. 13:15:46.015 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"  
  331. 13:15:46.023 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "HTTP/1.1 200 [\r][\n]"  
  332. 13:15:46.023 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Type: application/json[\r][\n]"  
  333. 13:15:46.023 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Length: 72[\r][\n]"  
  334. 13:15:46.023 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Date: Sun, 08 Mar 2020 05:15:45 GMT[\r][\n]"  
  335. 13:15:46.023 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Keep-Alive: timeout=60[\r][\n]"  
  336. 13:15:46.023 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Connection: keep-alive[\r][\n]"  
  337. 13:15:46.023 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "[\r][\n]"  
  338. 13:15:46.023 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "{"name":"lisen","age":30,"message":"http://localhost:8888/person/lisen"}"  
  339. 13:15:46.023 [main] DEBUG org.apache.http.headers - http-outgoing-2 << HTTP/1.1 200   
  340. 13:15:46.024 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Type: application/json  
  341. 13:15:46.024 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Length: 72  
  342. 13:15:46.024 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Date: Sun, 08 Mar 2020 05:15:45 GMT  
  343. 13:15:46.024 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Keep-Alive: timeout=60  
  344. 13:15:46.024 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Connection: keep-alive  
  345. 13:15:46.025 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 60000 MILLISECONDS  
  346. 13:15:46.026 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 2][route: {}->http://localhost:9000] can be kept alive for 60.0 seconds  
  347. 13:15:46.026 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  348. 13:15:46.026 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 2][route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  349. {"name":"lisen","age":30,"message":"http://localhost:8888/person/lisen"}  
  350. 13:15:46.027 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  351. 13:15:46.027 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  352. 13:15:46.027 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  353. 13:15:46.027 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 2][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  354. 13:15:46.027 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  355. 13:15:46.027 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  356. 13:15:46.027 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  357. 13:15:46.027 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  358. 13:15:46.028 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> GET /router HTTP/1.1  
  359. 13:15:46.028 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Host: localhost:9000  
  360. 13:15:46.028 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Connection: Keep-Alive  
  361. 13:15:46.028 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  362. 13:15:46.028 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Accept-Encoding: gzip,deflate  
  363. 13:15:46.028 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "GET /router HTTP/1.1[\r][\n]"  
  364. 13:15:46.028 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Host: localhost:9000[\r][\n]"  
  365. 13:15:46.028 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"  
  366. 13:15:46.028 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  367. 13:15:46.028 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  368. 13:15:46.028 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"  
  369. 13:15:46.036 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "HTTP/1.1 200 [\r][\n]"  
  370. 13:15:46.036 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Type: application/json[\r][\n]"  
  371. 13:15:46.036 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Length: 72[\r][\n]"  
  372. 13:15:46.036 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Date: Sun, 08 Mar 2020 05:15:45 GMT[\r][\n]"  
  373. 13:15:46.036 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Keep-Alive: timeout=60[\r][\n]"  
  374. 13:15:46.036 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Connection: keep-alive[\r][\n]"  
  375. 13:15:46.036 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "[\r][\n]"  
  376. 13:15:46.036 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "{"name":"lisen","age":30,"message":"http://localhost:7777/person/lisen"}"  
  377. 13:15:46.036 [main] DEBUG org.apache.http.headers - http-outgoing-2 << HTTP/1.1 200   
  378. 13:15:46.036 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Type: application/json  
  379. 13:15:46.036 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Length: 72  
  380. 13:15:46.036 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Date: Sun, 08 Mar 2020 05:15:45 GMT  
  381. 13:15:46.036 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Keep-Alive: timeout=60  
  382. 13:15:46.036 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Connection: keep-alive  
  383. 13:15:46.036 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 60000 MILLISECONDS  
  384. 13:15:46.037 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 2][route: {}->http://localhost:9000] can be kept alive for 60.0 seconds  
  385. 13:15:46.037 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  386. 13:15:46.037 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 2][route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  387. {"name":"lisen","age":30,"message":"http://localhost:7777/person/lisen"}  
  388. 13:15:46.038 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default  
  389. 13:15:46.038 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context  
  390. 13:15:46.038 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  391. 13:15:46.038 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 2][route: {}->http://localhost:9000][total available: 0; route allocated: 1 of 2; total allocated: 1 of 20]  
  392. 13:15:46.038 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  393. 13:15:46.039 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Executing request GET /router HTTP/1.1  
  394. 13:15:46.039 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED  
  395. 13:15:46.039 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED  
  396. 13:15:46.039 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> GET /router HTTP/1.1  
  397. 13:15:46.039 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Host: localhost:9000  
  398. 13:15:46.040 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Connection: Keep-Alive  
  399. 13:15:46.040 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)  
  400. 13:15:46.040 [main] DEBUG org.apache.http.headers - http-outgoing-2 >> Accept-Encoding: gzip,deflate  
  401. 13:15:46.040 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "GET /router HTTP/1.1[\r][\n]"  
  402. 13:15:46.040 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Host: localhost:9000[\r][\n]"  
  403. 13:15:46.040 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"  
  404. 13:15:46.040 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_181)[\r][\n]"  
  405. 13:15:46.040 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"  
  406. 13:15:46.040 [main] DEBUG org.apache.http.wire - http-outgoing-2 >> "[\r][\n]"  
  407. 13:15:46.048 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "HTTP/1.1 200 [\r][\n]"  
  408. 13:15:46.049 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Type: application/json[\r][\n]"  
  409. 13:15:46.049 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Content-Length: 72[\r][\n]"  
  410. 13:15:46.049 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Date: Sun, 08 Mar 2020 05:15:45 GMT[\r][\n]"  
  411. 13:15:46.049 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Keep-Alive: timeout=60[\r][\n]"  
  412. 13:15:46.049 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "Connection: keep-alive[\r][\n]"  
  413. 13:15:46.049 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "[\r][\n]"  
  414. 13:15:46.049 [main] DEBUG org.apache.http.wire - http-outgoing-2 << "{"name":"lisen","age":30,"message":"http://localhost:8888/person/lisen"}"  
  415. 13:15:46.049 [main] DEBUG org.apache.http.headers - http-outgoing-2 << HTTP/1.1 200   
  416. 13:15:46.049 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Type: application/json  
  417. 13:15:46.049 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Content-Length: 72  
  418. 13:15:46.049 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Date: Sun, 08 Mar 2020 05:15:45 GMT  
  419. 13:15:46.049 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Keep-Alive: timeout=60  
  420. 13:15:46.049 [main] DEBUG org.apache.http.headers - http-outgoing-2 << Connection: keep-alive  
  421. 13:15:46.050 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive for 60000 MILLISECONDS  
  422. 13:15:46.050 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 2][route: {}->http://localhost:9000] can be kept alive for 60.0 seconds  
  423. 13:15:46.050 [main] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-2: set socket timeout to 0  
  424. 13:15:46.050 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 2][route: {}->http://localhost:9000][total available: 1; route allocated: 1 of 2; total allocated: 1 of 20]  
  425. {"name":"lisen","age":30,"message":"http://localhost:8888/person/lisen"}  
  426.   
  427.   .   ____          _            __ _ _  
  428.  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \  
  429. ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \  
  430.  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )  
  431.   '  |____| .__|_| |_|_| |_\__, | / / / /  
  432.  =========|_|==============|___/=/_/_/_/  
  433.  :: Spring Boot ::        (v2.2.5.RELEASE)  
  434.   
  435. 2020-03-08 13:15:46.943  INFO 12864 --- [           main] c.e.f.e.r.c.FirstEkRestClientApplication : Starting FirstEkRestClientApplication on DESKTOP-BCOGUCJ with PID 12864 (started by 李森 in D:\我的文档\IdeaProjects\first-ek-rest-client)  
  436. 2020-03-08 13:15:46.945  INFO 12864 --- [           main] c.e.f.e.r.c.FirstEkRestClientApplication : No active profile set, falling back to default profiles: default  
  437. 2020-03-08 13:15:48.022  INFO 12864 --- [           main] c.e.f.e.r.c.FirstEkRestClientApplication : Started FirstEkRestClientApplication in 1.817 seconds (JVM running for 14.128)  
  438.   
  439. Process finished with exit code 0  

历史上的今天:

本文地址:https://www.lisen.me/load-balancing-with-eureka.html
版权声明:本文为原创文章,版权归 木子网 所有,欢迎分享本文,转载请保留出处!

发表评论


表情