Nexus::select_runtime_change_action
's final match
needs tuning
#6390
Labels
Nexus::select_runtime_change_action
's final match
needs tuning
#6390
Specifically this bit:
omicron/nexus/src/app/instance.rs
Lines 781 to 813 in 6dd9802
This match is a little hard to parse. At this point, Nexus already believes the instance of interest has a running Propolis and is just deciding whether to send a state change request there for disposition. I think the general idea should be to say something like
For start/stop/reboot, this is pretty close to what we have today, but the handling for requests to migrate could stand to be tightened up a bit.
It's also worth noting that this match is in a path where we already know that we've got an active Propolis. We should consider whether it'd be clearer to look at the VMM's state directly instead of looking at it as interpreted through
InstanceAndActiveVmm::determine_effective_state
.The text was updated successfully, but these errors were encountered: