Skip to content

Commit

Permalink
[SPARK-30512] Added a dedicated boss event loop group (apache#639)
Browse files Browse the repository at this point in the history
Backport of https://issues.apache.org/jira/browse/SPARK-30512. Intent is to upgrade the shuffle service that we run inside NodeManagers to a version with this change.
  • Loading branch information
sjrand authored Feb 4, 2020
1 parent 1501ead commit f7784aa
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ public int getPort() {
private void init(String hostToBind, int portToBind) {

IOMode ioMode = IOMode.valueOf(conf.ioMode());
EventLoopGroup bossGroup =
NettyUtils.createEventLoop(ioMode, conf.serverThreads(), conf.getModuleName() + "-server");
EventLoopGroup workerGroup = bossGroup;
EventLoopGroup bossGroup = NettyUtils.createEventLoop(ioMode, 1,
conf.getModuleName() + "-boss");
EventLoopGroup workerGroup = NettyUtils.createEventLoop(ioMode, conf.serverThreads(),
conf.getModuleName() + "-server");

bootstrap = new ServerBootstrap()
.group(bossGroup, workerGroup)
Expand Down

0 comments on commit f7784aa

Please sign in to comment.