github.com/smintz/nomad@v0.8.3/website/source/guides/cluster/federation.md (about)

     1  ---
     2  layout: "guides"
     3  page_title: "Federating a Nomad Cluster"
     4  sidebar_current: "guides-cluster-federation"
     5  description: |-
     6    Learn how to join Nomad servers across multiple regions so users can submit
     7    jobs to any server in any region using global federation.
     8  ---
     9  
    10  # Federating a Cluster
    11  
    12  Because Nomad operates at a regional level, federation is part of Nomad core.
    13  Federation enables users to submit jobs or interact with the HTTP API targeting
    14  any region, from any server, even if that server resides in a different region.
    15  
    16  Federating multiple Nomad clusters requires network connectivity between the
    17  clusters. Servers in each cluster must be able to communicate over [RPC and
    18  Serf][ports]. Federated clusters are expected to communicate over WANs, so they
    19  do not need the same low latency as servers within a region.
    20  
    21  Once Nomad servers are able to connect, federating is as simple as joining the
    22  servers. From any server in one region, issue a join command to a server in a
    23  remote region:
    24  
    25  ```shell
    26  $ nomad server-join 1.2.3.4:4648
    27  ```
    28  
    29  Note that only one join command is required per region. Servers across regions
    30  discover other servers in the cluster via the gossip protocol and hence it's
    31  enough to join just one known server.
    32  
    33  If bootstrapped via Consul and the Consul clusters in the Nomad regions are
    34  federated, then federation occurs automatically.
    35  
    36  [ports]: /guides/cluster/requirements.html#ports-used