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

scheduler: Add weighers for same shard (live-)migration #455

Draft
wants to merge 1 commit into
base: offline-migrate-gets-own-nova-check-type
Choose a base branch
from

Conversation

joker-at-work
Copy link

We want to prefer staying in the same shard on live-migration and on offline migration, because migrating VMs with volumes attached induces overhead. Therefore, we add PreferSameShardOnLiveMigrateWeigher and PreferSameShardOnMigrateWeigher.

Since we already had that functionality available for resizes through PreferSameShardOnResizeWeigher, we refactored the weigher into a base class configured by class attribute _TYPE.

Change-Id: I0d28b675562ec220163b8a159802c2126280c272

We want to prefer staying in the same shard on live-migration and on
offline migration, because migrating VMs with volumes attached induces
overhead. Therefore, we add `PreferSameShardOnLiveMigrateWeigher` and
`PreferSameShardOnMigrateWeigher`.

Since we already had that functionality available for resizes through
`PreferSameShardOnResizeWeigher`, we refactored the weigher into a base
class configured by class attribute `_TYPE`.

Change-Id: I0d28b675562ec220163b8a159802c2126280c272
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

Successfully merging this pull request may close these issues.

1 participant