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

Support intra-broker throttling (replica.alter.log.dirs.io.max.bytes.per.second) #2145

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

dongjinleekr
Copy link
Contributor

This PR resolves #1851.

@dongjinleekr
Copy link
Contributor Author

This PR is an WIP; I will test this feature in our in-house fork (@naver) this week. Stay tuned!! 🙃

@dongjinleekr
Copy link
Contributor Author

@aswinayyolath @mhratson @jiao-zhangS Could you kindly have a look? We adopted this patch to our in-house distribution and confirmed it works correctly. 🙏

- Add: setLogDirThrottles, setLogDirThrottledRateIfNecessary
- Rename: removeReplicationThrottledRateFromBroker → removeThrottledRatesFromBroker
…oker rebalanacing

    - Rename: ReplicationThrottleHelper.clearThrottles → clearInterBrokerThrottles
    - Add ReplicationThrottleHelper.clearIntraBrokerThrottles
    - Executor.intraBrokerMoveReplicas now calls ReplicationThrottleHelper.setLogDirThrottles, ReplicationThrottleHelper.clearIntraBrokerThrottles
Copy link

@cpaika cpaika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will make things a lot more stable for JBOD clusters, good change

@@ -1707,6 +1729,11 @@ private void intraBrokerMoveReplicas() {
waitForIntraBrokerReplicaTasksToFinish();
inExecutionTasks = inExecutionTasks();
}

if (_logDirThrottle != null) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for my understanding, why the underscore in the variable names here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In consistency with _replicationThrottle.

@dongjinleekr
Copy link
Contributor Author

@cpaika @adkafka

Excuse me. Is there any issue with this PR? It initially worked on 2.5.138, and 2.5.141 was already released last month, but this PR has yet to be merged or released.

If any modifications are needed, don't hesitate to leave me a mention.

@adkafka
Copy link

adkafka commented Nov 18, 2024

@cpaika @adkafka

Excuse me. Is there any issue with this PR? It initially worked on 2.5.138, and 2.5.141 was already released last month, but this PR has yet to be merged or released.

If any modifications are needed, don't hesitate to leave me a mention.

I don't see any issues with this PR, but I'm not a maintainer of this project. We need a maintainer to review this and add their approval.

@aswinayyolath
Copy link
Contributor

@CCisGG could you please review this PR?

@dongjinleekr
Copy link
Contributor Author

@CCisGG Hello. Could you please have a look when you are free? 🙏

@CCisGG
Copy link
Contributor

CCisGG commented Dec 8, 2024

Hi @mhratson, would you mind taking a look at this one? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disk balance
5 participants