Skip to content

Rebuild concurrency cap companion: MaxConcurrentRebuildsPerDatabase resolution + descriptor (jasperfx#420/#434)#299

Merged
jeremydmiller merged 1 commit into
mainfrom
feat/rebuild-cap-companion
Jul 7, 2026
Merged

Rebuild concurrency cap companion: MaxConcurrentRebuildsPerDatabase resolution + descriptor (jasperfx#420/#434)#299
jeremydmiller merged 1 commit into
mainfrom
feat/rebuild-cap-companion

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

Polecat side of the per-database rebuild concurrency cap train (jasperfx#420 / jasperfx#463, epic jasperfx#486 WS3) — the companion jasperfx#434's list called for. Marten twin: JasperFx/marten#4878.

What's here

  • IEventStore.MaxConcurrentRebuildsPerDatabase override on DocumentStore, read by the projections rebuild CLI fan-out: explicit StoreOptions.DaemonSettings.MaxConcurrentRebuildsPerDatabase wins (zero/negative opts back into unbounded), else a derived max(1, MaxPoolSize / 8) from the SqlClient connection pool, else null (historical unbounded).
  • TryCreateUsage populates EventStoreUsage.MaxConcurrentRebuildsPerDatabase so CritterWatch#309's rebuild dispatcher can size its orchestration off the wire.
  • JasperFx pin 2.20.0 → 2.23.0 (picks up the 2.21.x per-tenant HWM cadence fix, the 2.22.0 connection governors, and the 2.23.0 rebuild-cap surface).

Tests

  • rebuild_concurrency_cap_resolution (5, connection-free): configured knob wins; non-positive disables; pool 64 → 8; pool 5 → floors at 1; descriptor carries the effective cap.
  • Full Polecat.Tests green on net9.0 across the pin jump: 1405 passed / 0 failed.

🤖 Generated with Claude Code

…atabase + descriptor population (jasperfx#420/#434/#463, epic jasperfx#486 WS3)

- DocumentStore resolves IEventStore.MaxConcurrentRebuildsPerDatabase:
  explicit StoreOptions.DaemonSettings knob wins, else max(1, MaxPoolSize/8)
  derived from the SqlClient pool, else unbounded
- TryCreateUsage populates EventStoreUsage.MaxConcurrentRebuildsPerDatabase
  for CritterWatch#309's rebuild dispatcher
- JasperFx 2.23.0 pin (from 2.20.0); full Polecat.Tests green (1405/0, net9.0)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jeremydmiller jeremydmiller merged commit 3321c64 into main Jul 7, 2026
7 checks passed
@jeremydmiller jeremydmiller deleted the feat/rebuild-cap-companion branch July 7, 2026 18:20
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