-
Notifications
You must be signed in to change notification settings - Fork 129
fix(pegboard): fix allocation metrics #2568
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
fix(pegboard): fix allocation metrics #2568
Conversation
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
This PR addresses critical metric tracking issues in the Pegboard service, focusing on proper resource allocation monitoring and drain state synchronization.
- Fixed swapped CPU/memory metric handling in
packages/core/services/cluster/src/ops/datacenter/topology_get/pegboard.rswhere values were incorrectly interpreted (MHz vs MiB) - Added concurrent metric updates with drain state changes in
packages/edge/services/pegboard/src/workflows/client/mod.rsusingctx.join() - Implemented ClickHouse metric recording before actor allocation in
packages/edge/services/pegboard/src/workflows/actor/mod.rs - Enhanced drain state labeling in metrics to properly distinguish between 'active' and 'draining' clients
3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
| server_entry.cpu += | ||
| value.parse::<f64>()? as u32 * server_spec::LINODE_CPU_PER_CORE / 1000; | ||
| } |
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.
style: Potential loss of precision when converting f64 to u32 before multiplication. Consider reordering operations
Deploying rivet with
|
| Latest commit: |
b59017e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://eb6d12ee.rivet.pages.dev |
| Branch Preview URL: | https://06-06-fix-pegboard-fix-alloc.rivet.pages.dev |
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