blob: 925d1698a0e74f594cee3313c909f9a92c8fcf3d [file] [log] [blame]
Jim Hahn3b6bb8e2018-05-03 14:47:23 -04001###
2# ============LICENSE_START=======================================================
adheli.tavarescc1d3d32024-01-26 15:28:56 +00003# feature-pooling-messages
Jim Hahn3b6bb8e2018-05-03 14:47:23 -04004# ================================================================================
Jim Hahndc6c4a22020-10-29 18:15:51 -04005# Copyright (C) 2018-2020 AT&T Intellectual Property. All rights reserved.
adheli.tavarescc1d3d32024-01-26 15:28:56 +00006# Modifications Copyright (C) 2024 Nordix Foundation.
Jim Hahn3b6bb8e2018-05-03 14:47:23 -04007# ================================================================================
8# Licensed under the Apache License, Version 2.0 (the "License");
9# you may not use this file except in compliance with the License.
10# You may obtain a copy of the License at
Jim Hahndc6c4a22020-10-29 18:15:51 -040011#
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040012# http://www.apache.org/licenses/LICENSE-2.0
Jim Hahndc6c4a22020-10-29 18:15:51 -040013#
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040014# Unless required by applicable law or agreed to in writing, software
15# distributed under the License is distributed on an "AS IS" BASIS,
16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19# ============LICENSE_END=========================================================
20###
21
22# In general, the feature-specific properties begin with "pooling",
23# and they may be made specific to a controller by prepending with
24# "pooling.<controller-name>", instead.
25#
26# The available properties and their default values are shown below.
27
adheli.tavarescc1d3d32024-01-26 15:28:56 +000028# Whether the feature is enabled.
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040029#pooling.enabled=false
30
adheli.tavarescc1d3d32024-01-26 15:28:56 +000031# The internal kafka topic used by a controller. Note: the controller
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040032# name is required for this property.
33#pooling.<controller-name>.topic =
34
35# Maximum number of events to retain in the queue while a new host waits
36# to be assigned work.
37#pooling.offline.queue.limit=1000
38
39# Maximum age, in milliseconds, of events to be retained in the queue.
adheli.tavarescc1d3d32024-01-26 15:28:56 +000040# Events older than this are discarded.
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040041#pooling.offline.queue.age.milliseconds=60000
42
43# Time, in milliseconds, to wait for an "Offline" message to be published
adheli.tavarescc1d3d32024-01-26 15:28:56 +000044# to topic manager before the connection may be closed.
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040045#pooling.offline.publish.wait.milliseconds=3000
46
47# Time, in milliseconds, to wait for this host's initial heart beat. This
adheli.tavarescc1d3d32024-01-26 15:28:56 +000048# is used to verify connectivity to the internal topic.
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040049#pooling.start.heartbeat.milliseconds=100000
50
adheli.tavarescc1d3d32024-01-26 15:28:56 +000051# Time, in milliseconds, to wait before attempting to reactivate this
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040052# host when it was not assigned any work.
53#pooling.reactivate.milliseconds=50000
54
55# Time, in milliseconds, to wait for other hosts to identify themselves
56# when this host is started.
57#pooling.identification.milliseconds=50000
58
59# Time, in milliseconds, to wait for heart beats from this host, or its
60# predecessor, during the active state.
61#pooling.active.heartbeat.milliseconds=50000
62
63# Time, in milliseconds, to wait between heart beat generations.
64#pooling.inter.heartbeat.milliseconds=15000
65
66# Topic used for inter-host communication for a particular controller
67# pooling.<controller-name>.topic=XXX
68
Jim Hahn9e770372018-05-09 09:14:08 -040069# Each controller that is enabled should have its own topic and the
adheli.tavarescc1d3d32024-01-26 15:28:56 +000070# corresponding ${topicManager}.xxx properties (using kafka as default).
71# However, for now, just assume that the usecases features will not both
72# be enabled at the same time.
Jim Hahn9e770372018-05-09 09:14:08 -040073
Jim Hahndc6c4a22020-10-29 18:15:51 -040074pooling.usecases.enabled=true
75pooling.usecases.topic=${env:POOLING_TOPIC}
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040076
77# the list of sources and sinks should be identical
adheli.tavarescc1d3d32024-01-26 15:28:56 +000078kafka.source.topics=POOLING_TOPIC
79kafka.sink.topics=POOLING_TOPIC
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040080
adheli.tavarescc1d3d32024-01-26 15:28:56 +000081kafka.source.topics.POOLING_TOPIC.servers=${env:KAFKA_SERVERS}
82kafka.source.topics.POOLING_TOPIC.effectiveTopic=${env:POOLING_TOPIC}
83kafka.source.topics.POOLING_TOPIC.apiKey=
84kafka.source.topics.POOLING_TOPIC.apiSecret=
Jim Hahn3b6bb8e2018-05-03 14:47:23 -040085
adheli.tavarescc1d3d32024-01-26 15:28:56 +000086kafka.sink.topics.POOLING_TOPIC.servers=${env:kafka_SERVERS}
87kafka.sink.topics.POOLING_TOPIC.effectiveTopic=${env:POOLING_TOPIC}
88kafka.sink.topics.POOLING_TOPIC.apiKey=
89kafka.sink.topics.POOLING_TOPIC.apiSecret=