我也遇到同样的问题。服务正常但是日志里面会不断的出现一些报警
```
2018-11-14 20:41:42.501 [New I/O server worker #1-16] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:41:43.213 [New I/O server worker #1-17] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:41:50.846 [New I/O server worker #1-1] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:41:52.443 [New I/O server worker #1-2] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:41:52.502 [New I/O server worker #1-3] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:41:53.218 [New I/O server worker #1-4] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:00.849 [New I/O server worker #1-5] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:02.443 [New I/O server worker #1-6] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:02.496 [New I/O server worker #1-7] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:03.216 [New I/O server worker #1-8] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:10.854 [New I/O server worker #1-9] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:12.445 [New I/O server worker #1-10] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:12.497 [New I/O server worker #1-11] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:13.222 [New I/O server worker #1-12] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:20.860 [New I/O server worker #1-13] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:22.448 [New I/O server worker #1-14] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:22.496 [New I/O server worker #1-15] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:23.224 [New I/O server worker #1-16] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2
2018-11-14 20:42:30.865 [New I/O server worker #1-17] WARN  
c.a.d.r.transport.AbstractServer -  [DUBBO] All clients has discontected from 
/172.17.0.2:20880. You can graceful shutdown now., dubbo version: 2.6.3, 
current host: 172.17.0.2

```
我是用两台服务器用docker起了6个相同的提供者,但前面用负载均衡分发给每个提供者,所以docker配置里面暴露的是负载均衡的IP和负载均衡监听的端口。现在不知是什么原因导致出现这样的问题

docker运行命令:
```
docker run -d -e DUBBO_IP_TO_REGISTRY=172.16.2.45 -p 20880:20880 --name 
order-beta -e APOLLO_ENV=PRO -e MEM_OPTS="-Xms10G -Xmx10G -Xmn5G -Xss256k" -e 
APOLLO_CONFIG_SERVICE="http://172.16.0.23:8080"; -v /data/tomcat:/home/tomcat -p 
8080:8080 shop-beta:v1
docker run -d -e DUBBO_IP_TO_REGISTRY=172.16.2.45 -p 20881:20880 --name 
order-beta-8081 -e APOLLO_ENV=PRO -e MEM_OPTS="-Xms10G -Xmx10G -Xmn5G -Xss256k" 
-e APOLLO_CONFIG_SERVICE="http://172.16.0.23:8080"; -v 
/data/tomcat_8081:/home/tomcat -p 8081:8080 shop-beta:v1
docker run -d -e DUBBO_IP_TO_REGISTRY=172.16.2.45 -p 20882:20880 --name 
order-beta-8082 -e APOLLO_ENV=PRO -e MEM_OPTS="-Xms10G -Xmx10G -Xmn5G -Xss256k" 
-e APOLLO_CONFIG_SERVICE="http://172.16.0.23:8080"; -v 
/data/tomcat_8082:/home/tomcat -p 8082:8080 shop-beta:v1

```
服务器IP:172.16.2.30
负载均衡IP:172.16.2.45

负载均衡的20880转发到后端的两台服务器的20880 20881 20882端口

[ Full content available at: 
https://github.com/apache/incubator-dubbo/issues/1990 ]
This message was relayed via gitbox.apache.org for 
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to