Comments (4)
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?
from brakes.
@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
?
from brakes.
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
from brakes.
Thanks a lot for the clarifications @awolden. And thanks for making the library available and supported, great work!
from brakes.
Related Issues (20)
- nvmrc is right? HOT 2
- transpile lib? HOT 2
- Brakes modifies original error message
- Support decorator usage like in java HOT 1
- waitThreshold is too high by default HOT 1
- Update Options HOT 2
- Timing the statInterval based on bucketNum & bucketSpan HOT 2
- Do you want TypeScript types in this repo?
- Remove racist terminology
- GlobalStatsStream does not track all instances after update to Node v12.16.0 HOT 5
- Slave circuits not working as per the examples HOT 1
- Single-arg fat arrow function breaks brakes HOT 2
- CircuitBrokenError is taking threshold as failure rate
- CPU growth HOT 6
- Adding isFailure function
- Fallbacks executions HOT 3
- Add isSuccess option?
- Runaway memory growth/CPU utilization HOT 1
- 2.6.0 breaks non-string errors HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brakes.