git clone https://github.com/VictoriaMetrics/VictoriaMetrics.git
curl -fsSL https://get.docker.com | sh; >/dev/null
cd VictoriaMetrics/
apt install make
make victoria-metrics-prod
mv bin/victoria-metrics-prod /usr/local/bin/
sudo useradd -rs /bin/false victoriametrics
mkdir -p /var/lib/victoriametrics /run/victoriametrics/
chown victoriametrics:victoriametrics /var/lib/victoriametrics /run/victoriametrics/
vi /etc/systemd/system/victoriametrics.service
[Unit]
Description=VictoriaMetrics
After=network.target
[Service]
User=victoriametrics
Group=victoriametrics
Type=simple
StartLimitBurst=5
StartLimitInterval=0
Restart=on-failure
RestartSec=1
PIDFile=/run/victoriametrics/victoriametrics.pid
ExecStart=/usr/local/bin/victoria-metrics-prod -storageDataPath /var/lib/victoriametrics -retentionPeriod 6
ExecStop=/bin/kill -s SIGTERM $MAINPID
[Install]
WantedBy=multi-user.target
[Service]
LimitNOFILE=32000
LimitNPROC=32000
systemctl enable victoriametrics
systemctl start victoriametrics
systemctl status victoriametrics
https://githubmemory.com/repo/VictoriaMetrics/helm-charts
vmstorage:
tolerations:
- key: "node"
operator: "Equal"
value: "storage-ssd"
effect: "NoSchedule"
nodeSelector:
node: "storage-ssd"