Careful!
You are browsing documentation for a version of Kuma that is not the latest release.
Locality Aware Load Balancing
A multi-zone deployment can enable locality aware load balancing in a particular Mesh to ensure optimal service backend routing. This feature relies on the following service tags to make decisions of selecting the destination service endpoint:
kuma.io/region
- optional, denotes a wider region composed of several zones.kuma.io/zone
- automatically generate in every multi-zone deployment.kuma.io/subzone
- optional, denotes service grouping within a particular zone.
Enabling the Locality Aware Load Balancing
A particular Mesh
that spans several regions, zones or subzones, may choose to enable locality aware load balancing as follows:
apiVersion: kuma.io/v1alpha1
kind: Mesh
metadata:
name: default
spec:
routing:
localityAwareLoadBalancing: true
We will apply the configuration with kubectl apply -f [..]
.