Skip to content

Conversation

@lhotari
Copy link
Member

@lhotari lhotari commented May 24, 2022

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.

@lhotari lhotari added this to the 2.11.0 milestone May 24, 2022
@lhotari lhotari self-assigned this May 24, 2022
@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
lhotari added a commit that referenced this pull request Jun 6, 2022
…ernal Pulsar clients (#15752)

(cherry picked from commit ec52320)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jun 6, 2022
…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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants