From 7752c2d818e6d19e4d805c2fd6760b4a13d601bc Mon Sep 17 00:00:00 2001 From: PawelSzalapski Date: Thu, 2 Aug 2018 10:31:56 +0200 Subject: Implement second part of dynamic DMaaP config VESCollector app can now fetch CBS configuration and rebuilt the part regarding sending events dynamically, without restarting application. Application will still be restarted by a .sh script, if there were changes regarding collector.properties file. The decision of whether dynamic configuration should be triggered is now based on existence of env vars CONSUL_HOST, CONFIG_BINDING_SERVICE, HOSTNAME, not as previously on CBSPOLLTIME. Frequency at which the config check should happen is now exposed via property from collector.properties Change-Id: I98ff160fa51d08d84a23c716d90ceaacbe17ada6 Signed-off-by: PawelSzalapski Issue-ID: DCAEGEN2-519 --- etc/collector.properties | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc/collector.properties') diff --git a/etc/collector.properties b/etc/collector.properties index 4354eb69..7ff24b1b 100755 --- a/etc/collector.properties +++ b/etc/collector.properties @@ -64,6 +64,9 @@ header.authlist=sample1,c2FtcGxlMQ== ## Enabled by default; to disable set to 0 event.transform.flag=1 +# Describes at what frequency (measured in minutes) should application try to fetch config from CBS +collector.dynamic.config.update.frequency=5 + ############################################################################### ## ## Tomcat control -- cgit 1.2.3-korg