@@ -131,7 +131,22 @@ monasca_storm_nimbus_servers: "{% for host in groups['storm-nimbus'] %}'{{ 'api'
131
131
# NOTE(dszumski): Only one NTP server is currently supported by the Monasca Agent plugin
132
132
monasca_ntp_server : " {{ external_ntp_servers | first }}"
133
133
134
- # Kafka topics used by Monasca services
134
+ # The default number of Kafka topic partitions. This effectively limits
135
+ # the maximum number of workers per topic, counted over all nodes in the
136
+ # Monasca deployment. For example, if you have a 3 node Monasca
137
+ # deployment, you will by default have 3 instances of Monasca Persister,
138
+ # with each instance having 2 workers by default for the metrics topic.
139
+ # In this case, each worker on the metrics topic will be assigned 5
140
+ # partitions of the metrics topic. If you increase the worker or instance
141
+ # count, you may need to increase the partition count to ensure that all
142
+ # workers can get a share of the work.
143
+ monasca_default_topic_partitions : 30
144
+
145
+ # The default number of topic replicas. Generally you should not change
146
+ # this.
147
+ monasca_default_topic_replication_factor : " {{ kafka_broker_count if kafka_broker_count|int < 3 else 3 }}"
148
+
149
+ # Kafka topic names used by Monasca services
135
150
monasca_metrics_topic : " metrics"
136
151
monasca_raw_logs_topic : " logs"
137
152
monasca_transformed_logs_topic : " transformed-logs"
@@ -141,6 +156,47 @@ monasca_alarm_notifications_topic: "alarm-notifications"
141
156
monasca_alarm_notifications_retry_topic : " retry-notifications"
142
157
monasca_periodic_notifications_topic : " 60-seconds-notifications"
143
158
159
+ # Kafka topic configuration. Most users will not need to modify these
160
+ # settings, however for deployments where resources are tightly
161
+ # constrained, or very large deployments where there are many parallel
162
+ # workers, it is worth considering changing them. Note that if you do
163
+ # change these settings, then you will need to manually remove each
164
+ # topic from the Kafka deployment for the change to take effect when
165
+ # the Monasca service is reconfigured.
166
+ monasca_all_topics :
167
+ - name : " {{ monasca_metrics_topic }}"
168
+ partitions : " {{ monasca_default_topic_partitions }}"
169
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
170
+ enabled : True
171
+ - name : " {{ monasca_raw_logs_topic }}"
172
+ partitions : " {{ monasca_default_topic_partitions }}"
173
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
174
+ enabled : True
175
+ - name : " {{ monasca_transformed_logs_topic }}"
176
+ partitions : " {{ monasca_default_topic_partitions }}"
177
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
178
+ enabled : True
179
+ - name : " {{ monasca_events_topic }}"
180
+ partitions : " {{ monasca_default_topic_partitions }}"
181
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
182
+ enabled : True
183
+ - name : " {{ monasca_alarm_state_transitions_topic }}"
184
+ partitions : " {{ monasca_default_topic_partitions }}"
185
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
186
+ enabled : True
187
+ - name : " {{ monasca_alarm_notifications_topic }}"
188
+ partitions : " {{ monasca_default_topic_partitions }}"
189
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
190
+ enabled : True
191
+ - name : " {{ monasca_alarm_notifications_retry_topic }}"
192
+ partitions : " {{ monasca_default_topic_partitions }}"
193
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
194
+ enabled : True
195
+ - name : " {{ monasca_periodic_notifications_topic }}"
196
+ partitions : " {{ monasca_default_topic_partitions }}"
197
+ replication_factor : " {{ monasca_default_topic_replication_factor }}"
198
+ enabled : True
199
+
144
200
# NOTE(dszumski): Due to the way monasca-notification is currently
145
201
# implemented it is not recommended to change this period.
146
202
monasca_periodic_notifications_period : 60
0 commit comments