Increase default value for plugin.@PLUGIN@.numberOfSubscribers
This number will be used to allocate a thread pool of a suitable
size. Setting it by default to seven allows all subscribers from
multi-site and pull-replication plugins to subscribe and consume
messages.
Bug: Issue 327226782
Change-Id: I5018be37a7c24d865433040d2e55fcd06a1c2990
diff --git a/src/main/java/com/googlesource/gerrit/plugins/kafka/config/KafkaSubscriberProperties.java b/src/main/java/com/googlesource/gerrit/plugins/kafka/config/KafkaSubscriberProperties.java
index f9100ef..c60d0e5 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/kafka/config/KafkaSubscriberProperties.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/kafka/config/KafkaSubscriberProperties.java
@@ -24,7 +24,7 @@
public class KafkaSubscriberProperties extends KafkaProperties {
private static final long serialVersionUID = 1L;
public static final String DEFAULT_POLLING_INTERVAL_MS = "1000";
- public static final String DEFAULT_NUMBER_OF_SUBSCRIBERS = "6";
+ public static final String DEFAULT_NUMBER_OF_SUBSCRIBERS = "7";
private final Integer pollingInterval;
private final String groupId;
diff --git a/src/main/resources/Documentation/config.md b/src/main/resources/Documentation/config.md
index 621d769..73a7643 100644
--- a/src/main/resources/Documentation/config.md
+++ b/src/main/resources/Documentation/config.md
@@ -61,8 +61,8 @@
`plugin.@PLUGIN@.numberOfSubscribers`
: The number of consumers that are expected to be executed. This number will
be used to allocate a thread pool of a suitable size.
- Default to `6`. This is to allow enough resources to consume all relevant
- gerrit topics in a multi-site deployment: `batchIndexEventTopic`
+ Default to `7`. This is to allow enough resources to consume all relevant
+ gerrit topics in a multi-site with pull-replication deployment: `batchIndexEventTopic`
`streamEventTopic`, `gerritTopic`, `projectListEventTopic`,
`cacheEventTopic`, `indexEventTopic`