Skip to content
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

refactor: update scaling strategies #5333

Merged
merged 1 commit into from
Jul 24, 2024
Merged

refactor: update scaling strategies #5333

merged 1 commit into from
Jul 24, 2024

Conversation

Kavinjsir
Copy link
Contributor

Description

Refactor the slot autoscaler:

  1. Avoid scale down
  2. Allow scaling when origin slots is small (< 10)
  3. Avoid scaling when increase < 10%
  4. Avoid scaling when increase < 5 slots

Motivation

Resolve: https://github.com/rilldata/rill-private-issues/issues/475

@Kavinjsir Kavinjsir self-assigned this Jul 23, 2024
@Kavinjsir Kavinjsir force-pushed the tony-patch-slot-scaler branch 2 times, most recently from 10b2cdc to f2d9267 Compare July 23, 2024 22:26
}

if reason == scaledown {
w.logger.Info(logMessage, logFields...)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nishantmonu51 for "not scaling down", the code here is designed to leave a message so that we can later create a datadog monitor to capture the log pattern with this.

@Kavinjsir Kavinjsir merged commit 89809ca into main Jul 24, 2024
4 checks passed
@Kavinjsir Kavinjsir deleted the tony-patch-slot-scaler branch July 24, 2024 15:52
Kavinjsir added a commit that referenced this pull request Jul 24, 2024
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