Configuring Watson OpenScale container timeouts
You might consider increasing the liveliness and readiness of probes timeouts for Kafka StatefulSet to prevent the storage from becoming slow, which affects tasks such as upgrades.
Procedure
To configure the Kafka container liveness and readiness probe timeouts, you must complete the
following steps:
- Log in to Red Hat OpenShift Container platform with the following
command:
oc login <OpenShift_URL>:<port> - Pause the Watson
OpenScale operator reconciliation of
the Watson
OpenScale custom
resource:
instanceProjectName='cpd-instance' oc patch WOService aiopenscale -n ${instanceProjectName} --type merge --patch '{"spec": {"ignoreForMaintenance": true}}'If you did not install IBM Cloud Pak for Data in the
cpd-instanceproject, specify theinstanceProjectName. - Customize the Kafka container liveness and readiness probe timeouts with the following
command:
oc patch WOServiceConfig aiopenscale -n ${instanceProjectName} --type merge --patch '{"spec": {"aios_kafka": {"liveness_probe": {"timeoutSeconds": "30", "failureThreshold": "20" }, "readiness_probe": {"timeoutSeconds": "30", "failureThreshold": "20" } } } }' - Resume the Watson
OpenScale operator reconciliation of
the Watson
OpenScale custom
resource.
oc patch WOService aiopenscale -n ${instanceProjectName} --type merge --patch '{"spec": {"ignoreForMaintenance": false}}' - Check the status of the reconciliation with the following
command:
oc get WOService aiopenscale -n ${instanceProjectName} -o jsonpath='{.status.wosStatus} {"\n"}'The status of the custom resources changes to
Completedwhen the reconciliation finishes successfully.