Configuring topology resources for production (IBM Cloud Pak for AIOps on OpenShift)
Learn how to configure the File observer for more than 600,000 resources.
Ensure that you are logged in to your Red Hat OpenShift cluster with oc login
for any steps that use the Red Hat OpenShift command-line interface (CLI).
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:
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 your Red Hat OpenShift cluster's console, and then from the Project list, select the project (namespace) that IBM Cloud Pak for AIOps is deployed in.
-
Navigate to Workloads > ConfigMaps.
-
Select the name of your custom profile, usually aiops-custom-size-profile, and then click YAML to switch to the YAML view. Adjust the value of JVM_ARGS for the File observer to -Xms300M -Xmx1400M and then click Save.
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