Runbook: resize prod to >=2 cores and plan Postgres/Redis off-box#1665
Open
pulzzejason wants to merge 1 commit into
Open
Runbook: resize prod to >=2 cores and plan Postgres/Redis off-box#1665pulzzejason wants to merge 1 commit into
pulzzejason wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.