Restmon - deployment: split pods by profile for large enterprise integrations.
search cancel

Restmon - deployment: split pods by profile for large enterprise integrations.

book

Article ID: 418569

calendar_today

Updated On:

Products

DX Operational Observability

Issue/Introduction

Single instance of Restmon is not enough getting Out-Of-Memory (OOM) . For multiple integrations additional instance is needed.

Cause

 DE651150

Resolution

To deploy multiple dx-restmon pods within a single namespace, follow these steps:

  1. Hostname Configuration: Replace ingress.hosts[0].host with the appropriate hostname.
  2. Hostname TLS Configuration: Replace ingress.tls[0].hosts[0] with the appropriate hostname. It should be same as ingress.hosts[0].host value.
  3. Memory Allocation: Adjust restmon.properties.maxMemoryLimit to set the maximum Java heap memory, aligning with the third-party data size processed by dx-restmon.
  4. Instance Naming : Update restmon.instanceName and nameOverride and serviceAccount name to match your profile configuration.

Below is the sample for deploying the 3 deployments in single namespace dx-restmon
 
helm install restmon-01 ./dx-restmon/ -f ./dx-restmon/values.yaml -n dx-restmon --set restmon.instanceName=restmon-01 --set nameOverride=odc-01 --set fullnameOverride=restmon-01 --set serviceAccount.name=restmon-01  --set ingress.hosts[0].host=restmon01.broadcom.com --set ingress.tls[0].hosts[0]=restmon01.your.domain  --set restmon.properties.minMemoryLimit=2G --set restmon.properties.maxMemoryLimit=4G


helm install restmon-02 ./dx-restmon/ -f ./dx-restmon/values.yaml -n dx-restmon --set restmon.instanceName=restmon-02 --set nameOverride=odc-02 --set fullnameOverride=restmon-02 --set serviceAccount.name=restmon-02  --set ingress.hosts[0].host=restmon01.broadcom.com --set ingress.tls[0].hosts[0]=restmon01.your.domain  --set restmon.properties.minMemoryLimit=2G --set restmon.properties.maxMemoryLimit=8G


helm install restmon-03 ./dx-restmon/ -f ./dx-restmon/values.yaml -n dx-restmon --set restmon.instanceName=restmon-03 --set nameOverride=odc-03 --set fullnameOverride=restmon-03 --set serviceAccount.name=restmon-03  --set ingress.hosts[0].host=restmon03.broadcom.com --set ingress.tls[0].hosts[0]=restmon03.your.domain  --set restmon.properties.minMemoryLimit=2G --set restmon.properties.maxMemoryLimit=12G

Note: The memory limit for the dx-restmon pod must be set higher than the Java heap size(-Xmx). It is recommended to configure the pod’s memory limit to be 30–50% higher than the maximum Java heap memory setting.