Closed sgburtsev closed 5 days ago
After discussion with @psushin I changed the initial proposal in the watermarks calculation part. Now it looks like that:
storeLocation.LowWatermark = min(0.1 * storeLocation.Quota, 25GiB)
storeLocation.HighWatermark = storeLocation.LowWatermark / 2
storeLocation.DisableWritesWatermark = storeLocation.HighWatermark / 2
storeLocation.TrashCleanupWatermark = storeLocation.LowWatermark
with ability to provide your own LowWatermark. Such approach should work well in both small testing environments and production with high-capacity volumes .
regenerate yamls please so linter don't complain
I'm ok with this change.
regenerate yamls please so linter don't complain
Committed needed changes. Sorry for that.
I added two additional options for the store location. The first,
MaxTrashMilliseconds
, is intended to tune themax_trash_ttl
parameter of thestore_locations
config. By default YTsaurus uses 1 hour. The second one,Watermark
, is needed to adjust location watermarks. The operator uses this proportions to calculate them:While keeping this proportions, I wanted to change the initial percentage for
LowWatermark
, which was hard-coded. I am pretty sure there is a mistake in usingmin
function. Because ofmin
, it is impossible to use more than 5GiB asLowWatermark
. However, it makes more sense to use at least 5GiB of space asLowWatermark
. So I changed it tomax
. Also, I added into calculations the missing parameterTrashCleanupWatermark
. The final solution: