Code Monkey home page Code Monkey logo

Comments (9)

ivarconr avatar ivarconr commented on June 10, 2024

Have you seen this as an actual problem today? Could you share some traffic charts @Meemaw?

Our experience running the proxy for customers in Unleash Cloud is that they usually will never start at the same time, just because of how the scheduler will provision instances.

But, I think actually the main problem is to not have them start sending metrics at the same time, so the first time metrics are sent should actually be random number in the defined metrics interval.

What do you think?

from unleash-proxy.

Meemaw avatar Meemaw commented on June 10, 2024

Actually, it seems posting metrics is the main issue. Here is a chart

Screenshot 2022-12-13 at 10 48 25

from unleash-proxy.

thomasheartman avatar thomasheartman commented on June 10, 2024

Hey! Sorry for the long delay here 🙋

Yeah, we agree that this sounds like a sensible thing to add. Whether it'd be better to add jitter only for the first send and then send at regular intervals thereafter or to add jitter for every request is still uncertain, but that can be discussed and decided.

Anyway, would you be willing to make a PR for this? We'd be happy to provide guidance, of course 😄

from unleash-proxy.

Meemaw avatar Meemaw commented on June 10, 2024

@thomasheartman this would have to be implemented in each client separately, right? For proxy in particular, that would be node client.

from unleash-proxy.

guscost-opensea avatar guscost-opensea commented on June 10, 2024

I think if we only jitter on the initial metrics startup, we would only have to update the unleash-proxy package. PR above.

from unleash-proxy.

thomasheartman avatar thomasheartman commented on June 10, 2024

@Meemaw @guscost-opensea :

Yeah, if you only add it to the startup, then it should suffice to only update the proxy, but as you mentioned in the PR: it might make more sense to add jitter for every request. That would require updates both to the Node SDK and to the proxy.

from unleash-proxy.

ivarconr avatar ivarconr commented on June 10, 2024

Node SDK v3.18.0-beta.0 introduced support for jitter on the metrics interval.

We need to be mindful that the proxy customize the metrics sligthly (see code)

In addition we need to expose the same jitter option in the proxy (also as an environment variable).

from unleash-proxy.

ivarconr avatar ivarconr commented on June 10, 2024

Released as part of v0.14.0-beta.0.

Do you mind testing it a bit @Meemaw ?

from unleash-proxy.

Meemaw avatar Meemaw commented on June 10, 2024

@ivarconr We still use fairly old version of proxy, mainly due to #86

from unleash-proxy.

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.