@@ -26,24 +26,12 @@ those network endpoints can be routed closer to where it originated.
26
26
For example, you can route traffic within a locality to reduce
27
27
costs, or to improve network performance.
28
28
-->
29
- _ 拓扑感知提示 _ 包含客户怎么使用服务端点的建议,从而实现了拓扑感知的路由功能。
29
+ ** 拓扑感知提示 ** 包含客户怎么使用服务端点的建议,从而实现了拓扑感知的路由功能。
30
30
这种方法添加了元数据,以启用 EndpointSlice 和/或 Endpoints 对象的调用者,
31
31
这样,访问这些网络端点的请求流量就可以在它的发起点附近就近路由。
32
32
33
33
例如,你可以在一个地域内路由流量,以降低通信成本,或提高网络性能。
34
34
35
- <!--
36
- The "topology-aware hints" feature is at Beta stage and it is **NOT** enabled
37
- by default. To try out this feature, you have to enable the `TopologyAwareHints`
38
- [feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
39
- -->
40
-
41
- {{< note >}}
42
- “拓扑感知提示”特性处于 Beta 阶段,并且默认情况下** 未** 启用。
43
- 要试用此特性,你必须启用 ` TopologyAwareHints `
44
- [ 特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates/ ) 。
45
- {{< /note >}}
46
-
47
35
<!-- body -->
48
36
49
37
<!--
@@ -59,11 +47,11 @@ Routing". When calculating the endpoints for a {{< glossary_tooltip term_id="Ser
59
47
the EndpointSlice controller considers the topology (region and zone) of each endpoint
60
48
and populates the hints field to allocate it to a zone.
61
49
Cluster components such as the {{< glossary_tooltip term_id="kube-proxy" text="kube-proxy" >}}
62
- can then consume those hints, and use them to influence how the traffic to is routed
50
+ can then consume those hints, and use them to influence how the traffic is routed
63
51
(favoring topologically closer endpoints).
64
52
-->
65
53
Kubernetes 集群越来越多的部署到多区域环境中。
66
- _ 拓扑感知提示 _ 提供了一种把流量限制在它的发起区域之内的机制。
54
+ ** 拓扑感知提示 ** 提供了一种把流量限制在它的发起区域之内的机制。
67
55
这个概念一般被称之为 “拓扑感知路由”。
68
56
在计算 {{< glossary_tooltip term_id="Service" >}} 的端点时,
69
57
EndpointSlice 控制器会评估每一个端点的拓扑(地域和区域),填充提示字段,并将其分配到某个区域。
@@ -111,7 +99,7 @@ when this feature is enabled. The controller allocates a proportional amount of
111
99
endpoints to each zone. This proportion is based on the
112
100
[allocatable](/docs/tasks/administer-cluster/reserve-compute-resources/#node-allocatable)
113
101
CPU cores for nodes running in that zone. For example, if one zone had 2 CPU
114
- cores and another zone only had 1 CPU core, the controller would allocated twice
102
+ cores and another zone only had 1 CPU core, the controller would allocate twice
115
103
as many endpoints to the zone with 2 CPU cores.
116
104
-->
117
105
此特性开启后,EndpointSlice 控制器负责在 EndpointSlice 上设置提示信息。
@@ -198,7 +186,7 @@ Kubernetes 控制平面和每个节点上的 kube-proxy,在使用拓扑感知
198
186
-->
199
187
2. **不可能实现均衡分配:** 在一些场合中,不可能实现端点在区域中的平衡分配。
200
188
例如,假设 zone-a 比 zone-b 大两倍,但只有 2 个端点,
201
- 那分配到 zone-a 的端点可能收到比 zone-b多两倍的流量 。
189
+ 那分配到 zone-a 的端点可能收到比 zone-b 多两倍的流量 。
202
190
如果控制器不能确定此“期望的过载”值低于每一个区域可接受的阈值,控制器将不指派提示信息。
203
191
重要的是,这不是基于实时反馈。所以对于单独的端点仍有可能超载。
204
192
@@ -265,7 +253,7 @@ Kubernetes 控制平面和每个节点上的 kube-proxy,在使用拓扑感知
265
253
266
254
<!--
267
255
* The EndpointSlice controller does not take into account {{< glossary_tooltip
268
- text="tolerations" term_id="toleration" >}} when deploying calculating the
256
+ text="tolerations" term_id="toleration" >}} when deploying or calculating the
269
257
proportions of each zone. If the Pods backing a Service are limited to a
270
258
subset of Nodes in the cluster, this will not be taken into account.
271
259
-->
0 commit comments