Skip to main content

2 posts tagged with "Docker"

Docker image builds, containerized deployment, and Headscale packaging.

View all tags

Stress Testing Headscale at 200+ Concurrent Clients

· 5 min read
Larktun Contributor

Running a small self-hosted headscale instance for ten personal devices is effortless. Operating Headscale as a production multi-user control plane is a completely different workload: every node join, disconnect, route change, or key rotation triggers map-response updates across peers. Before scaling Headscale into a multi-tenant SaaS control plane, you need repeatable load tests that measure both steady-state overhead and reconnect storms.

This guide documents a reproducible stress-testing workflow for 200+ concurrent clients using containerized Tailscale nodes, automated churn injection, and randomized TCP/UDP traffic sampling.

Headscale Series: Packaging Source-Built Headscale as a Docker Image

· 2 min read
Larktun Contributor

The official Headscale image is usually around 80MB in docker images. In contrast, custom images built from a handwritten Dockerfile are often much larger and harder to keep consistent with upstream releases.

This guide shows a closer-to-official approach: use ko to package a source-built Headscale Go binary into a minimal container image without maintaining a Dockerfile.