Git Product home page Git Product logo

Comments (4)

awolden avatar awolden commented on May 26, 2024

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.

johanhaleby avatar johanhaleby commented on May 26, 2024

@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.

awolden avatar awolden commented on May 26, 2024

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.

johanhaleby avatar johanhaleby commented on May 26, 2024

Thanks a lot for the clarifications @awolden. And thanks for making the library available and supported, great work!

from brakes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.