@@ -262,8 +262,7 @@ text="shuffle sharding" >}}, which makes relatively efficient use of
262
262
queues to insulate low-intensity flows from high-intensity flows.
263
263
-->
264
264
将请求划分到流中之后,APF 功能将请求分配到队列中。
265
- 分配时使用一种称为{{< glossary_tooltip term_id="shuffle-sharding" text="混洗分片(Shuffle-Sharding)" >}}
266
- 的技术。
265
+ 分配时使用一种称为{{< glossary_tooltip term_id="shuffle-sharding" text="混洗分片(Shuffle-Sharding)" >}}的技术。
267
266
该技术可以相对有效地利用队列隔离低强度流与高强度流。
268
267
269
268
<!--
@@ -294,32 +293,33 @@ server.
294
293
295
294
The flow control API involves two kinds of resources.
296
295
[PriorityLevelConfigurations](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#prioritylevelconfiguration-v1beta2-flowcontrol-apiserver-k8s-io)
297
- define the available isolation classes , the share of the available concurrency
296
+ define the available priority levels , the share of the available concurrency
298
297
budget that each can handle, and allow for fine-tuning queuing behavior.
299
298
[FlowSchemas](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#flowschema-v1beta2-flowcontrol-apiserver-k8s-io)
300
299
are used to classify individual inbound requests, matching each to a
301
- single PriorityLevelConfiguration. There is also a `v1alpha1` version
300
+ single PriorityLevelConfiguration. There is also a `v1alpha1` version
302
301
of the same API group, and it has the same Kinds with the same syntax and
303
302
semantics.
304
303
-->
305
304
## 资源 {#Resources}
306
305
307
306
流控 API 涉及两种资源。
308
307
[ PriorityLevelConfiguration] (/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#prioritylevelconfiguration-v1beta2-flowcontrol-apiserver-k8s-io)
309
- 定义隔离类型和可处理的并发预算量 ,还可以微调排队行为。
308
+ 定义可用的优先级和可处理的并发预算量 ,还可以微调排队行为。
310
309
[ FlowSchema] (/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#flowschema-v1beta2-flowcontrol-apiserver-k8s-io)
311
310
用于对每个入站请求进行分类,并与一个 PriorityLevelConfiguration 相匹配。
312
311
此外同一 API 组还有一个 ` v1alpha1 ` 版本,其中包含语法和语义都相同的资源类别。
313
312
314
313
<!--
315
314
### PriorityLevelConfiguration
316
- A PriorityLevelConfiguration represents a single isolation class. Each
315
+
316
+ A PriorityLevelConfiguration represents a single priority level. Each
317
317
PriorityLevelConfiguration has an independent limit on the number of outstanding
318
318
requests, and limitations on the number of queued requests.
319
319
-->
320
320
### PriorityLevelConfiguration {#PriorityLevelConfiguration}
321
321
322
- 一个 PriorityLevelConfiguration 表示单个隔离类型 。每个 PriorityLevelConfiguration
322
+ 一个 PriorityLevelConfiguration 表示单个优先级 。每个 PriorityLevelConfiguration
323
323
对未完成的请求数有各自的限制,对排队中的请求数也有限制。
324
324
325
325
<!--
@@ -335,7 +335,7 @@ down) by the same fraction.
335
335
-->
336
336
PriorityLevelConfiguration 的并发限制不是指定请求绝对数量,而是在“并发份额”中指定。
337
337
API 服务器的总并发量限制通过这些份额按例分配到现有 PriorityLevelConfiguration 中。
338
- 集群管理员可以更改 ` --max-requests-inflight ` (或 ` --max-mutating-requests-inflight ` )的值,
338
+ 集群管理员可以更改 ` --max-requests-inflight ` (或 ` --max-mutating-requests-inflight ` )的值,
339
339
再重新启动 ` kube-apiserver ` 来增加或减小服务器的总流量,
340
340
然后所有的 PriorityLevelConfiguration 将看到其最大并发增加(或减少)了相同的比例。
341
341
@@ -412,7 +412,7 @@ priority level. Details of the algorithm can be read in the
412
412
较大的 ` handSize ` 使两个单独的流程发生碰撞的可能性较小(因此,一个流可以饿死另一个流),
413
413
但是更有可能的是少数流可以控制 apiserver。
414
414
较大的 ` handSize ` 还可能增加单个高并发流的延迟量。
415
- 单个流中可能排队的请求的最大数量为 ` handSize * queueLengthLimit ` 。
415
+ 单个流中可能排队的请求的最大数量为 ` handSize * queueLengthLimit ` 。
416
416
{{< /note >}}
417
417
418
418
<!--
@@ -531,7 +531,7 @@ guardrail behavior. This is behavior that the servers have before
531
531
those objects exist, and when those objects exist their specs reflect
532
532
this behavior. The four mandatory objects are as follows.
533
533
-->
534
- ### 强制的配置对象
534
+ ### 强制的配置对象 {#mandatory-configuration-objects}
535
535
536
536
有四种强制的配置对象对应内置的守护行为。这里的行为是服务器在还未创建对象之前就具备的行为,
537
537
而当这些对象存在时,其规约反映了这类行为。四种强制的对象如下:
@@ -577,7 +577,7 @@ configuration will work best.
577
577
578
578
The suggested configuration groups requests into six priority levels:
579
579
-->
580
- ### 建议的配置对象
580
+ ### 建议的配置对象 {#suggested-configuration-objects}
581
581
582
582
建议的 FlowSchema 和 PriorityLevelConfiguration 包含合理的默认配置。
583
583
你可以修改这些对象或者根据需要创建新的配置对象。如果你的集群可能承受较重负载,
@@ -644,7 +644,7 @@ Thus, in a situation with a mixture of servers of different versions
644
644
there may be thrashing as long as different servers have different
645
645
opinions of the proper content of these objects.
646
646
-->
647
- ### 强制的与建议的配置对象的维护
647
+ ### 强制的与建议的配置对象的维护 {#maintenance-of-the-mandatory-and-suggested-configuration-objects}
648
648
649
649
每个 ` kube-apiserver ` 都独立地维护其强制的与建议的配置对象,
650
650
这一维护操作既是服务器的初始行为,也是其周期性操作的一部分。
@@ -925,7 +925,7 @@ poorly-behaved workloads that may be harming system health.
925
925
* ` apiserver_flowcontrol_read_vs_write_request_count_watermarks ` 是一个直方图向量,
926
926
记录请求数量的高/低水位线,
927
927
由标签 ` phase ` (取值为 ` waiting ` 和 ` executing ` )和 ` request_kind `
928
- (取值为 ` mutating ` 和 ` readOnly ` )拆分;标签 ` mark ` 取值为 ` high ` 和 ` low ` 。
928
+ (取值为 ` mutating ` 和 ` readOnly ` )拆分;标签 ` mark ` 取值为 ` high ` 和 ` low ` 。
929
929
` apiserver_flowcontrol_read_vs_write_request_count_samples ` 向量观察到有值新增,
930
930
则该向量累积。这些水位线显示了样本值的范围。
931
931
0 commit comments