Answers: <p>There are various timeouts within swarm mode that do not handle high latency well and may start to assume nodes within the cluster are down, lose quorum, or have networking issues. For HA, the standard advice is to have multi-AZ but not multi-region for a single cluster. For use cases that need multi-region, you would deploy multiple swarm clusters, one per region. If you really need multi-region with a single swarm cluster, then consider placing all of the management nodes within the same region and only deploying worker nodes to the other regions.</p>
  
Answers: CC BY-SA 4.0
Answers: 2018-12-10T20:53:21.630Z
Answers: 2018-12-10T20:53:21.630Z
Answers: BMitch
Body: <p>I need to deploy a highly available Docker Swarm on Azure. I created a VNet in 3 locations: Brazil South (my location), East US and West Europe. Then I enabled network peering so VMs in these locations can see each other as if they were in the same VNet. Cluster seems working fine. The problem is that turns out latency is high between these locations: ~190ms.</p>
  
  <p>Questions:</p>
  
  <ol>
  <li>Is this a recommended topology for HA? Is there a way to improve it?</li>
  <li>Will this latency pose any (future) limitations?</li>
  </ol>
  
Tags: <docker-swarm>
Title: Will Docker Swarm work if masters are spread over 3 continents?
UserDisplayName: Igor Gatis
ThreadText: # Will Docker Swarm work if masters are spread over 3 continents?
  
  (Asked by: username_0 on 2018-12-10)
  
  I need to deploy a highly available Docker Swarm on Azure. I created a VNet in 3 locations: Brazil South (my location), East US and West Europe. Then I enabled network peering so VMs in these locations can see each other as if they were in the same VNet. Cluster seems working fine. The problem is that turns out latency is high between these locations: ~190ms.
  
  Questions:
  
  1. Is this a recommended topology for HA? Is there a way to improve it?
  2. Will this latency pose any (future) limitations?
  
  **Tags:** docker-swarm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-12-10. Score: 7 | Accepted answer
  
  There are various timeouts within swarm mode that do not handle high latency well and may start to assume nodes within the cluster are down, lose quorum, or have networking issues. For HA, the standard advice is to have multi-AZ but not multi-region for a single cluster. For use cases that need multi-region, you would deploy multiple swarm clusters, one per region. If you really need multi-region with a single swarm cluster, then consider placing all of the management nodes within the same region and only deploying worker nodes to the other regions.
  
  
  ---
  
  