Promscale vs VictoriaMetrics: measuring resource usage in production

Benchmark setup

                                    /--> VictoriaMetrics
2000 x node_exporter <-- vmagent --|
\--> Promscale
global:
scrape_interval: 30s
scrape_configs:
- job_name: node_exporter
static_configs:
{% for n in range(2000) %}
- targets: ['host-node-{{n}}:9100']
labels:
host_number: cfg_{{n}}
role: node-exporter
env: prod
{% endfor %}
synchronous_commit = off
wal_compression = on
docker run --name promscale -d --net=host timescale/promscale:0.1.3 -db-password=secret -log-level=info -db-ssl-mode=disable -async-acks=true
docker run --rm -itd --net=host --name victoria -v `pwd`/data:/data  victoriametrics/victoria-metrics:v1.49.0 -storageDataPath=/data

Benchmark results

RSS memory usage: VictoriaMetrics vs Promscale
CPU cores used: VictoriaMetrics vs Promscale
Disk IO usage: VictoriaMetrics vs Promscale
Disk IOPS usage: VictoriaMetrics vs Promscale

Disk IO distribution for Promscale between WAL disk and data disk

Promscale disk IO usage: WAL vs data
Promscale disk IOPS usage: WAL vs data
Disk space usage (excluding WAL): VictoriaMetrics vs Promscale
Promscale WAL size
  • Promscale — 46 bytes per sample (150GB / 3.2 billion samples)
  • VictoriaMetrics — 0.5 bytes per sample (1.6GB / 3.2 billion samples)

Conclusions

  • Promscale needs 28x more RSS memory than VictoriaMetrics.
  • Promscale needs 64x more CPU than VictoriaMetrics.
  • Promscale needs 450x more disk IO bandwidth than VictoriaMetrics.
  • Promscale needs a disk with 15000 IOPS, while VictoriaMetrics runs smoothly on a disk with 35 IOPS.
  • Promscale needs up to 92x more disk space than VictoriaMetrics (not counting WAL size).

--

--

--

Founder and core developer at VictoriaMetrics

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to create forms in WordPress with logic

19coders

Is the human body built on Monolithic or Microservice Architecture

Your guides to deploy ArcBlock’s ABT Node

Future of cloud computing — Distributed cloud computing with multiple cloud service providers and…

Unofficial

How Debezium & Kafka Streams Can Help You Write CDC Solution

How to deploy Flutter WebApp using Google Compute Engine

Video Rotator 1.0.9 Serial Key

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aliaksandr Valialkin

Aliaksandr Valialkin

Founder and core developer at VictoriaMetrics

More from Medium

Canary Deployments with Service Mesh — Istio and Kubernetes

Migrate running containers by checkpoint-restoring using CRIU

Kubernetes & State of the Secure Software Supply Chain — DevOps DC Feb 2022 Recap

V1.24 — “The reckoning of Dockershim”, Future, Removal of Dockershim. Giant SpongeBob releasing hot air balloons.

Overcoming Node failure for pods which can run only one replica on K8s