@@ -34,7 +34,7 @@ fair queuing technique so that, for example, a poorly-behaved
34
34
{{< glossary_tooltip text="controller" term_id="controller" >}} need not
35
35
starve others (even at the same priority level).
36
36
-->
37
- API 优先级和公平性( APF )是一种替代方案,可提升上述最大并发限制。
37
+ API 优先级和公平性(APF)是一种替代方案,可提升上述最大并发限制。
38
38
APF 以更细粒度的方式对请求进行分类和隔离。
39
39
它还引入了空间有限的排队机制,因此在非常短暂的突发情况下,API 服务器不会拒绝任何请求。
40
40
通过使用公平排队技术从队列中分发请求,这样,
@@ -50,7 +50,7 @@ Fairness feature enabled.
50
50
{{< /caution >}}
51
51
-->
52
52
{{< caution >}}
53
- 属于“长时间运行”类型的请求(主要是 watch )不受 API 优先级和公平性过滤器的约束。
53
+ 属于“长时间运行”类型的请求(主要是 watch)不受 API 优先级和公平性过滤器的约束。
54
54
如果未启用 APF 特性,即便设置 ` --max-requests-inflight ` 标志,该类请求也不受约束。
55
55
{{< /caution >}}
56
56
@@ -233,7 +233,7 @@ APF 特性附带推荐配置,该配置对实验场景应该足够;
233
233
i.e. Kubelets, which must be able to contact the API server in order for
234
234
workloads to be able to schedule on them.
235
235
-->
236
- * ` system ` 优先级用于 ` system:nodes ` 组(即 Kubelets )的请求;
236
+ * ` system ` 优先级用于 ` system:nodes ` 组(即 Kubelets)的请求;
237
237
kubelets 必须能连上 API 服务器,以便工作负载能够调度到其上。
238
238
239
239
<!--
@@ -555,7 +555,7 @@ depends on the resource and your particular environment.
555
555
FlowSchema 的 ` distinguisherMethod.type ` 字段决定了如何把与该模式匹配的请求分散到各个流中。
556
556
可能是 ` ByUser ` ,在这种情况下,一个请求用户将无法饿死其他容量的用户;
557
557
或者是 ` ByNamespace ` ,在这种情况下,一个名称空间中的资源请求将无法饿死其它名称空间的资源请求;
558
- 或者它可以为空(或者可以完全省略 ` distinguisherMethod ` ),
558
+ 或者它可以为空(或者可以完全省略 ` distinguisherMethod ` ),
559
559
在这种情况下,与此 FlowSchema 匹配的请求将被视为单个流的一部分。
560
560
资源和你的特定环境决定了如何选择正确一个 FlowSchema。
561
561
@@ -638,7 +638,7 @@ poorly-behaved workloads that may be harming system health.
638
638
-->
639
639
* ` apiserver_flowcontrol_rejected_requests_total ` 是一个计数器向量,
640
640
记录被拒绝的请求数量(自服务器启动以来累计值),
641
- 由标签 ` flow_chema ` (表示与请求匹配的 FlowSchema ),` priority_evel `
641
+ 由标签 ` flow_chema ` (表示与请求匹配的 FlowSchema),` priority_evel `
642
642
(表示分配给请该求的优先级)和 ` reason ` 来区分。
643
643
` reason ` 标签将具有以下值之一:
644
644
@@ -655,7 +655,7 @@ poorly-behaved workloads that may be harming system health.
655
655
-->
656
656
* ` apiserver_flowcontrol_dispatched_requests_total ` 是一个计数器向量,
657
657
记录开始执行的请求数量(自服务器启动以来的累积值),
658
- 由标签 ` flow_schema ` (表示与请求匹配的 FlowSchema )和
658
+ 由标签 ` flow_schema ` (表示与请求匹配的 FlowSchema)和
659
659
` priority_level ` (表示分配给该请求的优先级)来区分。
660
660
661
661
<!--
@@ -685,8 +685,8 @@ poorly-behaved workloads that may be harming system health.
685
685
-->
686
686
* ` apiserver_flowcontrol_read_vs_write_request_count_samples ` 是一个直方图向量,
687
687
记录当前请求数量的观察值,
688
- 由标签 ` phase ` (取值为 ` waiting ` 和 ` executing ` )和 ` request_kind `
689
- (取值 ` mutating ` 和 ` readOnly ` )拆分。定期以高速率观察该值。
688
+ 由标签 ` phase ` (取值为 ` waiting ` 和 ` executing ` )和 ` request_kind `
689
+ (取值 ` mutating ` 和 ` readOnly ` )拆分。定期以高速率观察该值。
690
690
691
691
<!--
692
692
* `apiserver_flowcontrol_read_vs_write_request_count_watermarks` is a
@@ -701,8 +701,8 @@ poorly-behaved workloads that may be harming system health.
701
701
-->
702
702
* ` apiserver_flowcontrol_read_vs_write_request_count_watermarks ` 是一个直方图向量,
703
703
记录请求数量的高/低水位线,
704
- 由标签 ` phase ` (取值为 ` waiting ` 和 ` executing ` )和 ` request_kind `
705
- (取值为 ` mutating ` 和 ` readOnly ` )拆分;标签 ` mark ` 取值为 ` high ` 和 ` low ` 。
704
+ 由标签 ` phase ` (取值为 ` waiting ` 和 ` executing ` )和 ` request_kind `
705
+ (取值为 ` mutating ` 和 ` readOnly ` )拆分;标签 ` mark ` 取值为 ` high ` 和 ` low ` 。
706
706
` apiserver_flowcontrol_read_vs_write_request_count_samples ` 向量观察到有值新增,
707
707
则该向量累积。这些水位线显示了样本值的范围。
708
708
@@ -735,7 +735,7 @@ poorly-behaved workloads that may be harming system health.
735
735
rate.
736
736
-->
737
737
* ` apiserver_flowcontrol_priority_level_request_count_samples ` 是一个直方图向量,
738
- 记录当前请求的观测值,由标签 ` phase ` (取值为` waiting ` 和 ` executing ` )和
738
+ 记录当前请求的观测值,由标签 ` phase ` (取值为` waiting ` 和 ` executing ` )和
739
739
` priority_level ` 进一步区分。
740
740
每个直方图都会定期进行观察,直到相关类别的最后活动为止。观察频率高。
741
741
@@ -751,7 +751,7 @@ poorly-behaved workloads that may be harming system health.
751
751
water marks show the range of values that occurred between samples.
752
752
-->
753
753
* ` apiserver_flowcontrol_priority_level_request_count_watermarks ` 是一个直方图向量,
754
- 记录请求数的高/低水位线,由标签 ` phase ` (取值为 ` waiting ` 和 ` executing ` )和
754
+ 记录请求数的高/低水位线,由标签 ` phase ` (取值为 ` waiting ` 和 ` executing ` )和
755
755
` priority_level ` 拆分;
756
756
标签 ` mark ` 取值为 ` high ` 和 ` low ` 。
757
757
` apiserver_flowcontrol_priority_level_request_count_samples ` 向量观察到有值新增,
@@ -805,9 +805,9 @@ poorly-behaved workloads that may be harming system health.
805
805
-->
806
806
* ` apiserver_flowcontrol_request_wait_duration_seconds ` 是一个直方图向量,
807
807
记录请求排队的时间,
808
- 由标签 ` flow_schema ` (表示与请求匹配的 FlowSchema ),
809
- ` priority_level ` (表示分配该请求的优先级)
810
- 和 ` execute ` (表示请求是否开始执行)进一步区分。
808
+ 由标签 ` flow_schema ` (表示与请求匹配的 FlowSchema ),
809
+ ` priority_level ` (表示分配该请求的优先级)
810
+ 和 ` execute ` (表示请求是否开始执行)进一步区分。
811
811
<!--
812
812
Since each FlowSchema always assigns requests to a single
813
813
PriorityLevelConfiguration, you can add the histograms for all the
@@ -829,8 +829,8 @@ poorly-behaved workloads that may be harming system health.
829
829
-->
830
830
* ` apiserver_flowcontrol_request_execution_seconds ` 是一个直方图向量,
831
831
记录请求实际执行需要花费的时间,
832
- 由标签 ` flow_schema ` (表示与请求匹配的 FlowSchema )和
833
- ` priority_level ` (表示分配给该请求的优先级)进一步区分。
832
+ 由标签 ` flow_schema ` (表示与请求匹配的 FlowSchema )和
833
+ ` priority_level ` (表示分配给该请求的优先级)进一步区分。
834
834
835
835
<!--
836
836
### Debug endpoints
0 commit comments