-
Notifications
You must be signed in to change notification settings - Fork 42
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
Clarify "affinity request" in policy doc comment #7649
Comments
This is largely correct, we call
Agreed, I welcome clearer language here. Maybe we could say "If the affinity constraints cannot be satisfied when placing an instance on a sled..."? |
We don't necessarily have to say "when placing on a sled" in this spot — I think docs and console copy and observing the behavior of the system will be more load-bearing for getting the details across. How about being concrete about instance start being the relevant thing:
Does the instance actually go to |
omicron/nexus/src/app/sagas/instance_start.rs Lines 155 to 175 in 71da009
IMO this also makes sense, re-trying the request might succeed, if other instances have been started/stopped, or hardware has changed. |
We may want to say "Instance will not start" instead of some variation on fail to stay kind of vague while avoiding the expectation that it will land in |
These doc comments shows up in the docs site and I think it could be clearer for the end user. I also want to understand it well myself so we can get the copy right in the console and in the hand-written guides. My understanding from a quick look at the code is that "affinity request" here means something like "whenever we pick an instance for a sled", which as far as I can tell is the first time an instance is started, and possibly future starts if the sled reservation goes away on instance stop (I couldn't tell whether it does). I think "affinity request" could be misread by users to mean the request in which we add an instance to an affinity group, which is completely different from instance start time.
I am happy to write the copy and make the PR myself, I just need help getting clear on the facts. @smklein
omicron/common/src/api/external/mod.rs
Lines 1291 to 1304 in 665cf83
The text was updated successfully, but these errors were encountered: