GeezerVison is showing github.com — [Broker & Bookie] Configure Bookkeeper client & server backpressure by default · Issue #10439 · apache/pulsar
[Broker & Bookie] Configure Bookkeeper client & server backpressure by default #10439DescriptionIs your enhancement request related to a problem? Please describe.
Pulsar doesn't take advantage of Bookkeeper's client-side and server-side backpressure features.
apache/bookkeeper#1086 and apache/bookkeeper#1409 are the original Bookkeeper issues about the lack of backpressure handling. Similar problems exist with Pulsar since backpressure handling isn't configured. One of the reported issues is #9562 .
Describe the solution you'd like
Configure waitTimeoutOnBackpressureMs in the Bookkeeper client configuration (Pulsar broker side) and waitTimeoutOnResponseBackpressureMs, maxAddsInProgressLimit, maxReadsInProgressLimit in the Bookkeeper server ("Bookie") configuration with sane default values.
Additional context
#9562 Reacted by Michael Marshall Activityeolivelli commented on Apr 29, 2021 @lhotari since 2.8 you can configure the bookkeeper client inside the broker just by adding
bookkeeper_xxx in broker.conf
check for instance the case of "bookkeeper_opportunisticStriping" lhotari commented on Apr 29, 2021 @eolivelli Would it be possible to cherry-pick #9232 to branch-2.7 so that it would be possible to configure waitTimeoutOnBackpressureMs on the broker side by using bookkeeper_waitTimeoutOnBackpressureMs configuration key? eolivelli commented on Apr 29, 2021 @lhotari yes
I have picked it to branch-7.2 lhotari commented on Aug 24, 2021 There is also apache/bookkeeper#2521 in BK related to the lack of backpressure configuration in Pulsar by default. codelipenghui commented on Mar 4, 2022 The issue had no activity for 30 days, mark with Stale label. lhotari commented on May 11, 2022 lhotari commented on Aug 9, 2022 lhotari commented on Sep 14, 2022 Pulsar uses Bookkeeper protocol V2 by default because V3 uses GRPC and that is not "garbage free". With V2 protocol, there is less GC overhead.
The backpressure feature in bookkeeper wasn't implemented in V2 until apache/bookkeeper#3324 . This is released in 4.14.6 / 4.15.1 versions of bookkeeper. merlimat commented on Oct 24, 2026 Thanks @lhotari. The blocker you found, missing backpressure on the V2 protocol, is fixed in BookKeeper 4.14.6/4.15.1, and master is on BookKeeper 4.18.2. The defaults are still unset: waitTimeoutOnBackpressureMs on the broker's BookKeeper client and maxAddsInProgressLimit/maxReadsInProgressLimit/waitTimeoutOnResponseBackpressureMs on the bookie. Turning them on by default changes configuration behavior for every deployment, so it needs a PIP with the proposed values and benchmark results: https://github.com/apache/pulsar/blob/master/pip/README.md. Closing for now; a PIP is welcome. Until then, the settings can be enabled explicitly (bookkeeper_waitTimeoutOnBackpressureMs in broker.conf).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|