Search code examples
time-seriesinfluxdb

InfluxDB - what's shard group duration


I have created one year policy in InfluxDB and shard group duration was automatically set to 168h.

This is how my retentions look like now:

Retentions

This is how my shards look like now:

Shards

What does it mean for my data that shard's end time is set one week ahead?


Solution

  • It means that all of data written to database st_test and retention policy a_year with a timestamp between 2016-10-03 and 2016-10-10 will be stored in shard 16.

    A retention policy is a container for shards. Each shard in the retention policy will have 1w worth of data. And after 1y that shard will expire and we will remove it.

    See the shard documentation for more information.