Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonHxy committed Jun 21, 2023
1 parent 2fc6411 commit ad67762
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
8 changes: 6 additions & 2 deletions conf/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,8 @@ maxConcurrentTopicLoadRequest=5000
# Max concurrent non-persistent message can be processed per connection
maxConcurrentNonPersistentMessagePerConnection=1000

# Number of worker threads to serve non-persistent topic
numWorkerThreadsForNonPersistentTopic=
# Number of worker threads to serve topic ordered executor
topicOrderedExecutorThreadNum=

# Enable broker to load persistent topics
enablePersistentTopics=true
Expand Down Expand Up @@ -1816,3 +1816,7 @@ persistentUnackedRangesWithMultipleEntriesEnabled=false

# Deprecated - Use managedLedgerCacheEvictionIntervalMs instead
managedLedgerCacheEvictionFrequency=0

# Number of worker threads to serve non-persistent topic
# Deprecated - use topicOrderedExecutorThreadNum instead.
numWorkerThreadsForNonPersistentTopic=
8 changes: 6 additions & 2 deletions conf/standalone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ maxConcurrentTopicLoadRequest=5000
# Max concurrent non-persistent message can be processed per connection
maxConcurrentNonPersistentMessagePerConnection=1000

# Number of worker threads to serve non-persistent topic
numWorkerThreadsForNonPersistentTopic=8
# Number of worker threads to serve topic ordered executor
topicOrderedExecutorThreadNum=8

# Enable broker to load persistent topics
enablePersistentTopics=true
Expand Down Expand Up @@ -1201,6 +1201,10 @@ functionsWorkerEnablePackageManagement=false

# These settings are left here for compatibility

# Number of worker threads to serve non-persistent topic
# Deprecated - use topicOrderedExecutorThreadNum instead.
numWorkerThreadsForNonPersistentTopic=8

# Zookeeper session timeout in milliseconds
# Deprecated: use metadataStoreSessionTimeoutMillis
zooKeeperSessionTimeoutMillis=-1
Expand Down
8 changes: 6 additions & 2 deletions deployment/terraform-ansible/templates/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ maxConcurrentTopicLoadRequest=5000
# Max concurrent non-persistent message can be processed per connection
maxConcurrentNonPersistentMessagePerConnection=1000

# Number of worker threads to serve non-persistent topic
numWorkerThreadsForNonPersistentTopic=8
# Number of worker threads to serve topic ordered executor
topicOrderedExecutorThreadNum=8

# Enable broker to load persistent topics
enablePersistentTopics=true
Expand Down Expand Up @@ -1127,6 +1127,10 @@ fileSystemURI=

### --- Deprecated config variables --- ###

# Number of worker threads to serve non-persistent topic
# Deprecated - use topicOrderedExecutorThreadNum instead.
numWorkerThreadsForNonPersistentTopic=8

# Deprecated. Use configurationStoreServers
globalZookeeperServers={{ zookeeper_servers }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private ServiceConfiguration getConf() {
conf.setWebServicePort(Optional.of(0));
conf.setNumExecutorThreadPoolSize(1);
conf.setNumCacheExecutorThreadPoolSize(1);
conf.setNumWorkerThreadsForNonPersistentTopic(1);
conf.setTopicOrderedExecutorThreadNum(1);
conf.setNumIOThreads(1);
conf.setNumOrderedExecutorThreads(1);
conf.setBookkeeperClientNumWorkerThreads(1);
Expand Down

0 comments on commit ad67762

Please # to comment.