-
Bug report criteria
What happened?Hello. I was testing breaching quota limit and recovery in etcd 3.5.9 3-node cluster. It seems to recover a compact and defrag are both needed. Though the documentation states "internal fragmentation is space that is free to use by the backend", which suggests that just compacting should be required, if fragmented space is 'free to use'. So is the behavior incorrect, or the documentation, or my understanding of it (very possible)? What did you expect to happen?I expected to only have delete some keys, compact and disarm alarms to get back to a read-write state, NOT defrag. How can we reproduce it (as minimally and precisely as possible)?My steps:
If I insert a defrag step between 4 and 5 this problem doesn't happen. Anything else we need to know?Test machine is not easily accessible to paste exact log outputs, but I can jump through some hoops if it becomes really necessary to make it happen. Etcd version (please run commands below)Test machine is not easily accessible to paste exact log outputs, but I can jump through some hoops if it becomes really necessary to make it happen. Etcd configuration (command line flags or environment variables)Test machine is not easily accessible to paste exact log outputs, but I can jump through some hoops if it becomes really necessary to make it happen. Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)Test machine is not easily accessible to paste exact log outputs, but I can jump through some hoops if it becomes really necessary to make it happen. Relevant log outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey @ee-github - My understanding is that recovering from an exceeded space quote should require a defragment.
The key fragments of that paragraph to me are "but still consumes storage space" and "Fragmented space is available for use by etcd but unavailable to the host filesystem" So if we read a bit further down we highlight that defragmenting is mandatory in relation to recovering from exceeding a storage space quota.
|
Beta Was this translation helpful? Give feedback.
-
Thank you confirming. That certainly lines up with my observations/testing. I'm left with one doubt then: Does this mean that EVERY instance of etcd MUST employ a regular defrag schedule? Because as I understand it, key/value history always grows, and compacting/auto-compacting is not sufficient to avoid a NOSPACE condition eventually? |
Beta Was this translation helpful? Give feedback.
Hey @ee-github - My understanding is that recovering from an exceeded space quote should require a defragment.
The key fragments of that paragraph to me are "but still consumes storage s…