Customers may want to forcefully terminate/kill a pod rather than wait until the pod self-destructs. A typical scenario where this can happen is terminating pods showing high CPU utilization resulting in application performance degradation.
In order to forcefully kill pods, it is necessary to scale down the application in order to forcefully terminate the pod. Alternatively, you can also reach out to EY Support by submitting a request to get the pod removed/deleted immediately.
Follow these steps to scale down the application to trigger a forceful termination of the runaway pod:
- Confirm if autoscale is enabled:
eyk autoscale:list -a sfsproduction === sfsproduction Autoscale --- web: Min Replicas: 3 Max Replicas: 10 CPU: 200%
- Disable autoscale if it was enabled:
eyk autoscale:unset -a sfsproduction
- Then scale down
eyk ps:scale web=xxx -a sfsproduction
- When the app has been scaled and the pod deleted, you can increase the
ps:scaleand set autoscale again:
eyk autoscale:set web --min=xxx --max=xxx --cpu-percent=xxx -a sfsproduction
kill -9 PID.