Rebuild concurrency cap companion: MaxConcurrentRebuildsPerDatabase resolution + descriptor (jasperfx#420/#434)#299
Merged
Conversation
…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>
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.
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.MaxConcurrentRebuildsPerDatabaseoverride onDocumentStore, read by theprojections rebuildCLI fan-out: explicitStoreOptions.DaemonSettings.MaxConcurrentRebuildsPerDatabasewins (zero/negative opts back into unbounded), else a derivedmax(1, MaxPoolSize / 8)from the SqlClient connection pool, else null (historical unbounded).TryCreateUsagepopulatesEventStoreUsage.MaxConcurrentRebuildsPerDatabaseso CritterWatch#309's rebuild dispatcher can size its orchestration off the wire.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.🤖 Generated with Claude Code