Update geo-failover.html.md

pull/3329/head
James Phillips 2017-07-26 16:42:35 -07:00 committed by GitHub
parent 44128e5bbb
commit 9f10566314
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,8 @@ Applications can make use of this query in two ways. Since we gave the prepared
## Failover Policies
Using the techniques in this section we will develop prepared queries with failover policies where simply changing application configurations to look up "api.query.consul" instead of "api.service.consul" via DNS will result in automatic geo failover to the next closest federated Consul datacenters, in order of increasing network round trip time.
Failover is just another policy choice for a prepared query, it works in the same manner as the previous example and is similarly transparent to applications. The failover policy is configured using the `Failover` structure, which contains two fields, both of which are optional, and determine what happens if no healthy nodes are available in the local datacenter when the query is executed.
- `NearestN` `(int: 0)` - Specifies that the query will be forwarded to up to `NearestN` other datacenters based on their estimated network round trip time using [network coordinates](/docs/internals/coordinates.html).