Movatterモバイル変換


[0]ホーム

URL:


CN116600017A - Resource scheduling method, system, device, computer equipment and storage medium - Google Patents

Resource scheduling method, system, device, computer equipment and storage medium
Download PDF

Info

Publication number
CN116600017A
CN116600017ACN202310573001.4ACN202310573001ACN116600017ACN 116600017 ACN116600017 ACN 116600017ACN 202310573001 ACN202310573001 ACN 202310573001ACN 116600017 ACN116600017 ACN 116600017A
Authority
CN
China
Prior art keywords
edge node
task
terminal
task data
rendering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310573001.4A
Other languages
Chinese (zh)
Inventor
高静
贺良杰
周旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lianying Zhiyuan Medical Technology Co ltd
Original Assignee
Wuhan United Imaging Healthcare Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan United Imaging Healthcare Co LtdfiledCriticalWuhan United Imaging Healthcare Co Ltd
Priority to CN202310573001.4ApriorityCriticalpatent/CN116600017A/en
Publication of CN116600017ApublicationCriticalpatent/CN116600017A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请涉及一种资源调度方法、系统、装置、计算机设备和存储介质。该方法包括:终端从多个边缘节点中确定目标边缘节点,将待处理的任务数据发送给目标边缘节点,以使目标边缘节点根据任务数据执行相应的操作,从而接收目标边缘节点发送的执行结果。在本方法中,在终端本地资源不足的情况下,通过确定空闲边缘节点,向空闲边缘节点发送任务请求,以使空闲边缘节点执行相应的任务处理,由于边缘节点与终端之间的通信距离远远小于终端与云服务器之间的通信距离,通信带宽要求低,不受限于带宽要求,通过边缘节点处理任务数据,在解决终端本地资源无法扩展的问题的同时,还满足了终端任务的实时性要求。

The present application relates to a resource scheduling method, system, device, computer equipment and storage medium. The method includes: the terminal determines a target edge node from a plurality of edge nodes, and sends task data to be processed to the target edge node, so that the target edge node performs corresponding operations according to the task data, thereby receiving an execution result sent by the target edge node . In this method, when the local resources of the terminal are insufficient, by determining the idle edge node, a task request is sent to the idle edge node, so that the idle edge node performs the corresponding task processing, because the communication distance between the edge node and the terminal is long Far smaller than the communication distance between the terminal and the cloud server, the communication bandwidth requirement is low, and it is not limited by the bandwidth requirement. The task data is processed through the edge node. While solving the problem that the terminal's local resources cannot be expanded, it also meets the real-time requirements of the terminal task. sexual demands.

Description

Resource scheduling method, system, device, computer equipment and storage medium
The application provides a divisional application of a resource scheduling method, a system, a device, computer equipment and a storage medium aiming at the application date of 2020, 12-month 02 and 202011386668.6.
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, a system, an apparatus, a computer device, and a storage medium for scheduling resources.
Background
With the development of science and technology, the medical field starts to analyze symptoms by acquiring 3D medical images. The 3D medical image has stronger display effect compared with the 2D image, and is more beneficial to finding symptoms. The 3D medical image contains a large amount of image data, and requires a stronger rendering technique, and consumes more GPU resources.
At present, the terminal is required to provide GPU resources by the 3D image application, but the terminal is limited in GPU resources, when rendering tasks are more, the requirements of 3D image rendering cannot be met, and in the prior art, the terminal is provided with GPU resources through a cloud to realize 3D image rendering of the terminal.
However, due to limitation of network bandwidth, the method for providing GPU resources through the cloud end is difficult to meet the 3D image rendering task with high real-time requirement.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource scheduling method, system, apparatus, computer device, and storage medium capable of meeting the real-time requirements.
In a first aspect, a method for scheduling resources is provided, the method comprising:
Determining a target edge node from a plurality of edge nodes; the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server;
the task data to be processed is sent to a target edge node, so that the target edge node executes corresponding operation according to the task data;
and receiving an execution result sent by the target edge node.
In one embodiment, the determining the target edge node from the plurality of edge nodes includes:
determining a first edge node according to the communication distance, and sending a task request to the first edge node;
if the first task response is received and sent by the first edge node, the first edge node is determined to be a target edge node; the first task response is to indicate that the first edge node has free resources.
In one embodiment, the method further comprises:
receiving a second task response sent by the cloud server, wherein the second task response comprises an identification of a target edge node, and the target edge node requests the cloud server to allocate a second edge node with idle resources for the terminal under the condition that the resources of the first edge node are insufficient; the communication distance between the second edge node and the terminal is greater than that between the first edge node and the terminal;
And determining the target edge node according to the second task response.
In one embodiment, the determining the target edge node from the plurality of edge nodes includes:
sending a task request to a cloud server;
receiving a third task response sent by the cloud server; the third task response comprises the identification of the target edge node; the target edge node is a third edge node which is closest to the terminal in communication distance among at least one edge node with idle resources and determined by the cloud server;
and determining the target edge node according to the third task response.
In a second aspect, a resource scheduling method is provided, the method including:
receiving a task request sent by a terminal; the task request is used for requesting the edge node to execute the task data, and the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server;
under the condition that the terminal has idle resources, a task response is returned to the terminal;
and the receiving terminal executes corresponding operation according to the task data and returns an execution result to the terminal according to the task data sent by the task response.
In one embodiment, the method further comprises:
under the condition that the self resources are occupied, a task request is sent to the cloud server, and the task request is used for indicating the cloud server to allocate the edge node with the idle resources for the terminal.
In one embodiment, the executing the corresponding operation according to the task data and returning the execution result to the terminal includes:
if the task data is calculation task data, the calculation resource is called to execute calculation operation on the calculation task data, a calculation result is obtained, and the calculation result is returned to the terminal;
if the task data is the rendering task data, rendering resources are allocated for the rendering task data, the rendering resources are called to execute rendering operation, rendering results are obtained, the rendering results are returned to the terminal, an instruction of completion of the rendering operation sent by the terminal is received, and the rendering resources are released.
In a third aspect, a method for scheduling resources is provided, the method including:
receiving a task request; the task request comprises a terminal identifier of the terminal;
determining a target edge node from at least one edge node with idle resources according to the terminal identification; the communication distance between the terminal and the edge node is smaller than the communication distance between the terminal and the cloud server; the target edge node is the edge node closest to the terminal communication distance;
returning a first task response to the terminal and sending a control instruction to the target edge node; the first task response is used for indicating the terminal to send task data to the target edge node, the control instruction is used for indicating the target edge node to execute corresponding operation according to the task data and returning an execution result to the terminal.
In one embodiment, the method further comprises:
if the edge node with the idle resource does not exist, a second task response is returned to the terminal; the second task response is used for indicating the terminal to send task data to the cloud server;
receiving task data, executing corresponding operation according to the task data, and returning an execution result to the terminal.
In one embodiment, the executing the corresponding operation according to the task data and returning the execution result to the terminal includes:
selecting a corresponding task data processing mode according to the type of the task data to obtain a calculation result;
the task data processing mode includes at least one of calling a computing resource to perform a computing operation, allocating the computing resource and calling the computing resource to perform the computing operation, postponing performing task data processing, or displaying a type of task data and requesting a user to select task data processing.
In one embodiment, selecting the corresponding task data processing mode according to the type of the task data includes:
and selecting a task data processing mode according to the preset corresponding relation between the type of the task data and the task data processing mode.
In one embodiment, the correspondence between the type of the task data and the task data processing mode is trained by a machine learning method.
In one embodiment, the executing the corresponding operation according to the task data and returning the execution result to the terminal includes:
if the task data is calculation task data, the calculation resource is called to execute calculation operation on the calculation task data, a calculation result is obtained, and the calculation result is returned to the terminal;
if the task data is the rendering task data, rendering resources are allocated for the rendering task data, the rendering resources are called to execute rendering operation, rendering results are obtained, the rendering results are returned to the terminal, an instruction of completion of the rendering operation sent by the terminal is received, and the rendering resources are released.
In a fourth aspect, a resource scheduling system is provided, where the resource scheduling system includes a terminal, an edge node, and a cloud server;
a terminal configured to execute the resource scheduling method provided in the first aspect;
an edge node, configured to perform the resource scheduling method provided in the second aspect;
and the cloud server is used for executing the resource scheduling method provided by the third aspect.
In a fifth aspect, there is provided a resource scheduling apparatus, the apparatus comprising:
A determining module for determining a target edge node from a plurality of edge nodes; the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server;
the sending module is used for sending the task data to be processed to the target edge node so that the target edge node can execute corresponding operation according to the task data;
and the receiving module is used for receiving the execution result sent by the target edge node.
In a sixth aspect, there is provided a resource scheduling apparatus, the apparatus comprising:
the receiving module is used for receiving a task request sent by the terminal; the task request is used for requesting the edge node to execute the task data, and the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server;
the sending module is used for returning a task response to the terminal under the condition that the sending module has idle resources;
and the execution module is used for receiving the task data sent by the terminal according to the task response, executing corresponding operation according to the task data and returning an execution result to the terminal.
In a seventh aspect, there is provided a resource scheduling apparatus comprising:
the receiving module is used for receiving the task request; the task request comprises a terminal identifier of the terminal;
The determining module is used for determining a target edge node from at least one edge node with idle resources according to the terminal identification; the communication distance between the terminal and the edge node is smaller than the communication distance between the terminal and the cloud server; the target edge node is the edge node closest to the terminal communication distance;
the sending module is used for returning a first task response to the terminal and sending a control instruction to the target edge node; the first task response is used for indicating the terminal to send task data to the target edge node, the control instruction is used for indicating the target edge node to execute corresponding operation according to the task data and returning an execution result to the terminal.
In an eighth aspect, a computer device is provided, comprising a memory storing a computer program and a processor implementing the resource scheduling method according to any of the first, second and third aspects when the computer program is executed.
A ninth aspect provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the resource scheduling method of any of the first, second and third aspects above.
The resource scheduling method, the system, the device, the computer equipment and the storage medium are characterized in that the terminal determines the target edge node from a plurality of edge nodes, and sends the task data to be processed to the target edge node, so that the target edge node executes corresponding operation according to the task data, and therefore an execution result sent by the target edge node is received. In the method, under the condition that the local resources of the terminal are insufficient, the idle edge node is determined, and a task request is sent to the idle edge node, so that the idle edge node executes corresponding task processing, and as the communication distance between the edge node and the terminal is far smaller than that between the terminal and the cloud server, the communication bandwidth requirement is low and is not limited by the bandwidth requirement, and the task data is processed through the edge node, the problem that the local resources of the terminal cannot be expanded is solved, and meanwhile, the real-time requirement of the terminal task is also met.
Drawings
FIG. 1 is an application environment diagram of a resource scheduling method in one embodiment;
FIG. 2 is a flow diagram of a method for scheduling resources in one embodiment;
FIG. 3 is a flow diagram of a method of scheduling resources in one embodiment;
FIG. 4 is a flow diagram of a method of scheduling resources in one embodiment;
FIG. 5 is a flow diagram of a method for scheduling resources in one embodiment;
FIG. 6 is a flowchart of a resource scheduling method according to another embodiment;
FIG. 7 is a flowchart of a resource scheduling method according to another embodiment;
FIG. 8 is a flow diagram of a method of scheduling resources in one embodiment;
FIG. 9 is a flowchart of a resource scheduling method according to another embodiment;
FIG. 10 is a block diagram of a resource scheduling device in one embodiment;
FIG. 11 is a block diagram of a resource scheduling device in one embodiment;
FIG. 12 is a block diagram of a resource scheduler in one embodiment;
fig. 13 is an internal structural view of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The resource scheduling method provided by the application can be applied to an application environment shown in figure 1. The terminal 1 communicates with the edge node 2 and the cloud server 3 through a network. The terminal 1 may be, but not limited to, various medical devices, and the edge node 2 is a server node which is constructed in advance and has a communication distance with the terminal smaller than that between the terminal and the cloud server; the cloud server 3 may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail by examples and with reference to the accompanying drawings. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. It should be noted that, in the resource scheduling method provided in the embodiments of fig. 2 to fig. 5 of the present application, the execution body may be a terminal, or may be a resource scheduling device, where the resource scheduling device may be a part or all of the terminal in a manner of software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is a terminal as an example.
In one embodiment, as shown in fig. 2, a resource scheduling method is provided, which relates to a process that a terminal determines a target edge node from a plurality of edge nodes, sends task data to be processed to the target edge node, so that the target edge node performs corresponding operations according to the task data, and thus receives an execution result sent by the target edge node, and includes the following steps:
s201, determining a target edge node from a plurality of edge nodes; the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server.
The edge nodes are a plurality of server nodes which are built in advance, and when the edge nodes are built, the communication distance between the edge nodes and the terminal is smaller than the communication distance between the terminal and the cloud server in consideration of the problem of real-time performance of processing tasks of the edge nodes.
In this embodiment, the terminal determines the target edge node from among the plurality of edge nodes in the case where the self resources are insufficient. The communication distance is a virtual parameter, which may be determined by the local area network address, by a configuration parameter, or by a ping command, for example. Correspondingly, the terminal can determine the edge node closest to the terminal as a target edge node according to the local area network address of the terminal; alternatively, the terminal may determine that an edge node is a target edge node according to a range of distances, which is not limited in this embodiment.
S202, the task data to be processed is sent to the target edge node, so that the target edge node executes corresponding operation according to the task data.
The task data to be processed refers to data corresponding to a task to be processed, for example, if the task to be processed is a calculation task, the task data is calculation input data; the task to be processed is a rendering task, and the task data is input image data; and if the task to be processed is other tasks, the task data is corresponding other input data.
In this embodiment, after determining the target edge node, the terminal sends task data to be processed to the target edge node, so that the target edge node performs a corresponding operation according to the task data; the terminal sends the computing task data to the target edge node, so that the target edge node schedules corresponding computing resources, and executes computing tasks according to the computing task data; the terminal sends the rendering task data to the target edge node, so that the target edge node schedules the corresponding rendering resource, and performs the rendering task according to the rendering task data, which is not limited in this embodiment.
Optionally, different edge target nodes may be more suitable for performing different task data processing, such as an image processing computing task, an image reconstructing computing task, a data computing task, a rendering task, a training task, and the like, where before determining the target edge node, the terminal may determine a task type according to task data to be processed, determine the target edge node according to the task type, and send the task data to be processed to the target edge node, so that the target edge node performs a corresponding operation according to the task data.
S203, receiving an execution result sent by the target edge node.
In this embodiment, after the target edge node performs a corresponding operation according to the task data to be processed, the terminal receives an execution result sent by the target edge node, for example, if the task data to be processed is calculation task data and the target edge node performs a calculation task to obtain a corresponding calculation result, then the terminal receives the calculation result returned by the target edge node; the task data to be processed is rendering task data, the target edge node performs the rendering task and outputs corresponding image data, and the terminal receives the image data returned by the target edge node, which is not limited in this embodiment.
In the resource scheduling method, the terminal determines the target edge node from the plurality of edge nodes, and sends the task data to be processed to the target edge node, so that the target edge node executes corresponding operation according to the task data, and therefore an execution result sent by the target edge node is received. In the method, under the condition that the local resources of the terminal are insufficient, the idle edge node is determined, and a task request is sent to the idle edge node, so that the idle edge node executes corresponding task processing, and as the communication distance between the edge node and the terminal is far smaller than that between the terminal and the cloud server, the communication bandwidth requirement is low and is not limited by the bandwidth requirement, and the task data is processed through the edge node, the problem that the local resources of the terminal cannot be expanded is solved, and meanwhile, the real-time requirement of the terminal task is also met.
In determining the target edge node, the terminal may determine whether there is an edge node with a free resource currently by sending a task request to the edge node, and in one embodiment, as shown in fig. 3, the determining the target edge node from the plurality of edge nodes includes:
s301, determining a first edge node according to the communication distance, and sending a task request to the first edge node.
In this embodiment, in order to improve the real-time performance of processing task data of the terminal, when the terminal determines a target edge node from a plurality of edge nodes under the condition that its own resources are insufficient, the terminal may determine, from among the edge nodes with idle resources, an edge node closest to itself as a first edge node according to its own local area network address, and send a task request to the first edge node to determine whether the current first edge node can execute the task of the terminal.
S302, if a first task response is received and sent by a first edge node, determining the first edge node as a target edge node; the first task response is to indicate that the first edge node has free resources.
The first task response refers to a task response returned to the terminal by the first edge node under the condition of having idle resources.
In this embodiment, when the terminal receives the first task response, which means that the currently accessed first edge node has a free resource, task data may be received to perform corresponding task processing. After the terminal receives the first task response, the terminal may determine the current first edge node as the target edge node, which is not limited in this embodiment.
In this embodiment, the terminal determines the target edge node with the idle resource by sending the task request to the edge node, where the task request does not carry task data, the occupied resources are limited, and the edge node with the idle resource is determined by the limited resources, so that the efficiency of determining the target edge node is improved.
In the case that the edge node closest to the terminal is insufficient in resources, the terminal may further allocate a target edge node to the terminal through the cloud server, and in an embodiment, as shown in fig. 4, the method further includes:
s401, receiving a second task response sent by the cloud server, wherein the second task response comprises an identification of a target edge node, and the target edge node is a second edge node with idle resources, which is allocated to the terminal by the cloud server, when the resources of the first edge node are insufficient; the second edge node is in greater communication with the terminal than the first edge node.
The second task response refers to a task response carrying a second edge node sent by the cloud server.
In this embodiment, if the first edge node determines that the self-resources are insufficient, the first edge node may send a task request to the cloud server, so that the cloud server determines a second edge node from other idle edge nodes, and in particular, the second edge node is an edge node closest to the terminal among the edge nodes with idle resources.
S402, determining a target edge node according to the second task response.
In this embodiment, after receiving the second task response, the terminal determines, according to the identifier of the second edge node carried in the second task response, that the second edge node is the target edge node. It should be noted that, the second edge node is an edge node that is determined by the cloud server from edge nodes with idle resources and is closest to the terminal, so after the terminal determines that the second edge node is the target edge node, the terminal may directly send task data to the second edge node, so that the second edge node performs corresponding task processing according to the task data, and does not need to send a task request to the second edge node to determine whether the second edge node has idle resources.
In this embodiment, if the first edge node has insufficient resources, the cloud server may also determine the second edge node to be used for executing the task request of the terminal, so that the task request of the terminal may be processed in time, and the processing efficiency of the task request of the terminal is improved.
Optionally, the terminal may also directly send a task request to the cloud server, so that the cloud server allocates an edge node for itself to perform task processing, and in an embodiment, as shown in fig. 5, the determining a target edge node from a plurality of edge nodes includes:
s501, sending a task request to a cloud server.
In this embodiment, the terminal may also directly send a task request to the cloud server under the condition that its own resources are insufficient, so that the cloud server determines the target edge node according to the resource idle condition of each edge node.
S502, a receiving cloud server sends a third task response; the third task response comprises the identification of the target edge node; the target edge node is a third edge node closest to the terminal in communication among at least one edge node with idle resources determined by the cloud server.
In this embodiment, similarly, after receiving the task request, the cloud server may determine, from edge nodes with idle resources, an edge node closest to the terminal as a target edge node, and send a third task response carrying an identifier of the target edge node to the terminal.
S503, determining a target edge node according to the third task response.
In this embodiment, after receiving the third task response, the terminal determines the target edge node according to the identifier of the target edge node carried in the third task response. It should be noted that, the target edge node is an edge node that is determined by the cloud server from edge nodes with idle resources and is closest to the terminal, so after the terminal determines the target edge node, the terminal may directly send task data to the target edge node, so that the target edge node performs corresponding task processing according to the task data, and no task request needs to be sent to the target edge node to determine whether the target edge node has idle resources.
In this embodiment, the terminal may directly determine the target edge node with the idle resource through the cloud, and the cloud server may acquire the position information and the resource status information of all the edge nodes, and determine the target edge node through the cloud server, thereby improving the efficiency of determining the target edge node and the processing efficiency of the terminal task request.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail by examples and with reference to the accompanying drawings. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. It should be noted that, in the resource scheduling method provided in the embodiment of fig. 6 of the present application, the execution body may be an edge node, or may be a resource scheduling device, where the resource scheduling device may be part or all of the edge node by means of software, hardware, or a combination of software and hardware. In the following method embodiments, the execution body is an edge node as an example.
In one embodiment, as shown in fig. 6, a resource scheduling method is provided, which relates to a process that an edge node receives a task request sent by a terminal, returns a task response to the terminal under the condition that the edge node has idle resources, receives task data sent by the terminal according to the task response, executes corresponding operations according to the task data, and returns an execution result to the terminal, and includes the following steps:
s601, receiving a task request sent by a terminal; the task request is used for requesting the edge node to execute the task data, and the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server.
In this embodiment, the terminal sends a task request to the edge node in the case of insufficient resources of the terminal, so as to determine a target edge node that can perform a task operation. And the corresponding acquisition terminal of the edge node sends a task request, and whether the self resources are enough to process the request is determined according to the task request. This embodiment is not limited thereto.
S602, returning a task response to the terminal when the terminal has idle resources.
In this embodiment, the edge node determines that there is a free resource, and after enough processing the task of the terminal, sends a task response to the terminal, so as to inform the terminal that the next task data sending operation can be performed. Optionally, the edge node determines whether the edge node has corresponding resources to perform task processing according to different task identifiers carried in the task request. If the task request carries the calculation task identification, determining whether the task request has enough resources to perform calculation task processing; if the task request carries the rendering task identifier, it is determined whether the task request has enough resources to perform rendering task processing, which is not limited in this embodiment.
S603, the receiving terminal executes corresponding operation according to the task data sent by the task response and returns an execution result to the terminal.
The task data to be processed refers to data corresponding to a task to be processed, for example, if the task to be processed is a calculation task, the task data is calculation input data; the task to be processed is a rendering task, and the task data is input image data; and if the task to be processed is other tasks, the task data is corresponding other input data.
In this embodiment, the edge node receives task data to be processed sent by the terminal, and executes corresponding operations according to the task data; for example, if the task data received by the target edge node is calculation task data, corresponding calculation resources are scheduled, calculation tasks are executed according to the calculation task data, and calculation results are returned to the terminal; the target edge node receives the task data, and schedules the corresponding rendering resources, executes the rendering task according to the rendering task data, and returns the rendering output data to the terminal, which is not limited in this embodiment.
According to the resource scheduling method, the edge node receives the task request sent by the terminal, returns a task response to the terminal under the condition that the edge node has idle resources, receives task data sent by the terminal according to the task response, executes corresponding operation according to the task data, and returns an execution result to the terminal. In the method, under the condition of insufficient local resources of the terminal, the edge node sends task response to the terminal and receives task data sent by the terminal to execute corresponding task processing by acquiring task requests sent by the terminal and having sufficient resources, and the communication distance between the edge node and the terminal is far smaller than the communication distance between the terminal and the cloud server, so that the communication bandwidth requirement is low and is not limited by the bandwidth requirement, and the problem that the local resources of the terminal cannot be expanded is solved and the real-time requirement of the terminal task is met by processing the task data through the edge node.
In another case, that is, in a case that the edge node is not enough in its own resources, in one embodiment, the method further includes:
under the condition that the self resources are occupied, a task request is sent to the cloud server, and the task request is used for indicating the cloud server to allocate the edge node with the idle resources for the terminal.
In this embodiment, if the current edge node determines that the self resources are insufficient, a task request of the current terminal is sent to the cloud server, so that the cloud server determines a target edge node from other idle edge nodes, and in particular, the target edge node is the edge node closest to the terminal among the edge nodes of the idle resources.
In this embodiment, if the current edge node has insufficient resources, other target edge nodes may be determined by the cloud server to execute the task request of the terminal, so that the task request of the terminal may be processed in time, and the processing efficiency of the task request of the terminal is improved.
Optionally, the edge node performs a corresponding task operation according to task data of the terminal, where the task includes a rendering task and a computing task, and in one embodiment, the performing a corresponding operation according to the task data and returning an execution result to the terminal includes:
If the task data is calculation task data, the calculation resource is called to execute calculation operation on the calculation task data, a calculation result is obtained, and the calculation result is returned to the terminal;
if the task data is the rendering task data, rendering resources are allocated for the rendering task data, the rendering resources are called to execute rendering operation, rendering results are obtained, the rendering results are returned to the terminal, an instruction of completion of the rendering operation sent by the terminal is received, and the rendering resources are released.
In this embodiment, after receiving the task data, the edge node may determine the task type according to the task data, and if the current task data is calculation task data, directly call the calculation service to complete the calculation operation, obtain a calculation result, and return the calculation result to the terminal. If the current task data is rendering task data, the edge node allocates resources and executes rendering tasks after receiving the task data, and sends rendering results to the terminal after the rendering tasks are completed.
In this embodiment, it should be noted that, the resources of the computing service in the edge node are resident, and the resources are not reallocated and released. The rendering service needs to be dispatched and loaded in real time, and corresponding rendering resources are required to be released after the rendering task is completed. Therefore, after the current rendering task of the terminal is completed, the edge node may receive an instruction that the terminal sends to close the rendering process, execute the closing rendering operation according to the instruction, and release the rendering resource. Alternatively, the instruction to close the rendering process may be a trigger request based on the terminal interface, for example, a "complete" trigger request, a "save" trigger request, or the like. Or when the edge node no longer receives new rendering task data within a period of time, determining that the current rendering task is finished, which is not limited in this embodiment.
Because the rendering task data is generally image data and consumes more resources, the edge node can still synchronously execute the rendering task with the terminal when the terminal does not send a task request, so that the problem that the edge node needs to acquire the rendering task data and excessively consumes resources due to insufficient resources in the rendering process of the terminal is avoided. It should be noted that, in the scenario of the 5G bandwidth, the bandwidth is set to be enough for the edge node to execute the rendering task at any time, so the edge node may not execute the synchronous rendering operation, which is not limited in this embodiment.
In this embodiment, the edge node may schedule different resources to process task data according to different types of task data, so as to ensure smooth execution of tasks and improve processing efficiency of terminal tasks.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail by examples and with reference to the accompanying drawings. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. It should be noted that, in the resource scheduling method provided in the embodiments of fig. 7 to 8 of the present application, the execution body is a cloud server, and may also be a resource scheduling device, where the resource scheduling device may be a part or all of the cloud server in a manner of software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is a cloud server as an example.
In one embodiment, as shown in fig. 7, a resource scheduling method is provided, which relates to a process that a cloud server receives a task request, determines a target edge node from at least one edge node with idle resources according to a terminal identifier, returns a first task response to the terminal, and sends a control instruction to the target edge node, and includes the following steps:
s701, receiving a task request; the task request includes a terminal identifier of the terminal.
In this embodiment, the cloud server may receive a task request sent by a terminal or an edge node, and optionally, whether the task request is sent by the terminal or the task request sent by the edge node, the cloud server needs to determine, according to a terminal identifier in the task request, an edge node that can currently process task data of the terminal.
S702, determining a target edge node from at least one edge node with idle resources according to the terminal identification; the communication distance between the terminal and the edge node is smaller than the communication distance between the terminal and the cloud server; the target edge node is the edge node closest to the terminal communication distance.
In this embodiment, after receiving the task request, the cloud server may determine the local area network address of the terminal according to the terminal identifier in the task request, and may determine, according to the local area network address of each edge node, the edge node closest to the terminal from the edge nodes with idle resources as the target edge node. Optionally, if the edge node closest to the current terminal does not have the free resource, determining the edge node closest to the terminal from the edge nodes currently having the free resource as the target edge node. It should be noted that, in the process of determining the target edge node, the cloud server may set a distance threshold range for each terminal, that is, determine, within the current distance threshold range, the edge node with the idle resource closest to the terminal as the target edge node, which is not limited in this embodiment.
S703, returning a first task response to the terminal and sending a control instruction to the target edge node; the first task response is used for indicating the terminal to send task data to the target edge node, the control instruction is used for indicating the target edge node to execute corresponding operation according to the task data and returning an execution result to the terminal.
In this embodiment, after determining a target edge node, the cloud server sends a first task response carrying an identifier of the target edge node to the terminal, so that the terminal determines the target edge node according to the first task response, and sends task data to be processed to the target edge node; meanwhile, the cloud server can also send a control instruction to the target edge node, so that the current target edge node waits for executing a task request of the current terminal, and executes corresponding task processing according to the sending task data sent by the terminal, which is not limited in this embodiment.
According to the resource scheduling method, the cloud server receives the task request, determines the target edge node from at least one edge node with idle resources according to the terminal identification in the task request, returns a first task response to the terminal, so that the terminal sends task data to the target edge node, and simultaneously sends a control instruction to the target edge node, so that the target edge node executes corresponding operation according to the task data, and returns an execution result to the terminal. According to the method, the cloud server determines the edge node with sufficient resources to execute the task operation of the terminal according to the condition of the edge node resources, and the communication distance between the edge node and the terminal is far smaller than the communication distance between the terminal and the cloud server, so that the communication bandwidth requirement is low and is not limited by the bandwidth requirement, the problem that the local resources of the terminal cannot be expanded is solved by processing task data through the edge node, and the real-time requirement of the terminal task is met.
In another case, if there is no edge node with idle resources around the current terminal, the cloud server needs to execute the task operation of the terminal through its own resources. In one embodiment, as shown in fig. 8, the method further includes:
s801, if no edge node with idle resources exists, a second task response is returned to the terminal; the second task response is used for indicating the terminal to send task data to the cloud server.
In this embodiment, after determining that there is no edge node with a free resource currently, the cloud server returns a second task response to the terminal, where the second task response is used to instruct the terminal to send task data to the cloud server itself, and execute a corresponding task operation with its own resource.
S802, receiving task data, executing corresponding operation according to the task data, and returning an execution result to the terminal.
The cloud server executes corresponding operation according to task data sent by the terminal and according to the type of the task data, and in an example, the cloud server dispatches corresponding computing resources when the task data received by the cloud server are computing task data, executes computing tasks according to the computing task data and returns a computing result to the terminal; the cloud server receives the task data as rendering task data, and then dispatches corresponding rendering resources, executes the rendering task according to the rendering task data, and returns rendering output data to the terminal, which is not limited in this embodiment.
In this embodiment, if the cloud server determines that there is no edge node with idle resources, the task request of the terminal may also be executed by the cloud server itself, so that the task request of the terminal may be processed in time, and the processing efficiency of the task request of the terminal is improved.
Optionally, in one embodiment, the executing a corresponding operation according to the task data and returning an execution result to the terminal includes:
selecting a corresponding task data processing mode according to the type of the task data to obtain a calculation result;
the task data processing mode includes at least one of calling a computing resource to perform a computing operation, allocating the computing resource and calling the computing resource to perform the computing operation, postponing performing task data processing, or displaying a type of task data and requesting a user to select task data processing.
Optionally, the cloud server selects a task data processing mode according to a preset corresponding relationship between the type of the task data and the task data processing mode.
In this embodiment, since different edge target nodes may be more suitable for performing different task data processing, such as an image processing calculation task, an image reconstruction calculation task, a data calculation task, a rendering task, a training task, and the like. After receiving the task data to be processed, the cloud server optionally can also determine the type of the task data, determine a corresponding candidate list of the target edge node according to the type of the task data, and further select the target edge node in the candidate list of the target edge node, so that the target edge node executes corresponding operation according to the task data.
Optionally, the corresponding relation between the type of the task data and the task data processing mode is trained by a machine learning method.
In this embodiment, the correspondence between different edge target nodes and the types of task data suitable for execution thereof may be obtained by methods such as manual setting, history analysis, and analysis of edge target node configuration, that is, determining the correspondence between the types of task data and the task data processing modes. The historical record analysis can be obtained through historical data screening and sorting or machine learning of resource occupancy rate, processing speed, transmission time and the like of different task data processing executed by the edge target node.
In this embodiment, since different edge target nodes may be more suitable for executing different task data processing, the optimal target edge nodes are allocated to the terminal according to the type of the task data to perform task data processing, so that the processing efficiency can be improved maximally.
The method provided in this embodiment is similar to the method provided in the above embodiment on the edge node side, and will not be described in detail.
In this embodiment, based on the pre-trained mapping relationship, the cloud server may determine a corresponding task data processing manner according to the type of the task data, thereby improving the data processing efficiency of the target edge node.
Optionally, the cloud server performs corresponding task operations according to task data of the terminal, where the tasks include rendering tasks and computing tasks, and in one embodiment, the performing corresponding operations according to the task data and returning an execution result to the terminal includes:
and if the task data is the calculation task data, invoking the calculation resource to execute calculation operation on the calculation task data to obtain a calculation result, and returning the calculation result to the terminal.
If the task data is the rendering task data, rendering resources are allocated for the rendering task data, the rendering resources are called to execute rendering operation, rendering results are obtained, the rendering results are returned to the terminal, an instruction of completion of the rendering operation sent by the terminal is received, and the rendering resources are released.
In this embodiment, similarly to the above embodiment, after receiving the task data, the cloud server may also determine the task type according to the task data, and if the current task data is calculation task data, directly call the calculation service to complete the calculation operation, obtain a calculation result, and return the calculation result to the terminal. If the current task data is rendering task data, the edge node allocates resources and executes rendering tasks after receiving the task data, and sends rendering results to the terminal after the rendering tasks are completed.
The operation principle of the task data with the cloud server as the execution body is similar to that of the task data with the edge node as the execution body in the above embodiment, and will not be described herein.
In this embodiment, the edge node may schedule different resources to process task data according to different types of task data, so as to ensure smooth execution of tasks and improve processing efficiency of terminal tasks.
In order to better illustrate the above method, as shown in fig. 9, this embodiment provides a resource scheduling method, which specifically includes:
s101, a terminal sends a task request to a first edge node with the nearest communication distance with the terminal;
s102, returning a first task response to the terminal by the edge node under the condition that the edge node has idle resources;
s103, the terminal sends the task data to be processed to the edge node;
s104, the edge node receives task data sent by the terminal according to the task response, and executes corresponding operation according to the task data;
s105, the edge node returns an execution result to the terminal;
s106, the edge node sends a task request to the cloud server under the condition that the self resources are occupied;
s107, the cloud server determines an edge node from at least one edge node with idle resources according to the terminal identification;
S108, the cloud server returns a second task response to the terminal;
s109, the cloud server sends a control instruction to the edge node;
s110, the terminal sends task data to be processed to the edge node;
s111, the edge node receives task data sent by the terminal according to the task response, and executes corresponding operation according to the task data;
s112, the edge node returns an execution result to the terminal;
s113, the cloud server judges that if no edge node with idle resources exists, a third task response is returned to the terminal;
s114, the terminal sends the task data to the cloud server according to the third task response;
s115, the cloud server executes corresponding operation according to the task data;
s116, the cloud server returns an execution result to the terminal.
In this embodiment, the terminal determines, through the priority order of the edge node and the cloud server, that the edge node of the idle resource receives the task data and performs the corresponding task processing operation, and because the communication distance between the edge node and the terminal is far smaller than the communication distance between the terminal and the cloud server, the communication bandwidth requirement is low and is not limited by the bandwidth requirement, and the problem that the local resource of the terminal cannot be expanded is solved and the real-time requirement of the terminal task is also satisfied by processing the task data through the edge node.
The resource scheduling method provided in the above embodiment has similar implementation principles and technical effects to those of the above method embodiment, and will not be described herein.
It should be understood that, although the steps in the flowcharts of fig. 2-9 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-9 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 1, a resource scheduling system is provided, where the resource scheduling system includes a terminal, an edge node, and a cloud server;
a terminal, configured to execute the resource scheduling method provided in the embodiments of fig. 2 to fig. 5;
An edge node, configured to execute the resource scheduling method provided in the embodiment of fig. 6;
the cloud server is used for executing the resource scheduling method provided by the embodiments of fig. 7-8.
The implementation principle and technical effects of the resource scheduling system provided in the above embodiment are similar to those of the above embodiment of the resource scheduling method, and are not described herein again.
In one embodiment, as shown in fig. 10, there is provided a resource scheduling apparatus, including: a determining module 01, a transmitting module 02 and a receiving module 03, wherein:
a determining module 01, configured to determine a target edge node from a plurality of edge nodes; the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server;
a sending module 02, configured to send task data to be processed to a target edge node, so that the target edge node performs a corresponding operation according to the task data;
and the receiving module 03 is configured to receive an execution result sent by the target edge node.
In one embodiment, the determining module 01 is configured to send a task request to a first edge node that has a closest communication distance to the terminal; if the first task response is received and sent by the first edge node, the first edge node is determined to be a target edge node; the first task response is to indicate that the first edge node has free resources.
In an embodiment, the receiving module 03 is further configured to receive a second task response sent by the cloud server, where the second task response includes an identifier of a target edge node, and the target edge node requests, in a case that resources of the first edge node are insufficient, the cloud server to allocate a second edge node with idle resources for the terminal; the communication distance between the second edge node and the terminal is greater than that between the first edge node and the terminal;
the determining module 01 is further configured to determine a target edge node according to the second task response.
In one embodiment, the determining module 01 is further configured to send a task request to the cloud server; receiving a third task response sent by the cloud server; the third task response comprises the identification of the target edge node; the target edge node is a third edge node which is closest to the terminal in communication distance among at least one edge node with idle resources and determined by the cloud server; and determining the target edge node according to the third task response.
In one embodiment, as shown in fig. 11, there is provided a resource scheduling apparatus, including: a receiving module 11, a transmitting module 12 and an executing module 13, wherein:
A receiving module 11, configured to receive a task request sent by a terminal; the task request is used for requesting the edge node to execute the task data, and the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server;
a sending module 12, configured to return a task response to the terminal if the sending module itself has idle resources;
and the execution module 13 is used for receiving the task data sent by the terminal according to the task response, executing corresponding operation according to the task data and returning an execution result to the terminal.
In one embodiment, the sending module 12 is further configured to send a task request to the cloud server when the self resources are occupied, where the task request is used to instruct the cloud server to allocate an edge node with idle resources for the terminal.
In one embodiment, the execution module 13 is configured to invoke the computing resource to perform a computing operation on the computing task data if the task data is the computing task data, obtain a computing result, and return the computing result to the terminal; if the task data is the rendering task data, rendering resources are allocated for the rendering task data, the rendering resources are called to execute rendering operation, rendering results are obtained, the rendering results are returned to the terminal, an instruction of completion of the rendering operation sent by the terminal is received, and the rendering resources are released.
In one embodiment, as shown in fig. 12, there is provided a resource scheduling apparatus, including: a receiving module 21, a determining module 22 and a transmitting module 23, wherein:
a receiving module 21, configured to receive a task request; the task request comprises a terminal identifier of the terminal;
a determining module 22, configured to determine, according to the terminal identifier, a target edge node from at least one edge node with idle resources; the communication distance between the terminal and the edge node is smaller than the communication distance between the terminal and the cloud server; the target edge node is the edge node closest to the terminal communication distance;
a sending module 23, configured to return a first task response to the terminal, and send a control instruction to the target edge node; the first task response is used for indicating the terminal to send task data to the target edge node, the control instruction is used for indicating the target edge node to execute corresponding operation according to the task data and returning an execution result to the terminal.
In one embodiment, the sending module 23 is further configured to return a second task response to the terminal if there is no edge node with idle resources; the second task response is used for indicating the terminal to send task data to the cloud server;
The receiving module 21 is further configured to receive task data, perform a corresponding operation according to the task data, and return an execution result to the terminal.
In one embodiment, the receiving module 21 is further configured to, if the task data is calculation task data, invoke the computing resource to perform a calculation operation on the calculation task data, obtain a calculation result, and return the calculation result to the terminal; if the task data is the rendering task data, rendering resources are allocated for the rendering task data, the rendering resources are called to execute rendering operation, rendering results are obtained, the rendering results are returned to the terminal, an instruction of completion of the rendering operation sent by the terminal is received, and the rendering resources are released.
The specific limitation of the resource scheduling device can be referred to the limitation of the resource scheduling method hereinabove, and will not be repeated here. The respective modules in the above-described resource scheduling apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 13. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a resource scheduling method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 13 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
determining a target edge node from a plurality of edge nodes; the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server;
the task data to be processed is sent to a target edge node, so that the target edge node executes corresponding operation according to the task data;
and receiving an execution result sent by the target edge node.
The computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
Receiving a task request sent by a terminal; the task request is used for requesting the edge node to execute the task data, and the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server;
under the condition that the terminal has idle resources, a task response is returned to the terminal;
and the receiving terminal executes corresponding operation according to the task data and returns an execution result to the terminal according to the task data sent by the task response.
The computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
receiving a task request; the task request comprises a terminal identifier of the terminal;
determining a target edge node from at least one edge node with idle resources according to the terminal identification; the communication distance between the terminal and the edge node is smaller than the communication distance between the terminal and the cloud server; the target edge node is the edge node closest to the terminal communication distance;
Returning a first task response to the terminal and sending a control instruction to the target edge node; the first task response is used for indicating the terminal to send task data to the target edge node, the control instruction is used for indicating the target edge node to execute corresponding operation according to the task data and returning an execution result to the terminal.
The computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
determining a target edge node from a plurality of edge nodes; the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server;
the task data to be processed is sent to a target edge node, so that the target edge node executes corresponding operation according to the task data;
and receiving an execution result sent by the target edge node.
The computer readable storage medium provided in the above embodiment has similar principle and technical effects to those of the above method embodiment, and will not be described herein.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Receiving a task request sent by a terminal; the task request is used for requesting the edge node to execute the task data, and the communication distance between the edge node and the terminal is smaller than the communication distance between the terminal and the cloud server;
under the condition that the terminal has idle resources, a task response is returned to the terminal;
and the receiving terminal executes corresponding operation according to the task data and returns an execution result to the terminal according to the task data sent by the task response.
The computer readable storage medium provided in the above embodiment has similar principle and technical effects to those of the above method embodiment, and will not be described herein.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a task request; the task request comprises a terminal identifier of the terminal;
determining a target edge node from at least one edge node with idle resources according to the terminal identification; the communication distance between the terminal and the edge node is smaller than the communication distance between the terminal and the cloud server; the target edge node is the edge node closest to the terminal communication distance;
Returning a first task response to the terminal and sending a control instruction to the target edge node; the first task response is used for indicating the terminal to send task data to the target edge node, the control instruction is used for indicating the target edge node to execute corresponding operation according to the task data and returning an execution result to the terminal.
The computer readable storage medium provided in the above embodiment has similar principle and technical effects to those of the above method embodiment, and will not be described herein.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

Translated fromChinese
1.一种资源调度方法,其特征在于,所述方法包括:1. A resource scheduling method, characterized in that the method comprises:根据待处理的任务数据确定任务类型,根据所述任务类型从多个边缘节点中确定目标边缘节点;determining a task type according to the task data to be processed, and determining a target edge node from a plurality of edge nodes according to the task type;将所述待处理的任务数据发送给所述目标边缘节点,以使所述目标边缘节点根据任务类型和任务数据处理方式之间的对应关系,确定所述任务数据对应的任务数据处理方式,并按照所述任务数据处理方式执行相应的操作;sending the task data to be processed to the target edge node, so that the target edge node determines the task data processing mode corresponding to the task data according to the correspondence between the task type and the task data processing mode, and Perform corresponding operations according to the task data processing method;接收所述目标边缘节点发送的执行结果。Receive the execution result sent by the target edge node.2.根据权利要求1所述的方法,其特征在于,所述任务数据处理方式包括调用计算资源执行计算操作、分配计算资源并调用计算资源执行计算操作、延后执行任务数据处理的至少一项,或,显示任务数据的类型并请求用户选择任务数据处理;所述任务类型和任务数据处理方式之间的对应关系由机器学习方法训练得到。2. The method according to claim 1, wherein the task data processing method includes at least one of calling computing resources to perform computing operations, allocating computing resources and calling computing resources to perform computing operations, and delaying execution of task data processing , or, displaying the type of task data and requesting the user to select task data processing; the corresponding relationship between the task type and the task data processing method is trained by a machine learning method.3.根据权利要求1所述的方法,其特征在于,所述根据所述任务类型从多个边缘节点中确定目标边缘节点,包括:3. The method according to claim 1, wherein said determining the target edge node from a plurality of edge nodes according to the task type comprises:根据通讯距离从多个与所述任务类型匹配的边缘节点中确定第一边缘节点,并向所述第一边缘节点发送任务请求;determining a first edge node from a plurality of edge nodes matching the task type according to the communication distance, and sending a task request to the first edge node;若接收到所述第一边缘节点发送第一任务响应,则将所述第一边缘节点确定为所述目标边缘节点;所述第一任务响应用于指示所述第一边缘节点具有空闲资源。If a first task response sent by the first edge node is received, the first edge node is determined as the target edge node; the first task response is used to indicate that the first edge node has idle resources.4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. method according to claim 3, is characterized in that, described method also comprises:接收云端服务器发送的第二任务响应,所述第二任务响应中包括目标边缘节点的标识,所述目标边缘节点为在所述第一边缘节点的资源不足的情况下,请求所述云端服务器为终端分配的具有空闲资源的第二边缘节点;所述第二边缘节点与所述终端的通信距离大于所述第一边缘节点与所述终端的通信距离;Receive the second task response sent by the cloud server, the second task response includes the identity of the target edge node, and the target edge node requests the cloud server to be A second edge node with idle resources allocated by the terminal; the communication distance between the second edge node and the terminal is greater than the communication distance between the first edge node and the terminal;根据所述第二任务响应,确定所述目标边缘节点。Determine the target edge node according to the second task response.5.根据权利要求1所述的方法,其特征在于,所述根据所述任务类型从多个边缘节点中确定目标边缘节点,包括:5. The method according to claim 1, wherein said determining the target edge node from a plurality of edge nodes according to the task type comprises:向云端服务器发送任务请求;Send a task request to the cloud server;接收所述云端服务器发送第三任务响应;所述第三任务响应中包括目标边缘节点的标识;所述目标边缘节点为所述云端服务器确定的多个与所述任务类型匹配的边缘节点中至少一个具有空闲资源的边缘节点中,与终端通信距离最近的第三边缘节点;Receiving the third task response sent by the cloud server; the third task response includes the identification of the target edge node; the target edge node is at least one of the plurality of edge nodes determined by the cloud server that match the task type Among the edge nodes with idle resources, the third edge node with the closest communication distance to the terminal;根据所述第三任务响应,确定所述目标边缘节点。Determine the target edge node according to the third task response.6.一种图像渲染方法,其特征在于,所述方法包括:6. An image rendering method, characterized in that the method comprises:获取渲染任务数据,根据渲染任务数据从多个边缘节点中确定目标边缘节点;Obtain the rendering task data, and determine the target edge node from multiple edge nodes according to the rendering task data;将所述渲染任务数据发送给所述目标边缘节点,以使所述目标边缘节点根据渲染任务和任务数据处理方式之间的对应关系,确定所述渲染任务数据对应的任务数据处理方式,并按照所述任务数据处理方式执行所述渲染任务;Send the rendering task data to the target edge node, so that the target edge node determines the task data processing mode corresponding to the rendering task data according to the corresponding relationship between the rendering task and the task data processing mode, and according to The task data processing method executes the rendering task;接收所述目标边缘节点发送的渲染后的图像数据。The rendered image data sent by the target edge node is received.7.根据权利要求6所述的方法,其特征在于,所述渲染任务为实时图像渲染,所述方法包括:7. The method according to claim 6, wherein the rendering task is real-time image rendering, and the method comprises:当所述渲染任务完成后,发送关闭渲染进程指令;所述关闭进程指令用于指示所述目标边缘节点关闭渲染操作,并释放渲染资源。After the rendering task is completed, an instruction to close the rendering process is sent; the instruction to close the rendering process is used to instruct the target edge node to close the rendering operation and release rendering resources.8.根据权利要求6所述的方法,其特征在于,所述方法应用于医疗设备,所述方法还包括:8. The method according to claim 6, wherein the method is applied to medical equipment, and the method further comprises:若所述医疗设备的渲染资源不充足,则在所述医疗设备的距离阈值范围内确定目标边缘节点。If the rendering resources of the medical device are insufficient, the target edge node is determined within a distance threshold range of the medical device.9.根据权利要求6所述的方法,其特征在于,所述方法应用于终端,所述方法包括:9. The method according to claim 6, wherein the method is applied to a terminal, and the method comprises:在所述终端的本地资源不足的情况下,将空闲边缘节点确定为所述目标边缘节点;When the local resources of the terminal are insufficient, determining an idle edge node as the target edge node;向所述空闲边缘节点发送所述渲染任务数据,以使所述空闲边缘节点执行相应的渲染任务;所述空闲边缘节点与所述终端之间的通信距离小于所述终端与云服务器之间的通信距离。sending the rendering task data to the idle edge node, so that the idle edge node executes the corresponding rendering task; the communication distance between the idle edge node and the terminal is less than the distance between the terminal and the cloud server communication distance.10.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至9中任一项所述的方法的步骤。10. A computer device, comprising a memory and a processor, the memory stores a computer program, wherein the processor implements the method according to any one of claims 1 to 9 when executing the computer program step.
CN202310573001.4A2020-12-022020-12-02Resource scheduling method, system, device, computer equipment and storage mediumPendingCN116600017A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202310573001.4ACN116600017A (en)2020-12-022020-12-02Resource scheduling method, system, device, computer equipment and storage medium

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
CN202011386668.6ACN112671830B (en)2020-12-022020-12-02 Resource scheduling method, system, device, computer equipment and storage medium
CN202310573001.4ACN116600017A (en)2020-12-022020-12-02Resource scheduling method, system, device, computer equipment and storage medium

Related Parent Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011386668.6ADivisionCN112671830B (en)2020-09-232020-12-02 Resource scheduling method, system, device, computer equipment and storage medium

Publications (1)

Publication NumberPublication Date
CN116600017Atrue CN116600017A (en)2023-08-15

Family

ID=75400761

Family Applications (2)

Application NumberTitlePriority DateFiling Date
CN202310573001.4APendingCN116600017A (en)2020-12-022020-12-02Resource scheduling method, system, device, computer equipment and storage medium
CN202011386668.6AActiveCN112671830B (en)2020-09-232020-12-02 Resource scheduling method, system, device, computer equipment and storage medium

Family Applications After (1)

Application NumberTitlePriority DateFiling Date
CN202011386668.6AActiveCN112671830B (en)2020-09-232020-12-02 Resource scheduling method, system, device, computer equipment and storage medium

Country Status (1)

CountryLink
CN (2)CN116600017A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN117726925A (en)*2024-02-072024-03-19广州思涵信息科技有限公司Face recognition resource scheduling method, device and equipment

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113141511A (en)*2021-04-202021-07-20上海卓易科技股份有限公司Graph rendering method and equipment
CN113094179B (en)*2021-04-232024-04-19曙光信息产业(北京)有限公司Job allocation method, job allocation device, electronic equipment and readable storage medium
CN113181658B (en)*2021-05-202025-02-25腾讯科技(深圳)有限公司 Edge computing node scheduling method, device, equipment and medium
CN113259359B (en)*2021-05-212022-08-02重庆紫光华山智安科技有限公司Edge node capability supplementing method, system, medium and electronic terminal
CN115484631A (en)*2021-06-162022-12-16大唐移动通信设备有限公司Communication method, communication apparatus, and storage medium
CN113342382B (en)*2021-06-302024-04-09北京京东乾石科技有限公司 Data verification method, system and edge device
CN113487033B (en)*2021-07-302023-05-23上海壁仞智能科技有限公司Reasoning method and device using graphic processor as execution core
CN113778644B (en)*2021-08-182024-01-26煤炭科学研究总院有限公司Task processing method, device, equipment and storage medium
CN115729683A (en)*2021-09-012023-03-03腾讯科技(深圳)有限公司Task processing method, device, system, computer equipment and storage medium
CN114071078B (en)*2021-10-222024-09-10华润数字科技有限公司Video data processing method, electronic device and storage medium
CN116069492A (en)*2021-11-022023-05-05华为技术有限公司Service processing method, system and device
CN114253710A (en)*2021-11-222022-03-29北京百度网讯科技有限公司 Computing request processing method, intelligent terminal, cloud server, device and medium
CN114125068B (en)*2021-11-252023-05-09中国联合网络通信集团有限公司 Resource scheduling method, MEC controller, system and computer-readable storage medium
CN114326727B (en)*2021-12-242024-08-20广州小鹏自动驾驶科技有限公司Driving method and system
CN115051835A (en)*2022-05-172022-09-13中电科新型智慧城市研究院有限公司Method, electronic device, storage medium and system for processing data
CN115086317A (en)*2022-06-132022-09-20国网北京市电力公司Cable monitoring method and device, nonvolatile storage medium and electronic equipment
CN115118766A (en)*2022-06-222022-09-27中国银行股份有限公司 Mobile office method and related device based on edge computing
CN115314503A (en)*2022-06-302022-11-08青岛海尔科技有限公司 Data transmission method and device, storage medium and electronic device
CN115762204A (en)*2022-10-192023-03-07慧之安信息技术股份有限公司Front congestion reminding method based on edge computing nodes
CN116661992A (en)*2023-05-092023-08-29支付宝(杭州)信息技术有限公司Terminal Bian Yun collaborative computing method, device, system, medium and program product
CN116302456B (en)*2023-05-242023-08-29浙江毫微米科技有限公司Meta universe computing resource scheduling system

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109491790A (en)*2018-11-022019-03-19中山大学Industrial Internet of Things edge calculations resource allocation methods and system based on container
CN109802997A (en)*2018-12-202019-05-24华为技术服务有限公司A kind of selection method and its relevant device of node device
CN111262906A (en)*2020-01-082020-06-09中山大学 Mobile user terminal task offloading method under distributed edge computing service system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107222468B (en)*2017-05-222020-12-18北京邮电大学 Augmented reality processing method, terminal, cloud server and edge server
CN111106976B (en)*2018-10-262022-09-02北京金山云网络技术有限公司Detection method and device for CDN network, electronic equipment and readable storage medium
CN110365753B (en)*2019-06-272020-06-23北京邮电大学Low-delay load distribution method and device for Internet of things service based on edge calculation
CN110868339A (en)*2019-11-252020-03-06北京三体云时代科技有限公司 Node allocation method, apparatus, electronic device and readable storage medium
CN111314889B (en)*2020-02-262023-03-31华南理工大学Task unloading and resource allocation method based on mobile edge calculation in Internet of vehicles
CN111400007B (en)*2020-03-132024-09-17重庆特斯联智慧科技股份有限公司Task scheduling method and system based on edge calculation
CN111427679B (en)*2020-03-252023-12-22中国科学院自动化研究所Computing task scheduling method, system and device for edge computing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109491790A (en)*2018-11-022019-03-19中山大学Industrial Internet of Things edge calculations resource allocation methods and system based on container
CN109802997A (en)*2018-12-202019-05-24华为技术服务有限公司A kind of selection method and its relevant device of node device
CN111262906A (en)*2020-01-082020-06-09中山大学 Mobile user terminal task offloading method under distributed edge computing service system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN117726925A (en)*2024-02-072024-03-19广州思涵信息科技有限公司Face recognition resource scheduling method, device and equipment
CN117726925B (en)*2024-02-072024-06-04广州思涵信息科技有限公司Face recognition resource scheduling method, device and equipment

Also Published As

Publication numberPublication date
CN112671830B (en)2023-05-30
CN112671830A (en)2021-04-16

Similar Documents

PublicationPublication DateTitle
CN116600017A (en)Resource scheduling method, system, device, computer equipment and storage medium
CN107885595B (en) A resource allocation method, related equipment and system
US20200257972A1 (en)Method and apparatus for determining memory requirement in a network
CN109564528B (en)System and method for computing resource allocation in distributed computing
CN112825042A (en)Resource management method and device, electronic equipment and storage medium
JP2010267025A (en) Job scheduling program, job scheduling apparatus and job scheduling method
CN114979286A (en) Access control method, device, device and computer storage medium for container service
CN114924888A (en)Resource allocation method, data processing method, device, equipment and storage medium
WO2021213365A1 (en)Data processing method based on base station group, and base station, base station system, and computer-readable medium
CN108509256B (en)Method and device for scheduling running device and running device
CN113221039A (en)Page display method and device, computer equipment and storage medium
CN113946389A (en) Federated learning process execution optimization method, device, storage medium and program product
US12056525B2 (en)Hybrid scheduling method for deep learning workloads, and computing apparatus with hybrid scheduling
CN116204307A (en)Federal learning method and federal learning system compatible with different computing frameworks
CN110955461A (en)Processing method, device and system of computing task, server and storage medium
CN116893904A (en)Memory management method, device, equipment, medium and product of neural network model
CN111381946A (en)Task processing method and device and related product
CN110955504B (en)Method, server, system and storage medium for intelligently distributing rendering tasks
CN120166422A (en) Model task processing method, device, communication equipment, readable storage medium and program product
CN113377439A (en)Heterogeneous computing method and device, electronic equipment and storage medium
Nakamura et al.Spatial-and time-division multiplexing in CNN accelerator
CN111143033A (en)Operation execution method and device based on scalable operating system
Zhou et al.Asynchronous progress design for a MPI-based PGAS one-sided communication system
US20220326986A1 (en)Scheduling workloads on partitioned resources of a host system in a container-orchestration system
CN116483558A (en)Resource management method, system, device, processor and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
TA01Transfer of patent application right

Effective date of registration:20250717

Address after:4th Floor, Building 10, No. 66 Huiyuan Road, Jiading District, Shanghai, 201815

Applicant after:Shanghai Lianying Zhiyuan Medical Technology Co.,Ltd.

Country or region after:China

Address before:430206 Lianying medical headquarters base, No. 99, gaokeyuan Road, Donghu high tech Development Zone, Wuhan, Hubei Province

Applicant before:WUHAN UNITED IMAGING HEALTHCARE Co.,Ltd.

Country or region before:China

TA01Transfer of patent application right

[8]ページ先頭

©2009-2025 Movatter.jp