Skip to content

Commit ecf6b5d

Browse files
authored
Merge pull request #39529 from windsonsea/flowco
[zh] sync /cluster-administration/flow-control.md
2 parents 0d0d8ae + 9f3f8b8 commit ecf6b5d

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

content/zh-cn/docs/concepts/cluster-administration/flow-control.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ configurable set of _priority levels_. Each incoming request is assigned to a
154154
single priority level, and each priority level will only dispatch as many
155155
concurrent requests as its particular limit allows.
156156
-->
157-
### 优先级 {#Priority-Levels}
157+
### 优先级 {#priority-levels}
158158

159159
如果未启用 APF,API 服务器中的整体并发量将受到 `kube-apiserver` 的参数
160160
`--max-requests-inflight``--max-mutating-requests-inflight` 的限制。
@@ -262,7 +262,7 @@ flows of the same priority level.
262262
To enable distinct handling of distinct instances, controllers that have
263263
many instances should authenticate with distinct usernames
264264
-->
265-
### 排队 {#Queuing}
265+
### 排队 {#queuing}
266266

267267
即使在同一优先级内,也可能存在大量不同的流量源。
268268
在过载情况下,防止一个请求流饿死其他流是非常有价值的
@@ -304,7 +304,7 @@ any of the limitations imposed by this feature. These exemptions prevent an
304304
improperly-configured flow control configuration from totally disabling an API
305305
server.
306306
-->
307-
### 豁免请求 {#Exempt-requests}
307+
### 豁免请求 {#exempt-requests}
308308

309309
某些特别重要的请求不受制于此特性施加的任何限制。
310310
这些豁免可防止不当的流控配置完全禁用 API 服务器。
@@ -322,7 +322,7 @@ single PriorityLevelConfiguration. There is also a `v1alpha1` version
322322
of the same API group, and it has the same Kinds with the same syntax and
323323
semantics.
324324
-->
325-
## 资源 {#Resources}
325+
## 资源 {#resources}
326326

327327
流控 API 涉及两种资源。
328328
[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
338338
PriorityLevelConfiguration has an independent limit on the number of outstanding
339339
requests, and limitations on the number of queued requests.
340340
-->
341-
### PriorityLevelConfiguration {#PriorityLevelConfiguration}
341+
### PriorityLevelConfiguration
342342

343343
一个 PriorityLevelConfiguration 表示单个优先级。每个 PriorityLevelConfiguration
344344
对未完成的请求数有各自的限制,对排队中的请求数也有限制。
@@ -511,7 +511,7 @@ FlowSchema in turn, starting with those with numerically lowest ---
511511
which we take to be the logically highest --- `matchingPrecedence` and
512512
working onward. The first match wins.
513513
-->
514-
### FlowSchema {#flowschema}
514+
### FlowSchema
515515

516516
FlowSchema 匹配一些入站请求,并将它们分配给优先级。
517517
每个入站请求都会对所有 FlowSchema 测试是否匹配,
@@ -656,7 +656,7 @@ The suggested configuration groups requests into six priority levels:
656656
them.
657657
-->
658658
* `system` 优先级用于 `system:nodes` 组(即 kubelet)的与健康状态更新无关的请求;
659-
kubelets 必须能连上 API 服务器,以便工作负载能够调度到其上。
659+
kubelet 必须能连上 API 服务器,以便工作负载能够调度到其上。
660660

661661
<!--
662662
* 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`
807807
FlowSchema and the corresponding `global-default` priority level,
808808
where other traffic can crowd them out.
809809
-->
810-
## 健康检查并发豁免 {#Health-check-concurrency-exemption}
810+
## 健康检查并发豁免 {#health-check-concurrency-exemption}
811811

812812
推荐配置没有为本地 kubelet 对 kube-apiserver 执行健康检查的请求进行任何特殊处理
813813
——它们倾向于使用安全端口,但不提供凭据。
@@ -870,9 +870,9 @@ PriorityLevelConfigurations.
870870
871871
### Metrics
872872
-->
873-
## 可观察性 {#Observability}
873+
## 可观察性 {#observability}
874874

875-
### 指标 {#Metrics}
875+
### 指标 {#metrics}
876876

877877
{{< note >}}
878878
<!--
@@ -1233,9 +1233,9 @@ poorly-behaved workloads that may be harming system health.
12331233
When you enable the API Priority and Fairness feature, the `kube-apiserver`
12341234
serves the following additional paths at its HTTP[S] ports.
12351235
-->
1236-
### 调试端点 {#Debug-endpoints}
1236+
### 调试端点 {#debug-endpoints}
12371237

1238-
启用 APF 特性后, kube-apiserver 会在其 HTTP/HTTPS 端口提供以下路径:
1238+
启用 APF 特性后,kube-apiserver 会在其 HTTP/HTTPS 端口提供以下路径:
12391239

12401240
<!--
12411241
- `/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.
12541254
输出类似于:
12551255

12561256
```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
12651266
```
12661267

12671268
<!--

0 commit comments

Comments
 (0)