hystrix -hystrix常用配置介绍

配置官网介绍地址:https://github.com/Netflix/Hystrix/wiki/Configuration

 

hystrix.command.default.execution.isolation.strategy

 

hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds  默认超时时间为1S

是否开启hystrix的超时时间,默认是true ;

当hystrix超时时是否中断。默认是true

当设置为Semaphore时,允许的最大请求数。默认值 10

设置当固定时间内(默认是10s)达到失败的次数(默认失败次数是20次)打开断路器。

 

posted on 2018-06-12 16:05  WenQ001  阅读(1686)  评论(0编辑  收藏  举报