【发布时间】:2017-09-23 07:37:04
【问题描述】:
我的应用程序将 Hystrix 集成为断路器,流端点暴露在 /hystrix.stream。现在我想通过“延迟”参数来控制流频率:
curl "http://localhost:9000/hystrix.stream?delay=1000"
很遗憾,“延迟”不起作用。我仍然每秒收到两次 hystrix 指标数据。
帮助,谢谢!
【问题讨论】:
标签: hystrix spring-cloud-netflix
我的应用程序将 Hystrix 集成为断路器,流端点暴露在 /hystrix.stream。现在我想通过“延迟”参数来控制流频率:
curl "http://localhost:9000/hystrix.stream?delay=1000"
很遗憾,“延迟”不起作用。我仍然每秒收到两次 hystrix 指标数据。
帮助,谢谢!
【问题讨论】:
标签: hystrix spring-cloud-netflix
查了源码,发现根本没有办法动态改变延迟! Hystrix 在应用的起始短语处设置此参数。更改此延迟的唯一方法是在类路径中创建一个名为 config.properties 的配置文件,然后添加以下属性:
hystrix.stream.dashboard.intervalInMilliseconds=2000
【讨论】: