Live scaling for VMs with fixed service offerings on KVM#12975
Open
bernardodemarco wants to merge 1 commit intoapache:mainfrom
Open
Live scaling for VMs with fixed service offerings on KVM#12975bernardodemarco wants to merge 1 commit intoapache:mainfrom
bernardodemarco wants to merge 1 commit intoapache:mainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12975 +/- ##
=========================================
Coverage 18.00% 18.01%
- Complexity 16465 16476 +11
=========================================
Files 5977 5977
Lines 537731 537807 +76
Branches 66026 66035 +9
=========================================
+ Hits 96840 96893 +53
- Misses 429971 429994 +23
Partials 10920 10920
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
|
@blueorangutan package |
|
@bernardodemarco a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17390 |
Member
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
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.
Description
Apache CloudStack currently supports live scaling only for VMs with custom constrained and custom unconstrained compute offerings. For VMs with fixed compute offerings, users must stop the VM, change its service offering through the
scaleVirtualMachineAPI and then start it again. Depending on the criticality of the applications running on the VM, the downtime caused by this process is highly undesirable.Therefore, this PR introduces support for live scaling of VMs with fixed service offerings when using the KVM hypervisor in Apache CloudStack. The feature specification is available at #12908.
Fixes #12908 and fixes #6865
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
How Has This Been Tested?
Test environment setup
Active service offerings
enable.dynamic.scale.vm.Definition of the domain XML of the guest VMs
Verified that:
enable.dynamic.scale.vmglobal setting value isfalse, the domain XML of guest VMs is not prepared for live scaling;Dynamically scalableproperty of service offerings isfalse, the domain XML of guest VMs is not prepared for live scaling;Dynamically scalableproperty of templates isfalse, the domain XML of guest VMs is not prepared for live scaling;Dynamically scalableproperty of VMs isfalse, the domain XML of guest VMs is not prepared for live scaling.Live scaling
kvm.cpu.dynamic.scaling.capacityandkvm.memory.dynamic.scaling.capacitysettingskvm.cpu.dynamic.scaling.capacityandkvm.memory.dynamic.scaling.capacitysettings are equal to or less than0, the host maximum capacity of CPU and memory is considered to define the upper limits for live scaling.kvm.cpu.dynamic.scaling.capacityandkvm.memory.dynamic.scaling.capacitysettings are greater than0, the values of the settings are considered to define the upper limits for live scaling.auto.migrate.vm.on.live.scale.insufficient.capacitysettingauto.migrate.vm.on.live.scale.insufficient.capacitysetting is true and the current host lacks sufficient compute capacity to live scale the instance, the VM is automatically migrated to a suitable host;auto.migrate.vm.on.live.scale.insufficient.capacitysetting is false and the current host lacks sufficient compute capacity to live scale the instance, the VM is not migrated to a suitable host and an error message is returned.