@@ -36,37 +36,43 @@ namespace NKikimr {
36
36
// delete free ssts
37
37
action = TStrategyDelSst (HullCtx, LevelSnap, Task).Select ();
38
38
if (action != ActNothing) {
39
+ ++HullCtx->CompactionStrategyGroup .BlobsDelSst ();
39
40
return action;
40
41
}
41
42
42
43
// try to promote ssts on higher levels w/o merging
43
44
action = TStrategyPromoteSsts (HullCtx, Params.Boundaries , LevelSnap, Task).Select ();
44
45
if (action != ActNothing) {
46
+ ++HullCtx->CompactionStrategyGroup .BlobsPromoteSsts ();
45
47
return action;
46
48
}
47
49
48
50
// compact explicitly defined SST's, if set
49
51
action = TStrategyExplicit (HullCtx, Params, LevelSnap, Task).Select ();
50
52
if (action != ActNothing) {
53
+ ++HullCtx->CompactionStrategyGroup .BlobsExplicit ();
51
54
return action;
52
55
}
53
56
54
57
// try to find what to compact based on levels balance
55
58
action = TStrategyBalance (HullCtx, Params, LevelSnap, Task).Select ();
56
59
if (action != ActNothing) {
60
+ ++HullCtx->CompactionStrategyGroup .BlobsBalance ();
57
61
return action;
58
62
}
59
63
60
64
// try to find what to compact base on storage consumption
61
65
action = TStrategyFreeSpace (HullCtx, LevelSnap, Task).Select ();
62
66
if (action != ActNothing) {
67
+ ++HullCtx->CompactionStrategyGroup .BlobsFreeSpace ();
63
68
return action;
64
69
}
65
70
66
71
// try to squeeze if required
67
72
if (Params.SqueezeBefore ) {
68
73
action = TStrategySqueeze (HullCtx, LevelSnap, Task, Params.SqueezeBefore ).Select ();
69
74
if (action != ActNothing) {
75
+ ++HullCtx->CompactionStrategyGroup .BlobsSqueeze ();
70
76
return action;
71
77
}
72
78
}
@@ -89,12 +95,14 @@ namespace NKikimr {
89
95
// try to promote ssts on higher levels w/o merging
90
96
action = TStrategyPromoteSsts (HullCtx, Params.Boundaries , LevelSnap, Task).Select ();
91
97
if (action != ActNothing) {
98
+ ++HullCtx->CompactionStrategyGroup .BlocksPromoteSsts ();
92
99
return action;
93
100
}
94
101
95
102
// try to find what to compact based on levels balance
96
103
action = TStrategyBalance (HullCtx, Params, LevelSnap, Task).Select ();
97
104
if (action != ActNothing) {
105
+ ++HullCtx->CompactionStrategyGroup .BlocksBalance ();
98
106
return action;
99
107
}
100
108
@@ -117,12 +125,14 @@ namespace NKikimr {
117
125
// try to promote ssts on higher levels w/o merging
118
126
action = TStrategyPromoteSsts (HullCtx, Params.Boundaries , LevelSnap, Task).Select ();
119
127
if (action != ActNothing) {
128
+ ++HullCtx->CompactionStrategyGroup .BarriersPromoteSsts ();
120
129
return action;
121
130
}
122
131
123
132
// try to find what to compact based on levels balance
124
133
action = TStrategyBalance (HullCtx, Params, LevelSnap, Task).Select ();
125
134
if (action != ActNothing) {
135
+ ++HullCtx->CompactionStrategyGroup .BarriersBalance ();
126
136
return action;
127
137
}
128
138
0 commit comments