[VOL-4663] create voltha event topic (voltha.events) with conifgurable no of partitions and replication factor
Change-Id: I55b40d97afaed0d75240fd6557f26da90950f6c5
diff --git a/rw_core/config/config.go b/rw_core/config/config.go
index 4375b9b..0f154f6 100644
--- a/rw_core/config/config.go
+++ b/rw_core/config/config.go
@@ -37,6 +37,8 @@
KVStoreTimeout time.Duration
KVStoreAddress string
EventTopic string
+ EventTopicPartitions int
+ EventTopicReplicas int
LogLevel string
Banner bool
DisplayVersionOnly bool
@@ -85,6 +87,16 @@
"voltha.events",
"RW Core Event topic")
+ fs.IntVar(&cf.EventTopicPartitions,
+ "EventTopicPartitions",
+ 3,
+ "RW Core Event topic partitions")
+
+ fs.IntVar(&cf.EventTopicReplicas,
+ "EventTopicReplicas",
+ 1,
+ "RW Core Event topic replicas")
+
fs.StringVar(&cf.KVStoreType,
"kv_store_type",
EtcdStoreName,