Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][broker] Avoid producer latency rise #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

315157973
Copy link
Owner

Motivation

The executor in ManagedLedgerImpl uses the MainWorkerPool of bookKeeper, and both produce and consume use this thread pool.

When there are a large number of partitions in the cluster and the cluster is busy, trim ledger will cause the produce latency to rise from hundreds of milliseconds to seconds. We found that a large number of tasks are stuck in the queue of the thread pool

Trim ledger is a thread-safe operation and has no latency requirements, so we'd better separate it from MainWorkerPool of bookKeeper

Modifications

Separate it from MainWorkerPool of bookKeeper

Verifying this change

Documentation

  • doc-not-needed

Matching PR in forked repository

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

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

@github-actions github-actions bot added the Stale label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant