您的位置:首页 > 编程语言 > Java开发

SpringCloudNetflix-Feign/Hystrix Setting

2017-04-14 15:25 645 查看
##Hystrix支持,如果为true,hystrix库必须在classpath中

#feign.hystrix.enabled=false



##请求和响应GZIP压缩支持

#feign.compression.request.enabled=true

#feign.compression.response.enabled=true

##支持压缩的mime types

#feign.compression.request.enabled=true

#feign.compression.request.mime-types=text/xml,application/xml,application/json

#feign.compression.request.min-request-size=2048

## 日志支持

#logging.level.project.user.UserClient: DEBUG

feign:

  hystrix:

    enabled: true

    

#https://github.com/Netflix/Hystrix/wiki/Configuration  

#http://blog.csdn.net/heyutao007/article/details/51006694  

hystrix:

  command:

    default:

      execution:

        isolation:

          thread:

            timeoutInMilliseconds: 5000

      circuitBreaker:

        requestVolumeThreshold: 5

      metrics:

        rollingStats:

          timeInMilliseconds: 10000
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: