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

chore: Add support for controlling the NettyTransport's byteBuf allocator type. #1707

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

He-Pin
Copy link
Member

@He-Pin He-Pin commented Jan 13, 2025

Motivation:
As a response to apache/flink#25866
@davidradl @afedulov want to control the bytebuf allocator type.

Modification:
Add bytebuf-allocator-type selector , with pooled by default.

Result:
The bytebuf allocator can be configured now.

@He-Pin He-Pin requested a review from pjfanning January 13, 2025 20:45
Copy link
Contributor

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

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

lgtm

@He-Pin
Copy link
Member Author

He-Pin commented Jan 14, 2025

@pjfanning Wdyt about backpacking this to 1.1.x?

@pjfanning
Copy link
Contributor

@pjfanning Wdyt about backpacking this to 1.1.x?

Maybe. Let's see what other people say about the PR.

Even if we do backport it, we would still need to do a release and are Flink team that interested in this?

@He-Pin
Copy link
Member Author

He-Pin commented Jan 14, 2025

@a1kemist asked for this.
TBH from netty/netty#14556 (reply in thread) , migrating to Netty 4 will improve performance with the ByteBufAllocator being shared.

@He-Pin He-Pin merged commit dbc9ed3 into apache:main Jan 14, 2025
9 checks passed
He-Pin added a commit to He-Pin/incubator-pekko that referenced this pull request Jan 14, 2025
…ator type. (apache#1707)

* chore: Add support for controlling the NettyTransport's byteBuf allocator type.

* chore: extract deriveByteBufAllocator method

(cherry picked from commit dbc9ed3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants