Want to know the behavoir of your app if a Hystrix Circuit is open?
Run your spring cloud app with -Dhystrix.command.<circuitKeyName>.circuitBreaker.forceOpen=true
<circuiktKeyName>
is the name of you hystrix circuit. If you used @HystrixCommand
it is the name of the method. If you used @HystrixCommand(commandKey="mykey")
is is the value of the commandKey
attribute.
This can be accomplished using the Spring Cloud /env
and /refresh
actuator endpoints to dynamically set the property (examples using httpie, pronounced H T T Pie
)
http --form POST :11060/env hystrix.command.findId.circuitBreaker.forceOpen=true
http --form POST :11060/refresh
This hystrix issue: Netflix/Hystrix#766
@spencergibb - any way to force all open, forever?