+1

Thanks,
Haiting

On Wed, Jun 18, 2025 at 11:44 AM Yubiao Feng
<yubiao.f...@streamnative.io.invalid> wrote:
>
> It is very meaningful.
>
> Thanks
> Yubiao Feng
>
> On Wed, Jun 18, 2025 at 10:52 AM PengHui Li <peng...@apache.org> wrote:
>
> > Hi everyone,
> >
> > I would like to start a discussion on a proposal to improve the default
> > behavior of the pulsar-admin namespaces set-persistence command.
> >
> > *The Problem:*
> >
> > Currently, if an operator uses set-persistence to change a namespace
> > policy, but omits the --ml-mark-delete-max-rate flag, the command
> > implicitly resets the mark-delete rate to 0 (unlimited). This is a
> > potentially dangerous side effect, as it can lead to unexpected high I/O
> > load on BookKeeper, especially in clusters with high acknowledgement rates.
> > This behavior acts as a "footgun" for operators who may not be aware of
> > this side effect.
> >
> > *The Proposal:*
> >
> > My proposal is to change this behavior to be safer and more intuitive.
> > Instead of defaulting to 0, if the --ml-mark-delete-max-rate flag is
> > omitted during a set-persistence call, the broker should apply its own
> > configured default value from the managedLedgerMaxMarkDeleteRate setting in
> > broker.conf (which is typically 1.0).
> >
> > This prevents the accidental disabling of this important throttling
> > mechanism. The ability for a user to explicitly set the rate to 0 would be
> > retained.
> >
> > I've written a full PIP with the detailed motivation, proposed changes. You
> > can find the draft here: https://github.com/apache/pulsar/pull/24425
> >
> > I would appreciate any feedback, thoughts, or concerns from the community
> > on this proposal.
> >
> > Thanks,
> >
> > - Penghui
> >
>
> --
> This email and any attachments are intended solely for the recipient(s)
> named above and may contain confidential, privileged, or proprietary
> information. If you are not the intended recipient, you are hereby notified
> that any disclosure, copying, distribution, or reproduction of this
> information is strictly prohibited. If you have received this email in
> error, please notify the sender immediately by replying to this email and
> delete it from your system.

Reply via email to