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, Functions, Websocket] Disable memory limit controller in internal Pulsar clients by lhotari · Pull Request #15752 · apache/pulsar

Conversation

@lhotari

@lhotari lhotari commented May 24, 2022

Copy link
Copy Markdown
Member

Motivation

There's a performance regression with the memory limit change "PIP-120: Enable client memory limit by default", #13306 . PR was #13344 .

It's better to default to the previous setting of disabling memory limits for internal Pulsar clients so that the performance profile doesn't change because of the memory limit.

Modifications

Set .memoryLimit(0, SizeUnit.BYTES) for PulsarClient builders of the internal Pulsar clients.

Additional context

#15723 restores the default maxPendingMessages & maxPendingMessagesAcrossPartitions limits for producers to the defaults used before PIP-120 changes when the memory limit is disabled. That might be necessary in some cases for restoring the pre-PIP-120 behavior. It also disables the memory limit for the broker client and replication clients.
#15748 handles disabling memory limits for CLI tools such as pulsar-perf.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lhotari lhotari added area/function area/broker doc-not-needed Your PR changes do not impact docs release/2.10.1 labels May 24, 2022
@lhotari lhotari added this to the 2.11.0 milestone May 24, 2022
@lhotari
lhotari requested review from codelipenghui, eolivelli, merlimat and michaeljmarshall May 24, 2022 08:57
@lhotari lhotari self-assigned this May 24, 2022
merlimat
merlimat approved these changes May 25, 2022
View reviewed changes
michaeljmarshall
michaeljmarshall approved these changes May 25, 2022
View reviewed changes
@lhotari
[Broker, Functions, Websocket] Disable memory limit controller in int…
dbb58c6
…ernal Pulsar clients
@lhotari
lhotari force-pushed the lh-disable-memory-limit-in-remaining-internal-clients branch from 28f67ec to dbb58c6 Compare May 25, 2022 06:02
@lhotari
lhotari merged commit ec52320 into apache:master May 27, 2022
@michaeljmarshall michaeljmarshall mentioned this pull request May 27, 2022
Configure DLog Bookie, Pulsar, and Admin clients via pass through config #15818
Merged
lhotari added a commit that referenced this pull request Jun 6, 2022
@lhotari
[Broker, Functions, Websocket] Disable memory limit controller in int…
a85fdce
…ernal Pulsar clients (#15752)

(cherry picked from commit ec52320)
@lhotari lhotari added the cherry-picked/branch-2.10 label Jun 6, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jun 6, 2022
@lhotari @nicoloboschi
[Broker, Functions, Websocket] Disable memory limit controller in int…
e2dea87
…ernal Pulsar clients (apache#15752)

(cherry picked from commit ec52320)
(cherry picked from commit a85fdce)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@merlimat merlimat merlimat approved these changes
@michaeljmarshall michaeljmarshall michaeljmarshall approved these changes
@eolivelli eolivelli Awaiting requested review from eolivelli
@codelipenghui codelipenghui Awaiting requested review from codelipenghui

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lhotari lhotari

Labels

area/broker area/function cherry-picked/branch-2.10 doc-not-needed Your PR changes do not impact docs release/2.10.1

Projects

None yet

Milestone

2.11.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@lhotari @merlimat @michaeljmarshall
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.