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] disable loadBalancerMemoryResourceWeight by default #22820

Conversation

thetumbled
Copy link
Member

@thetumbled thetumbled commented Jun 3, 2024

Motivation

We have deprecated loadBalancerMemoryResourceWeight in PR: #19559, because the memory usage increase all the way until the GC reclaim the space, thus there is no relation between the actual load with the memory usage.
But PR: #19559 don't remove all usage of this conf, there is still some logic using this deprecated conf. Meanwhile, there is a try to enhance the memory usage collection by Lari (#21973), so there is possibilty that we may enable this conf again if the memory usage is proved to be related with the actual load.
Based on info aboved, i think that we have better to make the default value of deprecated loadBalancerMemoryResourceWeight to 0, in such way we can avoid the interference from the memory usage and waiting for Lari's enhancement.

Modifications

Change the default value of loadBalancerMemoryResourceWeight to 0.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 3, 2024
@thetumbled
Copy link
Member Author

PTAL, thanks. @lhotari @Demogorgon314 @heesung-sn @BewareMyPower

@thetumbled
Copy link
Member Author

I start a discussion for this pr: https://lists.apache.org/thread/qpdvyytk8y7x8yzh35jshksnl6498y3r, looking forward to your feedback.

@BewareMyPower BewareMyPower added this to the 3.4.0 milestone Jun 4, 2024
@thetumbled
Copy link
Member Author

/pulsarbot rerun-failure-checks

1 similar comment
@thetumbled
Copy link
Member Author

/pulsarbot rerun-failure-checks

@BewareMyPower BewareMyPower merged commit 342d88d into apache:master Jun 5, 2024
56 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs ready-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants