feggin配置
#是否开启重试
spring.cloud.loadbalancer.retry.enabled=true
feign.hystrix.enabled=true
feign.httpclient.enabled=true
ribbon.ConnectTimeout=10000
ribbon.ReadTimeout=10000
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=10000
ribbon.OkToRetryOnAllOpertions=false
ribbon.MaxAutoRetries=0
ribbon.MaxAutoRetriesNextServer=1
#请求和响应GZIP压缩支持
feign.compression.request.enabled=true
feign.compression.response.enabled=true
#支持压缩的mime types
feign.compression.request.mime-types=text/xml,application/xml,application/json
feign.compression.request.min-request-size=2048
# 日志支持
logging.level.org.gz.aliOrder.service.outside.IOrderReturnService: DEBUG
网关服务配置优化
zuul.host.maxTotalConnections=2000
zuul.host.maxPerRouteConnections=2000
zuul.semaphore.max-semaphores=2000
spring.http.multipart.enabled=true
spring.http.multipart.max-file-size=10MB
endpoints.enabled=false
zuul.routes.host.connect-timeout-millis=30000
zuul.routes.host.socket-timeout-millis=30000
hystrix.command.default.execution.timeout.enabled=false
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=10000
ribbon.ConnectTimeout=1000
ribbon.ReadTimeout=10000
ribbon.OkToRetryOnAllOpertions=false
ribbon.MaxAutoRetries=0
ribbon.MaxAutoRetriesNextServer=0