afex / hystrix-go

Netflix's Hystrix latency and fault tolerance library, for Go
MIT License
4.24k stars 477 forks source link

How to update config an runtime? #104

Open jilieryuyi opened 5 years ago

jilieryuyi commented 5 years ago

hystrix.ConfigureCommand(key, apiConfig.HystrixConfig) set config at init, how to update at runtime?

zuci118 commented 1 year ago

'Timeout'、'ErrorPercentThreshold'、'RequestVolumeThreshold' and 'SleepWindow' can update at runtime, but 'MaxConcurrentRequests' can not.

We set the config to the configuration center, and when the related config changes,use hystrix.ConfigureCommand(key, apiConfig.HystrixConfig) again