一个springcloud项目,偶然发现在笔记本断网时,通过zull访问服务出现500返回码,debug发现server的ip居然是127.20.10.4(一个莫名其妙的地址),
自然地socket发送到该地址,然后就报socketConnetcionException,由于能力有限,没能debug出来原因,想请问下大家在用zull过程中有没有出现过类似的情况,zull是否会受当前网络的影响还是配置出问题了,配置大概如下
zuul:
routes:
service-member:
path: /member/**
serviceId: service-member
retryable: true
host:
socket-timeout-millis: 60000
connect-timeout-millis: 60000
ribbon:
ConnectTimeout: 500
ReadTimeout: 2000
OkToRetryOnAllOperations: true
MaxAutoRetriesNextServer: 2
MaxAutoRetries: 1
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 15000