VictoriaMetrics/docs/BestPractices.md
Dima Lazerka 6e8e385375
VMAnomaly docs fixes (#2361)
* Added docs for vmanomaly

* Add example images

* Stylistic fixes

* Move images to root

* Update docs/vmanomaly.md

* Update docs/vmanomaly.md

Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>

* Squeeze vmanomaly after vmbackupmanager before Case Studies

Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>
2022-03-25 12:09:05 +02:00

3.3 KiB

sort
20

VictoriaMetrics best practices

Install Recommendation

It is recommended running the latest available release of VictoriaMetrics from this page, since it contains all the bugfixes and enhancements.

There is no need to tune VictoriaMetrics because it uses reasonable defaults for command-line flags. These flags are automatically adjusted for the available CPU and RAM resources. There is no need in Operating System tuning because VictoriaMetrics is optimized for default OS settings. The only option is to increase the limit on the number of open files in the OS, so VictoriaMetrics could accept more incoming connections and could keep open more data files.

Filesystem

The recommended filesystem for VictoriaMetrics is ext4. If you plan to store more than 1TB of data on ext4 partition or plan to extend it to more than 16TB, then the following options are recommended to pass to mkfs.ext4:

mkfs.ext4 ... -O 64bit,huge_file,extent -T huge

VictoriaMetrics should work OK with other filesystems, including network filesystems such as NFS, Amazon EFS and Google Filestore.

Operation System

VictoriaMetrics is production-ready for the following operating systems:

  • Linux (Alpine, Ubuntu, Debian, RedHat, etc.)
  • FreeBSD
  • OpenBSD

Some VictoriaMetrics components (vmagent, vmalert and vmauth) can run on Windows.

VictoriaMetrics can run also on MacOS for testing and development purposes.

Upgrade procedure

It is safe to upgrade VictoriaMetrics to new versions unless the release notes say otherwise. It is safe to skip multiple versions during the upgrade unless release notes say otherwise. It is recommended to perform regular upgrades to the latest version, since it may contain important bug fixes, performance optimizations or new features.

It is also safe to downgrade to the previous version unless release notes say otherwise.

The following steps must be performed during the upgrade / downgrade procedure:

  • Send SIGINT signal to VictoriaMetrics process so that it is stopped gracefully.
  • Wait until the process stops. This can take a few seconds.
  • Start the upgraded VictoriaMetrics.

Backup Recommendations

VictoriaMetrics supports backups via vmbackup and vmrestore tools. There is also vmbackupmanager, which simplifies backup automation.

Technical Support and Services

There are the following channels for providing technical support for VictoriaMetrics:

We also provide Enterprise support.