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

feature(core): Add support for LXC/Container to be rebalanced. #28

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

gyptazy
Copy link
Owner

@gyptazy gyptazy commented Jul 20, 2024

feature(core): Add support for LXC/Container to be rebalanced.

General

Add support for Proxmox LXC (container) to be rebalanced across the nodes in a cluster.
Should work technically but needs further testing. Also requires a new state in the output json, where the VM/CT type should be flagged.

Details

Output CLI

Example output of migrated VMs (type: vm):

                 VM   Current Node   Rebalanced Node   VM Type
   test06-gyptazy01         virt01            virt02        vm
             test02         virt01            virt03        vm
             test04         virt01            virt02        vm

Example output of migrated CTs (type: ct):

      VM   Current Node   Rebalanced Node   VM Type
   gyp02         virt01            virt02        ct
   gyp01         virt01            virt03        ct

Example output of migrated resources (type all):

                 VM   Current Node   Rebalanced Node   VM Type
   test06-gyptazy01         virt01            virt03        vm
             test02         virt01            virt03        vm
             ct-fat         virt01            virt02        ct

Output JSON

The vm_statistics now contains the new key type that defines the type of the object. Currently, it can be vm (qemu) or ct (LXC).

Fixes: #27

@gyptazy gyptazy added this to the Release 1.0.0 milestone Jul 20, 2024
@gyptazy gyptazy self-assigned this Jul 20, 2024
@gyptazy gyptazy marked this pull request as draft July 20, 2024 17:36
@gyptazy gyptazy force-pushed the feature/27-add-container-support branch 3 times, most recently from 753c44e to a52b9a4 Compare July 21, 2024 09:39
@gyptazy gyptazy marked this pull request as ready for review July 21, 2024 09:39
@gyptazy gyptazy force-pushed the feature/27-add-container-support branch from a52b9a4 to f2209ce Compare July 21, 2024 09:41
@gyptazy gyptazy merged commit 1c7a630 into main Jul 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Support container (CT) for rebalancing
1 participant