Closed johanhaleby closed 7 years ago
Hey @johanhaleby, if you are using the default bucketSpan
and bucketNum
options, it will take
60 seconds for requests to stop being reported. Do the # of requests stay at 53 even after a minute of monitoring it?
@awolden Thanks! It does indeed go down when I wait 60 seconds as you imply. But why is the default options the way they are? Is bucketSpan
the equivalent of metrics.rollingPercentile.bucketSize and bucketNum
the equivalent of metrics.rollingPercentile.numBuckets? If so Hystrix defaults to 100
and 6
?
The options don't exactly line up with the hystrix options. Brakes doesn't have a bucketSize
option. It will store an indefinite amount of response times in a bucket.
The math that Brakes uses to handle buckets is a little different than hystrix, but essentially is the same. In hystrix, you define how long you want to store your rolling stats (default: 60s) and the number of buckets you want. It then divides those values to determine how long each bucket should live. In Brakes you say how long you want your bucket to live bucketSpan
(default: 1000ms) and how many buckets you want bucketNum
(default: 60) and multiplying those values together determines how long you store your rolling stats (default: 60s).
Hope that helps!
-Alex
Thanks a lot for the clarifications @awolden. And thanks for making the library available and supported, great work!
I'm using version 2.5.1 and I try to view the stream from the hystrix dashboard but it seems to me that the
requestCount
never goes down even though the no one calls the Brakes "command":The data that is reported by the hystrix stream looks like this:
My Brakes "command" looks like this (defined "globally" in the module):
Am I doing something wrong or why is the requestCount always showing 53? (which is the total number of calls I've made).