Is your feature request related to a problem? Please describe
VictoriaLogs already supports fixed retention via retentionPeriod and size-based retention via retention.maxDiskSpaceUsageBytes.
However, there is no built-in way to let the system react at runtime when the mounted disk usage percentage (e.g., ≥ 80 %) is reached. This can lead to unplanned disk-full situations or require manual intervention to lower retention.
Describe the solution you'd like
Introduce a new (optional) flag, e.g.
-retention.maxDiskUsagePercent=80
When the current disk-usage percentage of the volume that holds the data directory reaches the configured threshold:VictoriaLogs should automatically reduce the effective retention (similar to what it already does when maxDiskSpaceUsageBytes is exceeded).
Describe alternatives you've considered
No response
Additional information
No response
Is your feature request related to a problem? Please describe
VictoriaLogs already supports fixed retention via retentionPeriod and size-based retention via retention.maxDiskSpaceUsageBytes.
However, there is no built-in way to let the system react at runtime when the mounted disk usage percentage (e.g., ≥ 80 %) is reached. This can lead to unplanned disk-full situations or require manual intervention to lower retention.
Describe the solution you'd like
Introduce a new (optional) flag, e.g.
-retention.maxDiskUsagePercent=80
When the current disk-usage percentage of the volume that holds the data directory reaches the configured threshold:VictoriaLogs should automatically reduce the effective retention (similar to what it already does when maxDiskSpaceUsageBytes is exceeded).
Describe alternatives you've considered
No response
Additional information
No response