If you have under-allocated your machine, the processes get stopped due to high memory consumption. In such a case, you must increase the memory allocated to the Container. This section explains the steps to allocate more memory to the virtual machine hosting the Controller.
The following are the steps to increase memory of the Controller for a bare metal deployment of NSX Advanced Load Balancer.
Prerequisites
Bare metal set up with the Controller running in a CentOS VM (v 7.6) on VMWare.
Procedure
Results
After restarting, the controller will be updated with the new memory allocated.
Ensure that you have added the memory to the host machine before adding it to the controller. When Service Engines try to come up on hosts with their memory fragmented because of a large memory allocations and frees, there can be an assert due to the unavailability of enough contiguous memory blocks. The Service Engine auto-recovery code reboots the host to recover automatically from the situation.
Example
Before increasing the disk size:
After increasing the disk size:
You can increase the disk space by changing the DISK_GB metric in the unit file. You can also change the number of CPU cores.
The Controller container reads the memory from NUM_MEMG parameter from avicontroller.service file. The location is as follows: /etc/systemd/system).