Hi,
I am new to influx and trying to work out out how retention and downsampling works.
- As far as I understand, retention enforcement service runs every 30 mins and will delete data older than retention.
- Downsampling is a task that aggregates data from main bucket to other bucket. Task is performed by the specified interval.
My question is, how do I make sure data is downsampled before it is deleted?
Example:.
Bucket_main: retention policy = 30d
Downsampling task:
option task = {name: “downsampling-test”, every: 1d}
data =
from(bucket: “Bucket_main”)
|> range(start: -14d)
|> aggregateWindow(every: 1d, fn: count, createEmpty: false)
…
Is not in theory possible that data will be deleted before downsampling task is run?
Thanks