GPU cluster scheduling method, system and device for intelligent business
By selecting a task server in the GPU cluster to perform video processing tasks and sending the results to other servers, the problem of wasting computing resources caused by repeated intelligent analysis is solved, and efficient resource utilization and energy consumption reduction are achieved.
Patent Information
- Application Number
- CN202410675187.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-29
AI Technical Summary
In a GPU cluster, the intelligent analysis requirements of multiple clients lead to repeated intelligent analysis, resulting in a waste of computing resources.
The management server sends video processing requests to multiple candidate task servers, determines the video processing tasks received by each server, and selects one of them as the first task server to perform the task, and the other servers serve as auxiliary servers to receive task execution results to avoid the same video Processing tasks are handled by multiple servers.
It effectively avoids repeated intelligent analysis, saves computing resources, reduces energy consumption, and improves resource utilization.
Smart Images

Figure CN118264762B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a GPU cluster scheduling method, system and device for intelligent business. Background Art
[0002] At present, the video stream of the camera is usually transmitted to the GPU server cluster in the background for intelligent analysis and processing. Specifically, the GPU that can process the video stream is calculated and matched based on the processing performance of the GPU inside the intelligent server, and then the matching GPU is used to complete all business processes of video intelligent analysis until the analysis results are finally provided to the storage server and big data server for storage or retrieval. However, the distribution locations of the servers in the GPU cluster are different. When multiple clients have intelligent analysis needs, considering the real-time nature of the data and network transmission factors, the local server working node will generally be called first for analysis. If the local server directly handles the needs, repeated intelligent analysis may occur, resulting in a waste of computing resources. Summary of the invention
[0003] The present invention provides a GPU cluster scheduling method, system and device for intelligent business to solve the problem of computing resource waste caused by repeated intelligent analysis, greatly saving computing resources and reducing energy consumption.
[0004] In a first aspect, an embodiment of the present invention provides a GPU cluster scheduling method for intelligent services, the method comprising:
[0005] After sending video processing requests to multiple candidate task servers respectively, determining at least one video processing task corresponding to the video processing request received by each candidate task server, each of the video processing tasks is determined according to the video code stream corresponding to the video processing request, the video source identifier of the video code stream and the video processing task category;
[0006] If there are at least two target task servers among the multiple candidate task servers that have the same target video processing task in the video processing tasks corresponding to the video processing requests received by the target task servers, then determining a first task server from the at least two target task servers that are assigned to undertake the target video processing task;
[0007] The first task server is used to execute the target video processing task, and the task execution result of the target video processing task is sent to a second task server, where the second task server is the remaining task server among the at least two target task servers except the first task server.
[0008] In a second aspect, an embodiment of the present invention further provides a GPU cluster scheduling system for intelligent services, the system comprising:
[0009] The management server is used to send video processing requests to multiple candidate task servers respectively, and determine at least one video processing task corresponding to the video processing request received by each candidate task server, wherein each of the video processing tasks is determined according to the video code stream corresponding to the video processing request, the video source identifier of the video code stream, and the video processing task category;
[0010] The management server is further configured to determine a first task server from the at least two target task servers assigned to undertake the target video processing task if there is a same target video processing task in the video processing tasks corresponding to the video processing requests received by at least two target task servers among the plurality of candidate task servers;
[0011] The first task server is used to execute the target video processing task and send the task execution result of the target video processing task to the second task server, and the second task server is the remaining task server of the at least two target task servers except the first task server.
[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the GPU cluster scheduling method for intelligent services described in any one of the above embodiments.
[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable medium, wherein the computer-readable medium stores computer instructions, and the computer instructions are used to enable a processor to implement the GPU cluster scheduling method for intelligent services described in any one of the above embodiments when executed.
[0017] The embodiment of the present invention, after sending video processing requests to multiple candidate task servers respectively, determines at least one video processing task corresponding to the video processing request received by each candidate task server, and when it is determined that multiple target task servers execute the same video processing task at the same time, selects one of the multiple target task servers as the first task server, so that the first task server executes the target video processing task, and sends the task execution result of the target video processing task to other target servers except the first task server, thereby avoiding the same video processing task being processed by multiple target servers, solving the problem of computing resource waste caused by repeated intelligent analysis, greatly saving computing resources and reducing energy consumption.
[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0020] Figure 1 It is a flowchart of a GPU cluster scheduling method for intelligent services provided by an embodiment of the present invention;
[0021] Figure 2 This is a schematic diagram of the distribution of CPUs and GPUs in a task server provided by an embodiment of the present invention;
[0022] Figure 3 It is a flow chart of another GPU cluster scheduling method for intelligent services provided by an embodiment of the present invention;
[0023] Figure 4 It is a schematic diagram of a topological structure of a multicast table item provided in an embodiment of the present invention;
[0024] Figure 5 It is a structural diagram of a GPU cluster scheduling system for intelligent services provided by an embodiment of the present invention;
[0025] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0027] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0029] It should be noted that the concepts such as "first", "second", "candidate", and "target" mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0032] Figure 1 A flow chart of a GPU cluster scheduling method for intelligent business provided in an embodiment of the present invention. The embodiment of the present invention is applicable to the situation of rationally allocating task servers for video processing tasks. The method can be executed by a GPU cluster scheduling system for intelligent business. The GPU cluster scheduling system for intelligent business can be implemented in the form of software and / or hardware and is generally integrated on any electronic device with network communication function, which can be a mobile terminal, PC or server, etc.
[0033] like Figure 1 As shown, the GPU cluster scheduling method for intelligent services in an embodiment of the present invention may include the following process:
[0034] S110: After sending video processing requests to multiple candidate task servers respectively, determine at least one video processing task corresponding to the video processing request received by each candidate task server.
[0035] Each video processing task is determined according to the video bitstream corresponding to the video processing request, the video source identifier of the video bitstream and the video processing task category. The video source identifier of the video bitstream may include the video source IP and channel number. The video processing task category may include intelligent analysis task categories such as target detection, structuring and target classification.
[0036] like Figure 2 As shown, the GPU cluster of the technical solution of the present invention includes a management server and a task server. The management server performs resource allocation and management, and the task server adopts a CPU+GPU hybrid architecture to analyze and process intelligent services. The specific workflow is: the management server obtains the IP address and computing resource information of each task server (such as the available / unavailable status of the task server, GPU / CPU occupancy, video memory / memory, etc.); after the management server receives the video processing task, it allocates the video processing task to the task server according to the resource occupancy of each video processing task and the load balancing strategy. This makes the number of computing tasks of each task server relatively balanced (the server with greater processing power processes more computing tasks), and the GPU and memory occupancy rate of each server are relatively balanced.
[0037] Specifically, after sending video processing requests to multiple candidate task servers respectively, the management server will send each video processing task to the corresponding candidate task server according to the load balancing strategy, and determine at least one video processing task corresponding to the video processing request received by each candidate task server.
[0038] For example, there are two front-end cameras collecting video source IPs X and Y, each video source has three channels α, β, and γ, with a total of 6 video streams. Each video stream contains the video stream IP and the channel number of the video stream in the encapsulation header, for example, X+β; after receiving the video processing request, each candidate server can know the video stream, video source identifier and video processing task category corresponding to the video processing request. Before preparing for analysis, it is necessary to first determine at least one video processing task corresponding to the video processing request received by each candidate task server according to the video processing task category in the received video processing request. For example, the video processing task category in the video processing request received by the candidate server includes two processes, target detection and feature extraction, and the corresponding video stream IP and video stream channel number are X+β, then the at least one video processing task corresponding to the video processing request received by the candidate task server is: X+β+pedestrian structuring.
[0039] S120: If there is a same target video processing task in the video processing tasks corresponding to the video processing requests received by at least two target task servers among the multiple candidate task servers, determine a first task server from the at least two target task servers assigned to undertake the target video processing task.
[0040] Specifically, there may be different task servers that all need the processing results of the same target video processing task. Therefore, the management server will assign the same target video processing task to multiple target task servers that need the processing results of the same target video processing task. However, if all target task servers execute the target video processing task, it will cause a waste of computing resources. Therefore, a first task server is determined from at least two target task servers assigned to undertake the target video processing task, so that only the first task server is used to execute the target video processing task in the future, and the task execution results of the target video processing task are sent to the remaining task servers of the at least two target task servers except the first task server. In this way, it is ensured that each target task server receives the task execution results of the target video processing task, and only one computing resource is used, which greatly improves resource utilization.
[0041] As an optional but non-limiting implementation method, determining the first task server from at least two target task servers assigned to undertake the target video processing task includes: determining the device address corresponding to each of the at least two target task servers; based on the device address corresponding to each of the at least two target task servers, determining the first task server from at least two target task servers assigned to undertake the target video processing task; wherein the IP address of the first task server is greater than the IP address of the second task server, or the Mac address of the first task server is less than the Mac address of the second task server.
[0042] For example, if the same target video processing task is to be executed by multiple target task servers, the target task server with a larger IP address or a smaller Mac address will be used as the first task server. For example, task server 1 announces X+β+vehicle structuring and X+β+pedestrian structuring, and task server 2 announces X+β+pedestrian structuring and X+β+non-motor vehicle structuring. It can be seen that task server 1 and task server 2 have the same target video processing task X+β+pedestrian structuring requirements. At this time, the IP addresses or Mac addresses of task server 1 and task server 2 are compared. If the IP address of task server 2 is larger, task server 2 will be used as the first task server.
[0043] The technical solution of the embodiment of the present invention determines the target task server with a larger IP address or a smaller Mac address as the first task server by comparing the sizes of the device addresses corresponding to at least two target task servers, and reasonably allocates the task servers that execute the target video processing tasks, thereby ensuring the rational use of computing resources.
[0044] Optionally, since the target task server with a large IP address or a small Mac address is used as the first task server, it may cause the first task server to undertake more video processing tasks. Therefore, in order to avoid the first task server undertaking more video processing tasks and causing processing task jams and delays, after determining the first task server from at least two target task servers assigned to undertake the target video processing tasks, the method further includes:
[0045] If the device load of the first task server is greater than the corresponding preset load, negotiate with a third task server among at least two target task servers, and when the device load of the third task server is less than the corresponding preset load, enable the third task server to assist the first task server in executing the target video processing task;
[0046] Among them, the third task server is selected from the second task server in descending order of IP address or in ascending order of Mac address, the IP address of the third task server is greater than the IP address of the remaining task servers in the second task server except the third task server, or the Mac address of the third task server is smaller than the Mac address of the remaining task servers in the second task server except the third task server.
[0047] S130: Use the first task server to execute the target video processing task, and send the task execution result of the target video processing task to the second task server, where the second task server is the remaining task server among the at least two target task servers except the first task server.
[0048] Specifically, a first task server is used to execute a target video processing task, and the first task server receives a second task message sent by a second task server via unicast, so that after the first task server executes the target video processing task to obtain a task execution result of the target video processing task, the task execution result of the target video processing task is sent to the second task server; wherein the second task message is used to indicate the video source identifier and video processing task type corresponding to the target video processing task to be executed by the second task server, as well as the IP address of the second task server itself.
[0049] As an optional but non-limiting implementation, the first task server is used to perform the target video processing task, including:
[0050] The first GPU in the first task server executes the target video processing task and obtains the task execution result of the target video processing task. If the target video processing task only includes one task, the task execution result can be directly returned; if the target video processing task includes at least two tasks, after the first GPU completes the target video processing task, the task execution result needs to be sent to the next GPU of a different category through GPU interconnection technology for further processing. For example, a structured task requires different types of GPUs to execute two processes, target detection and feature extraction. After the first GPU completes the target detection, it is sent to the next type of GPU through GPU interconnection technology for feature extraction processing.
[0051] The first GPU is a GPU included in the first task server and used to support the execution of the video processing task type corresponding to the target video processing task; Figure 2 As shown, at least two target task servers are pre-configured with a CPU and multiple GPUs associated with each CPU, and the multiple GPUs associated with each CPU include at least one category of GPUs, and different categories of GPUs support different types of video processing tasks.
[0052] The internal communication methods of the task server can be divided into two categories: horizontal communication between GPUs (device to device, D2D) and vertical communication between CPUs and GPUs (host to device, H2D / D2H). For horizontal communication, GPUs can directly transfer data from one GPU to another, that is, point-to-point communication (such as NVIDIA's NvLink, Meta XLink), without the need for a connected CPU as a transfer. Figure 2 As shown, in the kth task server, GPU k1 and GPU k2 The bandwidth and speed of GPU interconnection communication are incomparable to the traditional CPU and GPU communication via PCIe bus. For example, the bandwidth of Meta XLink is as high as 128GB / s.
[0053] Among them, the GPU category can be determined according to the type of intelligent analysis task. For example, the intelligent analysis tasks of target detection, structuring and target classification can be processed by a dedicated GPU by loading a specific neural network model, forming many GPU categories such as GPUs specifically responsible for target detection, GPUs responsible for feature extraction and classification. For example, target detection can use the yolov5s network model, feature extraction can use the resnet100 network model, and image classification with or without masks can use the densenet network model. For the above three network models, the task server can divide the GPUs into three categories: a, b, and c.
[0054] The embodiment of the present invention, after sending video processing requests to multiple candidate task servers respectively, determines at least one video processing task corresponding to the video processing request received by each candidate task server, and when it is determined that multiple target task servers execute the same video processing task at the same time, selects one of the multiple target task servers as the first task server, so that the first task server executes the target video processing task, and sends the task execution result of the target video processing task to other target servers except the first task server, thereby avoiding the same video processing task being processed by multiple target servers, solving the problem of computing resource waste caused by repeated intelligent analysis, greatly saving computing resources and reducing energy consumption.
[0055] Figure 3 A flow chart of another method for GPU cluster scheduling of intelligent services provided in an embodiment of the present invention. The technical solution of this embodiment is based on the technical solution of the above-mentioned embodiment. After determining at least one video processing task corresponding to the video processing request received by each candidate task server, it is necessary to multicast the analysis information of at least one video processing task received by each candidate task server. This embodiment further optimizes the multicast process. This embodiment can be combined with various optional schemes in one or more of the above-mentioned embodiments.
[0056] S210: After sending video processing requests to multiple candidate task servers respectively, determine at least one video processing task corresponding to the video processing request received by each candidate task server.
[0057] S220: For each candidate task server among the multiple candidate task servers, share the reference task message of each candidate task server with the remaining candidate task servers among the multiple candidate task servers through the multicast group associated with the multiple candidate task servers.
[0058] Among them, the reference task message is used to indicate the video processing tasks to be performed by each candidate task server according to the video processing requests received by each candidate task server. The multicast group associated with multiple candidate task servers is determined by constructing a multicast group based on the categories of each GPU pre-configured in each candidate task server. The category of GPU is divided according to the type of video processing tasks supported by the GPU. GPUs of different categories in multiple candidate task servers are configured to different multicast groups, and GPUs of the same category are configured to the same multicast group.
[0059] For example, target detection can use the yolov5s network model, feature extraction can use the resnet100 network model, and image classification with or without masks can use the densenet network model. For the above three network models, the task server can divide the GPUs into three categories: a, b, and c. Each type of GPU is formed and joins the corresponding multicast group. A multicast address is assigned to each type of GPU, and all GPUs of the same type on the target task server are added to the same multicast group. For example, according to the a, b, and c types of GPUs, multicast groups A: 226.1.1.1, B: 226.2.2.2, and C: 226.3.3.3 are established respectively. Each GPU in the task server joins its respective multicast group in turn according to its type and becomes a member. In this way, the task server establishes a table, such as Table 1, which records the ID of each GPU, the GPU type target detection a / feature extraction b / image classification c, and the corresponding multicast groups A / B / C, and the target task server reports the table to the management server.
[0060] Table 1 Multicast relationship table of each GPU in the task server
[0061]
[0062] Correspondingly, if the video stream needs to be detected, the CPU of the first task server will send the video stream to the A multicast group during task scheduling, and the GPUs in the multicast group will negotiate to evenly divide the video stream task (such as GPU1 and GPU2 in Table 1 above). After the yolo network model in its GPU is calculated, the coordinate position and length and width information {x, y, w, h, c} of each target of interest are returned as the final result of intelligent analysis and submitted; if the video stream is to achieve a fully structured task, which mainly includes two processes of target detection and feature extraction, the CPU will clearly send the video stream to the A multicast group for analysis and processing during video stream task scheduling, and the returned target data will be sent to the B multicast group as input through GPU interconnection technology for further analysis (such as GPU3 and GPU4 in Table 1 above), and the target feature will be extracted through the resnet100 network model, and the target structured information (such as the color of pedestrians' clothes, gender, age, etc.) will be output as the final result of intelligent analysis and submitted; GPU5 and GPU6 are used to implement the image classification task of whether pedestrians wear masks, and the process is similar and will not be repeated. It can be seen that by loading the network model on a dedicated GPU, the impact of possible memory placement and placement operations on computing performance as the depth, structure, and number of parameters of the neural network continue to expand can be avoided, and efficient scheduling of dedicated GPUs based on network model classification can be achieved.
[0063] As an optional but non-limiting implementation method, a multicast group associated with multiple candidate task servers is constructed in advance using the IP address of a reference task server specified from multiple candidate task servers as the multicast source address and the multicast address associated with multiple candidate task servers, and a reference multicast table entry for the multicast group associated with multiple candidate task servers is configured.
[0064] Specifically, if the IP address of the designated reference task server is the multicast source address, then the designated reference task server is the multicast source. The designated reference task server will generate a notification message to announce the reference multicast table entry of the multicast group associated with multiple candidate task servers, and notify the downstream candidate task servers of this notification message, and save a copy for itself. In this way, all task servers know that the designated reference task server is the multicast source. When any task server in the subsequent multicast group sends a multicast message, it uses the IP address of the designated reference task server as the multicast source address.
[0065] For example, Figure 4This is a schematic diagram of the topological structure of a multicast table provided by an embodiment of the present invention, in which R represents a router and S represents a task server. Usually, each task server uses its own IP address when making a multicast announcement, which requires the network node to generate multiple (S, G) multicast table entries. If it contains three multicast groups A, B, and C, the multicast table entry consumption will increase. The present invention uses a unified (S, G) multicast table entry to announce information, that is, to announce information by referring to the multicast table entry. Figure 4 , the management server first specifies the task server S1 as the multicast source S, then the reference multicast table entry is (S1, G). Task server S1 generates a notification message (S1, G) and goes downstream along the multicast group. In addition to forwarding the information to the downstream nodes, all routers also copy a copy to their own side-by-side task servers. Therefore, all task servers know that the management server has specified the task server S1 as the multicast source S. After receiving it, all task servers record the IP address of the reference task server and use the IP address of the reference task server as the multicast source address when sending multicast messages later.
[0066] As an optional but non-limiting implementation, the reference task message of each candidate task server is shared with the remaining candidate task servers among the multiple candidate task servers through the multicast group associated with the multiple candidate task servers, including the following steps A1-A3:
[0067] Step A1. When a reference task message generated by a third task server among multiple candidate task servers needs to be multicast shared and the third task server is not a reference task server, detect whether there is a corresponding second gateway router for the first gateway router. The first gateway router is a gateway router that is connected to the third task server in the multicast groups corresponding to the multiple candidate task servers. The second gateway router is a neighbor gateway router that is directly connected to the first gateway router in the multicast groups corresponding to the multiple candidate task servers and is located upstream in the data stream transmission direction from the multicast source to the multiple receivers.
[0068] Among them, after the third task server pre-registers with the first gateway router, the interface of the first gateway router that receives the registration message of the third task server is configured as a trusted interface, and the first gateway router supports receiving the reference task message sent by the third task server according to the reference multicast table item from the trusted interface, and multicasting the reference task message from the outbound interface of the first gateway router. The first gateway router is a gateway router associated with the third task server.
[0069] For example, Figure 4As shown, all gateway routers are connected to a task server, and the task servers register with their respective gateway routers. Each gateway router knows the information of the task server connected to it, records the interface of the registration message received from the corresponding task server, and uses it as a trusted interface.
[0070] If the third task server is S1, then the corresponding first gateway router is R1. The third task server S1 sends a registration message to the first gateway router R1, wherein the destination address of the registration message is the IP address of the first gateway router R1 and the IP address of the third task server S1. After receiving the registration message, the first gateway router R1 can know the interface connected to the third task server S1, and then configure the interface of the registration message of the third task server S1 as a trusted interface, so that the first gateway router supports receiving the reference task message sent by the third task server according to the reference multicast table item from the trusted interface.
[0071] If the third task server is S1-2, then the corresponding first gateway router is R1-2, and the second gateway router is R1. The third task server S1-2 sends a registration message to the first gateway router R1-2, wherein the destination address of the registration message is the IP address of the first gateway router R1-2 and the IP address of the third task server S1-2. After receiving the registration message, the first gateway router R1-2 can know the interface connected to the third task server S1-2, and then configure the interface of the registration message of the third task server S1-2 as a trusted interface, so that the first gateway router R1-2 can receive the reference task message sent by the third task server S1-2 according to the reference multicast table item from the trusted interface.
[0072] Step A2, in the case of the presence or absence of a corresponding second gateway router, based on the reference multicast table entry, the reference task message generated by the third task server is multicasted and sent to at least some of the candidate task servers except the third task server in the multicast groups corresponding to the multiple candidate task servers through the outbound interface of the first gateway router.
[0073] Step A3: In the presence of a corresponding second gateway router, the reference task message generated by the third task server is also reversely unicasted from the input interface of the first gateway router so that the second gateway router receives the unicast reference task message from the first output interface of the second gateway router; and based on the reference multicast table entry, the reference task message generated by the third task server is multicasted to at least some of the candidate task servers except the third task server in the corresponding multicast group of multiple candidate task servers through the second output interface except the first output interface in the second gateway router.
[0074] Specifically, the reference task messages need to be propagated to each task server in the multicast group. The present invention is announced based on the reference multicast table entry. Therefore, regardless of whether there is a second gateway router, any reference task message needs to be multicasted to some downstream candidate task servers corresponding to the third task server, and the upstream candidate task server corresponding to the third task server obtains the reference task message in the following manner: the reference task message generated by the third task server is reversely unicasted from the input interface of the first gateway router so that the second gateway router receives the unicast reference task message from the first output interface of the second gateway router. At the same time, based on the reference multicast table entry, the reference task message generated by the third task server is multicasted to at least some of the candidate task servers in the multicast group corresponding to multiple candidate task servers except the third task server through the second output interface of the second gateway router except the first output interface.
[0075] For example, Figure 4 As shown in the reference multicast table entry, when the third task server S1-2-1 publishes the reference task message, the following processing needs to be performed:
[0076] The third task server S1-2-1 sends the reference task message to the downstream task server S1-2-1-1 through the outbound interface of the first gateway router R1-2-1, and determines whether the third task server S1-2-1 has an upstream task server. If it is found that there is an upstream task server S1-2, it sends it in reverse unicast through the inbound interface of the first gateway router R1-2-1 so that the second gateway router R1-2 receives the unicast reference task message from the first outbound interface of the second gateway router R1-2. After receiving the reference task message, the second gateway router R1-2 determines whether there is an upstream gateway router. If not, the reference task message is sent to the corresponding downstream task server except S1-2-1-1 through the outbound interface of R1-2. If it exists, the upstream gateway router is determined. Figure 4 If it is known that there is still an upstream gateway router S1, the reference task message is reverse unicasted to S1 through the inbound interface of R1-2, and there is no more gateway router upstream of R1, R1 sends the reference task message to downstream R1-1, R1-1-1 and R1-1-2 through the outbound interface of R1.
[0077] The technical solution of this embodiment, by establishing a trust interface between the task server and its corresponding gateway router, makes it possible to use a unified reference multicast table entry to announce the reference task message in the corresponding multicast group, thereby simplifying the establishment of the multicast table entry.
[0078] S230: If there is a same target video processing task in the video processing tasks corresponding to the video processing requests received by at least two target task servers among the multiple candidate task servers, determine a first task server from the at least two target task servers assigned to undertake the target video processing task.
[0079] S240: Use the first task server to execute the target video processing task, and send the task execution result of the target video processing task to the second task server, where the second task server is the remaining task server among the at least two target task servers except the first task server.
[0080] According to the embodiment of the present invention, after sending video processing requests to multiple candidate task servers respectively, at least one video processing task corresponding to the video processing request received by each candidate task server is determined. At the same time, for each candidate task server among the multiple candidate task servers, the reference task message of each candidate task server is shared with the remaining candidate task servers among the multiple candidate task servers through the multicast group associated with the multiple candidate task servers, so that the multicast group associated with the multiple candidate task servers knows whether there are multiple target task servers that simultaneously execute the same video processing task. Further, when it is determined that multiple target task servers simultaneously execute the same video processing task, one of the multiple target task servers is selected as the first task server, so that the first task server is used to execute the target video processing task, and the task execution result of the target video processing task is sent to other target servers except the first task server, so as to avoid the same video processing task being processed by multiple target servers, solve the problem of computing resource waste caused by repeated intelligent analysis, greatly save computing resources and reduce energy consumption.
[0081] Figure 5 This is a structural diagram of a GPU cluster scheduling system for intelligent services provided by an embodiment of the present invention. The embodiment of the present invention is applicable to the situation where task servers are reasonably allocated for video processing tasks.
[0082] like Figure 5 As shown, the GPU cluster scheduling system for intelligent services in the embodiment of the present invention may include: a management server 310, a first task server 320; wherein:
[0083] The management server 310 is used to send video processing requests to multiple candidate task servers respectively, and determine at least one video processing task corresponding to the video processing request received by each candidate task server, each of which is determined according to the video code stream corresponding to the video processing request, the video source identifier of the video code stream, and the video processing task category;
[0084] The management server 310 is further configured to determine a first task server from the at least two target task servers assigned to undertake the target video processing task if there is a same target video processing task in the video processing tasks corresponding to the video processing requests received by at least two target task servers among the plurality of candidate task servers;
[0085] The first task server 320 is used to execute the target video processing task and send the task execution result of the target video processing task to the second task server 330. The second task server is the remaining task server of the at least two target task servers except the first task server.
[0086] Based on the technical solution of the above embodiment, optionally, after determining at least one video processing task corresponding to the video processing request received by each candidate task server, the method further includes:
[0087] For each candidate task server among multiple candidate task servers, a reference task message of each candidate task server is shared with the remaining candidate task servers among the multiple candidate task servers through a multicast group associated with the multiple candidate task servers, the reference task message is used to indicate the video processing task to be performed by each candidate task server according to the video processing request received by each candidate task server, the multicast group associated with the multiple candidate task servers is determined by constructing a multicast group based on the categories of each GPU pre-configured in each candidate task server, the category of the GPU is divided according to the type of video processing tasks supported by the GPU, different categories of GPUs in the multiple candidate task servers are configured to different multicast groups, and the same category of GPUs are configured to the same multicast group.
[0088] On the basis of the technical solution of the above embodiment, optionally, the IP address of the reference task server specified from the multiple candidate task servers is used as the multicast source address in advance to associate with the multiple candidate task servers to form a multicast group associated with the multiple candidate task servers, and a reference multicast table entry for the multicast group associated with the multiple candidate task servers is configured;
[0089] Accordingly, the reference task message of each candidate task server is shared with the remaining candidate task servers in the plurality of candidate task servers through the multicast group associated with the plurality of candidate task servers, including:
[0090] When a third task server among multiple candidate task servers generates a reference task message that needs to be multicast shared and the third task server is not a reference task server, detecting whether there is a corresponding second gateway router for the first gateway router, the first gateway router being a gateway router with a third task server hanging in the corresponding multicast groups of the multiple candidate task servers, and the second gateway router being a neighbor gateway router directly connected to the first gateway router in the corresponding multicast groups of the multiple candidate task servers and located upstream in the data stream transmission direction sent by the multicast source to the multiple receivers;
[0091] In the case where there is a corresponding second gateway router, based on the reference multicast entry, the reference task message generated by the third task server is multicasted and sent to at least some of the candidate task servers except the third task server in the multicast group corresponding to the multiple candidate task servers through the outbound interface of the first gateway router in the multicast group corresponding to the multiple candidate task servers;
[0092] In the case where there is a corresponding second gateway router, the reference task message generated by the third task server is also reverse unicasted from the input interface of the first gateway router so that the second gateway router receives the unicast reference task message from the first output interface of the second gateway router; and based on the reference multicast table entry, the reference task message generated by the third task server is multicasted to at least some of the candidate task servers except the third task server in the corresponding multicast group of the multiple candidate task servers through the second output interface except the first output interface in the second gateway router.
[0093] Based on the technical solution of the above embodiment, optionally, after the third task server pre-registers with the first gateway router, the interface of the first gateway router that receives the registration message of the third task server is configured as a trusted interface, and the first gateway router supports receiving the reference task message sent by the third task server according to the reference multicast table entry from the trusted interface, and multicasting the reference task message from the outbound interface of the first gateway router.
[0094] Based on the technical solution of the above embodiment, optionally, determining a first task server from at least two target task servers assigned to undertake the target video processing task includes:
[0095] Determine the device addresses corresponding to at least two target task servers;
[0096] Determine a first task server from the at least two target task servers assigned to undertake the target video processing task based on the device addresses corresponding to the at least two target task servers respectively;
[0097] The IP address of the first task server is greater than the IP address of the second task server, or the Mac address of the first task server is less than the Mac address of the second task server.
[0098] Based on the technical solution of the above embodiment, optionally, before sending the task execution result of the target video processing task to the second task server, the method further includes:
[0099] The second task message sent by the second task server via unicast is received by the first task server; wherein the second task message is used to indicate the video source identifier and video processing task type corresponding to the target video processing task to be executed by the second task server and the IP address of the second task server itself.
[0100] Based on the technical solution of the above embodiment, optionally, using the first task server to execute the target video processing task includes:
[0101] The first GPU in the first task server executes the target video processing task, and the first GPU is a GPU included in the first task server and used to support the execution of the video processing task type corresponding to the target video processing task; wherein, Figure 2 As shown, the at least two target task servers are pre-configured with a CPU and multiple GPUs associated with each of the CPUs, and the multiple GPUs associated with each of the CPUs include at least one category of GPUs, and different categories of GPUs support different types of video processing tasks.
[0102] Based on the technical solution of the above embodiment, optionally, after determining the first task server from at least two target task servers assigned to undertake the target video processing task, the method further includes:
[0103] If the device load of the first task server is greater than the corresponding preset load, negotiate with a third task server among the at least two target task servers, and when the device load of the third task server is less than the corresponding preset load, enable the third task server to assist the first task server in executing the target video processing task;
[0104] Among them, the third task server is selected from the second task servers in descending order of IP addresses or in ascending order of Mac addresses. The IP address of the third task server is greater than the IP addresses of the remaining task servers in the second task server except the third task server, or the Mac address of the third task server is smaller than the Mac addresses of the remaining task servers in the second task server except the third task server.
[0105] The GPU cluster scheduling system for intelligent services provided in the embodiment of the present invention can execute the GPU cluster scheduling method for intelligent services provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the GPU cluster scheduling method for intelligent services.
[0106] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 6 , which shows an electronic device (eg Figure 6 The terminal device in the embodiment of the present invention may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0107] like Figure 6 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0108] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0109] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the GPU cluster scheduling method for intelligent business shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the GPU cluster scheduling method for intelligent business of the embodiment of the present invention are executed.
[0110] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0111] The electronic device provided in the embodiment of the present invention and the GPU cluster scheduling method for intelligent services provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0112] An embodiment of the present invention provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the GPU cluster scheduling method for the intelligent service provided in the above embodiment is implemented.
[0113] It should be noted that the computer-readable medium of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0114] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0115] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0116] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0117] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: after sending video processing requests to multiple candidate task servers respectively, determines at least one video processing task corresponding to the video processing request received by each candidate task server, each of which is determined according to the video code stream corresponding to the video processing request, the video source identifier of the video code stream and the video processing task category; if there is a same target video processing task in the video processing tasks corresponding to the video processing requests received by at least two target task servers among the multiple candidate task servers, then determines a first task server from at least two target task servers assigned to undertake the target video processing task; uses the first task server to execute the target video processing task, and sends the task execution result of the target video processing task to a second task server, the second task server being the remaining task server among the at least two target task servers except the first task server.
[0118] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0119] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] The units involved in the embodiments of the present invention may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0121] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that may be used include, without limitation, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0122] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0123] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) to form a technical solution.
[0124] In addition, although each operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present invention. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0125] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A GPU cluster scheduling method for intelligent services, characterized in that: The method comprises: After sending video processing requests to multiple candidate task servers respectively, determining at least one video processing task corresponding to the video processing request received by each candidate task server, each of the video processing tasks is determined according to the video code stream corresponding to the video processing request, the video source identifier of the video code stream and the video processing task category; If there are at least two target task servers among the multiple candidate task servers that have the same target video processing task in the video processing tasks corresponding to the video processing requests received by the target task servers, then determining a first task server from the at least two target task servers that are assigned to undertake the target video processing task; The first task server is used to execute the target video processing task, and the task execution result of the target video processing task is sent to the second task server, where the second task server is the remaining task server of the at least two target task servers except the first task server; Wherein, the method further comprises: Preliminarily using the IP address of a reference task server specified from a plurality of candidate task servers as a multicast source address and a multicast address associated with a plurality of candidate task servers, constructing a multicast group associated with the plurality of candidate task servers, and configuring a reference multicast table entry for the multicast group associated with the plurality of candidate task servers; Among them, after the third task server among the multiple candidate task servers is pre-registered with the first gateway router, the interface of the first gateway router that receives the registration message of the third task server is configured as a trusted interface, and the first gateway router supports receiving the reference task message sent by the third task server according to the reference multicast table item from the trusted interface, and multicasting the reference task message from the outbound interface of the first gateway router; the reference task message is used to indicate the video processing task to be performed by each candidate task server according to the video processing request received by each; the first gateway router is a gateway router with a third task server hanging in the corresponding multicast group of multiple candidate task servers.
2. The method according to claim 1, characterized in that After determining at least one video processing task corresponding to the video processing request received by each candidate task server, the method further includes: For each candidate task server among multiple candidate task servers, the reference task message of each candidate task server is shared with the remaining candidate task servers among the multiple candidate task servers through the multicast group associated with the multiple candidate task servers. The multicast group associated with the multiple candidate task servers is determined by constructing a multicast group based on the categories of each GPU pre-configured in each candidate task server. The category of the GPU is divided according to the type of video processing tasks supported by the GPU. GPUs of different categories in the multiple candidate task servers are configured to different multicast groups, and GPUs of the same category are configured to the same multicast group.
3. The method according to claim 2, characterized in that Sharing the reference task message of each candidate task server to the remaining candidate task servers among the multiple candidate task servers through the multicast group associated with the multiple candidate task servers includes: When a third task server generates a reference task message from a plurality of candidate task servers and needs to be multicast shared and the third task server is not a reference task server, detecting whether there is a corresponding second gateway router for the first gateway router, the second gateway router being a neighbor gateway router directly connected to the first gateway router in the multicast groups corresponding to the plurality of candidate task servers and located upstream in the data stream transmission direction sent by the multicast source to the plurality of receivers; In the case where there is or does not exist a corresponding second gateway router, based on the reference multicast entry, the reference task message generated by the third task server is multicasted and sent to at least some of the candidate task servers except the third task server in the multicast group corresponding to the multiple candidate task servers through the outbound interface of the first gateway router in the multicast group corresponding to the multiple candidate task servers; In the case where there is a corresponding second gateway router, the reference task message generated by the third task server is also reverse unicasted from the input interface of the first gateway router so that the second gateway router receives the unicast reference task message from the first output interface of the second gateway router; and based on the reference multicast table entry, the reference task message generated by the third task server is multicasted to at least some of the candidate task servers except the third task server in the corresponding multicast group of the multiple candidate task servers through the second output interface except the first output interface in the second gateway router.
4. The method according to claim 1, characterized in that Determining a first task server from at least two target task servers assigned to undertake the target video processing task includes: Determine the device addresses corresponding to at least two target task servers; Determine a first task server from the at least two target task servers assigned to undertake the target video processing task based on the device addresses corresponding to the at least two target task servers respectively; The IP address of the first task server is greater than the IP address of the second task server, or the Mac address of the first task server is less than the Mac address of the second task server.
5. The method according to claim 1, characterized in that Before sending the task execution result of the target video processing task to the second task server, the method further includes: The second task message sent by the second task server via unicast is received by the first task server; wherein the second task message is used to indicate the video source identifier and video processing task type corresponding to the target video processing task to be executed by the second task server and the IP address of the second task server itself.
6. The method according to claim 1, characterized in that Using the first task server to perform the target video processing task includes: The first GPU in the first task server executes the target video processing task, and the first GPU is a GPU included in the first task server for supporting the execution of a video processing task type corresponding to the target video processing task; wherein the at least two target task servers are pre-configured with a CPU and multiple GPUs associated with each of the CPUs, and the multiple GPUs associated with each of the CPUs include at least one category of GPUs, and different categories of GPUs support different types of video processing tasks.
7. The method according to claim 1, characterized in that After determining the first task server from at least two target task servers assigned to undertake the target video processing task, the method further includes: If the device load of the first task server is greater than the corresponding preset load, negotiate with a third task server among the at least two target task servers, and when the device load of the third task server is less than the corresponding preset load, enable the third task server to assist the first task server in executing the target video processing task; Among them, the third task server is selected from the second task servers in descending order of IP addresses or in ascending order of Mac addresses. The IP address of the third task server is greater than the IP addresses of the remaining task servers in the second task server except the third task server, or the Mac address of the third task server is smaller than the Mac addresses of the remaining task servers in the second task server except the third task server.
8. A GPU cluster scheduling system for intelligent services, characterized in that: The system comprises: The management server is used to send video processing requests to multiple candidate task servers respectively, and determine at least one video processing task corresponding to the video processing request received by each candidate task server, wherein each of the video processing tasks is determined according to the video code stream corresponding to the video processing request, the video source identifier of the video code stream, and the video processing task category; The management server is further configured to determine a first task server from the at least two target task servers assigned to undertake the target video processing task if there is a same target video processing task in the video processing tasks corresponding to the video processing requests received by at least two target task servers among the plurality of candidate task servers; A first task server is used to execute the target video processing task and send the task execution result of the target video processing task to a second task server, where the second task server is a remaining task server among the at least two target task servers except the first task server; The management server is further used to pre-use the IP address of the reference task server specified from the multiple candidate task servers as the multicast source address and the multicast address used to associate with the multiple candidate task servers, to construct a multicast group associated with the multiple candidate task servers, and to configure a reference multicast table entry for the multicast group associated with the multiple candidate task servers; Among them, after the third task server among the multiple candidate task servers is pre-registered with the first gateway router, the interface of the first gateway router that receives the registration message of the third task server is configured as a trusted interface, and the first gateway router supports receiving the reference task message sent by the third task server according to the reference multicast table item from the trusted interface, and multicasting the reference task message from the outbound interface of the first gateway router; the reference task message is used to indicate the video processing task to be performed by each candidate task server according to the video processing request received by each; the first gateway router is a gateway router with a third task server hanging in the corresponding multicast group of multiple candidate task servers.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the GPU cluster scheduling method for intelligent services as described in any one of claims 1-7.
