Replies: 4 comments 8 replies
-
Beta Was this translation helpful? Give feedback.
-
Can you clarify the
Please also manually verify the total db size by running command something like below, and check the size of the file |
Beta Was this translation helpful? Give feedback.
-
There is a behaviour change when allocating pages. Since a map is an unordered group of of elements, so there are some uncertainties which freelist block ( a span of continuous free pages) to allocate the pages from. To double check this, you can change the freelist type to
As long as it can stabelize eventually, then I don't think it's a big problem. You just need to deploy https://github.com/ahrtr/etcd-defrag in your environment. |
Beta Was this translation helpful? Give feedback.
-
|
Total space usage has remained stable for the past 9 hours after changing the flag --backend-bbolt-freelist-type=array, i.e., switching the freelist type from map to array on the specific node. This suggests that freelist-type=map may be the root cause of the abnormality we were observing. If I understand correctly, in etcd version 3.4.x, freelist-type=array is the default—am I right? As long as it can stabelize eventually, then I don't think it's a big problem. You just need to deploy https://github.com/ahrtr/etcd-defrag in your environment. It still hasn't stabilized. If it does not settle down soon, I am considering changing the flag I will deploy https://github.com/ahrtr/etcd-defrag on my cluster. However, running defragmentation on a live member blocks the system from reading and writing data while it rebuilds its state. Additionally, some threads mention encountering 5xx errors during the defrag operation. Using |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We recently upgraded our etcd cluster from v3.4 to v3.5.25. The cluster is stable and functioning correctly.
However, we observed that the DB TOTAL size gradually increases while the ACTUAL space remains relatively stable.
I suspect this behavior might be related to the freelist-type =
mapchange introduced in v3.5 (Issue #11258), but I would appreciate confirmation from the maintainers.Questions:
Beta Was this translation helpful? Give feedback.
All reactions