I followed this link to install Kafka + Zookeeper. It all works well, yet I am setting up Kafka + Zookeeper on 2 servers.
I have setup the kafka/config/server.properties
to have:
- Server 1:
broker.id = 0
- Server 1:
zookeeper.connect = localhost:2181,99.99.99.91:2181
- Server 2:
broker.id = 1
- Server 2:
zookeeper.connect = localhost:2181,99.99.99.92:2181
I am wondering the follwing:
- When I publish a topic, does it go to both Instances, or just the server it's loaded on?
- In order to use multiple servers like this, would I be required to use something like HAProxy with say 3 servers?
- Is there anything important I am missing with using 3 servers?
Thanks for any answers.