prepare_system.sh (run as root):
- Swap creation (auto-detects size)
- OOM killer protection
- Kernel tuning
prepare_postgres.sh (run as postgres user):
- PostgreSQL memory tuning
- Lock limit increase
- Disable parallel workers
No more connection issues - each script runs as the right user && git push origin main