Skip to content

Title: Introduce Weighted Node Selection for Gradual Traffic Ramp-Up #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

utsab4u
Copy link

@utsab4u utsab4u commented Apr 1, 2025

Description:
This MR replaces the existing random node selection strategy with a weighted selection strategy to ensure a smoother ramp-up for new service instances.

Key Changes:
Introduced a weight parameter in ServiceNode, which starts low and gradually increases based on the uptime of the service.

Implemented asigmoid-based weight function, ensuring a slow initial ramp-up that eventually converges to 1.

Replaced the random selection strategy with a probabilistic weighted selection, where instances with higher uptime (and weight) have a higher chance of being picked.

Ensures new instances take reduced traffic initially, reducing the risk of overload on cold-started services.

Why This Change?
Prevents sudden traffic spikes on new instances.
Helps in gracefully warming up services before full exposure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants