Live scaling for VMs with fixed service offerings on KVM#12975
Live scaling for VMs with fixed service offerings on KVM#12975bernardodemarco wants to merge 1 commit intoapache:mainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12975 +/- ##
=========================================
Coverage 17.95% 17.96%
- Complexity 16502 16514 +12
=========================================
Files 6019 6019
Lines 540743 540824 +81
Branches 66255 66264 +9
=========================================
+ Hits 97082 97141 +59
- Misses 432720 432744 +24
+ Partials 10941 10939 -2
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:
|
|
@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 |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-15820)
|
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
6e93c57 to
6f72aaa
Compare
|
@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 17472 |
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.