-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubernetes #34
base: master
Are you sure you want to change the base?
Kubernetes #34
Conversation
This PR has been made worse by Kafka's bug with |
Kubernetes StatefulSet support is easiest when pulling the broker id out of the hostname pattern
$HOSTNAME="kafka-1" should be broker-id 1
So the start.sh script pulls that out of there with
sed
. If you set$KAFKA_BROKER_ID
beforestart.sh
runs, it'll honor that value.I upgraded the server.properties.template with the latest from the kafka tar.gz, backporting the config vars and pruning deprecated ones:
advertised.host.name
/advertised.port
auto.leader.rebalance.enable
is true by default, don't need it in config fileLOG_FLUSH_SCHEDULER_INTERVAL_MS
so folks can actually flush data (I had huge recheck times on reboot)ZOOKEEPER_CONNECTION_STRING
andZOOKEEPER_CHROOT
are not compatible if specifying multiple ZK hosts to connect to. RemovingZK_CHROOT
and updating documentation to show that can be rolled in to connection string.KAFKA_PORT
has been rolled in to thelisteners
/advertised.listeners
config. Removing from ENV and documenting how to override in docker command.