cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Host memory stats are not updated

Open Rubueno opened this issue 2 years ago • 2 comments

ISSUE TYPE
  • Improvement Request
COMPONENT NAME
LibvirtComputingResource
CLOUDSTACK VERSION
>= 4.15

I think this issue present in any version, although I've not looked further than 4.15.

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

Host memory stats are not updated frequently, leading to (possible) overcommit issues when live migrating VMs to a host. A manual restart of cloudstack-agent does update the stats, although this is not a good solution.

STEPS TO REPRODUCE
- Use any KVM hypervisor
- In my case in agent.properties: host.reserved.mem.mb=65536
- Migrate VMs to it until you reach capacity
- It is possible to exceed the host reserved memory
EXPECTED RESULTS
There should always be RAM available of at least what is specified in agent.properties: host.reserved.mem.mb
ACTUAL RESULTS
CloudStack will commit 100% of the host's available RAM to instances

Rubueno avatar Aug 09 '22 18:08 Rubueno

Thanks for opening your first issue here! Be sure to follow the issue template!

boring-cyborg[bot] avatar Aug 09 '22 18:08 boring-cyborg[bot]

I have proposed a patch in https://github.com/apache/cloudstack/pull/6622

Rubueno avatar Aug 09 '22 18:08 Rubueno

Fixed with #6622

shwstppr avatar Aug 12 '22 11:08 shwstppr