Skip to main content
READY SERIESSTORE LAB // PROMETHEUS OOM VS VICTORIAMETRICS TSDB BASELINE: 2026-11-11 | TARGET: 0.8-1.3 KB/SERIES | 0.4-0.9 B/SAMPLE ZSTD
VictoriaMetrics
VictoriaMetrics Disclosure: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero checkout cost (Disclosures).
VictoriaMetrics Tuning Fixes // SeriesStore Lab

Production victoriametrics.service Systemd Configuration

Running VictoriaMetrics as a bare Linux binary via systemd eliminates Docker bridge overhead and grants full control over file descriptors and page cache.

Measured TSDB & Cardinality Telemetry

On bare KVM instances like InterServer $6/TB Storage Slices or Vultr High Frequency, running victoria-metrics-prod under systemd takes <15 MB binary footprint and cleanly coordinates graceful SIGTERM index flushes on reboot.

Subsystem / SignalMeasured FootprintOperational Impact
Systemd Overhead< 15 MB binary RSSZero Docker daemon or overlayfs penalty
Required Descriptor LimitLimitNOFILE=1048576Prevents EMFILE during concurrent part merges
Graceful Shutdown TimeoutTimeoutStopSec=30sEnsures clean in-memory buffer flush

Step-by-Step Diagnostic & Config Remediation

  1. Create dedicated system user: Run useradd --no-create-home --shell /usr/sbin/nologin victoriametrics and chown data dir.
  2. Install tuned victoriametrics.service: Set -memory.allowedPercent=60, -retentionPeriod=12, and LimitNOFILE=1048576.
  3. Enable and verify /health: Run systemctl enable --now victoriametrics and verify HTTP 200 on port 8428.
[Unit]
Description=VictoriaMetrics Single-Node TSDB
After=network-online.target

[Service]
Type=simple
User=victoriametrics
LimitNOFILE=1048576
TimeoutStopSec=30s
ExecStart=/usr/local/bin/victoria-metrics-prod \
  -storageDataPath=/var/lib/victoria-metrics-data \
  -retentionPeriod=12 \
  -memory.allowedPercent=60 \
  -promscrape.config=/etc/victoriametrics/scrape-prometheus.yml
Restart=always

Diagnostic FAQ

Is bare systemd faster than Docker for VictoriaMetrics?

Bare systemd avoids Docker userland proxy and overlay2 filesystem overhead, improving high-throughput disk IOPS by 5-12%.

Where should -storageDataPath point on InterServer Storage Slices?

Mount your primary SSD or high-capacity slice volume at /var/lib/victoria-metrics-data with noatime mount options.

Related VictoriaMetrics Tuning Fixes Guides

VictoriaMetrics: Cut Prometheus OOM RAM 80%+ on InterServer $6/TB Slice Launch $6/TB Slice