Skip to content

fix(deploy): double reference collector memory watermarks for catalog growth - #574

Merged
proerror77 merged 2 commits into
mainfrom
codex/pm-ref-mem-raise
Aug 1, 2026
Merged

fix(deploy): double reference collector memory watermarks for catalog growth#574
proerror77 merged 2 commits into
mainfrom
codex/pm-ref-mem-raise

Conversation

@proerror77

Copy link
Copy Markdown
Owner

Change contract

Raise the polymarket reference collector memory watermarks 672MiB/768MiB → 1536MiB/2048MiB in both the production and shadow units, with the new measurement documented in the README calibration history.

Evidence

2026-08-01 shadow gate invocation 329edad2 failed on memory.events high growth during cold-start backfill. Catalog has grown to 6509 tracked markets / 316k retained trade ids since the July calibration (586-606MiB peaks). Host drop-in for the shadow template is already applied (interim, controller-authorized); this PR is the durable fix and covers the production unit the cutover will enable.

Out of scope

  • Reducing collector memory usage

Dependency / merge order

None. Note: the currently staged candidate's control bundle predates this change; the gate is unblocked via the host drop-in until the next release.

Focused validation

  • test-polymarket-raw-ops-control-plane.sh PASS (pins updated)
  • test-polymarket-raw-ops-stage.sh PASS

Rollout / rollback impact

Takes effect on next release install; host interim state matches. Rollback = revert.

Issue relationship

Refs #553

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@proerror77, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 20 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5bbf3f9f-de10-4d28-a829-671913eee300

📥 Commits

Reviewing files that changed from the base of the PR and between ff8ad55 and 861b7a9.

📒 Files selected for processing (5)
  • deployment/aliyun/README.md
  • deployment/aliyun/polymarket-reference-collector-shadow@.service
  • deployment/aliyun/polymarket-reference-collector.service
  • deployment/aliyun/test-polymarket-raw-ops-control-plane.sh
  • rust_hft/tools/collector/src/polymarket_raw.rs

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

Comment @coderabbitai help to get the list of available commands.

@proerror77
proerror77 enabled auto-merge (squash) August 1, 2026 08:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 71ac5c4466

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread deployment/aliyun/README.md
Comment thread deployment/aliyun/polymarket-reference-collector-shadow@.service
Sonic Shih added 2 commits August 1, 2026 17:21
… growth

A 2026-08-01 shadow gate (invocation 329edad2) failed on memory.events
high growth: the tracked catalog (6509 markets, 316k retained trade
ids) outgrew the 672MiB/768MiB pair calibrated for a smaller catalog.
Raise both the production and shadow units to 1536MiB/2048MiB and
document the new measurement in the README calibration history.

Refs #553
@proerror77
proerror77 force-pushed the codex/pm-ref-mem-raise branch from b57d389 to 861b7a9 Compare August 1, 2026 09:21
@proerror77
proerror77 merged commit 0af26a7 into main Aug 1, 2026
43 checks passed
@proerror77
proerror77 deleted the codex/pm-ref-mem-raise branch August 1, 2026 09:28
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