This commit is contained in:
Aliaksandr Valialkin 2021-12-01 12:48:30 +02:00
parent 8e4aa91475
commit 22e7b3c95a
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1
2 changed files with 4 additions and 2 deletions

View file

@ -1148,7 +1148,7 @@ Older data is eventually deleted during [background merge](https://medium.com/@v
## Multiple retentions
Just start multiple VictoriaMetrics instances with distinct values for the following flags:
A single instance of VictoriaMetrics supports only a single retention, which can be configured via `-retentionPeriod` command-line flag. If you need multiple retentions, then you may start multiple VictoriaMetrics instances with distinct values for the following flags:
* `-retentionPeriod`
* `-storageDataPath`, so the data for each retention period is saved in a separate directory
@ -1157,6 +1157,7 @@ Just start multiple VictoriaMetrics instances with distinct values for the follo
Then set up [vmauth](https://docs.victoriametrics.com/vmauth.html) in front of VictoriaMetrics instances,
so it could route requests from particular user to VictoriaMetrics with the desired retention.
The same scheme could be implemented for multiple tenants in [VictoriaMetrics cluster](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html).
See [these docs](https://docs.victoriametrics.com/guides/guide-vmcluster-multiple-retention-setup.html) for multi-retention setup details.
## Downsampling

View file

@ -1152,7 +1152,7 @@ Older data is eventually deleted during [background merge](https://medium.com/@v
## Multiple retentions
Just start multiple VictoriaMetrics instances with distinct values for the following flags:
A single instance of VictoriaMetrics supports only a single retention, which can be configured via `-retentionPeriod` command-line flag. If you need multiple retentions, then you may start multiple VictoriaMetrics instances with distinct values for the following flags:
* `-retentionPeriod`
* `-storageDataPath`, so the data for each retention period is saved in a separate directory
@ -1161,6 +1161,7 @@ Just start multiple VictoriaMetrics instances with distinct values for the follo
Then set up [vmauth](https://docs.victoriametrics.com/vmauth.html) in front of VictoriaMetrics instances,
so it could route requests from particular user to VictoriaMetrics with the desired retention.
The same scheme could be implemented for multiple tenants in [VictoriaMetrics cluster](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html).
See [these docs](https://docs.victoriametrics.com/guides/guide-vmcluster-multiple-retention-setup.html) for multi-retention setup details.
## Downsampling