Node Health Checks That Fail Fast When Wedged
Expose a cheap health endpoint, let systemd watchdog the event loop, and fail the unit before a wedged Node process sits silent in production.
NetBay journal
33 practical App Deployment articles from Netbay Engineering — written for operators running Linux and Windows VPS in India.
33 articles in this topic
Expose a cheap health endpoint, let systemd watchdog the event loop, and fail the unit before a wedged Node process sits silent in production.
Disable WP-Cron and Laravel web pings, then run wp-cron.php and artisan schedule:run from system cron so jobs fire on time without depending on visitor traffic.
Unstick a hung Gunicorn or Uvicorn worker with py-spy, journalctl, and a few process checks so you fix the stall instead of blindly restarting.
Ship a Node.js app with a git pull, npm install, build, and restart script so a tagged commit becomes a repeatable Ubuntu VPS deployment path.
Write a small deploy script that git pulls, installs pinned deps, runs migrations, and restarts systemd so Python releases stay boring and repeatable.
Ship PHP with git releases on the VPS: clone to timestamped folders, symlink current, and keep .env plus storage in a shared directory that deploys never wipe.
Write JSON logs from Node to stdout, let systemd capture them in journald, and query a single stream instead of rotating application log files.
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.
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.
Cap the V8 old space on a 2 GB Ubuntu VPS so Node cannot starve the kernel, nginx, and the page cache before the Linux OOM killer fires first.
Know when a second process is required for Celery or a simple Redis queue so web requests stay fast while emails and reports run in the background.
Terminate TLS on nginx, send strict security headers, and hide PHP and nginx versions so scanners see a boring VPS instead of a versioned attack surface.