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 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:
|
|
@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)
|
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.