You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by rd...@apache.org on 2018/11/09 00:45:11 UTC

[pulsar] branch master updated: Derive np topic worker threads based on system config (#2956)

This is an automated email from the ASF dual-hosted git repository.

rdhabalia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new f9dc3e4  Derive np topic worker threads based on system config (#2956)
f9dc3e4 is described below

commit f9dc3e4518a294128fdc8f84887cf152a6bc40dc
Author: Rajan Dhabalia <rd...@apache.org>
AuthorDate: Thu Nov 8 16:45:07 2018 -0800

    Derive np topic worker threads based on system config (#2956)
---
 .../src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java
index 1cef4ed..29fc54a 100644
--- a/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java
+++ b/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java
@@ -186,7 +186,7 @@ public class ServiceConfiguration implements PulsarConfiguration {
     // Max concurrent non-persistent message can be processed per connection
     private int maxConcurrentNonPersistentMessagePerConnection = 1000;
     // Number of worker threads to serve non-persistent topic
-    private int numWorkerThreadsForNonPersistentTopic = 8;
+    private int numWorkerThreadsForNonPersistentTopic = Runtime.getRuntime().availableProcessors();;
 
     // Enable broker to load persistent topics
     private boolean enablePersistentTopics = true;