feat(Documentation/discovery-protocol): explain heartbeating

Explain more information about how the TTL works and etcds role.
This commit is contained in:
Brandon Philips 2014-02-04 17:13:24 -08:00
parent 2822b9c579
commit 2d75ef0c7a

View File

@ -79,4 +79,10 @@ Using this information you can connect to the rest of the peers in the cluster.
### Heartbeating
At this point you will want to heartbeat your registration URL every few hours. This will be done via a Go routine inside of etcd.
At this point etcd will start heart beating to your registration URL. The
protocol uses a heartbeat so permanently deleted nodes get slowly removed from
the discovery information cluster.
The heartbeat interval is about once per day and the TTL is one week. This
should give a sufficiently wide window to protect against a discovery service
taking a temporary outage yet provide adequate cleanup.