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

[CELEBORN-1787] Fix netty memory metrics was not registered when enable memory allocator share #3007

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

leixm
Copy link
Contributor

@leixm leixm commented Dec 19, 2024

What changes were proposed in this pull request?

Fix netty memory metrics was not registered when enable memory allocator share

Why are the changes needed?

Fix netty memory metrics was not registered when enable memory allocator share

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing uts.

@leixm
Copy link
Contributor Author

leixm commented Dec 19, 2024

@SteNicholas @RexXiong @AngersZhuuuu PTAL.

Copy link
Contributor

@AngersZhuuuu AngersZhuuuu left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@FMX FMX left a comment

Choose a reason for hiding this comment

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

LGTM.

conf.networkAllocatorVerboseMetric(),
source,
Collections.emptyMap());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should remove create NettyMemoryMetrics here

@leixm
Copy link
Contributor Author

leixm commented Dec 19, 2024

I will daft it, we should ensure that in all places where getPooledByteBufAllocator is called, the source passed in is not null.

@leixm leixm marked this pull request as draft December 19, 2024 07:48
poolName = moduleName;
int index = allocatorsIndex.compute(moduleName, (k, v) -> v == null ? 0 : v + 1);
if (conf.getCelebornConf().networkMemoryAllocatorAllowCache()) {
poolName = allowCache ? "netty-shared-cache-pool" : "netty-shared-non-cache-pool";
Copy link
Member

Choose a reason for hiding this comment

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

given it also could be used on the client side, we'd better have celeborn- prefix in the name to distinguish with netty pools created by other components

Suggested change
poolName = allowCache ? "netty-shared-cache-pool" : "netty-shared-non-cache-pool";
poolName = allowCache ? "celeborn-netty-shared-cache-pool" : "celeborn-netty-shared-pool";

@pan3793
Copy link
Member

pan3793 commented Dec 20, 2024

how does this affect grafana dashboard?

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.

4 participants