Skip to content

[scheduler] Add end-to-end stress tests to scheduler #2425

Draft
DiegoTavares wants to merge 1 commit into
AcademySoftwareFoundation:masterfrom
DiegoTavares:stress-test
Draft

[scheduler] Add end-to-end stress tests to scheduler #2425
DiegoTavares wants to merge 1 commit into
AcademySoftwareFoundation:masterfrom
DiegoTavares:stress-test

Conversation

@DiegoTavares

Copy link
Copy Markdown
Collaborator

Booking + accounting stress suite for the Rust scheduler.
cluster feed → job query → host matching → dispatch) against a realistic farm in
two phases inside one process:

  1. drain — farm capacity comfortably exceeds demand. Benchmarks booking
    throughput (frames/s over the active booking window) and requires ≥90%
    (STRESS_DRAIN_TARGET) of frames to dispatch.
  2. saturation — demand vastly exceeds tight subscription bursts and per-job
    core caps, so the Redis Lua cap check becomes the binding constraint. Verifies
    enforcement (no booking above burst / job max-cores) and that rejections
    actually flowed through the accounting hot path.
    After each phase, an audit cross-checks every Redis acct:* hash against
    SUM(proc) in Postgres plus host/frame/stat invariants — with the recompute and
    limit-reseed loops pushed beyond the test horizon, agreement proves the dispatch
    hot path (Lua book + force-rollback) kept accounting exact on its own.

Requirements

  • Postgres with migrations applied, from the repo root: docker compose up -d flyway
  • A Docker daemon (the suite starts a throwaway Redis container via testcontainers;
    all Redis state dies with the container)

@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 899438c3-ac49-401a-b719-8481fe42a978

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

Booking + accounting stress suite for the Rust scheduler.
cluster feed → job query → host matching → dispatch) against a realistic farm in
two phases inside one process:
1. **drain** — farm capacity comfortably exceeds demand. Benchmarks booking
throughput (frames/s over the active booking window) and requires ≥90%
(`STRESS_DRAIN_TARGET`) of frames to dispatch.
2. **saturation** — demand vastly exceeds tight subscription bursts and per-job
core caps, so the Redis Lua cap check becomes the binding constraint. Verifies
enforcement (no booking above burst / job max-cores) and that rejections
actually flowed through the accounting hot path.
After each phase, an audit cross-checks every Redis `acct:*` hash against
`SUM(proc)` in Postgres plus host/frame/stat invariants — with the recompute and
limit-reseed loops pushed beyond the test horizon, agreement proves the dispatch
hot path (Lua book + force-rollback) kept accounting exact on its own.

Requirements
 - Postgres with migrations applied, from the repo root: `docker compose up -d flyway`
 - A Docker daemon (the suite starts a throwaway Redis container via testcontainers;
   all Redis state dies with the container)
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