@@ -154,7 +154,7 @@ configurable set of _priority levels_. Each incoming request is assigned to a
154
154
single priority level, and each priority level will only dispatch as many
155
155
concurrent requests as its particular limit allows.
156
156
-->
157
- ### 优先级 {#Priority-Levels }
157
+ ### 优先级 {#priority-levels }
158
158
159
159
如果未启用 APF,API 服务器中的整体并发量将受到 ` kube-apiserver ` 的参数
160
160
` --max-requests-inflight ` 和 ` --max-mutating-requests-inflight ` 的限制。
@@ -262,7 +262,7 @@ flows of the same priority level.
262
262
To enable distinct handling of distinct instances, controllers that have
263
263
many instances should authenticate with distinct usernames
264
264
-->
265
- ### 排队 {#Queuing }
265
+ ### 排队 {#queuing }
266
266
267
267
即使在同一优先级内,也可能存在大量不同的流量源。
268
268
在过载情况下,防止一个请求流饿死其他流是非常有价值的
@@ -304,7 +304,7 @@ any of the limitations imposed by this feature. These exemptions prevent an
304
304
improperly-configured flow control configuration from totally disabling an API
305
305
server.
306
306
-->
307
- ### 豁免请求 {#Exempt -requests}
307
+ ### 豁免请求 {#exempt -requests}
308
308
309
309
某些特别重要的请求不受制于此特性施加的任何限制。
310
310
这些豁免可防止不当的流控配置完全禁用 API 服务器。
@@ -322,7 +322,7 @@ single PriorityLevelConfiguration. There is also a `v1alpha1` version
322
322
of the same API group, and it has the same Kinds with the same syntax and
323
323
semantics.
324
324
-->
325
- ## 资源 {#Resources }
325
+ ## 资源 {#resources }
326
326
327
327
流控 API 涉及两种资源。
328
328
[ PriorityLevelConfiguration] (/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#prioritylevelconfiguration-v1beta2-flowcontrol-apiserver-k8s-io)
@@ -338,7 +338,7 @@ A PriorityLevelConfiguration represents a single priority level. Each
338
338
PriorityLevelConfiguration has an independent limit on the number of outstanding
339
339
requests, and limitations on the number of queued requests.
340
340
-->
341
- ### PriorityLevelConfiguration {#PriorityLevelConfiguration}
341
+ ### PriorityLevelConfiguration
342
342
343
343
一个 PriorityLevelConfiguration 表示单个优先级。每个 PriorityLevelConfiguration
344
344
对未完成的请求数有各自的限制,对排队中的请求数也有限制。
@@ -511,7 +511,7 @@ FlowSchema in turn, starting with those with numerically lowest ---
511
511
which we take to be the logically highest --- `matchingPrecedence` and
512
512
working onward. The first match wins.
513
513
-->
514
- ### FlowSchema {#flowschema}
514
+ ### FlowSchema
515
515
516
516
FlowSchema 匹配一些入站请求,并将它们分配给优先级。
517
517
每个入站请求都会对所有 FlowSchema 测试是否匹配,
@@ -656,7 +656,7 @@ The suggested configuration groups requests into six priority levels:
656
656
them.
657
657
-->
658
658
* ` system ` 优先级用于 ` system:nodes ` 组(即 kubelet)的与健康状态更新无关的请求;
659
- kubelets 必须能连上 API 服务器,以便工作负载能够调度到其上。
659
+ kubelet 必须能连上 API 服务器,以便工作负载能够调度到其上。
660
660
661
661
<!--
662
662
* The `leader-election` priority level is for leader election requests from
@@ -807,7 +807,7 @@ suggested config, these requests get assigned to the `global-default`
807
807
FlowSchema and the corresponding `global-default` priority level,
808
808
where other traffic can crowd them out.
809
809
-->
810
- ## 健康检查并发豁免 {#Health -check-concurrency-exemption}
810
+ ## 健康检查并发豁免 {#health -check-concurrency-exemption}
811
811
812
812
推荐配置没有为本地 kubelet 对 kube-apiserver 执行健康检查的请求进行任何特殊处理
813
813
——它们倾向于使用安全端口,但不提供凭据。
@@ -870,9 +870,9 @@ PriorityLevelConfigurations.
870
870
871
871
### Metrics
872
872
-->
873
- ## 可观察性 {#Observability }
873
+ ## 可观察性 {#observability }
874
874
875
- ### 指标 {#Metrics }
875
+ ### 指标 {#metrics }
876
876
877
877
{{< note >}}
878
878
<!--
@@ -1233,9 +1233,9 @@ poorly-behaved workloads that may be harming system health.
1233
1233
When you enable the API Priority and Fairness feature, the `kube-apiserver`
1234
1234
serves the following additional paths at its HTTP[S] ports.
1235
1235
-->
1236
- ### 调试端点 {#Debug -endpoints}
1236
+ ### 调试端点 {#debug -endpoints}
1237
1237
1238
- 启用 APF 特性后, kube-apiserver 会在其 HTTP/HTTPS 端口提供以下路径:
1238
+ 启用 APF 特性后,kube-apiserver 会在其 HTTP/HTTPS 端口提供以下路径:
1239
1239
1240
1240
<!--
1241
1241
- `/debug/api_priority_and_fairness/dump_priority_levels` - a listing of
@@ -1254,14 +1254,15 @@ serves the following additional paths at its HTTP[S] ports.
1254
1254
输出类似于:
1255
1255
1256
1256
``` none
1257
- PriorityLevelName, ActiveQueues, IsIdle, IsQuiescing, WaitingRequests, ExecutingRequests,
1258
- workload-low, 0, true, false, 0, 0,
1259
- global-default, 0, true, false, 0, 0,
1260
- exempt, <none>, <none>, <none>, <none>, <none>,
1261
- catch-all, 0, true, false, 0, 0,
1262
- system, 0, true, false, 0, 0,
1263
- leader-election, 0, true, false, 0, 0,
1264
- workload-high, 0, true, false, 0, 0,
1257
+ PriorityLevelName, ActiveQueues, IsIdle, IsQuiescing, WaitingRequests, ExecutingRequests, DispatchedRequests, RejectedRequests, TimedoutRequests, CancelledRequests
1258
+ catch-all, 0, true, false, 0, 0, 1, 0, 0, 0
1259
+ exempt, <none>, <none>, <none>, <none>, <none>, <none>, <none>, <none>, <none>
1260
+ global-default, 0, true, false, 0, 0, 46, 0, 0, 0
1261
+ leader-election, 0, true, false, 0, 0, 4, 0, 0, 0
1262
+ node-high, 0, true, false, 0, 0, 34, 0, 0, 0
1263
+ system, 0, true, false, 0, 0, 48, 0, 0, 0
1264
+ workload-high, 0, true, false, 0, 0, 500, 0, 0, 0
1265
+ workload-low, 0, true, false, 0, 0, 0, 0, 0, 0
1265
1266
```
1266
1267
1267
1268
<!--
0 commit comments