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
Prior to the introduction of Topology Manager, the CPU and Device Manager in Kubernetes make resource allocation decisions independently of each other.
53
53
This can result in undesirable allocations on multiple-socketed systems, performance/latency sensitive applications will suffer due to these undesirable allocations.
54
54
Undesirable in this case meaning for example, CPUs and devices being allocated from different NUMA Nodes thus, incurring additional latency.
The Topology Manager is a Kubelet component, which acts as a source of truth so that other Kubelet components can make topology aligned resource allocation choices.
@@ -77,28 +77,28 @@ The hint is then stored in the Topology Manager for use by the *Hint Providers*
Support for the Topology Manager requires `TopologyManager` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) to be enabled. It is enabled by default starting with Kubernetes 1.18.
对于 Guaranteed 类 Pod 中的每个容器,配置了 `single-numa-nodde` 拓扑管理策略的
358
+
对于 Pod 中的每个容器,配置了 `single-numa-nodde` 拓扑管理策略的
359
359
kubelet 调用每个建议提供者以确定其资源可用性。
360
360
使用此信息,拓扑管理器确定单 NUMA 节点亲和性是否可能。
361
361
如果是这样,则拓扑管理器将存储此信息,然后 *建议提供者* 可以在做出资源分配决定时使用此信息。
@@ -375,7 +375,7 @@ An external control loop could be also implemented to trigger a redeployment of
375
375
376
376
Consider the containers in the following pod specs:
377
377
-->
378
-
### Pod 与拓扑管理器策略的交互
378
+
### Pod 与拓扑管理器策略的交互 {#pod-interactions-with-topology-manager-policies}
379
379
380
380
考虑以下 pod 规范中的容器:
381
381
@@ -410,7 +410,7 @@ This pod runs in the `Burstable` QoS class because requests are less than limits
410
410
由于 requests 数少于 limits,因此该 Pod 以 `Burstable` QoS 类运行。
411
411
412
412
<!--
413
-
If the selected policy is anything other than `none`, Topology Manager would consider these Pod specifications. The Topology Manager would consult the Hint Providers to get topology hints. In the case of the `static`, the CPU Manager policy would return default topology hint, because these Pods do not have explicity request CPU resources.
413
+
If the selected policy is anything other than `none`, Topology Manager would consider these Pod specifications. The Topology Manager would consult the Hint Providers to get topology hints. In the case of the `static`, the CPU Manager policy would return default topology hint, because these Pods do not have explicitly request CPU resources.
414
414
-->
415
415
如果选择的策略是 `none` 以外的任何其他策略,拓扑管理器都会评估这些 Pod 的规范。
416
416
拓扑管理器会咨询建议提供者,获得拓扑建议。
@@ -434,8 +434,7 @@ spec:
434
434
```
435
435
436
436
<!--
437
-
This pod with integer CPU request runs in the `Guaranteed` QoS class because
438
-
`requests`are equal to `limits`.
437
+
This pod with integer CPU request runs in the `Guaranteed` QoS class because `requests` are equal to `limits`.
439
438
-->
440
439
此 Pod 以 `Guaranteed` QoS 类运行,因为其 `requests` 值等于 `limits` 值。
441
440
@@ -459,12 +458,12 @@ This pod runs in the `BestEffort` QoS class because there are no CPU and memory
459
458
因为未指定 CPU 和内存请求,所以 Pod 以 `BestEffort` QoS 类运行。
460
459
461
460
<!--
462
-
The Topology Manager would consider both of the above pods. The Topology Manager would consult the Hint Providers, which are CPU and Device Manager to get topology hints for the pods.
461
+
The Topology Manager would consider the above pods. The Topology Manager would consult the Hint Providers, which are CPU and Device Manager to get topology hints for the pods.
463
462
464
-
In the case of the `Guaranteed` pod with integer request, the `static` CPU Manager policy would return hints relating to the CPU request and the Device Manager would send back hints for the requested device.
463
+
In the case of the `Guaranteed` pod with integer CPU request, the `static` CPU Manager policy would return topology hints relating to the exclusive CPU and the Device Manager would send back hints for the requested device.
465
464
-->
466
465
拓扑管理器将考虑以上两个 Pod。拓扑管理器将咨询建议提供者即 CPU 和设备管理器,以获取 Pod 的拓扑提示。
467
-
对于 `Guaranteed` 类的 CPU 请求数为整数的 Pod,`static` CPU 管理器策略将返回与 CPU 请求有关的提示,
466
+
对于 `Guaranteed` 类的 CPU 请求数为整数的 Pod,`static` CPU 管理器策略将返回独占 CPU 相关的拓扑提示,
468
467
而设备管理器将返回有关所请求设备的提示。
469
468
470
469
<!--
@@ -497,7 +496,7 @@ Using this information the Topology Manager calculates the optimal hint for the
497
496
498
497
2. The scheduler is not topology-aware, so it is possible to be scheduled on a node and then fail on the node due to the Topology Manager.
0 commit comments