feat(clusters): add margin per pool#2543
Closed
MasterPtato wants to merge 1 commit into06-04-fix_guard_return_error_response_on_router_errorfrom
Closed
feat(clusters): add margin per pool#2543MasterPtato wants to merge 1 commit into06-04-fix_guard_return_error_response_on_router_errorfrom
MasterPtato wants to merge 1 commit into06-04-fix_guard_return_error_response_on_router_errorfrom
Conversation
This was referenced Jun 4, 2025
Closed
Contributor
Author
This was referenced Jun 4, 2025
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
This was referenced Jun 5, 2025
Closed
There was a problem hiding this comment.
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
Comment on lines
+341
to
342
| tracing::error!("must have `max_count` when creating a new pool"); | ||
| return Ok(()); |
There was a problem hiding this comment.
logic: Error message is incorrect - mentions 'max_count' but should be 'drain_timeout'
Suggested change
| 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
This was referenced Jun 6, 2025
468cfa5 to
fec69e4
Compare
bf7487c to
78b6466
Compare
This was referenced Jun 6, 2025
Contributor
Merge activity
|
graphite-app Bot
pushed a commit
that referenced
this pull request
Jun 9, 2025
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
This was referenced Jun 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Changes