mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
CDC Log is a time series which uses time window compaction with some time window. Data is TTLed with the same value. This means that sstable won't become fully expired more often than once per time window duration. This patch sets expired_sstable_check_frequency_seconds compaction strategy parameter to half of the time window. Default value of this parameter is 10 minutes which in most cases won't be a good fit. By default, we set TTL to 24h and time window to 1h. This means that with a default value of the parameter we would be checking every 10 minutes but new expired sstable would appear only every 60 minutes. The parameter is set to half of the time window duration because it's the expected time we have to wait for sstable to become fully expired. Half of the time we will wait longer and half of the time we will wait shorter. Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com>