lhotari opened a new issue, #23482: URL: https://github.com/apache/pulsar/issues/23482
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Motivation Current `managedLedgerMaxReadsInFlightSizeInMB` will have to be set to value that is higher than `dispatcherMaxReadBatchSize` * `maxMessageSize`. Otherwise it could result in error `Time-out elapsed while acquiring enough permits on the memory limiter to read from ledger [ledgerid], [topic], estimated read size [read size] bytes for [dispatcherMaxReadBatchSize] entries (check managedLedgerMaxReadsInFlightSizeInMB)`. `dispatcherMaxReadBatchSize` defaults to `100` and `maxMessageSize` defaults to `5MB` in bytes. ### Solution Adjust batch size in dispatcher so that a single batch doesn't exceed `managedLedgerMaxReadsInFlightSizeInMB` ### Alternatives _No response_ ### Anything else? _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
