-
Notifications
You must be signed in to change notification settings - Fork 364
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
base: main
Are you sure you want to change the base?
Conversation
…le memory allocator share
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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()); | ||
} |
There was a problem hiding this comment.
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
I will daft it, we should ensure that in all places where getPooledByteBufAllocator is called, the source passed in is not null. |
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"; |
There was a problem hiding this comment.
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
poolName = allowCache ? "netty-shared-cache-pool" : "netty-shared-non-cache-pool"; | |
poolName = allowCache ? "celeborn-netty-shared-cache-pool" : "celeborn-netty-shared-pool"; |
how does this affect grafana dashboard? |
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.