-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Compaction
-
3
-
StorEng - Defined Pipeline
Find below an example of stats generated by background compaction:
"background-compact": { "background compact failed calls": 0, "background compact failed calls due to cache pressure": 0, "background compact interrupted": 0, "background compact moving average of bytes rewritten": 0, "background compact recovered bytes": 0, "background compact running": 1, "background compact skipped file as it is part of the exclude list": 0, "background compact skipped file as not meeting requirements for compaction": 140, "background compact successful calls": 14, "background compact timeout": 0, "number of files tracked by background compaction": 14 },
Something that is misleading is the background compact successful calls. This stats is incremented every time the compact method has been called successfully but it does not mean compaction has done anything - it simply means the code was executed gracefully. This can lead to misinterpretation and could be revisited.