Binpack Scheduling for Minimal Resource Fragments
It is used to reduce resource fragments by scheduling pods to nodes with high resource usage. It should not be used to allocate pods to lightly-loaded nodes.
arguments:
- binpack.weight: the weight of the binpack plugin.
- binpack.cpu: the ratio of CPUs to all resources. Default value: 1
- binpack.memory: the ratio of memory resources to all resources. Default value: 1
- binpack.resources: other custom resource types requested by the pod, for example, nvidia.com/gpu. Multiple types can be configured, separated by commas (,).
- binpack.resources.<your_resource>: the weight of your custom resource in all resources. Multiple types of resources can be added. <your_resource> specifies the resource type defined in binpack.resources, for example, binpack.resources.nvidia.com/gpu.
Value Range
true: This plugin is enabled. false: This plugin is disabled.
Options:
- binpack.weight: Enter a positive integer.
- binpack.cpu: Enter a positive integer.
- binpack.memory: Enter a positive integer.
- binpack.resources: Enter a custom character string.
- binpack.resources.<your_resource>: Enter a positive integer.
Default Value
true
The parameter settings are as follows:
- binpack.weight: 1
- binpack.cpu: 1
- binpack.memory: 1
- binpack.resources: nvidia.com/gpu
- binpack.resources.nvidia.com/gpu: 2
Modifiable
Yes
Scope
CCE standard and CCE Turbo clusters
Suggestions
Use default settings. For specific requirements, adjust the weights based on your given service scenarios.
- To increase the influence of binpack on scoring a cluster, change the value of binpack.weight from 1 to 10.
- To improve the CPU usage and reduce CPU resource fragments of a cluster, change the value of binpack.cpu to 10.
- To improve the GPU usage and reduce GPU resource fragments of a cluster, add custom GPU resources and change the value of binpack.resources to 10.

The higher the value of binpack.weight is configured, the greater influence binpack will have on selecting nodes. Accordingly, other plugins like nodeorder will be less influential.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot