You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/application-layer/locality-loadbalance.md
+30-33Lines changed: 30 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,25 +3,25 @@ sidebar_position: 9
3
3
title: Locality Load Balancing
4
4
---
5
5
6
-
This document introduces how to use Locality Load Balancing with Istio in the Kmesh.
6
+
This document explains how to use Locality Load Balancing with Istio in Kmesh.
7
7
8
-
> The current Kmesh Locality Load Balancing is at the L4 level and only support[Locality Failover](https://istio.io/latest/docs/tasks/traffic-management/locality-load-balancing/failover/).
8
+
Note: Kmesh's current Locality Load Balancing operates at L4 and only supports[Locality Failover](https://istio.io/latest/docs/tasks/traffic-management/locality-load-balancing/failover/).
9
9
10
10
## What is Locality Load Balancing?
11
11
12
-
A locality defines the geographic location of a workload instance within mesh. Locality Load Balancing in service mesh helps improve the availability and performance of services by intelligently routing traffic based on the location of the service instances.
12
+
A locality describes the geographic location of a workload instance in the mesh. Locality Load Balancing improves availability and performance by routing traffic based on the location of service instances.
13
13
14
-
We strongly recommend that you first read https://istio.io/latest/docs/tasks/traffic-management/locality-load-balancing/to understand what locality load balancing is.
14
+
We strongly recommend reading https://istio.io/latest/docs/tasks/traffic-management/locality-load-balancing/for background on locality load balancing.
15
15
16
16
## Supported Modes and Configuration Methods for Kmesh
17
17
18
-
Currently, Istio's ambient mode only supports specifying a fixed locality loadbalancing policy by configuring specific fields. This includes two modes: PreferClose and Local.
18
+
Currently, Istio's ambient mode supports specifying a fixed locality load-balancing policy via configuration. Kmesh supports two modes: PreferClose and Local.
19
19
20
20
### 1. PreferClose
21
21
22
-
A failover mode that uses NETWORK, REGION, ZONE, and SUBZONE as the routingPreference.
22
+
Failover mode that uses NETWORK, REGION, ZONE, and SUBZONE as the routing preference.
23
23
24
-
- With `spec.trafficDistribution`(k8s >= beta [1.31.0](https://kubernetes.io/docs/concepts/services-networking/service/), isito >= [1.23.1](https://istio.io/latest/news/releases/1.23.x/announcing-1.23/))
24
+
- With `spec.trafficDistribution` (k8s >= beta [1.31.0](https://kubernetes.io/docs/concepts/services-networking/service/), istio >= [1.23.1](https://istio.io/latest/news/releases/1.23.x/announcing-1.23/))
25
25
26
26
```yaml
27
27
spec:
@@ -39,9 +39,9 @@ A failover mode that uses NETWORK, REGION, ZONE, and SUBZONE as the routingPrefe
39
39
40
40
### 2. Local
41
41
42
-
A strict mode that only matches the current NODE.
42
+
Strict mode that restricts traffic to the current node.
43
43
44
-
- spec.internalTrafficPolicy: Local (k8s >= beta 1.24 or >= 1.26)
44
+
- Set `spec.internalTrafficPolicy: Local` (k8s >= beta 1.24 or >= 1.26)
45
45
46
46
```yaml
47
47
spec:
@@ -52,14 +52,14 @@ A strict mode that only matches the current NODE.
52
52
53
53
### Prepare the environment
54
54
55
-
- Refer to [develop with kind](/docs/setup/develop-with-kind.md)
56
-
- We prepare three nodes in the cluster
55
+
- Refer to [develop with kind](/docs/setup/develop-with-kind.md).
0 commit comments