GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #10439

New issue
Copy link
New issue
Copy link
Open
Open
[Broker & Bookie] Configure Bookkeeper client & server backpressure by default#10439
Copy link
Labels
area/configlifecycle/staletype/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Milestone
3.1.0

Description

@lhotari
lhotari
opened on Apr 29, 2021
Issue body actions

Is 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

Activity

  1. lhotari
    added
    type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
    on Apr 29, 2021
  2. eolivelli commented on Apr 29, 2021

    @eolivelli
    eolivelli
    on Apr 29, 2021
    Contributor
    More actions

    @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"

    Reacted by Lari Hotari
  3. lhotari commented on Apr 29, 2021

    @lhotari
    lhotari
    on Apr 29, 2021
    MemberAuthor
    More actions

    @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?

  4. eolivelli commented on Apr 29, 2021

    @eolivelli
    eolivelli
    on Apr 29, 2021
    Contributor
    More actions

    @lhotari yes
    I have picked it to branch-7.2

    Reacted by Lari Hotari
  5. lhotari commented on Aug 24, 2021

    @lhotari
    lhotari
    on Aug 24, 2021
    MemberAuthor
    More actions

    There is also apache/bookkeeper#2521 in BK related to the lack of backpressure configuration in Pulsar by default.

  6. codelipenghui
    added
    lifecycle/stale
    on Mar 4, 2022
  7. codelipenghui commented on Mar 4, 2022

    @codelipenghui
    codelipenghui
    on Mar 4, 2022
    Contributor
    More actions

    The issue had no activity for 30 days, mark with Stale label.

  8. lhotari commented on May 11, 2022

    @lhotari
    lhotari
    on May 11, 2022
    MemberAuthor
    More actions

    related: #14861 and apache/bookkeeper#3139

  9. lhotari commented on Aug 9, 2022

    @lhotari
    lhotari
    on Aug 9, 2022
    MemberAuthor
    More actions

    Fixes for backpressure issues on bookkeeper side: apache/bookkeeper#3321, apache/bookkeeper#3323, apache/bookkeeper#3324

  10. lhotari
    added this to the 2.12.0 milestone on Sep 9, 2022
  11. lhotari
    assigned
    michaeljmarshall
    on Sep 9, 2022
  12. lhotari commented on Sep 14, 2022

    @lhotari
    lhotari
    on Sep 14, 2022
    MemberAuthor
    More actions

    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.

  13. michaeljmarshall
    removed their assignment
    on Oct 11, 2022
  14. RobertIndie
    modified the milestones: 3.0.0, 3.1.0 on Apr 11, 2023
  15. merlimat
    added
    area/config
    on Oct 24, 2026
  16. merlimat commented on Oct 24, 2026

    @merlimat
    merlimat
    on Oct 24, 2026
    Contributor
    More actions

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/configlifecycle/staletype/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

    Type

    No type

    Projects

    No projects

      Milestone

      • 3.1.0

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.