I have a 4vcore 8gb nodes running a proprietary stack along with percona xtraDB cluster. however occasionally i get pods evicted message. describing the pod gives me PidPressure. there is no limit requests on the proprietary stack and its hardly doing anything now. is there a way to debug this . i can understand if it doesnt have memory or disk space . but PidPressure is triggered when the node runs out of process ids.
kubectl get events
LAST SEEN TYPE REASON OBJECT MESSAGE
11m Warning Evicted pod/dev-pxc-db-pxc-2 The node was low on resource: pids.
11m Normal Killing pod/dev-pxc-db-pxc-2 Stopping container logs
11m Normal Killing pod/dev-pxc-db-pxc-2 Stopping container pxc
11m Normal Killing pod/dev-pxc-db-pxc-2 Stopping container logrotate
11m Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
11m Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
11m Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
11m Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
11m Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
11m Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
11m Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
11m Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
11m Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
11m Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
11m Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
11m Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
11m Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
11m Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
11m Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
11m Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
6m10s Warning FailedScheduling pod/dev-pxc-db-pxc-2 0/3 nodes are available: 1 node(s) had taint {node.kubernetes.io/pid-pressure: }, that the pod didn't tolerate, 2 Insufficient cpu, 2 Insufficient memory.
10m Normal NotTriggerScaleUp pod/dev-pxc-db-pxc-2 pod didn't trigger scale-up:
5m59s Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
5m56s Normal SuccessfulAttachVolume pod/dev-pxc-db-pxc-2 AttachVolume.Attach succeeded for volume "pvc-2ba1783f-eccb-4b97-9dbc-8327e15561aa"
5m42s Normal Pulling pod/dev-pxc-db-pxc-2 Pulling image "percona/percona-xtradb-cluster-operator:1.7.0"
5m42s Normal Pulled pod/dev-pxc-db-pxc-2 Successfully pulled image "percona/percona-xtradb-cluster-operator:1.7.0" in 157.179349ms
5m42s Normal Created pod/dev-pxc-db-pxc-2 Created container pxc-init
5m41s Normal Started pod/dev-pxc-db-pxc-2 Started container pxc-init
5m41s Normal Pulling pod/dev-pxc-db-pxc-2 Pulling image "percona/percona-xtradb-cluster-operator:1.7.0-logcollector"
5m41s Normal Pulled pod/dev-pxc-db-pxc-2 Successfully pulled image "percona/percona-xtradb-cluster-operator:1.7.0-logcollector" in 158.567761ms
5m40s Normal Created pod/dev-pxc-db-pxc-2 Created container logs
5m40s Normal Started pod/dev-pxc-db-pxc-2 Started container logs
5m40s Normal Pulling pod/dev-pxc-db-pxc-2 Pulling image "percona/percona-xtradb-cluster-operator:1.7.0-logcollector"
5m40s Normal Pulled pod/dev-pxc-db-pxc-2 Successfully pulled image "percona/percona-xtradb-cluster-operator:1.7.0-logcollector" in 158.177134ms
5m40s Normal Created pod/dev-pxc-db-pxc-2 Created container logrotate
5m40s Normal Started pod/dev-pxc-db-pxc-2 Started container logrotate
5m40s Normal Pulling pod/dev-pxc-db-pxc-2 Pulling image "percona/percona-xtradb-cluster:5.7.32-31.47"
5m40s Normal Pulled pod/dev-pxc-db-pxc-2 Successfully pulled image "percona/percona-xtradb-cluster:5.7.32-31.47" in 172.939112ms
5m40s Normal Created pod/dev-pxc-db-pxc-2 Created container pxc
5m39s Normal Started pod/dev-pxc-db-pxc-2 Started container pxc
5m38s Warning Evicted pod/dev-pxc-db-pxc-2 The node was low on resource: pids.
5m36s Normal Killing pod/dev-pxc-db-pxc-2 Stopping container logs
5m36s Normal Killing pod/dev-pxc-db-pxc-2 Stopping container logrotate
5m36s Normal Killing pod/dev-pxc-db-pxc-2 Stopping container pxc
5m36s Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
5m36s Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
5m36s Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
5m36s Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
5m35s Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
5m35s Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
5m34s Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
5m34s Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
5m32s Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
5m32s Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
5m31s Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
5m31s Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
5m30s Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
5m30s Warning Evicted pod/dev-pxc-db-pxc-2 The node had condition: [PIDPressure].
28s Warning FailedScheduling pod/dev-pxc-db-pxc-2 0/3 nodes are available: 1 node(s) had taint {node.kubernetes.io/pid-pressure: }, that the pod didn't tolerate, 2 Insufficient cpu, 2 Insufficient memory.
5m12s Normal NotTriggerScaleUp pod/dev-pxc-db-pxc-2 pod didn't trigger scale-up:
18s Normal Scheduled pod/dev-pxc-db-pxc-2 Successfully assigned default/dev-pxc-db-pxc-2 to k8s-8c8qj
15s Normal SuccessfulAttachVolume pod/dev-pxc-db-pxc-2 AttachVolume.Attach succeeded for volume "pvc-2ba1783f-eccb-4b97-9dbc-8327e15561aa"
0s Normal Pulling pod/dev-pxc-db-pxc-2 Pulling image "percona/percona-xtradb-cluster-operator:1.7.0"
0s Normal Pulled pod/dev-pxc-db-pxc-2 Successfully pulled image "percona/percona-xtradb-cluster-operator:1.7.0" in 190.749006ms
0s Normal Created pod/dev-pxc-db-pxc-2 Created container pxc-init
11m Normal SuccessfulCreate statefulset/dev-pxc-db-pxc create Pod dev-pxc-db-pxc-2 in StatefulSet dev-pxc-db-pxc successful
11m Normal SuccessfulDelete statefulset/dev-pxc-db-pxc delete Pod dev-pxc-db-pxc-2 in StatefulSet dev-pxc-db-pxc successful
5m37s Warning RecreatingFailedPod statefulset/dev-pxc-db-pxc StatefulSet default/dev-pxc-db-pxc is recreating failed Pod dev-pxc-db-pxc-2
11m Warning FailedCreate statefulset/dev-pxc-db-pxc create Pod dev-pxc-db-pxc-2 in StatefulSet dev-pxc-db-pxc failed error: The POST operation against Pod could not be completed at this time, please try again.
28s Normal NodeHasSufficientPID node/k8s-8c8qj Node k8s-8c8qj status is now: NodeHasSufficientPID
5m38s Warning EvictionThresholdMet node/k8s-8c8qj Attempting to reclaim pids
5m29s Normal NodeHasInsufficientPID node/k8s-8c8qj Node k8s-8c8qj status is now: NodeHasInsufficientPID