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

Compute a cluster-wide baseline CPU definition for VMs #981

Merged
merged 4 commits into from
Jul 10, 2024
Merged

Conversation

stgraber
Copy link
Member

@stgraber stgraber commented Jul 10, 2024

For virtual machines with migration.stateful=true and so therefore capable of being live-migrated or just have their runtime state restored on another system, we will now pull the list of CPU flags from all servers of the same architecture across the cluster and generate a CPU definition made from whatever flags they all have in common.

This should result in virtual machines that can be migrated even across different CPU generations.

Closes #486

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sponsored-by: Luizalabs (https://luizalabs.com)
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sponsored-by: Luizalabs (https://luizalabs.com)
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sponsored-by: Luizalabs (https://luizalabs.com)
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sponsored-by: Luizalabs (https://luizalabs.com)
@stgraber
Copy link
Member Author

Worth noting that this is a first stab at this and an implementation which is a bit naive but will be backportable to the LTS branch.

A more advanced way of handling this will be added by allowing cluster groups to hold per-architecture CPU definitions. This will then make it possible to have different cluster groups within a cluster with a different virtualized CPU definition and so being able to migrate between servers in that group.

@hallyn hallyn merged commit f3d288b into lxc:main Jul 10, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Cluster-wide baseline CPU definition for virtual machines
2 participants