Skip to content

Instantly share code, notes, and snippets.

View aluzzardi's full-sized avatar

Andrea Luzzardi aluzzardi

View GitHub Profile
@aluzzardi
aluzzardi / advertise.md
Created September 2, 2016 19:04
Advertise Address

swarm join will use the address you provide only during initial connection. Once connected, the manager will give the worker the list of all managers (including itself) along with their address (as defined in advertise address).

If a manager goes down, its workers will randomly reconnect to another manager based on that list. When a new manager joins, its advertise address is broadcasted to all workers.

Advertise address is also used for Raft. Raft configuration has the list of all managers' advertised addresses. When a manager joins raft, it gets the list of all other managers and connect to them to sync data.

Keybase proof

I hereby claim:

  • I am aluzzardi on github.
  • I am aluzzardi (https://keybase.io/aluzzardi) on keybase.
  • I have a public key whose fingerprint is E27F D830 1A62 36E1 3F84 D9C5 FC54 E23F B8A9 9F46

To claim this, I am signing this object: