-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathdefault.rb
50 lines (47 loc) · 3.33 KB
/
default.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# Cookbook: kafka-cluster-cookbook
# License: Apache 2.0
#
# Copyright (C) 2015 Bloomberg Finance L.P.
#
default['kafka-cluster']['service_name'] = 'kafka'
default['kafka-cluster']['service_user'] = 'kafka'
default['kafka-cluster']['service_group'] = 'kafka'
# @see https://gist.github.com/jkreps/c7ddb4041ef62a900e6c
default['kafka-cluster']['config']['path'] = '/etc/kafka/kafka.properties'
default['kafka-cluster']['config']['properties']['broker.id'] = 1
default['kafka-cluster']['config']['properties']['port'] = 9_092
default['kafka-cluster']['config']['properties']['log.dirs'] = '/tmp/kafka'
default['kafka-cluster']['config']['properties']['log.segment.bytes'] = 536_870_912
default['kafka-cluster']['config']['properties']['log.retention.check.interval.ms'] = 300_000
default['kafka-cluster']['config']['properties']['log.retention.hours'] = 168
default['kafka-cluster']['config']['properties']['num.io.threads'] = 8
default['kafka-cluster']['config']['properties']['num.network.threads'] = 4
default['kafka-cluster']['config']['properties']['num.partitions'] = 8
default['kafka-cluster']['config']['properties']['replica.lag.max.messages'] = 10_000_000
default['kafka-cluster']['config']['properties']['socket.receive.buffer.bytes'] = 1_048_576
default['kafka-cluster']['config']['properties']['socket.request.max.bytes'] = 104_857_600
default['kafka-cluster']['config']['properties']['socket.send.buffer.bytes'] = 1_048_576
default['kafka-cluster']['config']['properties']['zookeeper.connection.timeout.ms'] = 1_000_000
default['kafka-cluster']['config']['log4j']['customized'] = false
default['kafka-cluster']['config']['log4j']['fileAppender'] = 'org.apache.log4j.RollingFileAppender'
default['kafka-cluster']['config']['log4j']['maxFileSize'] = '50MB'
default['kafka-cluster']['config']['log4j']['maxNumFiles'] = '20'
default['kafka-cluster']['config']['log4j']['level']['root'] = 'INFO'
default['kafka-cluster']['config']['log4j']['level']['kafka'] = 'INFO'
default['kafka-cluster']['config']['log4j']['level']['stdout.threshold'] = 'INFO'
default['kafka-cluster']['config']['log4j']['level']['kafka.network.RequestChannel'] = 'WARN'
default['kafka-cluster']['config']['log4j']['level']['kafka.network.Processor'] = 'WARN'
default['kafka-cluster']['config']['log4j']['level']['kafka.request.logger'] = 'WARN'
default['kafka-cluster']['config']['log4j']['level']['kafka.controller'] = 'TRACE'
default['kafka-cluster']['config']['log4j']['level']['kafka.log.LogCleaner'] = 'INFO'
default['kafka-cluster']['config']['log4j']['level']['state.change.logger'] = 'TRACE'
default['kafka-cluster']['config']['log4j']['level']['kafka.authorizer.logger'] = 'WARN'
default['kafka-cluster']['config']['log4j']['level']['zookeeper'] = 'INFO'
default['kafka-cluster']['service']['mirror'] = 'http://mirror.cc.columbia.edu/pub/software/apache/kafka'
default['kafka-cluster']['service']['version'] = '0.10.2.1'
default['kafka-cluster']['service']['scala_version'] = '2.12'
default['kafka-cluster']['service']['environment']['KAFKA_HEAP_OPTS'] = '-Xmx1G -Xms1G'
default['kafka-cluster']['service']['binary_checksum'] = 'e523b448b24a908202c35f12fd0caaa49ce70070305c360f7ed2270bb2c95f47'
default['kafka-cluster']['service']['binary_url'] = "%{mirror}/%{version}/kafka_%{scala_version}-%{version}.tgz" # rubocop:disable Style/StringLiterals
default['kafka-cluster']['ulimit']['filehandle_limit'] = 32_768