[feat][broker] introduce precise broker publish rate limiting #20292
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.
Motivation
The publish rate limit for each broker is ineffective, and the reason for this problem is the same as #7078;
Modifications
When preciseTopicPublishRateLimiterEnable=true, use PrecisPublishLimiter as the publish rate limit for each broker.
A comparative test:

test steps:
1.Start prducer perf, the qps of broker is 10w/s:
2.Enable broker speed limit:
sh bin/pulsar-admin brokers update-dynamic-config --config brokerPublisherThrottlingMaxMessageRate --value 500003.The speed limit effect is as follows: Broker write rate limit does not take effect

4.Use the improved precision speed limit feature:It can be seen that the speed limit effect is as expected

Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: lordcheng10#49