Skip to content

Runbook: resize prod to >=2 cores and plan Postgres/Redis off-box#1665

Open
pulzzejason wants to merge 1 commit into
mainfrom
goal/606ac5d9
Open

Runbook: resize prod to >=2 cores and plan Postgres/Redis off-box#1665
pulzzejason wants to merge 1 commit into
mainfrom
goal/606ac5d9

Conversation

@pulzzejason

Copy link
Copy Markdown
Contributor

Integration PR for this goal — its tasks commit onto this branch (one PR per goal). Opened automatically by the engine on first push; left as a draft until the goal completes.

Add docs/runbooks/prod-scale-and-datastore-offbox.md and link it from
docs/ops-runbook.md.

Part A: record current box sizing (RAM/swap + CPU cores, cores stated as
an assumption pending on-box nproc), ordered ≥2-core resize procedure for
/opt/product-manager/app (pre-flight, provider resize per Railway/Render/Fly,
reboot/PM2 graceful-reload behavior, bring web+worker up, /api/health + pm2
list verification, rollback). Cross-references the RAM 'Deploy memory
headroom' note as orthogonal.

Part B: harden-if-managed vs migrate-if-co-located plan for running Postgres
AND Redis off-box (provision, pg_dump backup + Redis queue-drain, DATABASE_URL/
REDIS_URL cutover via update_env/.env.local, Prisma pool/connection-limit
guidance, low-downtime sequence, health/queues verification, rollback).

Respects ecosystem.config.cjs: web app stays fork/1 (WS relay in process
memory), extra cores scoped to worker/follow-up, 1G cap unchanged.

Docs-only: no PM-Agent config update needed (no agent-visible tools/data/
workflows change).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@psdjungpulzze psdjungpulzze marked this pull request as ready for review July 1, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant