vautoscale
Hetzner Cloud · Vertical Autoscaling

Scale up. Scale down.
Automatically.

vautoscale watches your CPU and RAM and resizes Hetzner Cloud servers the moment thresholds are crossed — then scales back when the load drops.

How it works

01
Collect

A one-line cron agent on each server posts CPU & RAM every minute.

02
Average

vautoscale averages the last N samples to smooth out spikes.

03
Decide

Compares the average against your per-server up/down thresholds.

04
Resize

Shuts down, resizes via Hetzner API, and powers back on automatically.

Features

  • Multi-user — each account manages its own tokens and servers
  • Tokens encrypted at rest with AES-256-GCM
  • Per-server CPU & RAM thresholds for scale-up and scale-down
  • Configurable sample window and cooldown period
  • Full scale event history per server
  • Self-hosted — single Docker container, SQLite, zero external deps

Agent setup

Drop one line into /etc/cron.d/vautoscale-metrics on each server. No daemon, no SDK.

* * * * * root curl -sf \
  -X POST https://your-host/api/metrics \
  -H "Authorization: Bearer <token>" \
  -d "cpu=$(top -bn2 -d 0.1 \
    | grep 'Cpu(s)' | tail -n 1 \
    | awk '{print 100-$8}')" \
  -d "ram=$(free | awk \
    '/Mem/{printf "\%.0f",$3/$2*100}')"

Ready to autoscale?

Self-host in minutes with Docker Compose.

Create an account