InfluxDB - what's shard group duration

Slaven Tomac picture Slaven Tomac · Oct 5, 2016 · Viewed 10.6k times · Source

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?

Answer

Michael Desa picture Michael Desa · Oct 6, 2016

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.