MAPREDUCE-6763. Shuffle server listen queue is too small (Jason Lowe via Varun Saxena)
This commit is contained in:
parent
4f3df8e22a
commit
6f1a9f1b6a
|
@ -209,6 +209,12 @@
|
||||||
</description>
|
</description>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
<property>
|
||||||
|
<name>mapreduce.shuffle.listen.queue.size</name>
|
||||||
|
<value>128</value>
|
||||||
|
<description>The length of the shuffle server listen queue.</description>
|
||||||
|
</property>
|
||||||
|
|
||||||
<property>
|
<property>
|
||||||
<name>mapreduce.shuffle.connection-keep-alive.enable</name>
|
<name>mapreduce.shuffle.connection-keep-alive.enable</name>
|
||||||
<value>false</value>
|
<value>false</value>
|
||||||
|
|
|
@ -185,6 +185,10 @@ public class ShuffleHandler extends AuxiliaryService {
|
||||||
public static final String SHUFFLE_PORT_CONFIG_KEY = "mapreduce.shuffle.port";
|
public static final String SHUFFLE_PORT_CONFIG_KEY = "mapreduce.shuffle.port";
|
||||||
public static final int DEFAULT_SHUFFLE_PORT = 13562;
|
public static final int DEFAULT_SHUFFLE_PORT = 13562;
|
||||||
|
|
||||||
|
public static final String SHUFFLE_LISTEN_QUEUE_SIZE =
|
||||||
|
"mapreduce.shuffle.listen.queue.size";
|
||||||
|
public static final int DEFAULT_SHUFFLE_LISTEN_QUEUE_SIZE = 128;
|
||||||
|
|
||||||
public static final String SHUFFLE_CONNECTION_KEEP_ALIVE_ENABLED =
|
public static final String SHUFFLE_CONNECTION_KEEP_ALIVE_ENABLED =
|
||||||
"mapreduce.shuffle.connection-keep-alive.enable";
|
"mapreduce.shuffle.connection-keep-alive.enable";
|
||||||
public static final boolean DEFAULT_SHUFFLE_CONNECTION_KEEP_ALIVE_ENABLED = false;
|
public static final boolean DEFAULT_SHUFFLE_CONNECTION_KEEP_ALIVE_ENABLED = false;
|
||||||
|
@ -494,6 +498,8 @@ public class ShuffleHandler extends AuxiliaryService {
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
throw new RuntimeException(ex);
|
throw new RuntimeException(ex);
|
||||||
}
|
}
|
||||||
|
bootstrap.setOption("backlog", conf.getInt(SHUFFLE_LISTEN_QUEUE_SIZE,
|
||||||
|
DEFAULT_SHUFFLE_LISTEN_QUEUE_SIZE));
|
||||||
bootstrap.setOption("child.keepAlive", true);
|
bootstrap.setOption("child.keepAlive", true);
|
||||||
bootstrap.setPipelineFactory(pipelineFact);
|
bootstrap.setPipelineFactory(pipelineFact);
|
||||||
port = conf.getInt(SHUFFLE_PORT_CONFIG_KEY, DEFAULT_SHUFFLE_PORT);
|
port = conf.getInt(SHUFFLE_PORT_CONFIG_KEY, DEFAULT_SHUFFLE_PORT);
|
||||||
|
|
Loading…
Reference in New Issue