- Reduce defaults: 4 CPU/8GB → 2 CPU/4GB (official min is 2GB) - Node.js heap: 512MB server, 384MB worker (runtime) - Build-time heap: 3072MB (only during compilation) - PG pool: reduce to 5 connections - PostgreSQL: tune shared_buffers/work_mem/effective_cache_size - Redis: cap at 64MB with noeviction policy - Unset NODE_OPTIONS after build to not leak into runtime
2.9 KiB
2.9 KiB