Skip to content

ignite-28305 backpressure to limit in flight partition operations per…#7950

Open
EgorKuts wants to merge 1 commit intoapache:mainfrom
EgorKuts:ignite-28305
Open

ignite-28305 backpressure to limit in flight partition operations per…#7950
EgorKuts wants to merge 1 commit intoapache:mainfrom
EgorKuts:ignite-28305

Conversation

@EgorKuts
Copy link
Copy Markdown
Contributor

@EgorKuts EgorKuts commented Apr 7, 2026

Before this change, a node could accept an unbounded number of partition operations, which could lead to the following problems:

Long-queued operations no longer make sense to the client by the time they are executed, forcing the node to perform useless work before it can start handling new requests.

That useless work still consumes node resources (CPU, memory, threads).

Eventually this can lead to OOM.

To prevent such scenarios, this change introduces a node-level semaphore shared across the replica manager and thin-client connector that limits the total number of concurrent partition operations to

maxInFlightPartitionOperationsPerCore * availableProcessors
When the limit is reached, new requests are rejected immediately with ReplicaOverloadedException so clients can back off, while already accepted operations complete uninterrupted.

The limit is disabled by default

(maxInFlightPartitionOperationsPerCore = 0)
Operator can start tuning this around 512 per core and adjust based on observed heap usage and rejection rate under peak load.

https://issues.apache.org/jira/browse/IGNITE-28305

@EgorKuts EgorKuts force-pushed the ignite-28305 branch 7 times, most recently from 9140021 to 4fd15ab Compare April 10, 2026 11:25
@EgorKuts EgorKuts marked this pull request as ready for review April 10, 2026 15:25
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