- Search etcd logs (
/var/logs/pods/*etcd*/etcd/*
):
leader failed to send out heartbeat on time; took too long, leader is overloaded likely from slow disk
- Compactions greater than 100ms
grep -r "finished scheduled compaction" /var/log/pods/*etcd*/etcd/* | awk -F\" '$(NF-1) ~ /[0-9]s/ || $(NF-1) ~ /[1-9][0-9][0-9]/ {print $(NF-1);}' | sort -nr | head
- Consider if defragmentation is necessary which may reduce memory
usage of
kube-apiserver
and etcd
:
- Kubernetes
defragmentation documentation
- OpenShift
defragmentation documentation
Previous Section (Kubernetes Basics Recipe) |
Next Section (Kubernetes Modify Container Command) |
Back to Table of Contents