Configuring topology resources for production (IBM Cloud Pak for AIOps on Linux)
Learn how to configure the File observer for more than 600,000 resources.
Configuring the File observer
Additional configuration is required if you are using the File observer for more than 600,000 resources.
If IBM Sales representatives and Business Partners did not use the custom sizing tool to supply you with a custom profile ConfigMap to customize your deployment, then run the following command from a control plane node:
cat <<EOF | oc apply -f -
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/instance: aiops
app.kubernetes.io/managed-by: ibm-aiops-orchestrator
app.kubernetes.io/name: custom-sized-profiles
app.kubernetes.io/part-of: ibm-aiops
aiops-custom-size-profile-version: 4.2.0-2023
name: aiops-custom-size-profile
data:
# WARNING: Modifications to this ConfigMap may cause your AIOPs installation to become unstable.
profiles: |
generatedfor: HA
configmaps:
- name: aiops-topology-sizing
data:
asm: |
file-observer:
specs:
replicas: 1
containers:
file-observer:
resources:
requests:
cpu: 100m
memory: 750Mi
limits:
cpu: 1000m
memory: 1750Mi
env:
- name: JVM_ARGS
value: -Xms300M -Xmx1400M
EOF
If IBM Sales representatives and Business Partners used the custom sizing tool to supply you with a custom profile ConfigMap to customize your deployment, then use the following steps to adjust the value of JVM_ARGS for the File observer to -Xms300M -Xmx1400M:
-
Log in to a control plane node and then run the following command:
oc project aiops -
Run the following commands to edit your custom profile configmap:
CUSTOM_SIZE_PROFILE=$(oc get installation.orchestrator.aiops.ibm.com -n aiops -o jsonpath='{.items[0].status.customProfileConfigmap}') oc edit configmap "${CUSTOM_SIZE_PROFILE}" -n aiops -
Adjust the value of JVM_ARGS for the File observer to -Xms300M -Xmx1400M and save your changes.
Example excerpt:
- name: aiops-topology-sizing data: asm: | file-observer: specs: replicas: 1 containers: file-observer: resources: requests: cpu: 100m memory: 750Mi limits: cpu: 1000m memory: 1750Mi env: - name: JVM_ARGS value: -Xms300M -Xmx1400M