Cluster scheduling method and device

By receiving and scheduling distributed computing tasks in the rendering farm cluster scheduling system, a third-party scheduling system is formed, which solves the problem that the rendering farm cluster cannot effectively schedule distributed computing tasks, and achieves compatibility and scalability with third-party systems. Supports the execution of a variety of distributed tasks.

CN115314493BActive Publication Date: 2024-10-11SUZHOU CREATIVE CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210926378.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-03
Publication Date
2024-10-11
Estimated Expiration
2042-08-03

AI Technical Summary

Technical Problem

The rendering farm cluster scheduling system cannot effectively implement the scheduling of distributed computing tasks, and cannot directly call the working nodes of the Context Capture cluster scheduling system for 3D reconstruction, resulting in the inability to achieve the same accuracy and compatibility as the Vray distributed rendering system.

Method used

In the rendering farm cluster scheduling system, by receiving distributed computing tasks submitted by users, it finds and starts corresponding working nodes, performs node scheduling and task allocation according to preset scheduling rules, and forms a third-party scheduling system that supports distributed rendering and 3D rendering. Rebuild the task and automatically recycle the worker nodes after the task is completed.

Benefits of technology

It realizes the ability to integrate third-party scheduling systems in rendering farm clusters, improves scheduling capabilities and compatibility, and increases scalability, so that scheduling systems that cannot be supported by the rendering farm cluster scheduling system can run stably, satisfying most third-party scheduling System integration requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115314493B_ABST
    Figure CN115314493B_ABST
Patent Text Reader

Abstract

This specification relates to the technical field of cluster scheduling, and specifically discloses a cluster scheduling method and device, wherein the method includes: receiving a distributed computing task submitted by a user end; searching for a first working node requesting a task in a target node pool corresponding to a node pool identifier; sending a first startup instruction to the first working node to start a management end process corresponding to the distributed computing task type in the first working node; in the case of successful startup, sending the distributed computing task to the first working node; in response to a task request sent by a second working node in the target node pool, sending a second startup instruction to the second working node to start a client process corresponding to the distributed computing task type in the second working node; the first working node performs node scheduling and task allocation on the second working node according to a preset scheduling rule to execute the distributed computing task. The above scheme can improve the scheduling capability and increase the scalability and compatibility of cluster scheduling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cluster scheduling, and in particular to a cluster scheduling method and device. Background Art

[0002] At present, there are many applications that need cluster processing, and a cluster processing method has been formed. This cluster often has its own scheduling logic. Through some kind of autonomous discovery mode or manual addition mode, working nodes can be added to the management node of this cluster. Similar systems include Vray distributed rendering system and Context Capture cluster scheduling system.

[0003] In the render farm cluster scheduling system, that is, the Goldenfarm cluster scheduling system, a large number of work nodes are managed, and it is necessary to support a variety of rendering software or renderers, as well as other non-rendering tasks. Although the render farm cluster scheduling system can use block rendering to replace Vray distributed rendering to a certain extent, this block rendering has some differences from Vray distributed rendering. For example, it may be difficult to achieve the accuracy of Vray distributed rendering in the stitching stage after block rendering. In addition, for the Context Capture cluster scheduling system, the work nodes cannot be directly called in the Goldenfarm cluster scheduling system to perform Context Capture 3D reconstruction. In this case, the Context Capture cluster scheduling system must be used to manage the work nodes, so as to achieve the work of using the cluster for 3D reconstruction.

[0004] To address the above problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of this specification provide a cluster scheduling method and device to solve the problem that the scheduling of distributed computing tasks cannot be implemented in the render farm cluster scheduling system in the prior art.

[0006] The embodiment of the present specification provides a cluster scheduling method, which is applied to a scheduling node in a render farm cluster scheduling system, wherein the render farm cluster scheduling system further includes a plurality of working nodes; the scheduling node stores a node list corresponding to each of a plurality of node pools, wherein the node list corresponding to each of the node pools stores node information of working nodes applicable to a specified type of distributed computing; the method includes:

[0007] Receive a distributed computing task submitted by a user terminal; the distributed computing task carries a node pool identifier and a distributed computing task type;

[0008] Searching for a first working node for a requested task in a target node pool corresponding to the node pool identifier; sending a first startup instruction to the first working node to start a management end process corresponding to the distributed computing task type in the first working node; and sending the distributed computing task to the first working node if the management end process is successfully started;

[0009] In response to a task request sent by a second working node in the target node pool, a second startup instruction is sent to the second working node to start a client process corresponding to the distributed computing task type in the second working node; the first working node performs node scheduling and task allocation on the second working node according to preset scheduling rules to execute the distributed computing task.

[0010] In one embodiment, the method further comprises:

[0011] Receive first log data returned by the first working node and second log data returned by the second working node;

[0012] The first log data and the second log data are analyzed to schedule the first working node and the second working node according to the analysis result.

[0013] In one embodiment, analyzing the first log data and the second log data to schedule the first working node and the second working node according to the analysis result includes:

[0014] Determining whether the second working node has completed the assigned task based on the second log data returned by the second working node;

[0015] When it is determined that the second working node has completed the assigned task, an end instruction is sent to the second working node to end the client process running in the second working node and disconnect the communication connection between the second working node and the first working node.

[0016] In one embodiment, analyzing the first log data and the second log data to schedule the first working node and the second working node according to the analysis result includes:

[0017] Determining whether the distributed computing task is executed successfully based on the first log data returned by the first working node;

[0018] When it is determined that the distributed computing task is executed successfully, an end instruction is sent to the first working node to end the management end process running in the first working node.

[0019] In one embodiment, analyzing the first log data and the second log data to schedule the first working node and the second working node according to the analysis result includes:

[0020] Determine whether a second working node needs to be added based on the first log data returned by the first working node and the second working log returned by the second working node;

[0021] When it is determined that a second working node needs to be added, in response to a task request sent by the second working node, a second start instruction is sent to the second working node to start a client process corresponding to the distributed computing task type in the second working node.

[0022] In one embodiment, the method further comprises:

[0023] Monitoring the running status of the first working node;

[0024] In the event that the management end process fails to start, the management end process in the first working node is restarted until it is successfully started or the number of starts exceeds a preset number.

[0025] In one embodiment, the distributed computing task includes at least one of the following: a distributed rendering task and a three-dimensional reconstruction task.

[0026] The embodiment of the present specification also provides a cluster scheduling device, which is applied to a scheduling node in a render farm cluster scheduling system, wherein the render farm cluster scheduling system also includes a plurality of working nodes; the scheduling node stores a node list corresponding to each of the plurality of node pools, wherein the node list corresponding to each of the node pools stores node information of working nodes applicable to a specified type of distributed computing; the device includes:

[0027] A receiving module, used for receiving a distributed computing task submitted by a user terminal; the distributed computing task carries a node pool identifier and a distributed computing task type;

[0028] A first startup module is used to search for a first working node of a request task in a target node pool corresponding to the node pool identifier; send a first startup instruction to the first working node to start a management end process corresponding to the distributed computing task type in the first working node; and send the distributed computing task to the first working node when the management end process is successfully started;

[0029] A second startup module is used to respond to a task request sent by a second working node in the target node pool, send a second startup instruction to the second working node, so as to start a client process corresponding to the distributed computing task type in the second working node; the first working node performs node scheduling and task allocation on the second working node according to preset scheduling rules to execute the distributed computing task.

[0030] An embodiment of the present specification also provides a computer device, including a processor and a memory for storing processor-executable instructions, wherein the processor implements the steps of the cluster scheduling method described in any of the above embodiments when executing the instructions.

[0031] The embodiments of the present specification also provide a computer-readable storage medium on which computer instructions are stored. When the instructions are executed, the steps of the cluster scheduling method described in any of the above embodiments are implemented.

[0032] In an embodiment of the present specification, a cluster scheduling method is provided, which is applied to a scheduling node in a rendering farm cluster scheduling system, wherein the rendering farm cluster scheduling system further comprises a plurality of working nodes, wherein the scheduling node stores a node list corresponding to each of a plurality of node pools, wherein the node list corresponding to each of the node pools stores node information of working nodes applicable to a specified type of distributed computing, wherein the scheduling node can receive a distributed computing task submitted by a user end, wherein the distributed computing task carries a node pool identifier and a distributed computing task type, wherein the scheduling node can search for a first working node requesting a task in a target node pool corresponding to the node pool identifier, and send a first startup instruction to the first working node to start a management end process corresponding to the distributed computing task type in the first working node, and if the management end process is successfully started, send the distributed computing task to the first working node, and then the scheduling node can respond to a task request sent by a second working node in the target node pool, and send a second startup instruction to the second working node to start a client process corresponding to the distributed computing task type in the second working node, and then the first working node performs node scheduling and task allocation on the second working node according to a preset scheduling rule to execute the distributed computing task. In the above scheme, a node pool for a scheduling system corresponding to different distributed operations is set in the rendering farm cluster. The node list corresponding to the node pool can store working nodes that can be used for the designated type of distributed operation scheduling. The user end can submit a distributed operation task to the scheduling node and specify the node pool. The scheduling node can start the management end process corresponding to the distributed operation type in the first working node in the node pool, and start the client process corresponding to the distributed operation type in the second working node, so that the first working node and at least one second working node form a third-party scheduling system. The first working node can perform task allocation and scheduling on the second working node according to the preset scheduling rules corresponding to the distributed operation type, thereby realizing the integration of the third-party scheduling system in the rendering farm cluster, and can automatically allocate working nodes to the third-party scheduling system. After the distributed operation task in the third-party scheduling system is completed, the working node can be automatically recovered to the rendering farm cluster scheduling system. In this way, the cluster scheduling framework that can be flexibly integrated into the third-party scheduling system can meet the needs of most third-party scheduling systems to be integrated into the rendering farm cluster scheduling system at any time, can improve the scheduling capability, and increase different business capabilities. Through this cluster scheduling mode in this scheme, the scalability and compatibility of cluster scheduling can be increased, so that the scheduling system that cannot be supported by the rendering farm cluster scheduling system can run stably. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings described herein are used to provide a further understanding of this specification, constitute a part of this specification, and do not constitute a limitation of this specification. In the drawings:

[0034] Figure 1 A flow chart of a cluster scheduling method in an embodiment of this specification is shown;

[0035] Figure 2 A schematic diagram of a cluster scheduling device in an embodiment of this specification is shown;

[0036] Figure 3 A schematic diagram of a computer device in an embodiment of the present specification is shown. DETAILED DESCRIPTION

[0037] The principles and spirit of this specification will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement this specification, and are not intended to limit the scope of this specification in any way. On the contrary, these embodiments are provided to make this specification more thorough and complete, and to fully convey the scope of this disclosure to those skilled in the art.

[0038] Those skilled in the art will appreciate that the embodiments of this specification may be implemented as a system, device, method, or computer program product. Therefore, this specification may be implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0039] The embodiments of this specification provide a cluster scheduling method. Figure 1 A flow chart of a cluster scheduling method in an embodiment of the present specification is shown. Although the present specification provides method operation steps or device structures as shown in the following embodiments or drawings, more or fewer operation steps or module units may be included in the method or device based on routine or no creative labor. In the steps or structures where there is no necessary causal relationship logically, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure described in the embodiments of the present specification and shown in the drawings. When the method or module structure is applied to an actual device or terminal product, it can be connected according to the method or module structure shown in the embodiments or drawings for sequential execution or parallel execution (for example, a parallel processor or a multi-threaded processing environment, or even a distributed processing environment).

[0040] Specifically, Figure 1 As shown, a cluster scheduling method provided in an embodiment of this specification may include the following steps:

[0041] Step S101, receiving a distributed computing task submitted by a user terminal; the distributed computing task carries a node pool identifier and a distributed computing task type.

[0042] The cluster scheduling method in this embodiment is applied to the scheduling node in the rendering farm cluster scheduling system. The rendering farm cluster scheduling system may also include multiple working nodes. The scheduling node stores a node list corresponding to each node pool in multiple node pools. The node list corresponding to each node pool stores node information of working nodes suitable for a specified type of distributed computing. The specified type of distributed computing here can be further set according to actual computing requirements. For example, the distributed computing may include at least one of the following: a distributed rendering task, a three-dimensional reconstruction task.

[0043] The working nodes in the same node pool can have a certain type of common features and are applicable to the same type of distributed computing tasks. For example, for the Vray distributed rendering task, the Vray distributed rendering management terminal and client software are deployed on the working nodes in the node pool corresponding to the Vray distributed rendering task. For another example, for the Context Capture 3D reconstruction task, the Context Capture scheduling system management terminal and client software are deployed on the working nodes in the corresponding node pool.

[0044] The correspondence between the working nodes and the node pools can be one-to-one or many-to-many, and this application does not impose any restrictions on this.

[0045] The scheduling node can receive distributed computing tasks submitted by the user end. The distributed computing tasks can carry a node pool identifier and a distributed computing task type. The node pool identifier can be the node pool identifier specified by the user end when submitting the task, or the node pool identifier corresponding to the distributed computing task type.

[0046] Step S102, searching for the first working node of the requested task in the target node pool corresponding to the node pool identifier; sending a first startup instruction to the first working node to start the management-end process corresponding to the distributed computing task type in the first working node; if the management-end process is successfully started, sending the distributed computing task to the first working node.

[0047] After receiving the distributed computing task submitted by the user end, the scheduling node can search for the first working node of the requesting task in the target node pool corresponding to the node pool identifier. A first startup instruction can be sent to the first working node. The first startup instruction can carry the distributed computing task type. The first working node can start the management end process corresponding to the distributed computing task type, that is, the management end software, in response to the first startup instruction.

[0048] When the management end process is successfully started, the scheduling node may submit the distributed computing task to the management end of the first working node in a manner specified by the management end.

[0049] Step S103, in response to the task request sent by the second working node in the target node pool, sends a second start instruction to the second working node to start the client process corresponding to the distributed computing task type in the second working node; the first working node performs node scheduling and task allocation on the second working node according to the preset scheduling rules to execute the distributed computing task.

[0050] The scheduling node may also receive a task request sent by a second working node in the target node pool. A second startup instruction may be sent to the second working node. The second startup instruction may include a distributed computing task type. The second working node may start a client process corresponding to the distributed computing task type in response to the second startup instruction. The second working node may include multiple working nodes, and the specific number is set according to the requirements of the distributed computing task type.

[0051] The second startup instruction may also include relevant information of the management end of the first working node, so that the second working node can communicate with the first working node according to the relevant information to form a third-party scheduling system. The first working node can perform node scheduling and task allocation for the second working node according to the preset scheduling rules to perform distributed computing tasks. The preset scheduling rules here can be specific scheduling logic corresponding to the distributed computing task type, which can be stored in the management end process of the first working node.

[0052] The cluster scheduling method in the above embodiment sets a node pool for the scheduling system corresponding to different distributed operations in the rendering farm cluster. The node list corresponding to the node pool can store working nodes that can be used for the designated type of distributed computing scheduling. The user end can submit a distributed computing task to the scheduling node and specify the node pool. The scheduling node can start the management end process corresponding to the distributed computing type in the first working node in the node pool, and start the client process corresponding to the distributed computing type in the second working node, so that the first working node and at least one second working node form a third-party scheduling system. The first working node can perform task allocation and scheduling on the second working node according to the preset scheduling rules corresponding to the distributed computing type, thereby realizing the integration of the third-party scheduling system in the rendering farm cluster, and can automatically allocate working nodes to the third-party scheduling system. After the distributed computing task in the third-party scheduling system is completed, the working node can be automatically recovered to the rendering farm cluster scheduling system. In this way, the cluster scheduling framework that can be flexibly integrated into the third-party scheduling system can meet the needs of most third-party scheduling systems to be integrated into the rendering farm cluster scheduling system at any time, can improve the scheduling capability, and increase different business capabilities. Through this cluster scheduling mode in this solution, the scalability and compatibility of cluster scheduling can be increased, so that the scheduling system that cannot be supported by the rendering farm cluster scheduling system can run stably.

[0053] In some embodiments of the present specification, the method may also include: receiving first log data returned by the first working node and second log data returned by the second working node; analyzing the first log data and the second log data to schedule the first working node and the second working node according to the analysis results.

[0054] Specifically, in the process in which the first working node performs node scheduling and task allocation on the second working node according to the preset scheduling rules to perform the distributed computing task, the first working log and the second working log can be generated. The scheduling node can receive the first log data returned by the first working node and the second log data returned by the second working node. The scheduling node can analyze the first log data and the second log data, and perform subsequent scheduling and task allocation arrangements for the first working node and the second working node based on the analysis results. In the above manner, the scheduling process and task execution process of the third-party scheduling system can be monitored and managed by the scheduling node to improve computing efficiency and recycle resources in a timely manner.

[0055] In some embodiments of the present specification, analyzing the first log data and the second log data to schedule the first work node and the second work node according to the analysis results may include: determining whether the second work node has completed the assigned task based on the second log data returned by the second work node; when it is determined that the second work node has completed the assigned task, sending an end instruction to the second work node to end the client process running in the second work node and disconnect the communication connection between the second work node and the first work node.

[0056] Specifically, the scheduling node can determine whether the second working node has completed the assigned task based on the second log data returned by the second working node. If completed, an end instruction is sent to the second working node to stop the client process running in the second working node. The communication connection between the second working node and the first working node can also be disconnected. That is, the second working node is recycled for subsequent scheduling and allocation. If the second working node has not completed the task, the task continues to be executed. In the above manner, the working node can be recycled in time to improve resource utilization.

[0057] In some embodiments of the present specification, the first log data and the second log data are analyzed to schedule the first working node and the second working node according to the analysis results, including: determining whether the distributed computing task is executed successfully based on the first log data returned by the first working node; and when it is determined that the distributed computing task is executed successfully, sending an end instruction to the first working node to end the management end process running in the first working node.

[0058] Specifically, the scheduling node can determine whether the distributed computing task is executed successfully based on the first log data returned by the first working node. If the execution is successful, an end instruction is sent to the first working node to end the management end process running in the first working node, thereby realizing the recycling of the working node. In the above manner, the working node can be recycled in time to improve resource utilization.

[0059] In some embodiments of the present specification, the first log data and the second log data are analyzed to schedule the first work node and the second work node according to the analysis results, including: determining whether it is necessary to add a second work node based on the first log data returned by the first work node and the second work log returned by the second work node; when it is determined that a second work node needs to be added, in response to the task request sent by the second work node, sending a second start instruction to the second work node to start the client process corresponding to the distributed computing task type in the second work node.

[0060] Specifically, the scheduling node can determine whether a second working node needs to be added based on the first log data returned by the first working node and the second working log returned by the second working node. For example, it can be determined whether the current distributed computing task needs to be executed by adding a second working node based on the running time, CPU usage, memory usage, etc. recorded in the working log. If necessary, the scheduling node can start the client process in the second working node in response to the task request sent by the second working node to improve the execution efficiency of the distributed computing task.

[0061] In some embodiments of the present specification, the method further includes: monitoring the running status of the first working node; in the case where the management end process fails to start, restarting the management end process in the first working node until the startup is successful or the number of startups exceeds a preset number. In the case where the management end process fails to start, the management end process can be restarted until the startup is successful or the number of startups reaches a preset number. In the case where the number of startups reaches a preset number, other first working nodes can be searched in the target node pool to start the management end process until success.

[0062] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For details, please refer to the description of the above-mentioned related processing related embodiments, and no further description is given here.

[0063] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0064] The above method is described below in conjunction with a specific embodiment. However, it should be noted that the specific embodiment is only for better illustrating the present specification and does not constitute an improper limitation on the present specification.

[0065] In this specific embodiment, a cluster scheduling method is provided, which can be applied to a rendering farm cluster scheduling system, namely, a Goldenfarm cluster scheduling system. In the Goldenfarm cluster scheduling system, a node pool for a third-party scheduling system is first set in its node management module. The node pool stores a list of working nodes that can be used for the third-party scheduling system. These working nodes can also exist in other node pools at the same time for use by other work tasks. In the Goldenfarm cluster scheduling system, different node pools are established for Vray distributed rendering and Context Capture scheduling systems.

[0066] The creation of a node pool is mainly to maintain a list of working nodes. The working nodes that can enter these lists must meet certain common characteristics, such as deploying Vray distributed rendering management and client software, or deploying Context Capture scheduling system management and client software, or having the same rendering software or renderer. Such characteristics are to meet the environmental requirements of specific work tasks.

[0067] When users submit jobs, they can select different node pools to submit jobs. The job can only be run by the worker nodes in the submitted node pool. During the operation of the worker node, software failures, hardware problems, or memory, storage or other conditions may not meet the requirements of the application. At this time, such nodes will not be able to receive the corresponding jobs.

[0068] When the Goldenfarm cluster scheduling system discovers work tasks from a third-party scheduling system, and there are work nodes in the node pools corresponding to these third-party scheduling systems requesting tasks, the Goldenfarm cluster scheduling system will first create a management process for the third-party scheduling system on the work node that first receives the work task according to the rules of the third-party scheduling system.

[0069] After starting the management process of the third-party scheduling system, the Goldenfarm cluster scheduling system will submit the job tasks to the third-party scheduling system in the manner required by the third-party scheduling system. After receiving the work tasks, these third-party scheduling systems will schedule the work nodes and allocate the work tasks in their own way.

[0070] After the third-party scheduling system management process starts normally and receives the work task, the Goldenfarm cluster scheduling system will arrange the next work node allocation task based on the log feedback of the third-party scheduling system management process.

[0071] When a working node in the node pool of the third-party scheduling system initiates a request to the Goldenfarm cluster scheduling system, the Goldenfarm cluster scheduling system will assign an instruction to start the third-party scheduling system client process to the working node. This instruction includes both the third-party scheduling system client process instruction to be started and the relevant information of the corresponding management end process, so that the management end and the client in the third-party scheduling system can interact normally.

[0072] At this point, the management process in the third-party scheduling system can manage and assign tasks to the new worker nodes that join its cluster scheduling. These scheduling methods vary. Some will wait until the required number of worker nodes is reached before starting the work task, while some will immediately assign and assign related jobs to the newly added nodes after the new worker nodes join. The jobs on these management nodes can be assigned to the worker nodes of these newly added management nodes.

[0073] When these working nodes are added to the third-party management cluster server, they start to render jobs according to the working mode of the management server. The progress and scheduling process of job rendering will be fed back to the Goldenfarm scheduling system through the third-party scheduling system log monitoring and scheduling. Goldenfarm will update the status of its own job running to its own system, and according to the job running situation, it can terminate the client system of the corresponding working node third-party scheduling program after the job running is completed. At the same time, it can also shut down the third-party scheduling management server or retain the management server according to a certain strategy.

[0074] The key point of this method of integrating a third-party scheduling system in Goldenfarm is to focus on the status requirements and operating status of the management nodes of the third-party scheduling system. In the actual operation process, the management node may also fail during operation. This failure rate factor may be hardware or software problems, or storage and environment variable problems. In terms of the status of the management node, its operating status must always be monitored to avoid allocating nodes to these third-party management scheduling systems when they are not ready;

[0075] Another thing to note is the special performance of the third-party scheduling system. For example, some scheduling systems have fixed requirements for running nodes at one time, and the application can only be started after all nodes have joined. In other scheduling systems, as long as a node joins, the task received by the node can be started.

[0076] After the task is completed, generally speaking, by ending the third-party scheduling system client program, these nodes can end the connection with the third-party scheduling system and be released, and no longer receive the job allocation method of the third-party scheduling system.

[0077] In the above solution, a basic framework is built on the Goldenfarm cluster scheduling system to flexibly schedule other third-party scheduling systems. Through this framework, working nodes can be automatically assigned to third-party scheduling systems. After the work tasks in the third-party scheduling system are completed, the working nodes can be automatically recovered to the Goldenfarm cluster scheduling system. This flexible cluster scheduling framework that integrates third-party scheduling systems can meet the needs of most third-party scheduling systems to be integrated into the Goldenfarm cluster scheduling system at any time. Through the above solution, the subsequent scheduling system can improve the scheduling capability, increase different business capabilities, and increase the scalability and compatibility of cluster scheduling, so that the scheduling system that cannot be supported by Goldenfarm can run stably.

[0078] Based on the same inventive concept, a cluster scheduling device is also provided in the embodiments of this specification, which is applied to the scheduling node in the rendering farm cluster scheduling system, and the rendering farm cluster scheduling system also includes multiple working nodes; the scheduling node stores a node list corresponding to each node pool in multiple node pools, and the node list corresponding to each node pool stores the node information of the working nodes suitable for the specified type of distributed computing, as described in the following embodiments. Since the principle of solving the problem by the cluster scheduling device is similar to that of the cluster scheduling method, the implementation of the cluster scheduling device can refer to the implementation of the cluster scheduling method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements the predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived. Figure 2 is a structural block diagram of a cluster scheduling device according to an embodiment of this specification, such as Figure 2 As shown, it includes: a receiving module 201, a first starting module 202 and a second starting module 203. The structure is described below.

[0079] The receiving module 201 is used to receive a distributed computing task submitted by a user terminal; the distributed computing task carries a node pool identifier and a distributed computing task type.

[0080] The first startup module 202 is used to search for the first working node of the requested task in the target node pool corresponding to the node pool identifier; send a first startup instruction to the first working node to start the management-end process corresponding to the distributed computing task type in the first working node; and if the management-end process is successfully started, send the distributed computing task to the first working node.

[0081] The second startup module 203 is used to respond to the task request sent by the second working node in the target node pool, send a second startup instruction to the second working node, so as to start the client process corresponding to the distributed computing task type in the second working node; the first working node performs node scheduling and task allocation on the second working node according to the preset scheduling rules to execute the distributed computing task.

[0082] In some embodiments of the present specification, the device also includes an analysis module, which can be used to: receive first log data returned by the first working node and second log data returned by the second working node; analyze the first log data and the second log data to schedule the first working node and the second working node according to the analysis results.

[0083] In some embodiments of the present specification, the first log data and the second log data are analyzed to schedule the first work node and the second work node according to the analysis results, including: determining whether the second work node has completed the assigned task based on the second log data returned by the second work node; when it is determined that the second work node has completed the assigned task, sending an end instruction to the second work node to end the client process running in the second work node and disconnect the communication connection between the second work node and the first work node.

[0084] In some embodiments of the present specification, the first log data and the second log data are analyzed to schedule the first working node and the second working node according to the analysis results, including: determining whether the distributed computing task is executed successfully based on the first log data returned by the first working node; and when it is determined that the distributed computing task is executed successfully, sending an end instruction to the first working node to end the management end process running in the first working node.

[0085] In some embodiments of the present specification, the first log data and the second log data are analyzed to schedule the first work node and the second work node according to the analysis results, including: determining whether it is necessary to add a second work node based on the first log data returned by the first work node and the second work log returned by the second work node; when it is determined that a second work node needs to be added, in response to the task request sent by the second work node, sending a second start instruction to the second work node to start the client process corresponding to the distributed computing task type in the second work node.

[0086] In some embodiments of the present specification, the first startup module can also be used to: monitor the running status of the first working node; if the management-end process fails to start, restart the management-end process in the first working node until the startup is successful or the number of startups exceeds a preset number.

[0087] In some embodiments of the present specification, the distributed computing task includes at least one of the following: a distributed rendering task and a three-dimensional reconstruction task.

[0088] From the above description, it can be seen that the embodiments of this specification achieve the following technical effects: a node pool for a scheduling system corresponding to different distributed operations is set in the rendering farm cluster, and the node list corresponding to the node pool can store working nodes that can be used for the designated type of distributed computing scheduling. The user end can submit a distributed computing task to the scheduling node and specify the node pool. The scheduling node can start the management end process corresponding to the distributed computing type in the first working node in the node pool, and start the client process corresponding to the distributed computing type in the second working node, so that the first working node and at least one second working node form a third-party scheduling system. The first working node can perform task allocation and scheduling on the second working node according to the preset scheduling rules corresponding to the distributed computing type, thereby realizing the integration of the third-party scheduling system in the rendering farm cluster, and can automatically allocate working nodes to the third-party scheduling system. After the distributed computing task in the third-party scheduling system is completed, the working node can be automatically recovered to the rendering farm cluster scheduling system. In this way, the cluster scheduling framework that can be flexibly integrated into the third-party scheduling system can meet the needs of most third-party scheduling systems to be integrated into the rendering farm cluster scheduling system at any time, can improve the scheduling capability, and increase different business capabilities. Through this cluster scheduling mode in this solution, the scalability and compatibility of cluster scheduling can be increased, so that the scheduling system that cannot be supported by the rendering farm cluster scheduling system can run stably.

[0089] This specification also provides a computer device, which can be found in Figure 3 The computer device structure diagram of the cluster scheduling method provided by the embodiment of this specification is shown, and the computer device may specifically include an input device 31, a processor 32, and a memory 33. Among them, the memory 33 is used to store processor executable instructions. When the processor 32 executes the instructions, the steps of the cluster scheduling method described in any of the above embodiments are implemented.

[0090] In this embodiment, the input device may specifically be one of the main devices for information exchange between the user and the computer system. The input device may include a keyboard, a mouse, a camera, a scanner, a light pen, a handwriting input board, a voice input device, etc.; the input device is used to input the original data and the program for processing these numbers into the computer. The input device can also obtain and receive data transmitted from other modules, units, and devices. The processor can be implemented in any appropriate manner. For example, the processor can take the form of a computer-readable medium, a logic gate, a switch, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable logic controller, and an embedded microcontroller, etc., such as a microprocessor or a processor and a computer-readable program code (such as software or firmware) that can be executed by the (micro) processor. The memory may specifically be a memory device used to store information in modern information technology. The memory may include multiple levels. In a digital system, anything that can store binary data can be a memory; in an integrated circuit, a circuit with a storage function without a physical form is also called a memory, such as a RAM, a FIFO, etc.; in a system, a storage device with a physical form is also called a memory, such as a memory stick, a TF card, etc.

[0091] In this embodiment, the functions and effects specifically realized by the computer device can be explained in comparison with other embodiments and will not be described in detail here.

[0092] The present specification also provides a computer storage medium based on the cluster scheduling method, wherein the computer storage medium stores computer program instructions, and when the computer program instructions are executed, the steps of the cluster scheduling method described in any of the above embodiments are implemented.

[0093] In this embodiment, the storage medium includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a cache, a hard disk (HDD) or a memory card. The memory may be used to store computer program instructions. The network communication unit may be an interface for network connection communication set in accordance with the standard specified by the communication protocol.

[0094] In this embodiment, the functions and effects specifically implemented by the program instructions stored in the computer storage medium can be explained in comparison with other embodiments and will not be repeated here.

[0095] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of this specification can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of this specification are not limited to any specific combination of hardware and software.

[0096] It should be understood that the above description is for illustration and not for limitation. Many embodiments and many applications beyond the examples provided will be apparent to those skilled in the art upon reading the above description. Therefore, the scope of this specification should not be determined with reference to the above description, but should be determined with reference to the preceding claims and the full scope of equivalents to which these claims belong.

[0097] The above description is only the preferred embodiment of this specification and is not intended to limit this specification. For those skilled in the art, the embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the protection scope of this specification.

Claims

1. A cluster scheduling method, characterized in that: A scheduling node applied to a rendering farm cluster scheduling system, wherein the rendering farm cluster scheduling system further comprises a plurality of working nodes; the scheduling node stores a node list corresponding to each of the plurality of node pools, wherein the node list corresponding to each of the node pools stores node information of working nodes applicable to a specified type of distributed computing; the method comprises: Receive a distributed computing task submitted by a user terminal; the distributed computing task carries a node pool identifier and a distributed computing task type; Searching for a first working node for a requested task in a target node pool corresponding to the node pool identifier; sending a first startup instruction to the first working node to start a management end process corresponding to the distributed computing task type in the first working node; and sending the distributed computing task to the first working node if the management end process is successfully started; In response to a task request sent by a second working node in the target node pool, a second startup instruction is sent to the second working node to start a client process corresponding to the distributed computing task type in the second working node; the first working node performs node scheduling and task allocation on the second working node according to preset scheduling rules to execute the distributed computing task.

2. The cluster scheduling method according to claim 1, characterized in that: Also includes: Receive first log data returned by the first working node and second log data returned by the second working node; The first log data and the second log data are analyzed to schedule the first working node and the second working node according to the analysis result.

3. The cluster scheduling method according to claim 2, characterized in that: Analyzing the first log data and the second log data to schedule the first working node and the second working node according to the analysis result includes: Determining whether the second working node has completed the assigned task based on the second log data returned by the second working node; When it is determined that the second working node has completed the assigned task, an end instruction is sent to the second working node to end the client process running in the second working node and disconnect the communication connection between the second working node and the first working node.

4. The cluster scheduling method according to claim 2, characterized in that: Analyzing the first log data and the second log data to schedule the first working node and the second working node according to the analysis result includes: Determining whether the distributed computing task is executed successfully based on the first log data returned by the first working node; When it is determined that the distributed computing task is executed successfully, an end instruction is sent to the first working node to end the management end process running in the first working node.

5. The cluster scheduling method according to claim 2, characterized in that: Analyzing the first log data and the second log data to schedule the first working node and the second working node according to the analysis result includes: Determine whether a second working node needs to be added based on the first log data returned by the first working node and the second working log returned by the second working node; When it is determined that a second working node needs to be added, in response to a task request sent by the second working node, a second start instruction is sent to the second working node to start a client process corresponding to the distributed computing task type in the second working node.

6. The cluster scheduling method according to claim 1, characterized in that: Also includes: Monitoring the running status of the first working node; In the event that the management end process fails to start, the management end process in the first working node is restarted until it is successfully started or the number of starts exceeds a preset number.

7. The cluster scheduling method according to claim 6, characterized in that: The distributed computing task includes at least one of the following: a distributed rendering task and a three-dimensional reconstruction task.

8. A cluster scheduling device, characterized in that: A scheduling node applied to a rendering farm cluster scheduling system, wherein the rendering farm cluster scheduling system further comprises a plurality of working nodes; the scheduling node stores a node list corresponding to each of the plurality of node pools, wherein the node list corresponding to each of the node pools stores node information of working nodes applicable to a specified type of distributed computing; the device comprises: A receiving module, used for receiving a distributed computing task submitted by a user terminal; the distributed computing task carries a node pool identifier and a distributed computing task type; A first startup module is used to search for a first working node of a request task in a target node pool corresponding to the node pool identifier; send a first startup instruction to the first working node to start a management end process corresponding to the distributed computing task type in the first working node; and send the distributed computing task to the first working node when the management end process is successfully started; A second startup module is used to respond to a task request sent by a second working node in the target node pool, send a second startup instruction to the second working node, so as to start a client process corresponding to the distributed computing task type in the second working node; the first working node performs node scheduling and task allocation on the second working node according to preset scheduling rules to execute the distributed computing task.

9. A computer device, characterized in that: The method comprises a processor and a memory for storing processor-executable instructions, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the instructions.

10. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.