Change Component Resource Limit

To know realtime resource usage on pulse server run following command to understand resource bottlenecks or consumption by live containers:

Bash
Copy

Memory Limit

Teams can run accelo admin makeconfig command for given service having high resource usage and modify below memory (bytes) changes as per requested limit on service yml.

Bash
Copy

CPU Limit

From the official Docker documentation link, decide what options are required to limit the CPU usage and calculate the numbers for each option.

accelo binary doesn’t use the exact keys from the Docker official documentation. Use the below table to refer the exact keys that accelo uses for each key.

Docker Officialaccelo specification
--cpu-periodcpuPeriod
--cpu-quotacpuQuota
--cpuscpus
--cpuset-cpuscpusetCPUs
--cpu-sharescpuShares

Example: Add the CPU limit parameters to the ad-db service

  1. Generate the ad-core.yml file if it’s NOT generated already. If it’s already exists, proceed to the next step.
Bash
Copy
  1. Edit the above file at path on section ad-db , look for opts property inside the yaml, if not already present, Add a new properties nested inside the opts property with the desired number of CPU as a value as shown below, limiting to 8 cores:
Bash
Copy
  1. The same way if you require, you can add the other parameters like cpuShares etc, as listed in the previous section reference table.
  2. Make sure to use “spaces“ for indentation and NOT “tabs“. As “tabs“ won’t play well with YAML files. Save, exit the file and restart ad-db container
Bash
Copy
  1. Validate cpu utilisation using command:
Bash
Copy

To modify the JVM memory of Elastic container, create ad-logsearch.yml by running below command:

Bash
Copy
  • Add property ES_JAVA_OPTS=-Xmx<VALUE>g -Xms<VALUE>g under ad-elastic environment section, save the file and restart ad-elastic container
Bash
Copy

Modify JVM memory of Logstash

To modify the JVM memory of Logstash container, create ad-logsearch.yml by running below command:

Bash
Copy
  • Add property LS_JAVA_OPTS=-Xmx<VALUE>g -Xms<VALUE>g under ad-logstash environment section, save the file and restart ad-logstash container
Bash
Copy

Modify JVM memory of FS Analytics

To modify the JVM memory of FS Analytics V2 container, create ad-fsanalyticsv2-connector.yml by running below command:

Bash
Copy
  • Update property JAVA_OPTS=-XX:+UseG1GC -XX:+UseStringDeduplication -Xms<VALUE>g -Xmx<VALUE>g, here value will be equivalent to 4 times the FS Image size, save the file and restart ad-fsanalyticsv2-connector:
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard