Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 1.12 KB

strategy.md

File metadata and controls

12 lines (9 loc) · 1.12 KB

k8gb strategy options

roundRobin

Returns both cluster endpoints in round-robin manner.

weight roundRobin

While roundRobin is fair for all regions, with WeightRoundRobin we can set explicitly how the regions should be loaded with traffic. For example, we can set one region to handle 80% of the traffic, another 20% and a third 0%, so that the last region is practically disabled.

failover

Pinned to a specified primary cluster until workload on that cluster has no available Pods, upon which the next available cluster's Ingress node IPs will be resolved. When Pods are again available on the primary cluster, the primary cluster will once again be the only eligible cluster for which cluster Ingress node IPs will be resolved

geoip

Similar to failover mode, but returns "closest" cluster to the client initiating request. This requires a specially crafted GeoIP database (see this for example) and DNS resolver to support EDNS0 extension (CLIENT-SUBNET in particular). If the client subnet is not in GeoIP Database, all available endpoints are returned