GithubHelp home page GithubHelp logo

Comments (7)

ioolkos avatar ioolkos commented on July 1, 2024

Hey @mitchellvanrijkom totally sorry, missed your issue here somehow. My apologies.
Let's see. What would native Docker Swarm support mean? is there anything specific we'd need to enable or script?

from docker-vernemq.

mitchellvanrijkom avatar mitchellvanrijkom commented on July 1, 2024

Hey @ioolkos No problem! Thanks for the reply.
Docker Swarm is a clustering and orchestration tool for running Docker containers in Services.
https://docs.docker.com/engine/swarm/
To make use of scaling applications and enable load-balancing in the swarm we use Docker Services. This is one level up in the hierarchy of a distributed application of docker. See, https://docs.docker.com/get-started/part3/.

What we would like is when we have deployed VerneMQ broker as a Service. We want to make use of the scaling functionality in docker swarm to scale the numbers of running containers to autojoin a VerneMQ cluster by a simple command instead of defining own containers with the docker run command. See Docker documentation about scaling a service: https://docs.docker.com/engine/swarm/swarm-tutorial/scale-service/. When you want to use Autojoining you are required to set a IP-address of the first VerneMQ container. In a Docker swarm we can make use of Service discovery. Swarm manager nodes assign each service in the swarm a unique DNS name and load balances running containers. You can query every container running in the swarm through a DNS server embedded in the swarm. Thereby no need to set an IP-address.

Let me know if i am unclear in my explanation.

Thanks in advance!

from docker-vernemq.

dergraf avatar dergraf commented on July 1, 2024

@mitchellvanrijkom I guess this issue might be solved as part of our work in https://github.com/vernemq/vmq-discovery cc: @ioolkos, @codeadict

from docker-vernemq.

codeadict avatar codeadict commented on July 1, 2024

from docker-vernemq.

didasy avatar didasy commented on July 1, 2024

Any update for this? I've looked at vmq-discovery but the repo is so bare.

from docker-vernemq.

codeadict avatar codeadict commented on July 1, 2024

from docker-vernemq.

didasy avatar didasy commented on July 1, 2024

@codeadict sadly I don't know Erlang yet. Thanks anyway, keep up the good work!

from docker-vernemq.

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.