We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a952b94 commit 3f9bef7Copy full SHA for 3f9bef7
commands/retention.go
@@ -90,6 +90,8 @@ func runRetention(cmd *cobra.Command, args []string) error {
90
continue
91
}
92
93
+ logger.Info(fmt.Sprintf("Valid snapshot found index=%s", idx.Index))
94
+
95
indicesToDelete = append(indicesToDelete, idx)
96
97
@@ -132,6 +134,10 @@ func runRetention(cmd *cobra.Command, args []string) error {
132
134
133
135
136
logger.Info(fmt.Sprintf("Updated utilization utilization=%d", avgUtil))
137
138
+ if float64(avgUtil) <= threshold {
139
+ break
140
+ }
141
142
143
logger.Info(fmt.Sprintf("Retention completed finalUtilization=%d", avgUtil))
0 commit comments