什么是默认的 hystrix 超时?

What is default hystrix timeout?

我知道这听起来很奇怪,但我找不到答案!

如果没有任何设置,hystrix调用默认设置的超时时间是多少?

关于此的所有问题都只是某些东西不起作用等。

hystrix 默认超时为 1 秒,您可以更改它:

#change default timeout to 10 seconds
ribbon.ReadTimeout=10000 

如果您询问 HystrixCommand 的超时设置,请检查 source code,那里还有许多其他有趣的默认设置。默认执行超时为 1sec:

private static final Integer default_executionTimeoutInMilliseconds = 1000; // default => executionTimeoutInMilliseconds: 1000 = 1 second

Hystrix 内置了以下默认值:

对外部系统的每个请求超时(默认:1000 毫秒)

参考:

https://ahus1.github.io/hystrix-examples/manual.html