Repository navigation
support epoll - #4012
support epoll#4012Moriadry-zz wants to merge 4 commits into
Conversation
carryxyh
left a comment
There was a problem hiding this comment.
我不建议默认使用epoll。
Netty的Epoll只是边缘触发的epoll,而底层的selector是默认开启epoll的(如果系统支持,使用水平触发的epoll),性能提升并不是非常明显。
另外,据我了解,epoll并不是非常稳定以至于很多中间件只是提供了这个能力,但是默认都不会使用,举两个例子,rocketmq和flink。
|
Hi, carryxyh :) according to @lexburner 's previous benchmark, dubbo epoll benchmark : https://github.com/lexburner/dubbo-epoll-benchmark <https://github.com/lexburner/dubbo-epoll-benchmark We can find some improvement. Also in grpc-java, they also switched to epoll if Epoll is available, check this grpc/grpc-java#5581 . I can dig into this, maybe we can discuss on this for further consideration. @ralf0131 @beiwei30 What's your guys' opinion? |
What is the purpose of the change
This is an improvement of netty native transport, inspired by grpc and netty. Please check this issue #2737 . We can find some transport enhancement from this upgrade, What's more, with default Epoll, we can have more transport advantages, such as TCP_USER_TIME, choice between ET mode and LT mode, and so on.
Brief changelog
change default transport to Epoll if available, otherwise using Nio.
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:
[Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.mvn clean install -DskipTests=false&mvn clean test-compile failsafe:integration-testto make sure unit-test and integration-test pass.