Skip to content

Increase isolated production database to eight vCPUs - #1873

Merged
rdimitrov merged 1 commit into
mainfrom
codex/production-db-eight-vcpu
Nov 20, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
codex/production-db-eight-vcpu

Conversation

@rdimitrov

@rdimitrov rdimitrov commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Grow only the dedicated production database node from e2-standard-4 to e2-standard-8 and give PostgreSQL six CPUs, matching the configuration tested with #1865. Application workers remain e2-standard-4; app HPA, connection pools, memory, shared buffers, storage, and node-count bounds remain unchanged.

The databaseNodeMachineType override defaults to the existing worker-sized pool when omitted and is guarded to isolated production. PostgreSQL 3/3 remains supported on the larger node for staged upgrade/rollback. The protected pool keeps its identity and SURGE settings; resizing restarts the singleton DB and reattaches its existing PVC. App image promotion is separate.

Validation: deployment Go tests and 61 deployment-script Python tests passed. Full production preview shows three updates only: DB pool machine type, registry-pg CPU request/limit and Kubernetes provider metadata; 216 resources unchanged, no replacements/deletions. Worker pool, Grafana, networking and all PVCs are unchanged. Region quota has headroom, no competing GKE operation was present, and the DB volume has about 48 GiB free. Latest production backup completed November 20.

Rollout requires a temporary CNPG node maintenance window with reusePVC=true to permit graceful movement of the protected singleton primary. Restore normal maintenance/PDB protection after DB readiness and PVC identity verification. The application release is promoted after index prebuild/validation and DB recovery. Raw production state and preview remain private.

@rdimitrov
rdimitrov merged commit d4db5f1 into main Nov 20, 2026
9 checks passed
@rdimitrov
rdimitrov deleted the codex/production-db-eight-vcpu branch November 20, 2026 09:41
rdimitrov added a commit that referenced this pull request Nov 20, 2026
Promote production from 1.8.9 to 1.8.10 (source
fa88719), including #1865's
updated-since query and covering-index improvements. Replicas, HPA,
connection pools, cache settings, and database resources are unchanged
by this PR.

Validation: release build succeeded and amd64 image digest was verified.
Both covering indexes were built concurrently and validated in
production; previous indexes remain for rollback. #1873 deployed the
eight-vCPU database node with six CPUs allocated to PostgreSQL; database
identity and PVCs are preserved, database is Ready, and the primary PDB
is restored. CI and CodeQL pass. A fresh production preview shows
exactly one deployment update (image and rollout annotation), no
replacements or deletions.

After deployment, verify migration 020, the released image digest, API
readiness, errors, latency, and pool queues. The database node/resource
upgrade involved maintenance interruptions; monitor recovery separately
from application performance.
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