redis-cli Diagnostics: INFO, SLOWLOG, MEMORY
Diagnose a live Redis with INFO, SLOWLOG, and MEMORY so you can catch slow commands, memory growth, and eviction pressure before the VPS starts swapping.
NetBay journal
Practical guides for Linux, containers, CI/CD, self-hosting, and running VPS infrastructure from Netbay Engineering.
599 articles · 24 topics
Diagnose a live Redis with INFO, SLOWLOG, and MEMORY so you can catch slow commands, memory growth, and eviction pressure before the VPS starts swapping.
Run Loki with a filesystem store and Promtail against journald on one VPS, with retention that fits the disk, and know the day this setup stops being enough.
Parse DATABASE_URL, size SQLAlchemy or Django pools, and cap Postgres max_connections so one VPS does not melt under worker fan-out and idle sessions.
Run app-blue and app-green on one VPS, health-check the idle color, then flip nginx so a bad release never shares a process with the live one.
Capture and analyze network traffic with tcpdump to debug slow connections, DNS issues, and firewall problems like a detective.
Configure Docker log drivers and rotation so containers never fill your disk, and learn which driver keeps docker logs working and which takes them away.
Plan subdomains, A/AAAA records, and split DNS for your whole self-hosted stack so both home and external users reach every service cleanly.
Size PHP-FPM pm.max_children on a 2 GB VPS so workers fit beside nginx and MySQL, then split pools if two apps should not share one process budget.
Terminate TLS with nginx, keep llama-server on loopback, and proxy OpenAI-shaped routes without exposing a CPU model port to the public internet.
Use nginx on an edge VPS as your API gateway: TLS, routing, auth headers, body limits, and rate caps without buying a managed API gateway SKU.
Pick the right Restart= policy, tune RestartSec and start-rate limits, and build services that recover from crashes without paging a human at 3 a.m.
Back up live SQLite databases without corrupting them: use sqlite3 .backup and the online backup API, then automate and verify the copies on a VPS.