67 articles
Knowledge Base
Load Balancing
67 articles in the Load Balancing category · page 1 of 3.
- GeoIP blocking with Traefik — MaxMind database, plugin patterns, and the legal trap Block requests by country at the Traefik edge with a MaxMind GeoLite2 database and a geoblock plugin. Choose between fail-open and fail-closed, and avoid the cases where it backfires.
- Deploy dnsdist as a DNS load balancer and traffic filter Set up dnsdist, the DNS load balancer from the PowerDNS project, in front of two or more name servers. You will spread queries across healthy backends, rate limit abusive clients, cache answers and watch it all live from the dnsdist console.
- Kubernetes topology spread constraints — even pod placement across zones and nodes Learn how to use Kubernetes topology spread constraints to spread your pods evenly across zones and nodes, so one outage cannot take down every copy of a service. The guide explains the placement math, the key settings, cluster-wide defaults, and how to fix pods stuck in Pending.
- Proxy WebSocket connections through Nginx Configure Nginx as a WebSocket reverse proxy so a browser connecting over wss:// reaches your backend and the connection stays open. You will forward the upgrade headers, switch the upstream to HTTP/1.1, raise the idle timeout, and confirm the handshake returns 101 Switching Protocols.
- Migrate from ingress-nginx to the Gateway API — HTTPRoute, filters, and a reversible cutover A working ingress to Gateway API migration: install the Gateway API CRDs, choose an implementation, translate a real Ingress into Gateway and HTTPRoute with an httproute example, run both paths in parallel behind DNS, and roll back.
- Patroni — production PostgreSQL high-availability cluster architecture Patroni PostgreSQL HA in production — etcd quorum, leader election, sync vs async replicas, HAProxy routing, watchdog, and the decisions that determine whether your cluster survives a real outage.
- HAProxy certificate rotation Hot-rotate TLS certificates in HAProxy via the runtime API — Let's Encrypt automation, the transactional set/commit pattern, OCSP refresh, and the cron we ship to clients.
- JWT authentication at the Traefik edge — forwardAuth and the jwt plugin paths Verify JWTs at the Traefik edge — the forwardAuth pattern with a tiny verifier sidecar, and the plugin-based approach for self-contained validation.
- Graceful drain on deploy — taking a backend out of the LB without dropping requests A runbook for draining a backend behind HAProxy, Nginx, or a cloud LB before a deploy — connection-close, health-check signals, and the in-flight-request budget.
- Installing Caddy on Ubuntu the right way A production-grade Caddy install on Ubuntu — official repo, systemd unit, firewall, Caddyfile validation, and the operational checks an MSP makes before declaring the box ready.
- Traefik retry middleware — safe retries, idempotency, and what you should not retry Configure the Traefik retry middleware — attempts, initial interval, and the methods/status codes where retries help versus where they cause duplicate writes.
- HAProxy blue-green deployment Blue-green deploys with HAProxy — two backends, weight shifting, runtime API cutover, and the rollback story you should have before you cut the first percent.
- HAProxy mTLS with client certificates Require client certificates at the HAProxy edge — verify, ca-file, CRL handling, header forwarding to backends, and the production gotchas around chain trust.
- Caddy rate limiting with the caddy-ratelimit plugin Setting up rate limits in Caddy via the community ratelimit plugin — zones, keys, distributed storage, and the operational patterns an MSP applies for abuse protection.
- HAProxy stick tables How HAProxy stick tables actually work — types, data counters, retention, runtime inspection, and the production sizing math you need before you set size 100k.
- Caddy as a Layer 4 (TCP/UDP) proxy Configuring the caddy-l4 plugin to proxy raw TCP and UDP — SSH, SMTP, PostgreSQL, gRPC, MQTT — with matchers, TLS detection, and the operational notes from production.
- HAProxy peer protocol Replicate stick tables across HAProxy instances with the peer protocol — config, network requirements, the reload handover, and the failure modes when peers fall out of sync.
- Installing HAProxy on Ubuntu A grown-up HAProxy install on Ubuntu — apt source, systemd, firewall, default frontend, and the operational checks an MSP runs before declaring the box ready.
- Traefik TCP and UDP routers — SNI routing, raw streams, and what you give up Use Traefik beyond HTTP — TCP routers with SNI matching, UDP entrypoints for DNS or game traffic, and the trade-offs you accept once you leave HTTP.
- Caddy WebSocket reverse proxy in production Proxying WebSocket connections through Caddy — timeouts, buffering, keep-alives, and the operational tuning an MSP applies for chat, dashboards, and realtime APIs.
- HAProxy ACLs and content switching How HAProxy ACLs route requests by host, path, header, or method — with real examples and the order-of-evaluation rules that trip people up.
- Installing Traefik v3 on Kubernetes with the official Helm chart Install Traefik v3 on Kubernetes via Helm with CRDs, RBAC scoped to the namespace, and dashboard exposure controlled — operator-grade defaults.
- Traefik rate limit middleware — average, burst, sourceCriterion, and what each does Configure the Traefik rateLimit middleware — token bucket parameters, per-IP vs per-header limiting, and choosing limits that protect without false positives.
- Caddy mTLS — client certificate authentication Configuring mutual TLS in Caddy — trust pool, client cert validation, header forwarding to the upstream, and the operational notes an MSP records before launch.