Created
July 7, 2017 22:14
-
-
Save thinktainer/991da3bb8830933553db52888bc4e8b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
zk-1: | |
image: mrhornsby/zookeeper:latest | |
expose: | |
- "2181" | |
ports: | |
- "2181:2181" | |
networks: | |
net: | |
ipv4_address: 172.16.101.43 | |
kafka: | |
image: registry.uw.systems/telecom/telecom-kafka:51 | |
networks: | |
net: | |
ipv4_address: 172.16.101.42 | |
expose: | |
- "9092" | |
ports: | |
- "9092:9092" | |
command: | |
- sh | |
- -c | |
- "./kafka-server-start.sh ../config/server.properties" | |
volumes: | |
- ./kafka.properties:/opt/kafka/config/server.properties | |
links: | |
- "zk-1" | |
networks: | |
net: | |
driver: bridge | |
ipam: | |
driver: default | |
config: | |
- subnet: 172.16.101.40/29 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://kafka.apache.org/documentation/#brokerconfigs | |
broker.id=0 | |
delete.topic.enable=true | |
auto.create.topics.enable=true | |
num.network.threads=3 | |
num.io.threads=8 | |
socket.send.buffer.bytes=102400 | |
socket.receive.buffer.bytes=102400 | |
socket.request.max.bytes=104857600 | |
#log.dirs=/opt/kafka/data/logs | |
#num.partitions=10 | |
#num.recovery.threads.per.data.dir=8 | |
#log.retention.hours=168 | |
# 40GiB | |
#log.retention.bytes=40000000000 | |
# 500MiB | |
#log.segment.bytes=524288000 | |
#log.retention.check.interval.true=60000 | |
#log.flush.offset.checkpoint.interval.ms=10000 | |
# 1 min | |
#log.cleaner.delete.retention.ms=60000 | |
zookeeper.connect=zk-1:2181 | |
zookeeper.connection.timeout.ms=10000 | |
unclean.leader.election.enable=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment