From 15d69b78561a7912e2257c1dcc3909c35563b4ff Mon Sep 17 00:00:00 2001 From: vinoth chandar Date: Tue, 17 Sep 2019 17:36:59 -0700 Subject: [PATCH] KAFKA-8913: Document topic based configs & ISR settings for Streams apps (#7346) Reviewer: Matthias J. Sax --- docs/streams/developer-guide/config-streams.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/streams/developer-guide/config-streams.html b/docs/streams/developer-guide/config-streams.html index 0c6f4b2fdfe..221e3c0f89c 100644 --- a/docs/streams/developer-guide/config-streams.html +++ b/docs/streams/developer-guide/config-streams.html @@ -617,6 +617,14 @@

Same applied to main.consumer. and main.consumer., if you only want to specify one consumer type config.

+

Additionally, to configure the internal repartition/changelog topics, you could use the topic. prefix, followed by any of the standard topic configs.

+
Properties streamsSettings = new Properties();
+// Override default for both changelog and repartition topics
+streamsSettings.put("topic.PARAMETER_NAME", "topic-value");
+// alternatively, you can use
+streamsSettings.put(StreamsConfig.topicPrefix("PARAMETER_NAME"), "topic-value");
+
+
@@ -775,6 +783,7 @@
See the description here.
Properties streamsSettings = new Properties();
 streamsSettings.put(StreamsConfig.REPLICATION_FACTOR_CONFIG, 3);
+streamsSettings.put(StreamsConfig.topicPrefix(TopicConfig.MIN_IN_SYNC_REPLICAS_CONFIG), 2);
 streamsSettings.put(StreamsConfig.producerPrefix(ProducerConfig.ACKS_CONFIG), "all");