From 83e5ab9b24f9c5ff478e8dc082107b88eea96cf2 Mon Sep 17 00:00:00 2001 From: torstenwilms <56676534+torstenwilms@users.noreply.github.com> Date: Fri, 8 Dec 2023 09:39:57 +0100 Subject: [PATCH] Update container.md --- container.md | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/container.md b/container.md index 675a0b3..7b6b28d 100644 --- a/container.md +++ b/container.md @@ -74,3 +74,116 @@ Most of the caches can be modified by editing the custom_xml file: https://www.ibm.com/docs/en/cloud-paks/cp-biz-automation/23.0.1?topic=customizing-business-automation-workflow-properties +### Tune for High Workloads above Large pattern size + +For very large workloads exceeding "Large" tuning might be required. This tuning depends on indiviual workloads. For thousands of concurrent users we applied the following tuning steps for Workflow Process Service. This is a sample: + +#### WFPS resource + +Increase WFPS resources + + * spec.database.managed.managementState=Unmanaged (this allows to modify the Postgres cluster resources) + * spec.node.replicas=8 + * spec.node.resources.limits.cpu=6 + * spec.node.resources.limits.memory=4Gi + * database.client.maxConnectionPoolSize=400 +  +#### Cluster resource (Postgres DB) + +Increase database ressources + + * spec.postgresql.parameters.max_connections=1000 + * spec.postgresql.parameters.max_prepared_transactions=1000 + * spec.resources.limits.cpu=32 + * spec.resources.limits.memory=32Gi + +#### Postgres DB filesystem +Make sure the postgres filesystem resides on fast disks. + +#### Zen usermanagement pods + +Increase Zen resources required for user session validation. +``` +oc scale deployment usermgmt --replicas=12 +``` + +#### Disabling Notifications (optional) + +Reduces JMS load and CPU usage on wfps-pod-0. + +Edit ConfigMap wfpsruntime-sample-liberty-dynamic-config: + +lombardi-empty.xml: +``` + + + + + + + + + + + + + + + + + + + + + +``` + +#### Modifying GroupSync interval or diabling GroupSync + +Reduce number of SCIM calls that might respond slow under very high load and causing long end user response times. + +Edit ConfigMap wfpsruntime-sample-liberty-dynamic-config to disable GroupSync: + +lombardi-empty.xml: +``` + + + + + + + -1 + + + + + + +``` + +#### Tune IAM + +Eliminate SCIM response time peaks + +Increase all caches and TTLs by factor 10: + +Edit ConfigMap ibm-iam-bindinfo-platform-auth-idp +Edit ConfigMap platform-auth-idp + +#### Tune Zen + +Reduce response time peaks: + +Scale Zen-audit to 8 replicas + +#### Increase coreThreads (depends on CP4BA version) + +Edit configmap wfpsruntime-sample-liberty-dynamic-config: +``` + + + + + +``` +