Skip to content

[CELEBORN-1487][Phase2] CongestionController support dynamic config#2817

Closed
leixm wants to merge 4 commits into
apache:mainfrom
leixm:CELEBORN-1487-2
Closed

[CELEBORN-1487][Phase2] CongestionController support dynamic config#2817
leixm wants to merge 4 commits into
apache:mainfrom
leixm:CELEBORN-1487-2

Conversation

@leixm
Copy link
Copy Markdown
Contributor

@leixm leixm commented Oct 16, 2024

What changes were proposed in this pull request?

CongestionController support dynamic config

Why are the changes needed?

Currently, Celeborn only supports quota management based on disk file bytes/count, and this quota management cannot cope with sudden increases in traffic, which will cause corrupt to the cluster.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

UT.

@leixm
Copy link
Copy Markdown
Contributor Author

leixm commented Oct 16, 2024

Can you help review? @RexXiong

*
* @param listener the listener to be registered
*/
void registerListenerOnConfigUpdate(Consumer<ConfigService> listener);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we don't have a listener interface, perhaps using Runnable would be more suitable, as we wouldn't need to accept a ConfigService.

return consumedBufferStatusHub;
}

private void updateQuota(ConfigService configService) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: configService is already a member variable

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Copy Markdown
Contributor

@RexXiong RexXiong left a comment

Choose a reason for hiding this comment

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

LGTM, merge to main(v0.6.0)

@RexXiong RexXiong closed this in 7c9a008 Oct 18, 2024
zaynt4606 pushed a commit to zaynt4606/celeborn that referenced this pull request Oct 21, 2024
### What changes were proposed in this pull request?
CongestionController support dynamic config

### Why are the changes needed?
Currently, Celeborn only supports quota management based on disk file bytes/count, and this quota management cannot cope with sudden increases in traffic, which will cause corrupt to the cluster.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
UT.

Closes apache#2817 from leixm/CELEBORN-1487-2.

Authored-by: Xianming Lei <31424839+leixm@users.noreply.github.com>
Signed-off-by: Shuang <lvshuang.xjs@alibaba-inc.com>
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.

2 participants