Skip to content

Enable dynamic scaling of Kubernetes cluster offerings for KVM#13226

Open
bernardodemarco wants to merge 1 commit into
apache:mainfrom
scclouds:remove-scaling-constraint-in-k8s-workflow
Open

Enable dynamic scaling of Kubernetes cluster offerings for KVM#13226
bernardodemarco wants to merge 1 commit into
apache:mainfrom
scclouds:remove-scaling-constraint-in-k8s-workflow

Conversation

@bernardodemarco
Copy link
Copy Markdown
Member

Description

PR #12975 introduced support for live scaling VMs with fixed service offerings on KVM. However, it did not remove a constraint in the Kubernetes cluster scaling workflow that prevented changing cluster compute offerings while the clusters were running.

This PR removes this leftover constraint, enabling dynamic scaling of Kubernetes cluster offerings.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Screenshots (if appropriate):

How Has This Been Tested?

  • Created a k8s cluster with a compute offering of 2 vCPUs and 4096 MiB of memory (without CPU cap):

    k8s cluster details image
  • Scaled the k8s cluster and upgraded its offering to 2 vCPUs and 4096 MiB of memory (with CPU cap):

    k8s cluster control plane VM XML
    <maxMemory slots='16' unit='KiB'>15327232</maxMemory>
    <memory unit='KiB'>4194304</memory>
    <currentMemory unit='KiB'>4194304</currentMemory>
    <vcpu placement='static' current='2'>8</vcpu>
    <cputune>
        <shares>835</shares>
        <period>10000</period>
        <quota>3300</quota>
    </cputune>
  • Scaled the worker nodes compute offering to 3 vCPUs and 4096 MiB of memory (with CPU cap):

    k8s cluster details image
    k8s cluster worker plane VM XML
    <maxMemory slots='16' unit='KiB'>15327232</maxMemory>
    <memory unit='KiB'>4194304</memory>
    <currentMemory unit='KiB'>4194304</currentMemory>
    <vcpu placement='static' current='3'>8</vcpu>
    <vcpus>
        <vcpu id='0' enabled='yes' hotpluggable='no' order='1'/>
        <vcpu id='1' enabled='yes' hotpluggable='no' order='2'/>
        <vcpu id='2' enabled='yes' hotpluggable='yes' order='3'/>
        <vcpu id='3' enabled='no' hotpluggable='yes'/>
        <vcpu id='4' enabled='no' hotpluggable='yes'/>
        <vcpu id='5' enabled='no' hotpluggable='yes'/>
        <vcpu id='6' enabled='no' hotpluggable='yes'/>
        <vcpu id='7' enabled='no' hotpluggable='yes'/>
    </vcpus>

@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 18.10%. Comparing base (21b2025) to head (55ba389).
⚠️ Report is 196 commits behind head on main.

Files with missing lines Patch % Lines
...er/actionworkers/KubernetesClusterScaleWorker.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #13226      +/-   ##
============================================
+ Coverage     17.67%   18.10%   +0.42%     
- Complexity    15792    16749     +957     
============================================
  Files          5922     6037     +115     
  Lines        533165   542924    +9759     
  Branches      65208    66482    +1274     
============================================
+ Hits          94242    98292    +4050     
- Misses       428276   433584    +5308     
- Partials      10647    11048     +401     
Flag Coverage Δ
uitests 3.51% <ø> (-0.18%) ⬇️
unittests 19.26% <0.00%> (+0.51%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@winterhazel
Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@winterhazel 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.

@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 17998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants