说明:本地启动4个spring boot微服务,相互之间feign调用返回数据几乎1s之内完成,但是将4个服务部署到dockers容器再访问,相互之间feign调用返回数据时间等待较长,大约在3/4s之间,并且有进入hystrix.
注:超时配置足够,应该没有问题吧?
feign:
hystrix:
enabled: true
hystrix:
threadpool:
default:
coreSize: 200
command:
default:
execution:
timeout:
enabled: true
isolation:
strategy: THREAD
semaphore:
maxConcurrentRequests: 1000
thread:
timeoutInMilliseconds: 200000
问题:为什么本地spring boot启动和部署到dockers容器会有这么大差异?
这个问题其实很有技术含量,若描述不够清楚,请留言,谢谢!