Configuration setting for "Rolling Window" for Circuit Breaker

2,881 views
Skip to first unread message

Dave Leo

unread,
Apr 10, 2014, 5:56:53 PM4/10/14
to hystr...@googlegroups.com
I am new to Hystrix and feel like the documentation is better than alot of open source libraries.

Either I am misunderstanding something or I the documentation doesn't explain the Default value or conifgurable setting for  the Circuit Breaker's "rolling window" length of time.

Both circuitBreaker.requestVolumeThreshold and circuitBreaker.errorThresholdPercentage seem to be based on a "rolling window" timeframe but I haven't been able to track down what it is and how to modify it.

Am I misreading this? Or missing something?

Please help,

--Dave Leo

Ben Christensen

unread,
Apr 11, 2014, 1:03:47 PM4/11/14
to hystr...@googlegroups.com, Dave Leo
Hi Dave, 

A circuit breaker has a “sleep window” which is documented here: https://github.com/Netflix/Hystrix/wiki/Configuration#circuitbreakersleepwindowinmilliseconds


-- 
Ben Christensen - Netflix Edge Engineering
+1.310.782.5511  @benjchristensen
--
You received this message because you are subscribed to the Google Groups "HystrixOSS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hystrixoss+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dave Leo

unread,
Apr 11, 2014, 1:08:23 PM4/11/14
to hystr...@googlegroups.com, Dave Leo
Thanks.  I eventually found in some javadoc that said that the rolling window that the circuit breaker uses is the metrics one.  Maybe a tweak to the documentation to mention that would be helpful for future newbies.

Thanks for the response,

-Dave

Johan Haleby

unread,
May 20, 2014, 10:36:00 AM5/20/14
to hystr...@googlegroups.com, Dave Leo
I'm also a bit confused by this. Did you find out exactly which property that is used and did you verify that it worked? I'm looking into the source code but I cannot seem to find that the metrics window should affect the circuit breakers in this sense.

Regards,
/Johan

David Leo

unread,
May 20, 2014, 10:38:16 AM5/20/14
to Johan Haleby, hystr...@googlegroups.com
It uses: hystrix.command.default.metrics.rollingStats.timeInMilliseconds

I did verify this with some tests.  Docs talk about this value used for stats but it also used by Circuit Breaker.

Hope that answers your question,

Dave
Reply all
Reply to author
Forward
0 new messages