cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

KVM automatically adds ballooning

Open div8cn opened this issue 3 years ago • 1 comments

ISSUE TYPE
  • Improvement Request
SUMMARY

By default ,we cannot get the memory usage of vm through libvirt;

Through analysis, it is found that the reason is that we did not add memballoon correctly in kvm;

When the mem.overprovisioning.factor of the cluster <= 1.0, kvm will generate the following memballoon When the mem.overprovisioning.factor of the cluster is > 1.0, kvm will generate the following memballoon

So when memballoon.model=none, we can't get the memory usage of the vm through dommemstat (assuming they all have qga installed correctly)

I wonder if we can set memballoon to virtio under any circumstances, and configure period=10 to let it automatically count the latest memory consumption.

In this way, we can use third-party tools to monitor the resource usage of the vm, making up for the regret that cloudstack cannot view the historical consumption of vm resources!

div8cn avatar Mar 11 '22 09:03 div8cn

Hi @nvazquez @div8cn ,Am intrested in contributing to solve this issue,can you please assign me this,It would be helpful. Thank you

ravitejasssihl avatar Sep 10 '22 06:09 ravitejasssihl

@ravitejasssihl get comfortable with the code base (for instance going through https://github.com/shapeblue/hackerbook) and when you feel comfortable submit a PR.

DaanHoogland avatar Sep 26 '22 12:09 DaanHoogland

@DaanHoogland a PR has addressed it: https://github.com/apache/cloudstack/pull/6358

weizhouapache avatar Sep 26 '22 12:09 weizhouapache

ok, linking it

DaanHoogland avatar Sep 26 '22 12:09 DaanHoogland