pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

Dispatch rate limiting overshoots the message rate with batched messages

Open merlimat opened this issue 1 month ago • 1 comments

AbstractBaseDispatcher.applyDispatchRateLimitsToReadLimits caps the number of entries to read using the available message-rate permits. With batching, each entry holds many messages, so a single read can dispatch several times the configured msg/s before the limiter catches up.

Earlier attempt: #18553.

merlimat avatar Oct 17 '26 01:10 merlimat

Hi @merlimat, I'm working on a fix for this to scale the entry read limits using average messages per entry when batching is enabled.

abhiramaab avatar Oct 20 '26 16:10 abhiramaab