Skip to content

Commit 2f54071

Browse files
authored
Merge pull request #148 from Yolean/remove-pseudo-defaults
Use Kafka config defaults as much as possible
2 parents c9c5015 + 2f58869 commit 2f54071

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

kafka/10broker-config.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ data:
6767
6868
# The number of threads per data directory to be used for log recovery at startup and flushing at shutdown.
6969
# This value is recommended to be increased for installations with data dirs located in RAID array.
70-
num.recovery.threads.per.data.dir=1
70+
#num.recovery.threads.per.data.dir=1
7171
7272
############################# Server Basics #############################
7373
@@ -78,7 +78,7 @@ data:
7878
7979
############################# Socket Server Settings #############################
8080
81-
# The address the socket server listens on. It will get the value returned from
81+
# The address the socket server listens on. It will get the value returned from
8282
# java.net.InetAddress.getCanonicalHostName() if not configured.
8383
# FORMAT:
8484
# listeners = listener_name://host_name:port
@@ -87,7 +87,7 @@ data:
8787
#listeners=PLAINTEXT://:9092
8888
listeners=OUTSIDE://:9094,PLAINTEXT://:9092
8989
90-
# Hostname and port the broker will advertise to producers and consumers. If not set,
90+
# Hostname and port the broker will advertise to producers and consumers. If not set,
9191
# it uses the value for "listeners" if configured. Otherwise, it will use the value
9292
# returned from java.net.InetAddress.getCanonicalHostName().
9393
#advertised.listeners=PLAINTEXT://your.host.name:9092
@@ -99,19 +99,19 @@ data:
9999
inter.broker.listener.name=PLAINTEXT
100100
101101
# The number of threads that the server uses for receiving requests from the network and sending responses to the network
102-
num.network.threads=3
102+
#num.network.threads=3
103103
104104
# The number of threads that the server uses for processing requests, which may include disk I/O
105-
num.io.threads=8
105+
#num.io.threads=8
106106
107107
# The send buffer (SO_SNDBUF) used by the socket server
108-
socket.send.buffer.bytes=102400
108+
#socket.send.buffer.bytes=102400
109109
110110
# The receive buffer (SO_RCVBUF) used by the socket server
111-
socket.receive.buffer.bytes=102400
111+
#socket.receive.buffer.bytes=102400
112112
113113
# The maximum size of a request that the socket server will accept (protection against OOM)
114-
socket.request.max.bytes=104857600
114+
#socket.request.max.bytes=104857600
115115
116116
############################# Internal Topic Settings #############################
117117
# The replication factor for the group metadata internal topics "__consumer_offsets" and "__transaction_state"
@@ -127,7 +127,7 @@ data:
127127
# There are a few important trade-offs here:
128128
# 1. Durability: Unflushed data may be lost if you are not using replication.
129129
# 2. Latency: Very large flush intervals may lead to latency spikes when the flush does occur as there will be a lot of data to flush.
130-
# 3. Throughput: The flush is generally the most expensive operation, and a small flush interval may lead to exceessive seeks.
130+
# 3. Throughput: The flush is generally the most expensive operation, and a small flush interval may lead to excessive seeks.
131131
# The settings below allow one to configure the flush policy to flush data after a period of time or
132132
# every N messages (or both). This can be done globally and overridden on a per-topic basis.
133133
@@ -147,16 +147,16 @@ data:
147147
# The minimum age of a log file to be eligible for deletion due to age
148148
log.retention.hours=-1
149149
150-
# A size-based retention policy for logs. Segments are pruned from the log as long as the remaining
151-
# segments don't drop below log.retention.bytes. Functions independently of log.retention.hours.
150+
# A size-based retention policy for logs. Segments are pruned from the log unless the remaining
151+
# segments drop below log.retention.bytes. Functions independently of log.retention.hours.
152152
#log.retention.bytes=1073741824
153153
154154
# The maximum size of a log segment file. When this size is reached a new log segment will be created.
155-
log.segment.bytes=1073741824
155+
#log.segment.bytes=1073741824
156156
157157
# The interval at which log segments are checked to see if they can be deleted according
158158
# to the retention policies
159-
log.retention.check.interval.ms=300000
159+
#log.retention.check.interval.ms=300000
160160
161161
############################# Zookeeper #############################
162162
@@ -168,7 +168,7 @@ data:
168168
zookeeper.connect=zookeeper:2181
169169
170170
# Timeout in ms for connecting to zookeeper
171-
zookeeper.connection.timeout.ms=6000
171+
#zookeeper.connection.timeout.ms=6000
172172
173173
174174
############################# Group Coordinator Settings #############################
@@ -178,7 +178,7 @@ data:
178178
# The default value for this is 3 seconds.
179179
# We override this to 0 here as it makes for a better out-of-the-box experience for development and testing.
180180
# However, in production environments the default value of 3 seconds is more suitable as this will help to avoid unnecessary, and potentially expensive, rebalances during application startup.
181-
group.initial.rebalance.delay.ms=0
181+
#group.initial.rebalance.delay.ms=0
182182
183183
log4j.properties: |-
184184
# Unspecified loggers and loggers with additivity=true output to server.log and stdout

0 commit comments

Comments
 (0)