Restarting analytics pods

How to restart the analytics pods in your API Connect deployment.

About this task

Certain scenarios might require you to restart your analytics subsystem pods. To restart your analytics pods, follow the steps in this topic.

Procedure

  1. VMware users only: Log in to your analytics VM and switch to the root user:
    ssh apicadm@<vm hostname>
    sudo -i
  2. Restart the analytics pods.
    • Kubernetes and OpenShift: Run the following command:
      kubectl -n <namespace> delete pod -l app.kubernetes.io/instance=<analytics CR>
    • VMware: Run the following command:
      kubectl delete pods --all
  3. Verify that all analytics pods restart successfully:
    kubectl -n <namespace> get pods
    where <namespace> is the namespace where the analytics subsystem is installed. VMware users can omit -n <namespace>.