Netflix / Hystrix

Hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable.
23.98k stars 4.7k forks source link

How can I change the timerDelayInMilliseconds in HystrixCollapserProperties dynamically, when the program is running? #1956

Open shyknight opened 4 years ago

shyknight commented 4 years ago

Hi image when I change the timerDelayInMilliseconds by using the constructor,it seems not work。 so, can I change the timerDelayInMilliseconds in HystrixCollapserProperties dynamically, when the program is running? how to do? Thanks!

Anubhav007 commented 4 years ago

You can try the below command :- ConfigurationManager.getConfigInstance().setProperty("hystrix.collapser.ShopCollapseCommand.timerDelayInMilliseconds", 100); You can refer this https://stackoverflow.com/questions/40109374/programmatically-changing-hystrix-properties/50769207#50769207