-
Notifications
You must be signed in to change notification settings - Fork 354
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: add slot stats to /agents endpoints #9048
Conversation
✅ Deploy Preview for determined-ui canceled.
|
scale up the output turn off topology rendering intro slot stats slot stats fill in summary make copies add a flag to exclude slots comment cleanup set excludeSlots flag when calling getAgents in webui cleanup inform about exact disabled slots implement it index via enum names instead of int values sample out ``` "slotStats": { "deviceTypeCounts": { "TYPE_CPU": 4 }, "disabledSlots": {}, "drainingCount": 0, "slotStates": { "0": "STATE_PULLING" }, "stateCounts": { "STATE_PULLING": 1 } }, ``` switch to list of strings new stats take out old schema? simplify initializing the stats also add option to exclude containers? impelement and use exclude_containers disable topology view for > MAX_USABLE_NODES note for topology reenable pagination expose a way to togggle requesting slots no summary flag
// Map of device type to device stats. | ||
map<string, DeviceStats> type_stats = 6; | ||
// Map of device brands to device stats. | ||
map<string, DeviceStats> brand_stats = 7; |
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.
just keep these two
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.
I don't understand?
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.
reminder for myself. my plan is to just these keep these two new structs and we shouldn't need the rest.
changed title with |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9048 +/- ##
=======================================
Coverage 47.80% 47.81%
=======================================
Files 1161 1161
Lines 143646 143713 +67
Branches 2373 2371 -2
=======================================
+ Hits 68676 68714 +38
- Misses 74817 74846 +29
Partials 153 153
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I'd change it to feat: that'd also be tested. I think that'd be more accurate. |
(cherry picked from commit e8dba6d)
Description
waiting on web to confirm the schema is sufficient
Test Plan
look at the added stats in the API to see the values are as expected by brand and dev type
Commentary (optional)
putting this up to get early feedback on the schema changes
not going to land any of the web changes via this pr
Checklist
docs/release-notes/
.See Release Note for details.
Ticket
related to https://hpe-aiatscale.atlassian.net/browse/RM-108