orlangure/gnomock

Request: Enable easily running containers in cluster mode

Opened this issue · 2 comments

Services such as kafka, rabbitmq can be run using multiple replicas.

For example cp-kafka with kraft

There may be an optional field where we may specify the number of replicas and the containers will be dynamically spun up and assigned port and container names, with all the environment variables required for coordination injected. The wait hook may also configurable waiting for either master, or all replicas to stabilize.

Hi, is there any particular use case that you are trying to handle?
From my perspective, if some Go code relies on kafka, it doesn't really care if it runs in a cluster or not.
Of course if there is some value in running a cluster of kafka or rabbitmq instances, I support this idea. Would you like to work on it?

It works for me by running docker with option '--network host'