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:
  1. Log in to Red Hat OpenShift Container platform with the following command:
    oc login <OpenShift_URL>:<port>
  2. 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-instance project, specify the instanceProjectName.

  3. 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" } } } }'
  4. Resume the Watson OpenScale operator reconciliation of the Watson OpenScale custom resource.
    oc patch WOService aiopenscale -n ${instanceProjectName} --type merge --patch '{"spec": {"ignoreForMaintenance": false}}'
  5. 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 Completed when the reconciliation finishes successfully.