Skip to content

Commit 4d6436d

Browse files
committed
Merge branch 'topic-config-together' into yolean-topic-management
2 parents 166a616 + b5a1cb1 commit 4d6436d

File tree

2 files changed

+21
-60
lines changed

2 files changed

+21
-60
lines changed

kafka/10broker-config.yml

Lines changed: 21 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,25 @@ data:
3535
}
3636
3737
server.properties: |-
38-
# Licensed to the Apache Software Foundation (ASF) under one or more
39-
# contributor license agreements. See the NOTICE file distributed with
40-
# this work for additional information regarding copyright ownership.
41-
# The ASF licenses this file to You under the Apache License, Version 2.0
42-
# (the "License"); you may not use this file except in compliance with
43-
# the License. You may obtain a copy of the License at
44-
#
45-
# http://www.apache.org/licenses/LICENSE-2.0
46-
#
47-
# Unless required by applicable law or agreed to in writing, software
48-
# distributed under the License is distributed on an "AS IS" BASIS,
49-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
50-
# See the License for the specific language governing permissions and
51-
# limitations under the License.
52-
53-
# see kafka.server.KafkaConfig for additional details and defaults
38+
############################# Log Basics #############################
39+
40+
# A comma seperated list of directories under which to store log files
41+
log.dirs=/var/lib/kafka/data/topics
42+
43+
# The default number of log partitions per topic. More partitions allow greater
44+
# parallelism for consumption, but this will also result in more files across
45+
# the brokers.
46+
num.partitions=1
47+
48+
default.replication.factor=3
49+
50+
min.insync.replicas=2
51+
52+
auto.create.topics.enable=true
53+
54+
# The number of threads per data directory to be used for log recovery at startup and flushing at shutdown.
55+
# This value is recommended to be increased for installations with data dirs located in RAID array.
56+
num.recovery.threads.per.data.dir=1
5457
5558
############################# Server Basics #############################
5659
@@ -96,27 +99,6 @@ data:
9699
# The maximum size of a request that the socket server will accept (protection against OOM)
97100
socket.request.max.bytes=104857600
98101
99-
100-
############################# Log Basics #############################
101-
102-
# A comma seperated list of directories under which to store log files
103-
log.dirs=/tmp/kafka-logs
104-
105-
# The default number of log partitions per topic. More partitions allow greater
106-
# parallelism for consumption, but this will also result in more files across
107-
# the brokers.
108-
num.partitions=1
109-
110-
default.replication.factor=3
111-
112-
min.insync.replicas=2
113-
114-
auto.create.topics.enable=true
115-
116-
# The number of threads per data directory to be used for log recovery at startup and flushing at shutdown.
117-
# This value is recommended to be increased for installations with data dirs located in RAID array.
118-
num.recovery.threads.per.data.dir=1
119-
120102
############################# Internal Topic Settings #############################
121103
# The replication factor for the group metadata internal topics "__consumer_offsets" and "__transaction_state"
122104
# For anything other than development testing, a value greater than 1 is recommended for to ensure availability such as 3.
@@ -149,7 +131,7 @@ data:
149131
# from the end of the log.
150132
151133
# The minimum age of a log file to be eligible for deletion due to age
152-
log.retention.hours=168
134+
log.retention.hours=-1
153135
154136
# A size-based retention policy for logs. Segments are pruned from the log as long as the remaining
155137
# segments don't drop below log.retention.bytes. Functions independently of log.retention.hours.
@@ -169,7 +151,7 @@ data:
169151
# server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
170152
# You can also append an optional chroot string to the urls to specify the
171153
# root directory for all kafka znodes.
172-
zookeeper.connect=localhost:2181
154+
zookeeper.connect=zookeeper:2181
173155
174156
# Timeout in ms for connecting to zookeeper
175157
zookeeper.connection.timeout.ms=6000
@@ -185,21 +167,6 @@ data:
185167
group.initial.rebalance.delay.ms=0
186168
187169
log4j.properties: |-
188-
# Licensed to the Apache Software Foundation (ASF) under one or more
189-
# contributor license agreements. See the NOTICE file distributed with
190-
# this work for additional information regarding copyright ownership.
191-
# The ASF licenses this file to You under the Apache License, Version 2.0
192-
# (the "License"); you may not use this file except in compliance with
193-
# the License. You may obtain a copy of the License at
194-
#
195-
# http://www.apache.org/licenses/LICENSE-2.0
196-
#
197-
# Unless required by applicable law or agreed to in writing, software
198-
# distributed under the License is distributed on an "AS IS" BASIS,
199-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200-
# See the License for the specific language governing permissions and
201-
# limitations under the License.
202-
203170
# Unspecified loggers and loggers with additivity=true output to server.log and stdout
204171
# Note that INFO only applies to unspecified loggers, the log level of the child logger is used otherwise
205172
log4j.rootLogger=INFO, stdout

kafka/50kafka.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ spec:
5757
command:
5858
- ./bin/kafka-server-start.sh
5959
- /etc/kafka/server.properties
60-
- --override
61-
- zookeeper.connect=zookeeper:2181
62-
- --override
63-
- log.retention.hours=-1
64-
- --override
65-
- log.dirs=/var/lib/kafka/data/topics
6660
resources:
6761
requests:
6862
cpu: 100m

0 commit comments

Comments
 (0)