@@ -26,39 +26,40 @@ each resource to score nodes based on the request to capacity ratio. This
26
26
allows users to bin pack extended resources by using appropriate parameters
27
27
and improves the utilization of scarce resources in large clusters. The
28
28
behavior of the ` RequestedToCapacityRatioResourceAllocation ` priority function
29
- can be controlled by a configuration option called
30
- ` requestedToCapacityRatioArguments ` . This argument consists of two parameters
31
- ` shape ` and ` resources ` . The ` shape ` parameter allows the user to tune the
32
- function as least requested or most requested based on ` utilization ` and
33
- ` score ` values. The ` resources ` parameter consists of ` name ` of the resource
34
- to be considered during scoring and ` weight ` specify the weight of each
35
- resource.
29
+ can be controlled by a configuration option called ` RequestedToCapacityRatioArgs ` .
30
+ This argument consists of two parameters ` shape ` and ` resources ` . The ` shape `
31
+ parameter allows the user to tune the function as least requested or most
32
+ requested based on ` utilization ` and ` score ` values. The ` resources ` parameter
33
+ consists of ` name ` of the resource to be considered during scoring and ` weight `
34
+ specify the weight of each resource.
36
35
37
36
Below is an example configuration that sets
38
37
` requestedToCapacityRatioArguments ` to bin packing behavior for extended
39
38
resources ` intel.com/foo ` and ` intel.com/bar ` .
40
39
41
40
``` yaml
42
- apiVersion : v1
43
- kind : Policy
41
+ apiVersion : kubescheduler.config.k8s.io/v1beta1
42
+ kind : KubeSchedulerConfiguration
43
+ profiles :
44
44
# ...
45
- priorities :
46
- # ...
47
- - name : RequestedToCapacityRatioPriority
48
- weight : 2
49
- argument :
50
- requestedToCapacityRatioArguments :
51
- shape :
52
- - utilization : 0
53
- score : 0
54
- - utilization : 100
55
- score : 10
56
- resources :
57
- - name : intel.com/foo
58
- weight : 3
59
- - name : intel.com/bar
60
- weight : 5
61
- ` ` `
45
+ pluginConfig :
46
+ - name : RequestedToCapacityRatio
47
+ args :
48
+ shape :
49
+ - utilization : 0
50
+ score : 10
51
+ - utilization : 100
52
+ score : 0
53
+ resources :
54
+ - name : intel.com/foo
55
+ weight : 3
56
+ - name : intel.com/bar
57
+ weight : 5
58
+ ` ` `
59
+
60
+ Referencing the ` KubeSchedulerConfiguration` file with the kube-scheduler
61
+ flag `--config=/path/to/config/file` will pass the configuration to the
62
+ scheduler.
62
63
63
64
**This feature is disabled by default**
64
65
0 commit comments