@@ -36,37 +36,43 @@ namespace NKikimr {
3636 // delete free ssts
3737 action = TStrategyDelSst (HullCtx, LevelSnap, Task).Select ();
3838 if (action != ActNothing) {
39+ ++HullCtx->CompactionStrategyGroup .BlobsDelSst ();
3940 return action;
4041 }
4142
4243 // try to promote ssts on higher levels w/o merging
4344 action = TStrategyPromoteSsts (HullCtx, Params.Boundaries , LevelSnap, Task).Select ();
4445 if (action != ActNothing) {
46+ ++HullCtx->CompactionStrategyGroup .BlobsPromoteSsts ();
4547 return action;
4648 }
4749
4850 // compact explicitly defined SST's, if set
4951 action = TStrategyExplicit (HullCtx, Params, LevelSnap, Task).Select ();
5052 if (action != ActNothing) {
53+ ++HullCtx->CompactionStrategyGroup .BlobsExplicit ();
5154 return action;
5255 }
5356
5457 // try to find what to compact based on levels balance
5558 action = TStrategyBalance (HullCtx, Params, LevelSnap, Task).Select ();
5659 if (action != ActNothing) {
60+ ++HullCtx->CompactionStrategyGroup .BlobsBalance ();
5761 return action;
5862 }
5963
6064 // try to find what to compact base on storage consumption
6165 action = TStrategyFreeSpace (HullCtx, LevelSnap, Task).Select ();
6266 if (action != ActNothing) {
67+ ++HullCtx->CompactionStrategyGroup .BlobsFreeSpace ();
6368 return action;
6469 }
6570
6671 // try to squeeze if required
6772 if (Params.SqueezeBefore ) {
6873 action = TStrategySqueeze (HullCtx, LevelSnap, Task, Params.SqueezeBefore ).Select ();
6974 if (action != ActNothing) {
75+ ++HullCtx->CompactionStrategyGroup .BlobsSqueeze ();
7076 return action;
7177 }
7278 }
@@ -89,12 +95,14 @@ namespace NKikimr {
8995 // try to promote ssts on higher levels w/o merging
9096 action = TStrategyPromoteSsts (HullCtx, Params.Boundaries , LevelSnap, Task).Select ();
9197 if (action != ActNothing) {
98+ ++HullCtx->CompactionStrategyGroup .BlocksPromoteSsts ();
9299 return action;
93100 }
94101
95102 // try to find what to compact based on levels balance
96103 action = TStrategyBalance (HullCtx, Params, LevelSnap, Task).Select ();
97104 if (action != ActNothing) {
105+ ++HullCtx->CompactionStrategyGroup .BlocksBalance ();
98106 return action;
99107 }
100108
@@ -117,12 +125,14 @@ namespace NKikimr {
117125 // try to promote ssts on higher levels w/o merging
118126 action = TStrategyPromoteSsts (HullCtx, Params.Boundaries , LevelSnap, Task).Select ();
119127 if (action != ActNothing) {
128+ ++HullCtx->CompactionStrategyGroup .BarriersPromoteSsts ();
120129 return action;
121130 }
122131
123132 // try to find what to compact based on levels balance
124133 action = TStrategyBalance (HullCtx, Params, LevelSnap, Task).Select ();
125134 if (action != ActNothing) {
135+ ++HullCtx->CompactionStrategyGroup .BarriersBalance ();
126136 return action;
127137 }
128138
0 commit comments