You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2019/07/09 16:02:03 UTC
[pulsar] branch master updated: Add allowAutoTopicCreation to
broker.conf and reference configuration. (#4694)
This is an automated email from the ASF dual-hosted git repository.
mmerli 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 a0ec11a Add allowAutoTopicCreation to broker.conf and reference configuration. (#4694)
a0ec11a is described below
commit a0ec11acf40a316420d15f3b79b5fe0eedf70392
Author: lipenghui <pe...@apache.org>
AuthorDate: Wed Jul 10 00:01:57 2019 +0800
Add allowAutoTopicCreation to broker.conf and reference configuration. (#4694)
---
conf/broker.conf | 3 +++
site2/docs/reference-configuration.md | 1 +
2 files changed, 4 insertions(+)
diff --git a/conf/broker.conf b/conf/broker.conf
index 20f2576..36a1ace 100644
--- a/conf/broker.conf
+++ b/conf/broker.conf
@@ -85,6 +85,9 @@ backlogQuotaDefaultRetentionPolicy=producer_request_hold
# Default ttl for namespaces if ttl is not already configured at namespace policies. (disable default-ttl with value 0)
ttlDurationDefaultInSeconds=0
+# Enable topic auto creation if new producer or consumer connected (disable auto creation with value false)
+allowAutoTopicCreation=true
+
# Enable the deletion of inactive topics
brokerDeleteInactiveTopicsEnabled=true
diff --git a/site2/docs/reference-configuration.md b/site2/docs/reference-configuration.md
index b526386..11ee1d4 100644
--- a/site2/docs/reference-configuration.md
+++ b/site2/docs/reference-configuration.md
@@ -126,6 +126,7 @@ Pulsar brokers are responsible for handling incoming messages from producers, di
|backlogQuotaCheckEnabled| Enable backlog quota check. Enforces action on topic when the quota is reached |true|
|backlogQuotaCheckIntervalInSeconds| How often to check for topics that have reached the quota |60|
|backlogQuotaDefaultLimitGB| Default per-topic backlog quota limit |10|
+|allowAutoTopicCreation| Enable topic auto creation if new producer or consumer connected |true|
|brokerDeleteInactiveTopicsEnabled| Enable the deletion of inactive topics |true|
|brokerDeleteInactiveTopicsFrequencySeconds| How often to check for inactive topics |60|
|messageExpiryCheckIntervalInMinutes| How frequently to proactively check and purge expired messages |5|