TOPIC / TAG

Notes in configuration

9 articles

Add a Swap File to a Small VPS

Check memory first, create a swap file that survives reboots, set vm.swappiness with a sysctl drop-in, and remove it cleanly if you change your mind.

6 min read

systemctl cat and Drop-In Overrides

Inspect the complete systemd unit and make a small local override without editing vendor files.

1 min read

Use docker compose config Before Deploying

Render the Compose model before deployment to catch interpolation, merge, profile, and path surprises.

2 min read

SSH Config Aliases for a Small Fleet

Replace long SSH commands with readable host aliases while keeping usernames, ports, keys, and jump hosts explicit.

2 min read

Nginx Location Matching in the Order That Matters

Predict which Nginx location block will handle a request by learning how exact, prefix, and regex matches are chosen.

2 min read

RDB, AOF, Both, or Neither: Redis Persistence on a Small Server

Decide whether a small Redis needs RDB snapshots, an append-only file, both, or no persistence, check that saves are really happening, and prove a restore with a throwaway instance.

6 min read

PostgreSQL Memory Settings on a Small VPS

Check and size sharedbuffers, effectivecachesize, workmem, maintenanceworkmem, and maxconnections on a small server, apply them with the right reload or restart, and confirm the effect.

8 min read

Test Nginx Configuration Before Reloading

Use Nginx's configuration test, inspect included files, and reload without replacing healthy workers with a broken configuration.

2 min read

Redis maxmemory and Eviction on a Small Server

Set a Redis memory limit, choose an eviction policy that matches what the keys are for, and use INFO to tell whether Redis is evicting keys or refusing writes.

5 min read