Giter VIP home page Giter VIP logo

Comments (5)

si-harps avatar si-harps commented on June 24, 2024

Is there any update on this? I'm keen to run a zookeeper ensemble across a Docker Swarm. It's unclear how to set the required variables (ZOO_MY_ID, ZOO_SERVERS) when deploying a stack either globally or using replicas. Any feedback would be much appreciated.

from zookeeper-docker.

31z4 avatar 31z4 commented on June 24, 2024

The solution for dynamic scaling will be pretty complicated. You would have to use Consul as a service registry and Consul Template to change Zookeeper configuration when new container is added or an existing container removed. And then you also have to restart all your Zookepers because prior to version 3.5 it doesn't support dynamic reconfiguration.

A similar solution for scaling Nginx is described in this article.

But it general it seems like dynamic scaling isn't that useful for Zookeeper for several reasons

  1. It doesn't scale for writing. In fact addind new nodes increase reliability at the cost of write speed.
  2. Usually you decide how many node failures you'd like to tolerate in advance. And often it's no use of running more than 5 nodes.

from zookeeper-docker.

31z4 avatar 31z4 commented on June 24, 2024

I guess that's what folks from Bandsintown did in their fork.

from zookeeper-docker.

31z4 avatar 31z4 commented on June 24, 2024

Implementing dynamic scaling has become a bit easier with the introduction of the 3.5.3-beta tag. Because starting from 3.5 Zookeeper now supports dynamic reconfiguration.

from zookeeper-docker.

31z4 avatar 31z4 commented on June 24, 2024

Closing it because the issue seems to be inactive for quite some time now.

from zookeeper-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.