Skip to content

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

Draft
joker-at-work wants to merge 1 commit intooffline-migrate-gets-own-nova-check-typefrom
scheduler-same-shard-weigher
Draft

scheduler: Add weighers for same shard (live-)migration#455
joker-at-work wants to merge 1 commit intooffline-migrate-gets-own-nova-check-typefrom
scheduler-same-shard-weigher

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