Repository: storm
Updated Branches:
  refs/heads/master 0e9199555 -> bd396b3a4


STORM-1569: Adding option in nimbus to specify request queue size in config.


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/24a87af2
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/24a87af2
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/24a87af2

Branch: refs/heads/master
Commit: 24a87af2c4a1aa6f03c0ccdabccde8ecb322bd99
Parents: 7562da3
Author: Parth Brahmbhatt <[email protected]>
Authored: Tue Feb 23 10:28:05 2016 -0800
Committer: Parth Brahmbhatt <[email protected]>
Committed: Tue Feb 23 10:28:05 2016 -0800

----------------------------------------------------------------------
 conf/defaults.yaml                                          | 2 +-
 storm-core/src/jvm/org/apache/storm/Config.java             | 9 +++++++++
 .../apache/storm/security/auth/ThriftConnectionType.java    | 2 +-
 3 files changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/24a87af2/conf/defaults.yaml
----------------------------------------------------------------------
diff --git a/conf/defaults.yaml b/conf/defaults.yaml
index 166b249..09c505b 100644
--- a/conf/defaults.yaml
+++ b/conf/defaults.yaml
@@ -77,7 +77,7 @@ topology.min.replication.count: 1
 topology.max.replication.wait.time.sec: 60
 nimbus.credential.renewers.freq.secs: 600
 nimbus.impersonation.authorizer: 
"org.apache.storm.security.auth.authorizer.ImpersonationAuthorizer"
-
+nimbus.queue.size: 100000
 scheduler.display.resource: false
 
 ### ui.* configs are for the master

http://git-wip-us.apache.org/repos/asf/storm/blob/24a87af2/storm-core/src/jvm/org/apache/storm/Config.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/org/apache/storm/Config.java 
b/storm-core/src/jvm/org/apache/storm/Config.java
index a8cf4e2..6ea8b0f 100644
--- a/storm-core/src/jvm/org/apache/storm/Config.java
+++ b/storm-core/src/jvm/org/apache/storm/Config.java
@@ -676,6 +676,15 @@ public class Config extends HashMap<String, Object> {
     public static final String NIMBUS_AUTO_CRED_PLUGINS = 
"nimbus.autocredential.plugins.classes";
 
     /**
+     * Nimbus thrift server queue size, default is 100000. This is the request 
queue size , when there are more requests
+     * than number of threads to serve the requests, those requests will be 
queued to this queue. If the request queue
+     * size > this config, then the incoming requests will be rejected.
+     */
+    @isInteger
+    @isPositiveNumber
+    public static final String NIMBUS_QUEUE_SIZE = "nimbus.queue.size";
+
+    /**
      * FQCN of a class that implements {@code ISubmitterHook} @see 
ISubmitterHook for details.
      */
 

http://git-wip-us.apache.org/repos/asf/storm/blob/24a87af2/storm-core/src/jvm/org/apache/storm/security/auth/ThriftConnectionType.java
----------------------------------------------------------------------
diff --git 
a/storm-core/src/jvm/org/apache/storm/security/auth/ThriftConnectionType.java 
b/storm-core/src/jvm/org/apache/storm/security/auth/ThriftConnectionType.java
index 6d05a8a..27db143 100644
--- 
a/storm-core/src/jvm/org/apache/storm/security/auth/ThriftConnectionType.java
+++ 
b/storm-core/src/jvm/org/apache/storm/security/auth/ThriftConnectionType.java
@@ -26,7 +26,7 @@ import java.util.Map;
  * The purpose for which the Thrift server is created.
  */
 public enum ThriftConnectionType {
-    NIMBUS(Config.NIMBUS_THRIFT_TRANSPORT_PLUGIN, Config.NIMBUS_THRIFT_PORT, 
null,
+    NIMBUS(Config.NIMBUS_THRIFT_TRANSPORT_PLUGIN, Config.NIMBUS_THRIFT_PORT, 
Config.NIMBUS_QUEUE_SIZE,
          Config.NIMBUS_THRIFT_THREADS, Config.NIMBUS_THRIFT_MAX_BUFFER_SIZE),
     DRPC(Config.DRPC_THRIFT_TRANSPORT_PLUGIN, Config.DRPC_PORT, 
Config.DRPC_QUEUE_SIZE,
          Config.DRPC_WORKER_THREADS, Config.DRPC_MAX_BUFFER_SIZE),

Reply via email to