Skip to content

Commit 869669b

Browse files
committed
[zh] Sync /cluster-administration/flow-control.md
1 parent 37815c8 commit 869669b

File tree

1 file changed

+95
-73
lines changed

1 file changed

+95
-73
lines changed

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

Lines changed: 95 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,11 @@ poorly-behaved workloads that may be harming system health.
864864
监视这些指标有助于判断你的配置是否不当地限制了重要流量,
865865
或者发现可能会损害系统健康的,行为不良的工作负载。
866866

867+
<!--
868+
#### Maturity level BETA
869+
-->
870+
#### 成熟度水平 BETA
871+
867872
<!--
868873
* `apiserver_flowcontrol_rejected_requests_total` is a counter vector
869874
(cumulative since server start) of requests that were rejected,
@@ -874,8 +879,8 @@ poorly-behaved workloads that may be harming system health.
874879
-->
875880
* `apiserver_flowcontrol_rejected_requests_total` 是一个计数器向量,
876881
记录被拒绝的请求数量(自服务器启动以来累计值),
877-
由标签 `flow_chema`(表示与请求匹配的 FlowSchema)、`priority_level`
878-
(表示分配给请该求的优先级)和 `reason` 来区分
882+
可按标签 `flow_chema`(表示与请求匹配的 FlowSchema)、`priority_level`
883+
(表示分配给请该求的优先级)和 `reason` 分解
879884
`reason` 标签将是以下值之一:
880885

881886
<!--
@@ -902,8 +907,55 @@ poorly-behaved workloads that may be harming system health.
902907
-->
903908
* `apiserver_flowcontrol_dispatched_requests_total` 是一个计数器向量,
904909
记录开始执行的请求数量(自服务器启动以来的累积值),
905-
`flow_schema``priority_level` 来区分。
910+
可按 `flow_schema``priority_level` 分解。
911+
912+
<!--
913+
* `apiserver_flowcontrol_current_inqueue_requests` is a gauge vector
914+
holding the instantaneous number of queued (not executing) requests,
915+
broken down by `priority_level` and `flow_schema`.
916+
917+
* `apiserver_flowcontrol_current_executing_requests` is a gauge vector
918+
holding the instantaneous number of executing (not waiting in a
919+
queue) requests, broken down by `priority_level` and `flow_schema`.
920+
-->
921+
* `apiserver_flowcontrol_current_inqueue_requests` 是一个测量向量,
922+
记录排队中的(未执行)请求的瞬时数量,可按 `priority_level``flow_schema` 分解。
906923

924+
* `apiserver_flowcontrol_current_executing_requests` 是一个测量向量,
925+
记录执行中(不在队列中等待)请求的瞬时数量,可按 `priority_level``flow_schema` 分解。
926+
927+
<!--
928+
* `apiserver_flowcontrol_current_executing_seats` is a gauge vector
929+
holding the instantaneous number of occupied seats, broken down by
930+
`priority_level` and `flow_schema`.
931+
932+
* `apiserver_flowcontrol_request_wait_duration_seconds` is a histogram
933+
vector of how long requests spent queued, broken down by the labels
934+
`flow_schema`, `priority_level`, and `execute`. The `execute` label
935+
indicates whether the request has started executing.
936+
-->
937+
* `apiserver_flowcontrol_current_executing_seats` 是一个测量向量,
938+
记录了按 `priority_level``flow_schema` 细分的瞬时占用席位数量。
939+
940+
* `apiserver_flowcontrol_request_wait_duration_seconds` 是一个直方图向量,
941+
记录了按 `flow_schema``priority_level``execute` 标签细分的请求在队列中等待的时长。
942+
`execute` 标签表示请求是否已开始执行。
943+
944+
{{< note >}}
945+
<!--
946+
Since each FlowSchema always assigns requests to a single
947+
PriorityLevelConfiguration, you can add the histograms for all the
948+
FlowSchemas for one priority level to get the effective histogram for
949+
requests assigned to that priority level.
950+
-->
951+
由于每个 FlowSchema 总会给请求分配 PriorityLevelConfiguration,
952+
因此你可以将一个优先级的所有 FlowSchema 的直方图相加,以得到分配给该优先级的请求的有效直方图。
953+
{{< /note >}}
954+
955+
<!--
956+
#### Maturity level ALPHA
957+
-->
958+
#### 成熟度水平 ALPHA
907959

908960
<!--
909961
* `apiserver_current_inqueue_requests` is a gauge vector of recent
@@ -915,13 +967,22 @@ poorly-behaved workloads that may be harming system health.
915967
last window's high water mark of number of requests actively being
916968
served.
917969
-->
918-
* `apiserver_current_inqueue_requests` 是一个表向量
970+
* `apiserver_current_inqueue_requests` 是一个测量向量
919971
记录最近排队请求数量的高水位线,
920972
由标签 `request_kind` 分组,标签的值为 `mutating``readOnly`
921973
这些高水位线表示在最近一秒钟内看到的最大数字。
922-
它们补充说明了老的表向量 `apiserver_current_inflight_requests`
974+
它们补充说明了老的测量向量 `apiserver_current_inflight_requests`
923975
(该量保存了最后一个窗口中,正在处理的请求数量的高水位线)。
924976

977+
<!--
978+
* `apiserver_current_inqueue_seats` is a gauge vector of the sum over
979+
queued requests of the largest number of seats each will occupy,
980+
grouped by labels named `flow_schema` and `priority_level`.
981+
-->
982+
* `apiserver_current_inqueue_seats` 是一个测量向量,
983+
记录了排队请求中每个请求将占用的最大席位数的总和,
984+
`flow_schema``priority_level` 两个标签进行分组。
985+
925986
<!--
926987
* `apiserver_flowcontrol_read_vs_write_current_requests` is a
927988
histogram vector of observations, made at the end of every
@@ -934,36 +995,18 @@ poorly-behaved workloads that may be harming system health.
934995
limit for executing).
935996
-->
936997
* `apiserver_flowcontrol_read_vs_write_current_requests` 是一个直方图向量,
937-
在每个纳秒结束时记录请求数量的观察值,由标签 `phase`(取值为 `waiting``executing`
938-
`request_kind`(取值为 `mutating``readOnly`区分
998+
在每个纳秒结束时记录请求数量的观察值,可按标签 `phase`(取值为 `waiting``executing`
999+
`request_kind`(取值为 `mutating``readOnly`分解
9391000
每个观察到的值是一个介于 0 和 1 之间的比值,计算方式为请求数除以该请求数的对应限制
9401001
(等待的队列长度限制和执行所用的并发限制)。
9411002

942-
<!--
943-
* `apiserver_flowcontrol_current_inqueue_requests` is a gauge vector
944-
holding the instantaneous number of queued (not executing) requests,
945-
broken down by `priority_level` and `flow_schema`.
946-
-->
947-
* `apiserver_flowcontrol_current_inqueue_requests` 是一个表向量,
948-
记录包含排队中的(未执行)请求的瞬时数量,
949-
`priority_level``flow_schema` 区分。
950-
951-
<!--
952-
* `apiserver_flowcontrol_current_executing_requests` is a gauge vector
953-
holding the instantaneous number of executing (not waiting in a
954-
queue) requests, broken down by `priority_level` and `flow_schema`.
955-
-->
956-
* `apiserver_flowcontrol_current_executing_requests` 是一个表向量,
957-
记录包含执行中(不在队列中等待)请求的瞬时数量,
958-
`priority_level``flow_schema` 进一步区分。
959-
9601003
<!--
9611004
* `apiserver_flowcontrol_request_concurrency_in_use` is a gauge vector
9621005
holding the instantaneous number of occupied seats, broken down by
9631006
`priority_level` and `flow_schema`.
9641007
-->
9651008
* `apiserver_flowcontrol_request_concurrency_in_use` 是一个规范向量,
966-
包含占用座位的瞬时数量,由 `priority_level``flow_schema` 进一步区分
1009+
包含占用席位的瞬时数量,可按 `priority_level``flow_schema` 分解
9671010

9681011
<!--
9691012
* `apiserver_flowcontrol_priority_level_request_utilization` is a
@@ -977,7 +1020,7 @@ poorly-behaved workloads that may be harming system health.
9771020
-->
9781021
* `apiserver_flowcontrol_priority_level_request_utilization` 是一个直方图向量,
9791022
在每个纳秒结束时记录请求数量的观察值,
980-
由标签 `phase`(取值为 `waiting``executing`)和 `priority_level` 区分
1023+
可按标签 `phase`(取值为 `waiting``executing`)和 `priority_level` 分解
9811024
每个观察到的值是一个介于 0 和 1 之间的比值,计算方式为请求数除以该请求数的对应限制
9821025
(等待的队列长度限制和执行所用的并发限制)。
9831026

@@ -996,7 +1039,7 @@ poorly-behaved workloads that may be harming system health.
9961039
phase).
9971040
-->
9981041
* `apiserver_flowcontrol_priority_level_seat_utilization` 是一个直方图向量,
999-
在每个纳秒结束时记录某个优先级并发度限制利用率的观察值,由标签 `priority_level` 区分
1042+
在每个纳秒结束时记录某个优先级并发度限制利用率的观察值,可按标签 `priority_level` 分解
10001043
此利用率是一个分数:(占用的席位数)/(并发限制)。
10011044
此指标考虑了除 WATCH 之外的所有请求的所有执行阶段(包括写入结束时的正常延迟和额外延迟,
10021045
以覆盖相应的通知操作);对于 WATCH 请求,只考虑传递预先存在对象通知的初始阶段。
@@ -1011,7 +1054,7 @@ poorly-behaved workloads that may be harming system health.
10111054
Note that this produces different statistics than an unbiased survey would.
10121055
-->
10131056
* `apiserver_flowcontrol_request_queue_length_after_enqueue` 是一个直方图向量,
1014-
记录请求队列的长度, `priority_level``flow_schema` 进一步区分
1057+
记录请求队列的长度,可按 `priority_level``flow_schema` 分解
10151058
每个排队中的请求都会为其直方图贡献一个样本,并在添加请求后立即上报队列的长度。
10161059
请注意,这样产生的统计数据与无偏调查不同。
10171060

@@ -1042,26 +1085,17 @@ poorly-behaved workloads that may be harming system health.
10421085
此字段始终等于 `apiserver_flowcontrol_current_limit_seats`
10431086
(它过去不作为一个独立的指标存在)。
10441087

1045-
<!--
1046-
* `apiserver_flowcontrol_nominal_limit_seats` is a gauge vector
1047-
holding each priority level's nominal concurrency limit, computed
1048-
from the API server's total concurrency limit and the priority
1049-
level's configured nominal concurrency shares.
1050-
-->
1051-
* `apiserver_flowcontrol_nominal_limit_seats` 是一个表向量,包含每个优先级的额定并发度限制,
1052-
指标值根据 API 服务器的总并发度限制和各优先级所配置的额定并发度份额计算得出。
1053-
10541088
<!--
10551089
* `apiserver_flowcontrol_lower_limit_seats` is a gauge vector holding
10561090
the lower bound on each priority level's dynamic concurrency limit.
10571091
-->
1058-
* `apiserver_flowcontrol_lower_limit_seats` 是一个表向量,包含每个优先级的动态并发度限制的下限。
1092+
* `apiserver_flowcontrol_lower_limit_seats` 是一个测量向量,包含每个优先级的动态并发度限制的下限。
10591093

10601094
<!--
10611095
* `apiserver_flowcontrol_upper_limit_seats` is a gauge vector holding
10621096
the upper bound on each priority level's dynamic concurrency limit.
10631097
-->
1064-
* `apiserver_flowcontrol_upper_limit_seats` 是一个表向量,包含每个优先级的动态并发度限制的上限。
1098+
* `apiserver_flowcontrol_upper_limit_seats` 是一个测量向量,包含每个优先级的动态并发度限制的上限。
10651099

10661100
<!--
10671101
* `apiserver_flowcontrol_demand_seats` is a histogram vector counting
@@ -1081,15 +1115,15 @@ poorly-behaved workloads that may be harming system health.
10811115
holding, for each priority level, the maximum seat demand seen
10821116
during the last concurrency borrowing adjustment period.
10831117
-->
1084-
* `apiserver_flowcontrol_demand_seats_high_watermark` 是一个表向量
1118+
* `apiserver_flowcontrol_demand_seats_high_watermark` 是一个测量向量
10851119
为每个优先级包含了上一个并发度借用调整期间所观察到的最大席位需求。
10861120

10871121
<!--
10881122
* `apiserver_flowcontrol_demand_seats_average` is a gauge vector
10891123
holding, for each priority level, the time-weighted average seat
10901124
demand seen during the last concurrency borrowing adjustment period.
10911125
-->
1092-
* `apiserver_flowcontrol_demand_seats_average` 是一个表向量
1126+
* `apiserver_flowcontrol_demand_seats_average` 是一个测量向量
10931127
为每个优先级包含了上一个并发度借用调整期间所观察到的时间加权平均席位需求。
10941128

10951129
<!--
@@ -1098,70 +1132,48 @@ poorly-behaved workloads that may be harming system health.
10981132
standard deviation of seat demand seen during the last concurrency
10991133
borrowing adjustment period.
11001134
-->
1101-
* `apiserver_flowcontrol_demand_seats_stdev` 是一个表向量
1135+
* `apiserver_flowcontrol_demand_seats_stdev` 是一个测量向量
11021136
为每个优先级包含了上一个并发度借用调整期间所观察到的席位需求的时间加权总标准偏差。
11031137

11041138
<!--
11051139
* `apiserver_flowcontrol_demand_seats_smoothed` is a gauge vector
11061140
holding, for each priority level, the smoothed enveloped seat demand
11071141
determined at the last concurrency adjustment.
11081142
-->
1109-
* `apiserver_flowcontrol_demand_seats_smoothed` 是一个表向量
1143+
* `apiserver_flowcontrol_demand_seats_smoothed` 是一个测量向量
11101144
为每个优先级包含了上一个并发度调整期间确定的平滑包络席位需求。
11111145

11121146
<!--
11131147
* `apiserver_flowcontrol_target_seats` is a gauge vector holding, for
11141148
each priority level, the concurrency target going into the borrowing
11151149
allocation problem.
11161150
-->
1117-
* `apiserver_flowcontrol_target_seats` 是一个表向量
1151+
* `apiserver_flowcontrol_target_seats` 是一个测量向量
11181152
包含每个优先级触发借用分配问题的并发度目标值。
11191153

11201154
<!--
11211155
* `apiserver_flowcontrol_seat_fair_frac` is a gauge holding the fair
11221156
allocation fraction determined in the last borrowing adjustment.
11231157
-->
1124-
* `apiserver_flowcontrol_seat_fair_frac` 是一个表向量
1158+
* `apiserver_flowcontrol_seat_fair_frac` 是一个测量向量
11251159
包含了上一个借用调整期间确定的公平分配比例。
11261160

11271161
<!--
11281162
* `apiserver_flowcontrol_current_limit_seats` is a gauge vector
11291163
holding, for each priority level, the dynamic concurrency limit
11301164
derived in the last adjustment.
11311165
-->
1132-
* `apiserver_flowcontrol_current_limit_seats` 是一个表向量
1166+
* `apiserver_flowcontrol_current_limit_seats` 是一个测量向量
11331167
包含每个优先级的上一次调整期间得出的动态并发限制。
11341168

1135-
<!--
1136-
* `apiserver_flowcontrol_request_wait_duration_seconds` is a histogram
1137-
vector of how long requests spent queued, broken down by the labels
1138-
`flow_schema`, `priority_level`, and `execute`. The `execute` label
1139-
indicates whether the request has started executing.
1140-
-->
1141-
* `apiserver_flowcontrol_request_wait_duration_seconds` 是一个直方图向量,
1142-
记录请求排队的时间,
1143-
由标签 `flow_schema``priority_level``execute` 进一步区分。
1144-
标签 `execute` 表示请求是否开始执行。
1145-
1146-
{{< note >}}
1147-
<!--
1148-
Since each FlowSchema always assigns requests to a single
1149-
PriorityLevelConfiguration, you can add the histograms for all the
1150-
FlowSchemas for one priority level to get the effective histogram for
1151-
requests assigned to that priority level.
1152-
-->
1153-
由于每个 FlowSchema 总会给请求分配 PriorityLevelConfiguration,
1154-
因此你可以为一个优先级添加所有 FlowSchema 的直方图,以获取分配给该优先级的请求的有效直方图。
1155-
{{< /note >}}
1156-
11571169
<!--
11581170
* `apiserver_flowcontrol_request_execution_seconds` is a histogram
11591171
vector of how long requests took to actually execute, broken down by
11601172
`flow_schema` and `priority_level`.
11611173
-->
11621174
* `apiserver_flowcontrol_request_execution_seconds` 是一个直方图向量,
11631175
记录请求实际执行需要花费的时间,
1164-
由标签 `flow_schema``priority_level` 进一步区分
1176+
可按标签 `flow_schema``priority_level` 分解
11651177

11661178
<!--
11671179
* `apiserver_flowcontrol_watch_count_samples` is a histogram vector of
@@ -1170,7 +1182,7 @@ poorly-behaved workloads that may be harming system health.
11701182
-->
11711183
* `apiserver_flowcontrol_watch_count_samples` 是一个直方图向量,
11721184
记录给定写的相关活动 WATCH 请求数量,
1173-
由标签 `flow_schema``priority_level` 进一步区分
1185+
可按标签 `flow_schema``priority_level` 分解
11741186

11751187
<!--
11761188
* `apiserver_flowcontrol_work_estimated_seats` is a histogram vector
@@ -1180,7 +1192,7 @@ poorly-behaved workloads that may be harming system health.
11801192
-->
11811193
* `apiserver_flowcontrol_work_estimated_seats` 是一个直方图向量,
11821194
记录与估计席位(最初阶段和最后阶段的最多人数)相关联的请求数量,
1183-
由标签 `flow_schema``priority_level` 进一步区分
1195+
可按标签 `flow_schema``priority_level` 分解
11841196

11851197
<!--
11861198
* `apiserver_flowcontrol_request_dispatch_no_accommodation_total` is a
@@ -1191,7 +1203,17 @@ poorly-behaved workloads that may be harming system health.
11911203
* `apiserver_flowcontrol_request_dispatch_no_accommodation_total`
11921204
是一个事件数量的计数器,这些事件在原则上可能导致请求被分派,
11931205
但由于并发度不足而没有被分派,
1194-
由标签 `flow_schema``priority_level` 进一步区分。
1206+
可按标签 `flow_schema``priority_level` 分解。
1207+
1208+
<!--
1209+
* `apiserver_flowcontrol_epoch_advance_total` is a counter vector of
1210+
the number of attempts to jump a priority level's progress meter
1211+
backward to avoid numeric overflow, grouped by `priority_level` and
1212+
`success`.
1213+
-->
1214+
* `apiserver_flowcontrol_epoch_advance_total` 是一个计数器向量,
1215+
记录了将优先级进度计向后跳跃以避免数值溢出的尝试次数,
1216+
`priority_level``success` 两个标签进行分组。
11951217

11961218
<!--
11971219
## Good practices for using API Priority and Fairness

0 commit comments

Comments
 (0)