diff --git a/docs/configuration/README.md b/docs/configuration/README.md index 114024282a91..035a5d203a49 100644 --- a/docs/configuration/README.md +++ b/docs/configuration/README.md @@ -643,7 +643,9 @@ to wait before saving them to the backing store. # disabled. [cache_lookups_older_than: ] -# Limit how long back data can be queries. Default is disabled. +# Limit how long back data can be queried. Default is disabled. +# This should always be set to a value less than or equal to +# what is set in `table_manager.retention_period`. [max_look_back_period: ] ``` diff --git a/docs/operations/storage/retention.md b/docs/operations/storage/retention.md index 9c0c3c19954a..c84b463ab878 100644 --- a/docs/operations/storage/retention.md +++ b/docs/operations/storage/retention.md @@ -15,6 +15,10 @@ can be parsed using Go's [time.Duration](https://golang.org/pkg/time/#ParseDurat block. See the [Table Manager](./table-manager.md#retention) documentation for more information. +> **NOTE**: To avoid querying of data beyond the retention period, +`max_look_back_period` config in [`chunk_store_config`](../../configuration/README.md#chunk_store_config) must be set to a value less than or equal to +what is set in `table_manager.retention_period`. + When using S3 or GCS, the bucket storing the chunks needs to have the expiry policy set correctly. For more details check [S3's documentation](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) @@ -57,6 +61,9 @@ storage_config: gcs: bucket_name: GCS_BUCKET_NAME +chunk_store_config: + max_look_back_period: 720h + table_manager: retention_deletes_enabled: true retention_period: 720h