There are situations where high cpu and ram utilization is observed on Red Hat Virtualization Hosted Engine VM (RHVM). Performance of the RHV Hosted Engine is degraded because of lower memory or cpu resources. RHV Hosted Engine deployment is in use and live and now you need to increase the memory | cpu allocated to the hosted engine VM. Here we will learn How to increase memory/cpu of a Hosted Engine RHEV VM as per our requirement. Here we have two physical servers (hypervisors) which are running in HA.
Supported version
RHEV 3.6.5 and RHV 4.1.11
Increase memory or cpu of hosted Engine vm
We will bring down the hosted engine vm and edit the vm.conf configuration file on both hypervisors. Lets check the host on which hosted engine vm is currently running using below command.
# hosted-engine --vm-status
Set global maintenance mode from the hypervisor where the VM is currently running
# hosted-engine --set-maintenance --mode=global
Properly shutdown the engine VM
# hosted-engine --vm-shutdown
Note: Before proceeding, make sure the VM status is Down and not in “Powering Off state”
# hosted-engine --vm-status
Once hosted engine VM is in down state, edit /etc/ovirt-hosted-engine/vm.conf on both hypervisors. Change the memSize and smp values as per your requirement.
Start the Hosted Engine VM
# hosted-engine --vm-start
Remove the Global maintenance mode
hosted-engine --set-maintenance --mode=none
Conclusion
Thus, we have learn “How to increase memory or cpu of Hosted Engine VM” . Same can be verified from the RHV manager console. Even after making above changes and you still see 100% CPU usage on Hosted Engine web UI, than this is probably a bug. Please refer to Bugzilla for more information.