
How to Automate VPS Benchmarking with Bash, Cron, and Simple Logging
Managing a handful of VPS instances is fine. Managing a dozen gets messy fast — especially when you want to know whether that provider's "1 Gbps" claim holds up after the honeymoon period ends, or whether CPU performance silently degrades on a shared hypervisor over time. I got tired of SSHing into each box, running the same manual benchmarks, and then forgetting to compare the results to last month's numbers. So I built a small automation: each server runs a Bash script every six hours, logs results to a CSV, and pings me when something looks off. No Prometheus, no dashboards required — just Bash, Cron, and a text file. Here's the full setup. The Core Benchmark Script Save this as /opt/bench/run_bench.sh . It covers the four things I track: network latency, download speed, CPU, and disk I/O. #!/usr/bin/env bash # /opt/bench/run_bench.sh # Runs benchmarks and appends results to a monthly CSV log. set -euo pipefail LOG_DIR = "/opt/bench/logs" LOG_FILE = " ${ LOG_DIR } /bench_ $( date +%
Continue reading on Dev.to DevOps
Opens in a new tab




