Task allocation method and device, equipment and storage medium
The embodiment of the invention discloses a task allocation method and device, equipment and a storage medium, and the method comprises the steps: obtaining a sorting heap used for representing nodes in a server cluster in response to a received task processing request, wherein each node in the sort...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention discloses a task allocation method and device, equipment and a storage medium, and the method comprises the steps: obtaining a sorting heap used for representing nodes in a server cluster in response to a received task processing request, wherein each node in the sorting heap represents one node in the server cluster; the data of each node represents the task connection number of the node; determining a target node at a preset position in the sorting heap; and allocating a to-be-processed task corresponding to the task processing request to the target node.
本申请实施例公开了一种任务分配方法、装置、设备及存储介质,其中,所述方法包括:响应于接收到的任务处理请求,获取用于表征服务器集群中节点的排序堆;其中,所述排序堆中每个结点表征所述服务器集群中的一个节点;所述每个结点的数据表征所述节点的任务连接数;在所述排序堆中,确定处于预设位置的目标节点;将所述任务处理请求对应的待处理任务分配给所述目标节点。 |
---|