Rancher Machine Config for Harvester: CPU Pinning#2274
Open
m-ildefons wants to merge 1 commit into
Open
Conversation
Add advanced CPU settings to the Rancher Machine Config for Harvester. By moving all CPU settings to a dedicated structure, advanced features like CPU pinning can be added to the machine config without making it too complicated. related-to: harvester/harvester#6551 Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>
This was referenced May 29, 2026
Collaborator
|
Would you mind putting your example config in the examples/resources/rancher2_machine_config_v2 directory? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses
Description
Add advanced CPU settings to the Rancher Machine Config for Harvester. By moving all CPU settings to a dedicated structure, advanced features like CPU pinning can be added to the machine config without making it too complicated.
Testing
Created a machine config from the following Terraform script
This results in the following machine config resource
Note the fields
cpuCount,cpuPinningandisolateEmulatorThreadOther
Does this change alter an interface that users of the provider will need to adjust to?
Yes. The
harvester_configinterface of therancher2_machine_config_v2resource will be modified from:to:
Will there be any existing configurations broken by this change?
Yes, existing configurations will need to be updated.
However this change opens the door to more advanced CPU topology configurations, like detailing sockets, threads and core-count separately. This more advanced CPU topology is a prerequisite for enabling vertical scaling features like CPU hotplug.