Skip to content

Raise the hosted sessions indexer mapping cap from 20 to 25 - #636

Open
khaliqgant wants to merge 1 commit into
mainfrom
feat/hosted-indexer-esm-25
Open

khaliqgant wants to merge 1 commit into
mainfrom
feat/hosted-indexer-esm-25

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Capacity step

The watcher verified the live event source mapping cap of 20 at 08:17 UTC. The incident brief reports about 12,000 visible messages and about two hours of indexing lag. The watcher reconstructed time at or above 20 from Lambda REPORT lines. The 79% figure includes the reconcile slot and is an upper bound. The estimate is 69% with that slot excluded.

The candidate raises the cap to 25, a 25% increase in the ceiling. The previous trial at 25 was reverted after DB lock waits. The watcher saw zero Lambda throttles and no pointer-index failures or statement timeouts in the observed window at 20. The merge and production hold stays in place pending direct DB lock-wait, connection and CPU headroom evidence, plus function and regional concurrency headroom.

Protected CI path

The existing workflow gains a raise-indexer-cap operation. It pins the target in code and permits exactly one in-place 20-to-25 update. Both plan and apply check the same gate, and the apply uses the same saved plan. The gate rejects imports, drift, a different live baseline, and unrelated changes. The default import-only operation retains the original baselines.

After D5 static PASS and green CI, layered-infra-ops reviews. Before dispatching the production plan, confirm the zero-diff ownership handoff, the protected apply role's existing mapping permission, the live cap, and function/account concurrency headroom. After the protected apply, read back the enabled mapping at 25 and compare queue depth, oldest age, indexing lag, throttles, downstream lock waits, and DLQ depth. AWS Lambda mapping and reserved concurrency guidance

Scope is the mapping cap. No IAM or DLQ redrive changes are included.

Local proof

  • Hosted gate tests (28), mocked plan/apply smoke suite, actionlint and ShellCheck passed.
  • Terraform 1.16.7 confirmed the explicit cap wins over the private tfvars input.
  • git diff --check passed.

@khaliqgant khaliqgant added the merge-train:hold Do not merge without Khaliq's direct OK label Nov 30, 2026
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 33 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c397b0e3-7046-4501-bcfa-0d9beaff17b2
Commits

Reviewing files that changed from the base of the PR and between c9968d6 and 6a498fb.

Files selected for processing: 7

  • .github/workflows/hosted-session-pipeline.yml
  • scripts/hosted/session-pipeline-ci.sh
  • scripts/hosted/tests/smoke.sh
  • terraform/examples/aws-hosted-session-pipeline-ci/README.md
  • terraform/examples/aws-hosted-session-pipeline/README.md
  • terraform/examples/aws-hosted-session-pipeline/gate/test_zero_diff_gate.py
  • terraform/examples/aws-hosted-session-pipeline/gate/zero_diff_gate.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T08:25:20.913561Z 6a498fb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 2 flags

Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds a protected raise-indexer-cap operation for one in-place mapping update from 20 to 25.

  • The hosted session indexer can run with a cap of 25.

No actionable issues were found in the reviewed changes.

Reviews (1) · Last reviewed commit: "feat(hosted): gate indexer mapping concu..." · Reviewed by Greptile

@agent-relay-code

Copy link
Copy Markdown
Contributor

@khaliqgant, on the existing #636 branch, please identify the incumbent operator and link the D5 disposition, ownership handoff, and any exact protected saved-plan receipt showing only the mapping cap changing from 20 to 25. The workflow on this head exposes adoption and the increase; please identify the reviewed code path back to 20 as well. Please keep any private plan artifacts in their approved location and return only a sanitized receipt.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-train:hold Do not merge without Khaliq's direct OK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant