Skip to content

Commit 7a6a8b0

Browse files
Apply suggestions from code review
Co-authored-by: lena-larionova <[email protected]>
1 parent 038b387 commit 7a6a8b0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

app/_how-tos/route-requests-to-backup-targets.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ cleanup:
4141
- title: Destroy the {{site.base_gateway}} container
4242
include_content: cleanup/products/gateway
4343
icon_url: /assets/icons/gateway.svg
44+
45+
faqs:
46+
- q: Can I set more than one failover Target?
47+
a: Yes, Upstream supports multiple failover Targets.
4448
---
4549

4650
## Start three Target backends

app/_includes/gateway/failover-targets.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<!-- used on /gateway/entities/upstream/ and /gateway/entities/targets/ -->
22
You can set `failover: true` to indicate that a Target should be used as a failover (backup) Target in case the other, regular targets (`failover: false`) associated with an Upstream are unhealthy. The failover Target is only used when *all* regular Targets are unhealthy. You can set one or multiple failover Targets for an Upstream.
33

4-
Failover Targets are supported by the [latency](/gateway/entities/upstream/#latency), [least-connections](/gateway/entities/upstream/#least-connections), and [round-robin](/gateway/entities/upstream/#round-robin) load balancing algorithms. If you set failover Targets for Upstreams with the [consistent-hashing](/gateway/entities/upstream/#consistent-hashing) or [sticky session](/gateway/entities/upstream/#sticky-sessions) load balancing algorithms they *won't* be used for regular load balancing or as a failover.
4+
Failover Targets are supported by the [latency](/gateway/entities/upstream/#latency), [least-connections](/gateway/entities/upstream/#least-connections), and [round-robin](/gateway/entities/upstream/#round-robin) load balancing algorithms.
5+
6+
{:.info}
7+
> **Note**: If you set failover Targets for Upstreams with the [consistent-hashing](/gateway/entities/upstream/#consistent-hashing) or [sticky session](/gateway/entities/upstream/#sticky-sessions) load balancing algorithms, they *won't* be used for regular load balancing or as a failover.
58
69
The following is an example failover Target configuration:
710

0 commit comments

Comments
 (0)