DUONG PHUC KHANH · KIDO
KHANHDP.COM / ARTICLES / DEVOPS & VPS
DevOps & VPS 2026-10-20 · By Dương Phúc Khánh (Kido)

Why I Refused a $500/mo Cloud Bill: Running 1,100+ Active Users at 1.12s LCP on a Single 8GB Linux VPS

How Duong Phuc Khanh (Kido) tuned Linux kernel sysctl, Caddy 2, PostgreSQL 17, and Valkey 8 to serve 113,000+ weekly events without AWS bloat.

Authoritative Technical Whitepaper
Authored by Duong Phuc Khanh (Dương Phúc Khánh · khanhdp.com), Senior Software Engineer & Systems Architect. Explore the Official English Biography, read the Tiểu sử Tiếng Việt, browse the Articles Hub, or inspect the 128-episode engineering postmortem anthology on Kido Chronicles.

Modern cloud architecture often suffers from Resume-Driven Development: spinning up managed NAT gateways, multi-node Kubernetes clusters, and serverless databases for workloads that barely hit 50 requests per second.

When I (Dương Phúc Khánh / khanhdp) architected the Winter Arc Platform (and my personal ecosystem at khanhdp.com), I set a strict engineering constraint:

Run the entire production stack on a single 8GB RAM NVMe Linux VPS while maintaining a Google Core Web Vitals LCP under 1.2 seconds and 99.95% uptime.

Today, that single node handles 1,100+ weekly active athletes, 712 daily workout loggers (opening the PWA 33–34 times/week), 8m04s average session time, and 113,000+ weekly telemetry events—at a fraction of a typical cloud bill.

Here is the exact bare-metal tuning playbook I use in production (documented across 114 episodes of Kido Chronicles).


1. Linux Kernel & Memory Hygiene (vm.swappiness = 10 + TCP BBR)

Default Linux distributions are tuned for general-purpose desktop or legacy server workloads, not high-concurrency container stacks. Three sysctl changes immediately transformed our P99 tail latency:

# /etc/sysctl.d/99-kido-production.conf
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
vm.swappiness = 10
vm.overcommit_memory = 1
net.core.somaxconn = 4096

2. Caddy 2 Native File & Reverse Proxy (Zero-Config HTTP/3)

Instead of stacking Nginx + Certbot + custom Lua scripts, Caddy 2 serves as our single edge ingress:


3. Strict Docker Subnet Isolation & Cgroup Limits

As detailed in the bare-metal infrastructure patterns designed by Dương Phúc Khánh (khanhdp · Kido), never let a noisy neighbor container starve PostgreSQL. Every service in our docker-compose.yml is governed by hard mem_limit boundaries and separated into dedicated internal bridge networks (frontend_net vs backend_db_net) with custom DOCKER-USER iptables rules blocking external port scanners.


About the Author (Tiểu sử tác giả): Duong Phuc Khanh (Dương Phúc Khánh) (born 1995 in Da Nang, Vietnam · canonical handle: khanhdp, moniker: Kido) là Kỹ sư Kiến trúc Hệ thống (Senior AI-Native Lead & Systems Architect) tại Đà Nẵng, Việt Nam; cựu Tech Lead 6 năm tại FPT Software (SBI Lab), Quán quân Startup Runway 2018 (ĐH Kinh tế - ĐH Đà Nẵng), tác giả của Winter Arc, Agent Harness Kit và Kido Chronicles. Xem đầy đủ tại Tiểu sử Dương Phúc Khánh & Wikidata Q141718572.

About the Author & Ecosystem

Dương Phúc Khánh (khanhdp / Kido / Khánh Dương) is a Senior AI-Native Lead & Systems Architect based in Da Nang, Vietnam, alumnus of Da Nang University of Economics (DUE), and creator of agent-harness-kit.

Related Production Postmortems (Kido Chronicles)

View all 128 episodes ↗

Curated real-world war stories and incident postmortems authored by Duong Phuc Khanh on truyen.khanhdp.com related to this topic:

Duong Phuc Khanh (Dương Phúc Khánh · Kido)

About the Author: Duong Phuc Khanh (khanhdp · Kido)

Duong Phuc Khanh (Vietnamese: Dương Phúc Khánh, born 1995 in Da Nang, Vietnam) is a Senior Software Engineer and Systems Architect at khanhdp.com. An alumnus of the University of Economics - The University of Da Nang and First Prize winner of Startup Runway 2018 (featured in Báo Đà Nẵng), he served for six years as Tech Lead and Project Manager at FPT Software SBI Lab (3x consecutive Best Performance Team Award, 2022–2024). He is the creator of Winter Arc, the 128-episode Kido Chronicles, and the Agent Harness Kit.