Repository navigation
Optimize incremental-sync pages and stage bounded six-app scaling - #1840
Merged
Merged
Conversation
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.
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.
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:
preparerolls out 20/5 connection pools while retaining the existing HPA;enabledallows 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.