Skip to content
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

Instances could do a better job of identifying if they're satisfying affinity requests or not #7614

Open
smklein opened this issue Feb 24, 2025 · 2 comments

Comments

@smklein
Copy link
Collaborator

smklein commented Feb 24, 2025

See: #7447 (comment)

Currently affinity/anti-affinity rules are used during the "sled reservation" component of VMM starting, but are not subsequently checked.

However, with permissive rules, it's possible that these affinity/anti-affinity requests are violated, and later could be re-inspected.

This issue tracks exposing an API to identify: "Is this instance satisfying affinity rules?"

Related, we could expose an API to identify: "Are there any instances violating affinity rules?"

@askfongjojo
Copy link

askfongjojo commented Mar 14, 2025

What will be very useful is to have the API at least return all the affinity/anti-affinity groups an instance is associated with (if determining whether the constraints are satisfied is too expensive to do). When an instance can't be started because the user has misconfigured the groups, it'll be very handy to get all groups with a single CLI command or see them on the Settings tab in the Instance UI.

@smklein
Copy link
Collaborator Author

smklein commented Mar 21, 2025

What will be very useful is to have the API at least return all the affinity/anti-affinity groups an instance is associated with (if determining whether the constraints are satisfied is too expensive to do). When an instance can't be started because the user has misconfigured the groups, it'll be very handy to get all groups with a single CLI command or see them on the Settings tab in the Instance UI.

I went ahead and implemented this in #7857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants