A task scheduling method and device for a computing node
A computing node and task scheduling technology, applied in the computer field, can solve problems such as low resource utilization, idle clusters, and inability to realize multiple tasks in parallel, and achieve the effect of improving resource utilization and improving completion speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] This embodiment provides a task scheduling method for computing nodes, such as figure 1 As shown, the method includes S11-S13:
[0042] S11. Setting the priority weight of each subtask of the task;
[0043] S12. Regularly sort the subtasks to be executed according to the priority weights and required resources of the subtasks;
[0044] S13. Select subtasks to be executed in parallel according to the ranking.
[0045] In the embodiment of the present invention, under the condition of limited computing node resources, the resource utilization rate of the computing nodes is improved, and the task completion speed is improved.
[0046] In an exemplary embodiment, the task may include one or more tasks. The periodicity may be "timing", or "when the execution completion rate of the task reaches a preset value", etc. Required resource amount = initially marked required resource amount * priority weight.
[0047] In an exemplary embodiment, the setting of the priority weig...
Embodiment 2
[0071] This embodiment specifically describes the methods in the above embodiments.
[0072] The resources of computing nodes are known, such as the number of CPU cores and the maximum capacity of memory. Multiple computationally intensive data processing tasks have been divided into multiple subtasks by other algorithms according to logical relationships. According to the complexity of the data processing method and the size of the data, the subtasks are correspondingly marked with the required computing resources, such as the number of CPU cores and memory capacity required by the subtasks. Each subtask is executed in parallel in the computing node, and the sum of the computing resources required by the parallelly executed subtasks should be as close as possible to the resource amount of the computing node. In addition, for subtasks that need to be executed first, the original required resource amount will be multiplied by a priority weight greater than 1, so that they can ...
Embodiment 3
[0099] This embodiment provides a task scheduling device for computing nodes, and the descriptions in the above method embodiments are also applicable to this embodiment, for example image 3 As shown, the device includes a setting module 31, a sorting module 32 and an execution module 33, wherein:
[0100] The setting module 31 is used to set the priority weight of each subtask of the task;
[0101] The sorting module 32 is configured to regularly sort the subtasks to be executed according to the priority weights and required resources of the subtasks;
[0102] The executing module 33 is configured to select subtasks to be executed in parallel according to the ranking.
[0103] In an exemplary embodiment, the setting module 31 sets the priority weight of each subtask of the task, including:
[0104] When the setting module 31 receives multiple subtasks of a task, it sets the priority weight of the subtasks to an initial value.
[0105] In an exemplary embodiment, the setti...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


