Skip to content

Optimize incremental-sync pages and stage bounded six-app scaling - #1840

Merged
rdimitrov merged 6 commits into
mainfrom
codex/updated-since-page-optimization
Nov 10, 2026
Merged

rdimitrov merged 6 commits into
mainfrom
codex/updated-since-page-optimization

Conversation

@rdimitrov

@rdimitrov rdimitrov commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Incremental-sync listings now select page keys through an all-status covering index before fetching payloads, preserving deleted records, filters and cursor ordering. Prepared statement reuse and binary payload transfer remain enabled.

Adds an opt-in production capacity transition: prepare rolls out 20/5 connection pools while retaining the existing HPA; enabled allows 2–6 apps at 40% CPU, with at most two additions per 30 seconds. Live guards require every app to have the smaller pool and a pool-capable release before activation, and require lowering the HPA ceiling before restoring larger pools. Application rollback remains independent of the connection budget. Existing profiles remain unchanged until opted in.

Validation: database/handler/router race tests, deployment Go tests, 61 Python deployment tests, live staging response-equivalence checks and a bounded staging capacity comparison. Migration 019 must be prebuilt concurrently before production promotion. Deployment and rollback sequencing are documented in deploy/README.md.

@rdimitrov
rdimitrov merged commit ba94f65 into main Nov 10, 2026
8 checks passed
@rdimitrov
rdimitrov deleted the codex/updated-since-page-optimization branch November 10, 2026 11:07
rdimitrov added a commit that referenced this pull request Nov 10, 2026
Promotes the incremental-sync query optimization from #1840 as v1.8.9
and rolls production app pools from 30 to 20 connections. The
preparation phase retains the existing 2–4 replica HPA and 70% CPU
target until every app has the smaller pool.

The covering index has been prebuilt concurrently and verified valid.
Deployment configuration is covered by the profile rendering and
transition tests in #1840. Release image publication and CI must pass
before merging. Production uses the normal main-only GitOps workflow,
which previews refreshed state and applies that exact saved plan; its
environment protection also prevents branch-based preview runs.

After the rollout settles and all live pods are verified at 20
connections, a separate change enables 2–6 replicas at 40% CPU.
rdimitrov added a commit that referenced this pull request Nov 10, 2026
Activates the production capacity profile introduced in #1840 after
#1841 rolls all apps to v1.8.9 and 20-connection pools. Sets the HPA to
2–6 replicas, a 40% CPU target, and up to two additional pods per 30
seconds. Existing conservative scale-down settings remain in place.

The six-replica steady-state app pool ceiling is 120 connections,
matching the previous four × 30 ceiling. The live deployment guard
requires all running pods to use 20-connection pools before activation.
Merge only after the preparation rollout is verified healthy and CI
passes.
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