Updating ephemeral storage for Db2 REST

Your Db2 REST pod might be evicted due to running out of ephemeral storage.

Before you begin

Confirm that you need to increase the ephemeral storage allocated to your deployment.
  1. Run the following command to retrieve your deployment status:
    oc get po | grep rest
    The command will return output similar to the following example:
    c-db2wh-1652801291003125-rest-7d89cc78b6-vhgpr     1/1     Running     0          29h

    c-db2wh-1652801291003125-rest-8555799c6-6k5f5      0/1     Evicted     0          9d

    c-db2wh-1652801291003125-rest-8555799c6-7fmgz      0/1     Evicted     0          14d

    c-db2wh-1652801291003125-rest-8555799c6-qgzfz      0/1     Evicted     0
  2. Run the following command for your evicted pod:
    oc desribe po <evitedPodName>   #Update with your evicted pod name
    The command will return output similar to the following example:
    Status:         Failed

    Reason:         Evicted

    Message:        Pod ephemeral local storage usage exceeds the total limit of containers 5Mi.
    Status, Reason, and Message values similar to the above example indicate insufficient storage for the Db2 REST pod.

About this task

To update the ephemeral storage, you need to retrieve your Db2 REST deployment.

Procedure

  1. Run the following command you retrieve your deployments:
    oc get deployments | grep rest
    Output will appear similar to the following example:
    c-db2wh-1652801291003125-rest 1/1 1 1 18d
  2. Run the following command to edit your deployment. Replace the REST deployment name with the value found from the previous step.
    oc edit deployment <rest-deployment-name>
  3. In the resources > limits field, change the value associated with ephemeral storage.
             resources:

              limits:

                cpu: 500m

                ephemeral-storage: 100Mi

                memory: 6Gi
  4. Save your changes and exit.
    The operator will reconcile and terminate the existing REST pod and create a new pod using the updated values.