Skip to content

MVP Inventory Flow #1451

Open
Open

Description

@benjaminleonard

MVP Inventory Flow

Figma document

This is a draft proposed flow for the MVP Inventory pages. At this time, feedback should be focused on inventory over sled reboot and migration as the process for this is still to be determined in RFD 378.

image

Here we see a list of sleds, their status, running & stopped VMs, allocation, and version.

Are we assuming that a stopped VM no longer contributes to the allocated resources on a sled?

But if the instance is stopped and doesn't exist on any sled, this will try to create the instance on the sled on which it most recently ran, which might not have capacity for it (even though some other sled might). This function should distinguish the "instance already incarnated" and "instance stopped" cases and select a new sled in the latter case.
oxidecomputer/omicron#2315 (comment)

We're showing the allocated resources as a fuzzy proportion of total resources, since some amount of this is used by the system.

Version here is a version or a version and a target version if a sled is in the middle of updating.

We're showing a banner that is letting the operator know that instances need to be migrated before a sled can reboot and finish the update process. In practice this depends on the outcome of RFD 378#_proposed_solutions as to the level of intervention needed from an operator.

image

Switches are shown for completeness, perhaps in the future we can include further metrics.

image

Here we see a sled detail page. This includes a list of instances, scoped by silo and project since instance names are not unique. Whilst we have started to explore the process of migrating individual instances to other sleds, but this likely change as work on migration progresses.

When our fault management has been developed further we can introduce issues into the sled detail page.

image

The utilization page shows resource utilization for the selected sled.

Activity

  1. askfongjojo commented on Apr 18, 2023

    @askfongjojo

    Thanks for putting this together @benjaminleonard ! The mockups look good to me. I just want to call out some of the items which may need further discussion/refinement:

    1. Stopped VM: The linked ticket omicron Add form navigation guard to prevent accidental form content loss #2315 has several pre-requisites that are being actively worked on. When stopped VMs are no longer coupled with sleds (eventually), it'll require us to change the UI to eliminate the stopped VM counts. We can perhaps make a note on that, e.g. "at implementation time, we should check back on the progress of the omicron ticket and see if stopped VMs should be shown". Or the other option is to exclude them from the get-go to avoid the rework.
    2. Resource accounting: Stopped VMs will have to be accounted for. If we decide to eliminate the stopped VM counts, we'll need a "container" (at the same level as sleds) to display them. This can be a post-MVP change to consider.
    3. Utilization: Somewhere on the UI we'll need to define what this means precisely. The intent for MVP is to show the allocated RAM and vCPU (which maps to PROVISIONED), as opposed to run-time utilization (presumably == IN USE?). We may need an info icon that explains the math on mouse-over. The tricky part is going to be describing how we come up with the denominators (i.e. what is the total provisionable CPU/RAM).

    Btw, there is a typo for the STATUS label on the sled details page (it says VERSION currently).

  2. askfongjojo commented on Apr 18, 2023

    @askfongjojo

    Pinging @sdtuck, @smklein, @gjcolombo, @ahl for review/feedback
    (@karencfv, @zephraph, @david-crespo - this ticket is probably already on your radar)

    The key goals for this MVP inventory UI view to support oxidecomputer/omicron#2035 and oxidecomputer/omicron#2036, answering questions such as:

    • What is the remaining capacity of the rack?
    • Which projects/instances will be impacted if a certain sled is to be taken down for maintenance?
    • Did a certain sled just reboot itself? (Several users informed us that their instances were rebooted)
    • Is a certain sled currently "in trouble"? (Several users informed us that their instances are down/unreachable)

    The UI depends on having sled-agent endpoints for reporting its health and uptime. The work for sled self-reporting has just been initiated (assigned to @jordanhendricks). Although the feature and this UI are both considered MVP, I'd think they won't hold the first customer ship but should hopefully be in time for the quick-follow release after FCS (getting the information right in this UI is more important than rushing it).

  3. benjaminleonard commented on Apr 18, 2023

    @benjaminleonard
    ContributorAuthor

    Thanks Angela for the context and tagging the relevant parties.

    Some notes on the latest comments:

    Resource accounting: Stopped VMs will have to be accounted for. If we decide to eliminate the stopped VM counts, we'll need a "container" (at the same level as sleds) to display them. This can be a post-MVP change to consider.

    Displaying stopped VMs at the same level as sleds i'd find confusing. What's the goal with making sure that stopped sleds appear at all? Do they factor into the decisions an operator might make from this screen. I imagine they would still be represented in the overall utilization of the rack as reserved resources?

    Utilization: Somewhere on the UI we'll need to define what this means precisely. The intent for MVP is to show the allocated RAM and vCPU (which maps to PROVISIONED), as opposed to run-time utilization (presumably == IN USE?). We may need an info icon that explains the math on mouse-over. The tricky part is going to be describing how we come up with the denominators (i.e. what is the total provisionable CPU/RAM).

    Good idea, will develop this further. We can show an info tooltip on the directory of sleds and make use of the utilization tab within the sled detail page to get a bit more granular.

    Which projects/instances will be impacted if a certain sled is to be taken down for maintenance?

    We show a list of instances, is it also useful for an operator to get a flattened list of projects on that sled? A feature that might be handy without too much investment is retrieving the emails of all the admins of projects on a sled from the IdP — the operator could then manually contact those who might be affected by maintenance.

    Did a certain sled just reboot itself? (Several users informed us that their instances were rebooted)

    We have an activity log UI component that could be useful here to show a sleds change of status over time.

    Is a certain sled currently "in trouble"? (Several users informed us that their instances are down/unreachable)

    Is there somewhere I can read more about what health information might be available for a sled for MVP & MVP+1?

  4. askfongjojo commented on Apr 18, 2023

    @askfongjojo

    Displaying stopped VMs at the same level as sleds i'd find confusing. What's the goal with making sure that stopped sleds appear at all? Do they factor into the decisions an operator might make from this screen. I imagine they would still be represented in the overall utilization of the rack as reserved resources?

    Plz ignore the "same level as sleds" (I should refrain from designing the visualization!). Stopped VM info complements the rack utilization picture - e.g. it helps explain why the UI says the rack is 80% utilized when it doesn't have many running VMs. What may be actionable for operators in this case is asking project teams to clean up stopped VMs.

    We have an activity log UI component that could be useful here to show a sleds change of status over time.

    The audit log feature may not make it for MVP. But the sled uptime (if we can get that as part of sled health) will probably answer the question of when the sled was booted/rebooted.

  5. just-be-dev commented on Apr 19, 2023

    @just-be-dev
    Contributor

    Stopped VMs shouldn't have an impact on the overall utilization, should they? I could be forgetting something basic here, but their only utilization really is CPUs / RAM which they're using none of while they're stopped. The disks they were attached to of course still represent utilized resources, but I assume that would be visualized in a different way... I think?

  6. benjaminleonard commented on Apr 19, 2023

    @benjaminleonard
    ContributorAuthor

    e.g. it helps explain why the UI says the rack is 80% utilized when it doesn't have many running VMs. What may be actionable for operators in this case is asking project teams to clean up stopped VMs.

    Ok will keep that in mind on the capacity and utilisation screens. We've already developed workflow around an operator discovering places where they can nudge a project admin to clean up underutilised resources. Though I think this is built around the delta between reserved and actual utilization, we could add a metric that has a proportion of reserved CPU/RAM assigned to stopped instanced?

    Stopped VMs shouldn't have an impact on the overall utilization, should they? I could be forgetting something basic here, but their only utilization really is CPUs / RAM which they're using none of while they're stopped.

    Would be a good thing to clarify, I had assumed they would be reflected in 'provisioned' but not 'in-use'.

    image

  7. gjcolombo commented on Apr 19, 2023

    @gjcolombo

    I tend to think that stopped instances generally shouldn't count as "utilizing" or "reserving" any part of the rack, at least not in contexts where we want to represent "the rack is X% full." There's no particular harm in, say, defining 1,000 instances with 16 vCPUs each, even though this is 4x the number of logical processors in a full rack (128 LPs per sled * 32 sleds). You just can't start all of the VMs at once, but that's fine--IIUC that's what the "in use" metric is meant to track.

    IMO it would be very surprising to be an Oxide user and to be told that I can't even create a new VM because the sum of the sizes of my previously-created stopped VMs is too large. This is one of the reasons I think it's crucial to fix omicron#2315 as soon as possible -- my view, which is admittedly a sample size of 1, is that it's very unintuitive for stopped instances to "count" when deciding what new instances I can start (let alone create).

    Once we do change Nexus to stop charging resources for stopped instances and to stop associating stopped instances with specific sleds, I'm not sure it makes sense to have a "provisioned" series in the per-sled utilization graph. (If anything, I might be inclined to say that "provisioned" should count the total resources reserved to VMs running on the sled, and "in use" should refer to the actual utilization of the VMs on that sled--so if I have an instance with 8 vCPUs that's totally idle, the "provisioned" series accounts for those CPUs, but the "used" series doesn't budge. But that's totally out of scope for now--we're a long way from having that level of vCPU usage reporting available to graph here.)

  8. askfongjojo commented on Apr 19, 2023

    @askfongjojo

    Thanks for weighing in, @zephraph and @gjcolombo. This gets into the interesting territory of over-provisioning. Prior to this discussion, I've assumed provisioned resources are guaranteed and operators don't get into the situation of triaging which VMs should be stopped if there is resource contention. But I'm not against over-provisioning/reservation as long as the CP and OS can be protected against resource starvation (and we clearly document what provisionable capacity means to the operator).

  9. gjcolombo commented on Apr 19, 2023

    @gjcolombo

    To be transparent about my priors here, I'm looking at this through the lens of my previous public cloud experience, where it was generally possible (though not desired by anyone) for instance start requests to fail because there were insufficient resources available to host the instance. In that world, if a customer wants to guarantee that resources are always reserved for a specific instance, even while it's stopped, the customer has to pay for some sort of reservation (e.g. 1, 2).

    We don't have to go in this direction, of course; I'm just laying out my worldview here. Even knowing about those priors, though, I tend to think maximizing user flexibility is the right approach. It just feels very strange to me to have situations where we could say "your deployment is totally idle right now, but you still can't create or start this instance, because that might prevent you from starting this other instance over here in the future, even if you don't care about that instance right now."

    I've assumed provisioned resources are guaranteed and operators don't get into the situation of triaging which VMs should be stopped if there is resource contention.

    This seems to me to be the underlying product decision that we need to make formally: do created-but-stopped VMs retain their resources, or do they drop them and then try to reacquire them when starting back up? (It strikes me that if we hold resources for created VMs, then operators still have to decide which VMs to act on if there's contention--it's just that now they have to decide which instances to delete and not just which ones to stop.)

    In the fullness of time it would be nifty to have this be a per-instance option, but I don't see how distinguishing between "unreserved" and "reserved" instances is going to fit into the time we have left for MVP.

    But I'm not against over-provisioning/reservation as long as the CP and OS can be protected against resource starvation (and we clearly document what provisionable capacity means to the operator).

    Whichever direction we go with, I think @smklein's recent and upcoming work in this area (along with any follow-on instance lifecycle changes we'll need to make) should be enough to keep us from over-committing sled resources this way. I think the definition of "provisionable capacity" will depend on the product decision I outlined above.

  10. ahl commented on Apr 19, 2023

    @ahl

    I left several comments in figma.

    In addition, I have some thoughts related to migration and some other operations imagined in the images and text above.

    First, I don't think that migration should be an operation we allow operators to undertake. In the fullness of time, we will provide primitives for affinity and anti-affinity constraints on collections of instances. Training operators to move an instance between sleds is fundamentally educating them about unsustainable practices.

    Similarly, sled reboot. If an operator is manually rebooting a sled, that's likely indicative of some bug and some loss of confidence in our ability to support them. If anyone is rebooting a sled, it should be our support team.

    More broadly these operations seem to be under the heading of operator-led upgrade of the rack. In the fullness of time, that should be a single click. Until that time we don't want to expose interfaces that run counter to that or train users on practices that we expressly will want to prohibit. Put another way: if we feel that automating the update process is too complex for MVP, why do we think it will be simple enough for operators to execute flawlessly?


    There are other operations we definitely do want on sleds (and sidecars):

    • "Prepare for removal" -- The operator is planning on removing a sled (e.g. for maintenance of a CRU or FRU, e.g. replacing a DIMM). The operation will mark the sled as unallocatable and start to migrate instances off of it. I don't think this is necessary for MVP; in this case we would have a support call where we use internal APIs to mark the sled and manually migrate instances.

    • "Power Off and Remove" -- An option after "prepare for removal" has been completed. After clicking this and waiting, the sled's state would be "ready for removal" (or something)

    • "Recover" -- Situation: the sled is Fucked in some reflexively-unfuckable way. The operator would basically be saying: burn it down and start over. This would invoke the MUPdate mechanisms (RFD 345)

    • "Additional details" -- We probably want to show users shit like: model number, date of manufacture, serial number, details on components like DIMMs and CPU, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions