You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Operator View: Availability - What sleds are up / down? #2035
The Neuxs operator API should provide a view of which sleds on the rack are currently running, with a variety of related information (how long have they been up, health, etc).
Presumably part of this includes some kind of state reporting from the Sled itself, storing that in the database, and then using that produce this information in the "list sleds" API?
This... sorta works. It works in cases where the sled info is purely additive, at least? But I don't believe it ever gets updated, and it seems unlikely for a sled to report that it is no longer available (this seems like an inference that needs to be made by Nexus, either by querying MGS, or indirectly through lack-of-a-response).
Activity
smklein commentedon Jan 6, 2023
FWIW, the "sled list" endpoint exists, but it not returning any information about health:
omicron/nexus/src/external_api/http_entrypoints.rs
Lines 4972 to 5000 in 75bd905
Additionally, these sleds remain, even if they are powered off or unplugged
davepacheco commentedon Jan 23, 2023
Presumably part of this includes some kind of state reporting from the Sled itself, storing that in the database, and then using that produce this information in the "list sleds" API?
smklein commentedon Jan 23, 2023
Yeah, definitely. Currently we are storing "what sleds has Nexus ever heard of" in CRDB, through the internal Nexus API:
omicron/nexus/src/internal_api/http_entrypoints.rs
Lines 66 to 86 in b8a4617
This... sorta works. It works in cases where the sled info is purely additive, at least? But I don't believe it ever gets updated, and it seems unlikely for a sled to report that it is no longer available (this seems like an inference that needs to be made by Nexus, either by querying MGS, or indirectly through lack-of-a-response).