hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Krogen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-15311) HttpServer2 needs a way to configure the acceptor/selector count
Date Tue, 13 Mar 2018 16:31:00 GMT
Erik Krogen created HADOOP-15311:

             Summary: HttpServer2 needs a way to configure the acceptor/selector count
                 Key: HADOOP-15311
                 URL: https://issues.apache.org/jira/browse/HADOOP-15311
             Project: Hadoop Common
          Issue Type: Improvement
          Components: common
            Reporter: Erik Krogen
            Assignee: Erik Krogen

HttpServer2 starts up with some number of acceptors and selectors, but only allows for the
automatic configuration of these based off of the number of available cores:
selectors > 0 ? selectors : Math.max(1, Math.min(4, Runtime.getRuntime().availableProcessors()
/ 2)))
    if (acceptors < 0) {
      acceptors = Math.max(1, Math.min(4, cores / 8));
A thread pool is started of size, at minimum, {{acceptors + selectors + 1}}, so in addition
to allowing for a higher tuning value under heavily loaded environments, adding configurability
for this enables tuning these values down in resource constrained environments such as a MiniDFSCluster.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message