@@ -34,10 +34,10 @@ picking a Node with the highest score among the feasible ones to run
34
34
the Pod. The scheduler then notifies the API server about this decision
35
35
in a process called _Binding_.
36
36
-->
37
- 在一个集群中,满足一个 Pod 调度请求的所有 Node 称之为 _ 可调度 _ Node。
37
+ 在一个集群中,满足一个 Pod 调度请求的所有 Node 称之为** 可调度 ** Node。
38
38
调度器先在集群中找到一个 Pod 的可调度 Node,然后根据一系列函数对这些可调度 Node 打分,
39
39
之后选出其中得分最高的 Node 来运行 Pod。
40
- 最后,调度器将这个调度决定告知 kube-apiserver,这个过程叫做 _ 绑定 (Binding)_ 。
40
+ 最后,调度器将这个调度决定告知 kube-apiserver,这个过程叫做** 绑定 (Binding)** 。
41
41
42
42
<!--
43
43
This page explains performance tuning optimizations that are relevant for
@@ -55,7 +55,7 @@ accuracy (the scheduler rarely makes poor placement decisions).
55
55
You configure this tuning setting via kube-scheduler setting
56
56
`percentageOfNodesToScore`. This KubeSchedulerConfiguration setting determines
57
57
a threshold for scheduling nodes in your cluster.
58
- -->
58
+ -->
59
59
在大规模集群中,你可以调节调度器的表现来平衡调度的延迟(新 Pod 快速就位)
60
60
和精度(调度器很少做出糟糕的放置决策)。
61
61
@@ -64,7 +64,7 @@ a threshold for scheduling nodes in your cluster.
64
64
65
65
<!--
66
66
### Setting the threshold
67
- -->
67
+ -->
68
68
### 设置阈值
69
69
70
70
<!--
@@ -73,25 +73,25 @@ and 100. The value 0 is a special number which indicates that the kube-scheduler
73
73
should use its compiled-in default.
74
74
If you set `percentageOfNodesToScore` above 100, kube-scheduler acts as if you
75
75
had set a value of 100.
76
- -->
76
+ -->
77
77
` percentageOfNodesToScore ` 选项接受从 0 到 100 之间的整数值。
78
78
0 值比较特殊,表示 kube-scheduler 应该使用其编译后的默认值。
79
79
如果你设置 ` percentageOfNodesToScore ` 的值超过了 100,
80
80
kube-scheduler 的表现等价于设置值为 100。
81
81
82
82
<!--
83
83
To change the value, edit the
84
- [kube-scheduler configuration file](/docs/reference/config-api/kube-scheduler-config.v1beta3 /)
84
+ [kube-scheduler configuration file](/docs/reference/config-api/kube-scheduler-config.v1 /)
85
85
and then restart the scheduler.
86
86
In many cases, the configuration file can be found at `/etc/kubernetes/config/kube-scheduler.yaml`.
87
- -->
88
- 要修改这个值,先编辑 [ kube-scheduler 的配置文件 ] ( /zh-cn/docs/reference/config-api/kube-scheduler-config.v1beta3/ )
89
- 然后重启调度器。
87
+ -->
88
+ 要修改这个值,先编辑
89
+ [ kube-scheduler 的配置文件 ] ( /zh-cn/docs/reference/config-api/kube-scheduler-config.v1/ ) 然后重启调度器。
90
90
大多数情况下,这个配置文件是 ` /etc/kubernetes/config/kube-scheduler.yaml ` 。
91
91
92
92
<!--
93
93
After you have made this change, you can run
94
- -->
94
+ -->
95
95
修改完成后,你可以执行
96
96
97
97
``` bash
@@ -100,19 +100,19 @@ kubectl get pods -n kube-system | grep kube-scheduler
100
100
101
101
<!--
102
102
to verify that the kube-scheduler component is healthy.
103
- -->
103
+ -->
104
104
来检查该 kube-scheduler 组件是否健康。
105
105
106
106
<!--
107
107
## Node scoring threshold {#percentage-of-nodes-to-score}
108
- -->
108
+ -->
109
109
## 节点打分阈值 {#percentage-of-nodes-to-score}
110
110
111
111
<!--
112
112
To improve scheduling performance, the kube-scheduler can stop looking for
113
113
feasible nodes once it has found enough of them. In large clusters, this saves
114
114
time compared to a naive approach that would consider every node.
115
- -->
115
+ -->
116
116
要提升调度性能,kube-scheduler 可以在找到足够的可调度节点之后停止查找。
117
117
在大规模集群中,比起考虑每个节点的简单方法相比可以节省时间。
118
118
@@ -123,7 +123,7 @@ integer number of nodes. During scheduling, if the kube-scheduler has identified
123
123
enough feasible nodes to exceed the configured percentage, the kube-scheduler
124
124
stops searching for more feasible nodes and moves on to the
125
125
[scoring phase](/docs/concepts/scheduling-eviction/kube-scheduler/#kube-scheduler-implementation).
126
- -->
126
+ -->
127
127
你可以使用整个集群节点总数的百分比作为阈值来指定需要多少节点就足够。
128
128
kube-scheduler 会将它转换为节点数的整数值。在调度期间,如果
129
129
kube-scheduler 已确认的可调度节点数足以超过了配置的百分比数量,
@@ -133,38 +133,38 @@ kube-scheduler 将停止继续查找可调度节点并继续进行
133
133
<!--
134
134
[How the scheduler iterates over Nodes](#how-the-scheduler-iterates-over-nodes)
135
135
describes the process in detail.
136
- -->
137
- [ 调度器如何遍历节点] ( #how-the-scheduler-iterates-over-nodes ) 详细介绍了这个过程。
136
+ -->
137
+ [ 调度器如何遍历节点] ( #how-the-scheduler-iterates-over-nodes ) 详细介绍了这个过程。
138
138
139
139
<!--
140
140
### Default threshold
141
- -->
141
+ -->
142
142
### 默认阈值
143
143
144
144
<!--
145
145
If you don't specify a threshold, Kubernetes calculates a figure using a
146
146
linear formula that yields 50% for a 100-node cluster and yields 10%
147
147
for a 5000-node cluster. The lower bound for the automatic value is 5%.
148
- -->
148
+ -->
149
149
如果你不指定阈值,Kubernetes 使用线性公式计算出一个比例,在 100-节点集群
150
150
下取 50%,在 5000-节点的集群下取 10%。这个自动设置的参数的最低值是 5%。
151
151
152
152
<!--
153
153
This means that, the kube-scheduler always scores at least 5% of your cluster no
154
154
matter how large the cluster is, unless you have explicitly set
155
155
`percentageOfNodesToScore` to be smaller than 5.
156
- -->
156
+ -->
157
157
这意味着,调度器至少会对集群中 5% 的节点进行打分,除非用户将该参数设置的低于 5。
158
158
159
159
<!--
160
160
If you want the scheduler to score all nodes in your cluster, set
161
161
`percentageOfNodesToScore` to 100.
162
- -->
162
+ -->
163
163
如果你想让调度器对集群内所有节点进行打分,则将 ` percentageOfNodesToScore ` 设置为 100。
164
164
165
165
<!--
166
166
## Example
167
- -->
167
+ -->
168
168
## 示例
169
169
170
170
<!--
@@ -213,8 +213,8 @@ scheduler's performance significantly.
213
213
当集群中的可调度节点少于 50 个时,调度器仍然会去检查所有的 Node,
214
214
因为可调度节点太少,不足以停止调度器最初的过滤选择。
215
215
216
- 同理,在小规模集群中,如果你将 `percentageOfNodesToScore` 设置为
217
- 一个较低的值 ,则没有或者只有很小的效果。
216
+ 同理,在小规模集群中,如果你将 `percentageOfNodesToScore`
217
+ 设置为一个较低的值 ,则没有或者只有很小的效果。
218
218
219
219
如果集群只有几百个节点或者更少,请保持这个配置的默认值。
220
220
改变基本不会对调度器的性能有明显的提升。
@@ -300,7 +300,6 @@ After going over all the Nodes, it goes back to Node 1.
300
300
## {{% heading "whatsnext" %}}
301
301
302
302
<!--
303
- * Check the [kube-scheduler configuration reference (v1beta3 )](/docs/reference/config-api/kube-scheduler-config.v1beta3 /)
303
+ * Check the [kube-scheduler configuration reference (v1 )](/docs/reference/config-api/kube-scheduler-config.v1 /)
304
304
-->
305
-
306
- * 参见 [kube-scheduler 配置参考 (v1beta3)](/zh-cn/docs/reference/config-api/kube-scheduler-config.v1beta3/)
305
+ * 参见 [kube-scheduler 配置参考(v1)](/zh-cn/docs/reference/config-api/kube-scheduler-config.v1/)
0 commit comments