You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
当 `kubelet` 结束一个 Pod 时,它将终止 Pod 中的所有容器,而 Pod 的 `Phase`
36
+
将变为 `Failed`。
37
+
如果被驱逐的 Pod 由 Deployment 管理,这个 Deployment 会创建另一个 Pod 给
38
+
Kubernetes 来调度。
36
39
37
40
## {{% heading "whatsnext" %}}
38
41
39
42
<!--
40
-
- Read [Configure out of resource handling](/docs/tasks/administer-cluster/out-of-resource/) to learn more about eviction signals, thresholds, and handling.
43
+
- Learn how to [configure out of resource handling](/docs/tasks/administer-cluster/out-of-resource/) with eviction signalsand thresholds.
Copy file name to clipboardExpand all lines: content/zh/docs/concepts/scheduling-eviction/resource-bin-packing.md
+31-29Lines changed: 31 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,23 +26,25 @@ The kube-scheduler can be configured to enable bin packing of resources along wi
26
26
<!--
27
27
## Enabling Bin Packing using RequestedToCapacityRatioResourceAllocation
28
28
29
-
Before Kubernetes 1.15, Kube-scheduler used to allow scoring nodes based on the request to capacity ratio of primary resources like CPU and Memory. Kubernetes 1.16 added a new parameter to the priority function that allows the users to specify the resources along with weights for each resource to score nodes based on the request to capacity ratio. This allows users to bin pack extended resources by using appropriate parameters improves the utilization of scarce resources in large clusters. The behavior of the `RequestedToCapacityRatioResourceAllocation` priority function can be controlled by a configuration option called `requestedToCapacityRatioArguments`. This argument consists of two parameters `shape` and `resources`. Shape allows the user to tune the function as least requested or most requested based on `utilization` and `score` values. Resources
29
+
Before Kubernetes 1.15, Kube-scheduler used to allow scoring nodes based on the request to capacity ratio of primary resources like CPU and Memory. Kubernetes 1.16 added a new parameter to the priority function that allows the users to specify the resources along with weights for each resource to score nodes based on the request to capacity ratio. This allows users to bin pack extended resources by using appropriate parameters and improves the utilization of scarce resources in large clusters. The behavior of the `RequestedToCapacityRatioResourceAllocation` priority function can be controlled by a configuration option called `requestedToCapacityRatioArguments`. This argument consists of two parameters `shape` and `resources`. Shape allows the user to tune the function as least requested or most requested based on `utilization` and `score` values. Resources
30
30
consists of `name` which specifies the resource to be considered during scoring and `weight` specify the weight of each resource.
Below is an example configuration that sets `requestedToCapacityRatioArguments` to bin packing behavior for extended resources `intel.com/foo` and `intel.com/bar`
@@ -53,29 +55,29 @@ Below is an example configuration that sets `requestedToCapacityRatioArguments`
53
55
54
56
```json
55
57
{
56
-
"kind" : "Policy",
57
-
"apiVersion" : "v1",
58
-
...
59
-
"priorities" : [
60
-
...
61
-
{
62
-
"name": "RequestedToCapacityRatioPriority",
63
-
"weight": 2,
64
-
"argument": {
65
-
"requestedToCapacityRatioArguments": {
66
-
"shape": [
67
-
{"utilization": 0, "score": 0},
68
-
{"utilization": 100, "score": 10}
69
-
],
70
-
"resources": [
71
-
{"name": "intel.com/foo", "weight": 3},
72
-
{"name": "intel.com/bar", "weight": 5}
73
-
]
74
-
}
58
+
"kind": "Policy",
59
+
"apiVersion": "v1",
60
+
...
61
+
"priorities": [
62
+
...
63
+
{
64
+
"name": "RequestedToCapacityRatioPriority",
65
+
"weight": 2,
66
+
"argument": {
67
+
"requestedToCapacityRatioArguments": {
68
+
"shape": [
69
+
{"utilization": 0, "score": 0},
70
+
{"utilization": 100, "score": 10}
71
+
],
72
+
"resources": [
73
+
{"name": "intel.com/foo", "weight": 3},
74
+
{"name": "intel.com/bar", "weight": 5}
75
+
]
75
76
}
76
77
}
77
-
],
78
-
}
78
+
}
79
+
],
80
+
}
79
81
```
80
82
81
83
<!--
@@ -89,7 +91,6 @@ Below is an example configuration that sets `requestedToCapacityRatioArguments`
89
91
90
92
`shape` is used to specify the behavior of the `RequestedToCapacityRatioPriority` function.
@@ -103,8 +104,9 @@ Below is an example configuration that sets `requestedToCapacityRatioArguments`
103
104
The above arguments give the node a score of 0 if utilization is 0% and 10 for utilization 100%, thus enabling bin packing behavior. To enable least requested the score value must be reversed as follows.
0 commit comments