Extra shared memory can be configured using the UI or the CLI.
This is an SE group-level property and is a shared resource across all virtual services on the Service engine.
In NSX Advanced Load Balancer, the configuration memory consists of two parts:
Heap: The memory allocation is dynamic. When a program needs memory at runtime (dynamically), it requests space from the heap. This memory is allocated and deallocated as needed during the program's execution in general.
Shared: The memory allocation is fixed, and as the name implies, shared among multiple processes.
The shared memory can be adjusted through the extra extra_shared_config_memory knob under service engine group property which is shared resource across all virtual services on the Service engine.
Allocating
extra_shared_config_memory
will reduce the memory available to the Service Engine for use by the connection table, buffers, and caching. This must be taken into account when determining the total memory allocated to the Service Engine.This property takes effect only on SE boot up. Ensure that you reboot or restart the SE after configuring extra shared memory.
Configuring Using the UI
From the NSX Advanced Load Balancer UI,
Navigate to
.Under the Resources tab, select Enable Host Geolocation Profile. When this option is not selected the value of Extra Shared Config Memory is 0. On enabling this option, by default, the value of Extra Shared Config Memory is set to 2000 MB. However, this may not be sufficient depending on the use case.
Specify the Extra Shared Config Memory value, as required.
Click Save.
Reboot the SE for the configuration to take effect.
Configuring Using the CLI
To configure extra shared memory, use the CLI configuration shown below:
[admin:ctrl]: > configure serviceenginegroup demo_SEgroup [admin:ctrl]: serviceenginegroup> extra_shared_config_memory 3600 Overwriting the previously entered value for extra_shared_config_memory [admin:ctrl]: serviceenginegroup> save
Reboot the SE for the configuration to take effect.