1. 程式人生 > >Nomad技術手冊:Gossip協議(Gossip Protocol)

Nomad技術手冊:Gossip協議(Gossip Protocol)

Advanced Topic! This page covers technical details of the internals of Nomad. You do not need to know these details to effectively operate and use Nomad. These details are documented here for those who wish to learn about them without having to go spelunking through the source code.

Gossip in Nomad

Nomad makes use of a single global WAN gossip pool that all servers participate in. Membership information provided by the gossip pool allows servers to perform cross region requests. The integrated failure detection allows Nomad to gracefully handle an entire region losing connectivity, or just a single server in a remote region. The gossip protocol is also used to detect servers in the same region to perform automatic clustering via the 

consensus protocol.

All of these features are provided by leveraging Serf. It is used as an embedded library to provide these features. From a user perspective, this is not important, since the abstraction should be masked by Nomad. It can be useful however as a developer to understand how this library is leveraged.