Skip to content

Commit 8d9379f

Browse files
committed
Current config from the migrate_to_kafka_2_0 branch
but with the changes from the original PR preserved, except maybe self healing
1 parent e7fc38f commit 8d9379f

File tree

1 file changed

+72
-2
lines changed

1 file changed

+72
-2
lines changed

cruise-control/11cruise-control-config.yml

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ data:
169169
# =======================================
170170
171171
# The zookeeper connect of the Kafka cluster
172-
zookeeper.connect=zookeeper:2181
172+
zookeeper.connect=zookeeper:2181/
173173
174174
# The max number of partitions to move in/out on a given broker at a given time.
175175
num.concurrent.partition.movements.per.broker=10
@@ -196,6 +196,9 @@ data:
196196
# The interested metrics for metric anomaly analyzer.
197197
metric.anomaly.analyzer.metrics=BROKER_PRODUCE_LOCAL_TIME_MS_MAX,BROKER_PRODUCE_LOCAL_TIME_MS_MEAN,BROKER_CONSUMER_FETCH_LOCAL_TIME_MS_MAX,BROKER_CONSUMER_FETCH_LOCAL_TIME_MS_MEAN,BROKER_FOLLOWER_FETCH_LOCAL_TIME_MS_MAX,BROKER_FOLLOWER_FETCH_LOCAL_TIME_MS_MEAN,BROKER_LOG_FLUSH_TIME_MS_MAX,BROKER_LOG_FLUSH_TIME_MS_MEAN
198198
199+
## Adjust accordingly if your metrics reporter is an older version and does not produce these metrics.
200+
#metric.anomaly.analyzer.metrics=BROKER_PRODUCE_LOCAL_TIME_MS_50TH,BROKER_PRODUCE_LOCAL_TIME_MS_999TH,BROKER_CONSUMER_FETCH_LOCAL_TIME_MS_50TH,BROKER_CONSUMER_FETCH_LOCAL_TIME_MS_999TH,BROKER_FOLLOWER_FETCH_LOCAL_TIME_MS_50TH,BROKER_FOLLOWER_FETCH_LOCAL_TIME_MS_999TH,BROKER_LOG_FLUSH_TIME_MS_50TH,BROKER_LOG_FLUSH_TIME_MS_999TH
201+
199202
# The zk path to store failed broker information.
200203
failed.brokers.zk.path=/CruiseControlBrokerList
201204
@@ -205,8 +208,20 @@ data:
205208
# The cluster configurations for the KafkaTopicConfigProvider
206209
cluster.configs.file=config/clusterConfigs.json
207210
211+
# The maximum time in milliseconds to store the response and access details of a completed user task.
212+
completed.user.task.retention.time.ms=21600000
213+
214+
# The maximum time in milliseconds to retain the demotion history of brokers.
215+
demotion.history.retention.time.ms=86400000
216+
217+
# The maximum number of completed user tasks for which the response and access details will be cached.
218+
max.cached.completed.user.tasks=100
219+
220+
# The maximum number of user tasks for concurrently running in async endpoints across all users.
221+
max.active.user.tasks=5
222+
208223
# Enable self healing for all anomaly detectors, unless the particular anomaly detector is explicitly disabled
209-
self.healing.enabled=true
224+
self.healing.enabled=false
210225
211226
# Enable self healing for broker failure detector
212227
#self.healing.broker.failure.enabled=true
@@ -217,6 +232,61 @@ data:
217232
# Enable self healing for metric anomaly detector
218233
#self.healing.metric.anomaly.enabled=true
219234
235+
236+
# configurations for the webserver
237+
# ================================
238+
239+
# HTTP listen port
240+
webserver.http.port=9090
241+
242+
# HTTP listen address
243+
webserver.http.address=0.0.0.0
244+
245+
# Whether CORS support is enabled for API or not
246+
webserver.http.cors.enabled=false
247+
248+
# Value for Access-Control-Allow-Origin
249+
webserver.http.cors.origin=http://localhost:8080/
250+
251+
# Value for Access-Control-Request-Method
252+
webserver.http.cors.allowmethods=OPTIONS,GET,POST
253+
254+
# Headers that should be exposed to the Browser (Webapp)
255+
# This is a special header that is used by the
256+
# User Tasks subsystem and should be explicitly
257+
# Enabled when CORS mode is used as part of the
258+
# Admin Interface
259+
webserver.http.cors.exposeheaders=User-Task-ID
260+
261+
# REST API default prefix
262+
# (dont forget the ending *)
263+
webserver.api.urlprefix=/kafkacruisecontrol/*
264+
265+
# Location where the Cruise Control frontend is deployed
266+
webserver.ui.diskpath=./cruise-control-ui/dist/
267+
268+
# URL path prefix for UI
269+
# (dont forget the ending *)
270+
webserver.ui.urlprefix=/*
271+
272+
# Time After which request is converted to Async
273+
webserver.request.maxBlockTimeMs=10000
274+
275+
# Default Session Expiry Period
276+
webserver.session.maxExpiryTimeMs=60000
277+
278+
# Session cookie path
279+
webserver.session.path=/
280+
281+
# Server Access Logs
282+
webserver.accesslog.enabled=true
283+
284+
# Location of HTTP Request Logs
285+
webserver.accesslog.path=access.log
286+
287+
# HTTP Request Log retention days
288+
webserver.accesslog.retention.days=14
289+
220290
capacityJBOD.json: |-
221291
{
222292
"brokerCapacities":[

0 commit comments

Comments
 (0)