docker-kafka icon indicating copy to clipboard operation
docker-kafka copied to clipboard

Support for clustering Kafka via new Docker swarm mode?

Open bluepuma77 opened this issue 8 years ago • 5 comments

Are there plans to support clustering Kafka via Docker swarm mode, which is new in Docker v1.12.0? With the new swarm you can define services and automatically scale them up or down. Plus docker handles load balancing automatically between instances of the service (default round robin).

docker service create --replicas 1 --name kafka spotify/kafka
docker service scale kafka=3

Intro: https://docs.docker.com/engine/swarm/ Concepts: https://docs.docker.com/engine/swarm/key-concepts/

bluepuma77 avatar Jul 18 '16 07:07 bluepuma77

You might be looking for something like this...

  • https://github.com/wurstmeister/kafka-docker

You can use this projects against your swarm using docker compose. Note: I'm about to try this myself.

baseman avatar Aug 02 '16 16:08 baseman

Got here from google on this.

Docker Swarm != Docker Engine Swarm.

Docker Engine Swarm is not currently compatible with docker compose (it will just start all containers on the single host).

My team is trying to figure out how to handle the new Docker Engine Swarm and kafka

brandonlamb avatar Nov 12 '16 01:11 brandonlamb

with the new engine 1.12 kafka might not need to use zookeeper . topics and partitions also might fit beautifully with stacks and bundles (experimental mode)

ygizhitsa avatar Dec 01 '16 21:12 ygizhitsa

@ygizhitsa Could you provide a link or more info about that?

mostolog avatar Dec 30 '16 13:12 mostolog

Hi, any 2019 update on this issue?

shay1bz avatar May 29 '19 09:05 shay1bz