From c862952cb0cfea8b4e4f0607c53a1c4eb7d721fa Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Wed, 31 May 2023 11:08:18 +0200 Subject: [PATCH] docs: mention disk space requirements for downsampling (#4369) Signed-off-by: hagen1778 (cherry picked from commit a0c040ea58849d186bb1f64dedd36a541ee5e51b) Signed-off-by: hagen1778 --- docs/README.md | 4 ++++ docs/Single-server-VictoriaMetrics.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/README.md b/docs/README.md index e6e1a1b78f..f08a832e27 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1628,6 +1628,10 @@ Retention filters can be evaluated for free by downloading and using enterprise Downsampling is applied independently per each time series. It can reduce disk space usage and improve query performance if it is applied to time series with big number of samples per each series. The downsampling doesn't improve query performance if the database contains big number of time series with small number of samples per each series (aka [high churn rate](https://docs.victoriametrics.com/FAQ.html#what-is-high-churn-rate)), since downsampling doesn't reduce the number of time series. So the majority of time is spent on searching for the matching time series. It is possible to use recording rules in [vmalert](https://docs.victoriametrics.com/vmalert.html) in order to reduce the number of time series. See [these docs](https://docs.victoriametrics.com/vmalert.html#downsampling-and-aggregation-via-vmalert). +Downsampling happens during [background merges](https://docs.victoriametrics.com/#storage) +and can't be performed if there is not enough of free disk space or if vmstorage +is in [read-only mode](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html#readonly-mode). + The downsampling can be evaluated for free by downloading and using enterprise binaries from [the releases page](https://github.com/VictoriaMetrics/VictoriaMetrics/releases). ## Multi-tenancy diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index b5eb40b6d1..7a22a88978 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -1636,6 +1636,10 @@ Retention filters can be evaluated for free by downloading and using enterprise Downsampling is applied independently per each time series. It can reduce disk space usage and improve query performance if it is applied to time series with big number of samples per each series. The downsampling doesn't improve query performance if the database contains big number of time series with small number of samples per each series (aka [high churn rate](https://docs.victoriametrics.com/FAQ.html#what-is-high-churn-rate)), since downsampling doesn't reduce the number of time series. So the majority of time is spent on searching for the matching time series. It is possible to use recording rules in [vmalert](https://docs.victoriametrics.com/vmalert.html) in order to reduce the number of time series. See [these docs](https://docs.victoriametrics.com/vmalert.html#downsampling-and-aggregation-via-vmalert). +Downsampling happens during [background merges](https://docs.victoriametrics.com/#storage) +and can't be performed if there is not enough of free disk space or if vmstorage +is in [read-only mode](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html#readonly-mode). + The downsampling can be evaluated for free by downloading and using enterprise binaries from [the releases page](https://github.com/VictoriaMetrics/VictoriaMetrics/releases). ## Multi-tenancy