-
Notifications
You must be signed in to change notification settings - Fork 129
feat(clusters): add margin per pool #2543
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
feat(clusters): add margin per pool #2543
Conversation
Deploying rivet-studio with
|
| Latest commit: |
fec69e4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1200a1e4.rivet-studio.pages.dev |
| Branch Preview URL: | https://06-04-feat-clusters-add-marg.rivet-studio.pages.dev |
Deploying rivet-hub with
|
| Latest commit: |
fec69e4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c3a49a51.rivet-hub-7jb.pages.dev |
| Branch Preview URL: | https://06-04-feat-clusters-add-marg.rivet-hub-7jb.pages.dev |
Deploying rivet with
|
| Latest commit: |
fec69e4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5769caf4.rivet.pages.dev |
| Branch Preview URL: | https://06-04-feat-clusters-add-marg.rivet.pages.dev |
b87a3c1 to
a2b2d0d
Compare
54b6d3c to
9178981
Compare
9178981 to
fbd78df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Introduces per-pool margin configuration by moving autoscaling margin from global config to individual pool settings in the cluster service. This change provides more granular control over pool scaling behavior.
- Added
marginfield toPoolstruct inpackages/core/services/cluster/src/types.rswith#[serde(default)]for backward compatibility - Removed
autoscale_marginfrom pool configuration structs inpackages/common/config/src/config/server/rivet/cluster_provision.rs - Updated datacenter workflow in
packages/core/services/cluster/src/workflows/datacenter/mod.rsto handle per-pool margin updates - Improved error handling for pool creation validation by upgrading warning logs to error logs
3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
| tracing::error!("must have `max_count` when creating a new pool"); | ||
| return Ok(()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Error message is incorrect - mentions 'max_count' but should be 'drain_timeout'
| tracing::error!("must have `max_count` when creating a new pool"); | |
| return Ok(()); | |
| let Some(drain_timeout) = pool.drain_timeout else { | |
| tracing::error!("must have `drain_timeout` when creating a new pool"); | |
| return Ok(()); | |
| }; |
5227285 to
bf7487c
Compare
fbd78df to
468cfa5
Compare
468cfa5 to
fec69e4
Compare
bf7487c to
78b6466
Compare
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->

Changes