dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Feature request: multi node support

Open bluepuma77 opened this issue 1 year ago • 9 comments

It would be create to manage multiple nodes (servers) to scale services and create high availability.

bluepuma77 avatar Apr 29 '24 12:04 bluepuma77

When you install this it does create a docker swarm cluster and give you the command to add another node. I dont know if it takes advantage of this by default but it seems the underlying core is there

hcaz avatar Apr 29 '24 19:04 hcaz

Let's leave it open for now. Currently we will be focusing on fixing bugs.

But in advance

  • How the multi node should work?
  • What happen when we have images builded in the manager node, how we can share accross the workers?
  • We need to suport self hosted registry and cloud registries?

Any feedback/information about how it should work would be appreciate!

Siumauricio avatar Apr 29 '24 23:04 Siumauricio

I think it would be good if you could add new nodes to the swarm (Using the docker swarm command).

And in the panel it showed a list of all nodes and their status - This could come from the docker node ls and node inspect command.

Then when creating a new service you can set the number of replicas which docker swarm should handle automatically across nodes. You could maybe implement labels too to help direct replicas and services

Edit: I think the manager node will handle docker builds and distribute images, but if not a local registry would be a good idea from the manager when building custom repositories

hcaz avatar May 01 '24 09:05 hcaz

For images that are already in the cloud they will work, but for applications builded locally they will not work read here

https://docs.docker.com/engine/swarm/stack-deploy/#set-up-a-docker-registry

Siumauricio avatar May 01 '24 16:05 Siumauricio

would be great if with creating a new project you could attach a separate node via an agent, api or a socket.

Chev187 avatar May 07 '24 17:05 Chev187

Is possible to add Dokploy in an existing Docker Swarm (with multiple nodes)?

cpatrickalves avatar May 17 '24 12:05 cpatrickalves

would be great if with creating a new project you could attach a separate node via an agent, api or a socket.

Can you be more specific on this? you mean run application on a specific node?

Siumauricio avatar May 17 '24 18:05 Siumauricio

Is possible to add Dokploy in an existing Docker Swarm (with multiple nodes)?

Yes, Is possible but i need to make some docs about that

Siumauricio avatar May 17 '24 21:05 Siumauricio

Multi node support is already working, if you would like to test the functionality go to this #96 and try it right now, I am collecting feedback about what you think about it.

Siumauricio avatar May 19 '24 00:05 Siumauricio