From 34105a6db87bdd78e1fd07c50db3f8b340b15b5d Mon Sep 17 00:00:00 2001 From: Kevin Minehart Date: Thu, 11 Mar 2021 15:45:16 -0600 Subject: [PATCH] Docs: additional caching documentation (#31925) * Update query-caching.md * Update enterprise-configuration.md Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> --- docs/sources/enterprise/enterprise-configuration.md | 6 ++++++ docs/sources/enterprise/query-caching.md | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/docs/sources/enterprise/enterprise-configuration.md b/docs/sources/enterprise/enterprise-configuration.md index 98d4ff00ad2..792bbbcffd6 100644 --- a/docs/sources/enterprise/enterprise-configuration.md +++ b/docs/sources/enterprise/enterprise-configuration.md @@ -345,3 +345,9 @@ Setting 'enabled' to true enables caching datasource queries for all data source ### ttl The default TTL (time to live) if no other TTL is available. + +## [caching.memory] + +### gc_interval + +When storing cache data in-memory, this setting defines how often a background process cleans up stale data from the in-memory cache. More frequent "garbage collection" can keep memory usage from climbing but will increase CPU usage. diff --git a/docs/sources/enterprise/query-caching.md b/docs/sources/enterprise/query-caching.md index ae0f947092f..8e160e68612 100644 --- a/docs/sources/enterprise/query-caching.md +++ b/docs/sources/enterprise/query-caching.md @@ -22,3 +22,7 @@ Query caching currently works for all backend data sources. You can enable the c ## Enable query caching To enable and configure query caching, please refer the the [Query caching section of Enterprise Configuration]({{< relref "./enterprise-configuration.md#query-caching" >}}). + +## Sending a request without cache + +If the data source query request contains an `X-Cache-Skip` header, then Grafana skips the caching middleware, and does not search the cache for a response. This can be particularly useful when debugging data source queries using cURL.