mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
docs/Single-server-VictoriaMetrics.md: document how to reduce memory usage when importing too long JSON lines into VictoriaMetrics
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1295
This commit is contained in:
parent
70165a6758
commit
e6ec442e96
@ -957,6 +957,8 @@ For example, `/api/v1/import?extra_label=foo=bar` would add `"foo":"bar"` label
|
|||||||
|
|
||||||
Note that it could be required to flush response cache after importing historical data. See [these docs](#backfilling) for detail.
|
Note that it could be required to flush response cache after importing historical data. See [these docs](#backfilling) for detail.
|
||||||
|
|
||||||
|
VictoriaMetrics parses input JSON lines one-by-one. It loads the whole JSON line in memory, then parses it and then saves the parsed samples into persistent storage. This means that VictoriaMetrics can occupy big amounts of RAM when importing too long JSON lines. The solution is to split too long JSON lines into smaller lines. It is OK if samples for a single time series are split among multiple JSON lines.
|
||||||
|
|
||||||
|
|
||||||
### How to import CSV data
|
### How to import CSV data
|
||||||
|
|
||||||
|
@ -961,6 +961,8 @@ For example, `/api/v1/import?extra_label=foo=bar` would add `"foo":"bar"` label
|
|||||||
|
|
||||||
Note that it could be required to flush response cache after importing historical data. See [these docs](#backfilling) for detail.
|
Note that it could be required to flush response cache after importing historical data. See [these docs](#backfilling) for detail.
|
||||||
|
|
||||||
|
VictoriaMetrics parses input JSON lines one-by-one. It loads the whole JSON line in memory, then parses it and then saves the parsed samples into persistent storage. This means that VictoriaMetrics can occupy big amounts of RAM when importing too long JSON lines. The solution is to split too long JSON lines into smaller lines. It is OK if samples for a single time series are split among multiple JSON lines.
|
||||||
|
|
||||||
|
|
||||||
### How to import CSV data
|
### How to import CSV data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user