Deploying Node.js with PM2: Process Guarding and Cluster Mode
Guard and manage Node.js production processes with PM2: automatic load balancing via cluster mode, boot persistence, zero-downtime reload, logging and memory monitoring.
Guard and manage Node.js production processes with PM2: automatic load balancing via cluster mode, boot persistence, zero-downtime reload, logging and memory monitoring.
Use upstream for load balancing, proxy_cache for caching and limit_req for rate limiting, and terminate TLS at the reverse proxy layer. Includes deployable Nginx production configs.
Automatically issue and renew Let's Encrypt certificates with Certbot: webroot, standalone and DNS plugins for authentication, plus hooks for fully automatic renewal.
Move Docker Compose from development to production smoothly with health checks, resource limits and restart policies, including a split multi-file Compose workflow.
From installation and system parameters to memory tuning, this guide covers production baseline configuration for MySQL 8 and PostgreSQL, including connections, buffer pools, WAL and slow query logs.