Hello! Thank you for your work.
I would like to use the redistimeseries module to store data from my sensors for a fixed period of time, but I can not figure out the concept of the “retention time” parameter.
When I create a series and set the “retention time” to 6000, I expect the series to contain 6 seconds of data and take up some amount of memory.
But when I request information about the series, I see that it is much longer than 6 seconds.
In fact, the series is inflated until it reaches the memory limit in redis.conf.
I want to understand if there is a way to limit the memory consumption for a series.
I am using python 3.6 + redistimeseries-0.4 to add data to a series.
I am calling
rts.add (redis_key_test, timestamp, float_point, retention_msecs = 6000, labels = {‘time’: ‘series’})
``
every second expecting it to create a new series. Then I believe that new points will be added to this series.
I think I’m doing something wrong
ts_info.log (117 Bytes)
ts_range.log (12.3 KB)