Docker Community Forums

Share and learn in the Docker community.

Geo-seperated nodes in a swarm

Pardon my ignorance but I am unable to find a guide on this. I am looking to connect multiple physical nodes each behind a separate NAT router. I’m thinking that I would connect them all using a VPN connected to a virtual network hosted on AWS, Azure, or another cloud provider. Does this make sense? What would be the cheapest and or best securely network these nodes?

Geo-seperated implies hight latency. Swarm relies on RAFT for synchronizing its state beetween nodes. Konsensus algorithms like RAFT (most of them are) are time sensitive and depend on low latency connections between the nodes. There is a reason why you are uable to fine guides on this. Even if you manage to get it up and running, I highly doubt that it will reliable on the long run.

Bummer! Ok, well thank you for the response!