From 5792f7296aeb2e6077c25f81448a2a623d319874 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 --- docs/Single-server-VictoriaMetrics.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index 1e00a941de..92bb5a7112 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.