From 16572c8722e36a5a445e5907acfa9fef6e22520d Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 31 Mar 2020 19:33:20 +0300 Subject: [PATCH] README.md: mention that response cache must be reset after import historical data --- README.md | 4 ++++ docs/Single-server-VictoriaMetrics.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 4cecc4819..3d8ee4334 100644 --- a/README.md +++ b/README.md @@ -476,6 +476,8 @@ The following response should be returned: {"metric":{"__name__":"ask","market":"NYSE","ticker":"GOOG"},"values":[1.23],"timestamps":[1583865146495]} ``` +Note that it could be required to flush response cache after importing historical data. See [these docs](#backfilling) for detail. + ### Prometheus querying API usage @@ -677,6 +679,8 @@ curl -H 'Accept-Encoding: gzip' http://source-victoriametrics:8428/api/v1/export curl -X POST -H 'Content-Encoding: gzip' http://destination-victoriametrics:8428/api/v1/import -T exported_data.jsonl.gz ``` +Note that it could be required to flush response cache after importing historical data. See [these docs](#backfilling) for detail. + Each request to `/api/v1/import` can load up to a single vCPU core on VictoriaMetrics. Import speed can be improved by splitting the original file into smaller parts and importing them concurrently. Note that the original file must be split on newlines. diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index 1e00a941d..92bb5a711 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -466,6 +466,8 @@ The following response should be returned: {"metric":{"__name__":"ask","market":"NYSE","ticker":"GOOG"},"values":[1.23],"timestamps":[1583865146495]} ``` +Note that it could be required to flush response cache after importing historical data. See [these docs](#backfilling) for detail. + ### Prometheus querying API usage @@ -667,6 +669,8 @@ curl -H 'Accept-Encoding: gzip' http://source-victoriametrics:8428/api/v1/export curl -X POST -H 'Content-Encoding: gzip' http://destination-victoriametrics:8428/api/v1/import -T exported_data.jsonl.gz ``` +Note that it could be required to flush response cache after importing historical data. See [these docs](#backfilling) for detail. + Each request to `/api/v1/import` can load up to a single vCPU core on VictoriaMetrics. Import speed can be improved by splitting the original file into smaller parts and importing them concurrently. Note that the original file must be split on newlines.