Determining the largest keys in etcd/clarity around versions #16244
-
I'm trying to figure out what is taking the most size in our k8 etcd databases. I calculate by grabbing a key, calculating the length of the value portion of key and multiplying it by the version.
in our cluster has How can I get the real space of a key? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @ns-rlewkowicz - Thanks for your question. I would start with the "what occupies the most space" section of this blog post from earlier this year: https://etcd.io/blog/2023/how_to_debug_large_db_size_issue/#what-data-occupies-most-of-the-storage-space |
Beta Was this translation helpful? Give feedback.
Ok if we think it's the latter things get a bit tricky. I'll refer you some great advice from the AWS EKS etcd team here: https://aws.amazon.com/blogs/containers/managing-etcd-database-size-on-amazon-eks-clusters/
Long story short: