I tried this: The domain XML needs to say what is the current allocation of vcpus or memory and what is the max. value: <memory unit='KiB'>8392704</memory> <currentMemory unit='KiB'>4194304</currentMemory> <vcpu placement='static' current='2'>4</vcpu>
Then, using virsh I could dynamically scale/up/down the vcpus and memory: virsh setmem <domain> 6G virsh setvcpus <domain> 4 This changed the value in domain XML for the currentMemory and current value in vcpu xml node. The current scaling feature allows changing a compute/service offering. Using virsh, we can set the max cpus and memory (using setmaxmem and setvcpus), so the implementation can run the equivalent in domain xml edit while applying the changes comput offering. I don't think any change in offerings or db/schema is necessary. Regards, Rohit Yadav Software Architect, ShapeBlue https://www.shapeblue.com ________________________________ From: Wei ZHOU <ustcweiz...@gmail.com> Sent: Thursday, August 15, 2019 16:37 To: dev@cloudstack.apache.org <dev@cloudstack.apache.org> Subject: Re: Dynamic scaling support for KVM +1 in 4.14. -Wei Fariborz Navidan <mdvlinqu...@gmail.com> 于2019年8月8日周四 下午2:27写道: > Hello Devs, > > Since long time ago libvirt supports live horizental scaling of VMs. Do you > intend for ACS 4.13 to support dynamic scaling of KVM VMs? > > TIA > rohit.ya...@shapeblue.com www.shapeblue.com Amadeus House, Floral Street, London WC2E 9DPUK @shapeblue