CN116455962A - Node management method and system - Google Patents
Node management method and system Download PDFInfo
- Publication number
- CN116455962A CN116455962A CN202310443896.XA CN202310443896A CN116455962A CN 116455962 A CN116455962 A CN 116455962A CN 202310443896 A CN202310443896 A CN 202310443896A CN 116455962 A CN116455962 A CN 116455962A
- Authority
- CN
- China
- Prior art keywords
- node
- task
- sub
- target
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/54—Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请提供节点管理方法及系统,其中所述节点管理方法,应用于设备管理节点,包括:接收携带有节点属性信息的节点分配请求,其中,所述节点属性信息对应设备节点;将所述节点属性信息与子服务集合对应的筛选条件进行匹配;根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务;基于所述节点属性信息以及所述目标子服务的服务属性信息,建立所述设备节点和所述目标子服务之间的关联关系,并作为所述节点分配请求的响应。实现了根据设备节点自身的节点属性信息,为其匹配适合的目标子服务,以便使用该设备节点提供目标子服务对应的服务功能,不仅保障了目标子服务和设备节点之间的适配性,还保障了目标子服务的处理效率。
The present application provides a node management method and system, wherein the node management method is applied to a device management node, including: receiving a node allocation request carrying node attribute information, wherein the node attribute information corresponds to a device node; Match the attribute information with the filter conditions corresponding to the sub-service set; determine the target sub-service corresponding to the device node in the sub-service set according to the matching result; based on the node attribute information and the service attribute information of the target sub-service , establishing an association relationship between the device node and the target sub-service, and serving as a response to the node allocation request. According to the node attribute information of the device node itself, it is matched with the appropriate target sub-service, so that the device node can be used to provide the service function corresponding to the target sub-service, which not only ensures the adaptability between the target sub-service and the device node, The processing efficiency of the target sub-service is also guaranteed.
Description
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种节点管理方法。本申请同时涉及一种节点管理系统,一种包构建系统,一种包构建方法,一种计算设备,以及一种计算机可读存储介质。The present application relates to the field of computer technology, in particular to a node management method. The present application also relates to a node management system, a package construction system, a package construction method, a computing device, and a computer-readable storage medium.
背景技术Background technique
随着互联网技术的发展,企业大多都采用智能设备提供计算服务。而企业中所持有的智能设备的计算资源可能存在巨大差别。比如,一些智能设备的处理器是4核,而另外一些智能设备的处理器是16核。此外,可能一些智能设备的磁盘容量是2T,而另外一些智能设备的磁盘容量为500G。目前,为了使这些智能设备的计算资源得到合理的利用,通常由人工指定这些智能设备的用途,从而导致人力成本的增加,因此,亟需一种解决上述问题的技术方案。With the development of Internet technology, most enterprises use smart devices to provide computing services. However, there may be huge differences in the computing resources of smart devices held in enterprises. For example, the processor of some smart devices has 4 cores, while the processor of other smart devices has 16 cores. In addition, the disk capacity of some smart devices may be 2T, while the disk capacity of other smart devices is 500G. At present, in order to make reasonable use of the computing resources of these smart devices, the usage of these smart devices is usually specified manually, resulting in an increase in labor costs. Therefore, a technical solution to solve the above problems is urgently needed.
发明内容Contents of the invention
有鉴于此,本申请实施例提供了一种节点管理方法,以解决现有技术中存在的技术缺陷。本申请实施例同时提供了一种节点管理系统,一种包构建系统,一种包构建方法,一种计算设备,以及一种计算机可读存储介质。In view of this, the embodiment of the present application provides a node management method to solve technical defects in the prior art. Embodiments of the present application also provide a node management system, a package construction system, a package construction method, a computing device, and a computer-readable storage medium.
根据本申请实施例的第一方面,提供了一种节点管理方法,应用于设备管理节点,包括:According to the first aspect of the embodiments of the present application, a node management method is provided, which is applied to a device management node, including:
接收携带有节点属性信息的节点分配请求,其中,所述节点属性信息对应设备节点;receiving a node allocation request carrying node attribute information, wherein the node attribute information corresponds to a device node;
将所述节点属性信息与子服务集合对应的筛选条件进行匹配;Matching the node attribute information with the filter conditions corresponding to the sub-service set;
根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务;determining a target sub-service corresponding to the device node in the sub-service set according to the matching result;
基于所述节点属性信息以及所述目标子服务的服务属性信息,建立所述设备节点和所述目标子服务之间的关联关系,并作为所述节点分配请求的响应。Based on the node attribute information and the service attribute information of the target sub-service, establish an association relationship between the device node and the target sub-service, and use it as a response to the node allocation request.
根据本申请实施例的第二方面,提供了一种节点管理系统,包括:According to a second aspect of the embodiments of the present application, a node management system is provided, including:
注册节点和设备管理节点;Registration node and device management node;
其中,所述注册节点,被配置为接收设备节点提交的节点属性信息,基于所述节点属性信息构建节点分配请求,将所述节点分配请求发送至所述设备管理节点;Wherein, the registration node is configured to receive node attribute information submitted by the device node, construct a node assignment request based on the node attribute information, and send the node assignment request to the device management node;
所述设备管理节点,被配置为接收携带有节点属性信息的节点分配请求,将所述节点属性信息与子服务集合对应的筛选条件进行匹配;根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务;基于所述节点属性信息以及所述目标子服务的服务属性信息,建立所述设备节点和所述目标子服务之间的关联关系,并作为所述节点分配请求的响应。The device management node is configured to receive a node allocation request carrying node attribute information, match the node attribute information with the filter conditions corresponding to the sub-service set; determine the sub-service set according to the matching result The target sub-service corresponding to the device node; based on the node attribute information and the service attribute information of the target sub-service, establish an association relationship between the device node and the target sub-service, and use it as the node allocation request response.
根据本申请实施例的第三方面,提供了一种包构建系统,包括:According to a third aspect of the embodiments of the present application, a package construction system is provided, including:
目标任务调度节点、设备管理节点、目标任务处理节点以及目标任务聚合节点,Target task scheduling node, device management node, target task processing node and target task aggregation node,
其中,所述目标任务调度节点,被配置为接收发布包构建任务,并将所述发布包构建任务拆分为构建子任务,并基于所述构建子任务构建任务调度请求,将所述任务调度请求发送至所述设备管理节点;Wherein, the target task scheduling node is configured to receive the release package construction task, split the release package construction task into construction subtasks, and schedule the task scheduling based on the construction subtask construction task scheduling request. sending the request to the device management node;
所述设备管理节点,被配置为响应于所述任务调度请求,确定所述构建子任务对应的目标任务处理节点,并将所述目标任务处理节点的处理节点标识信息发送至所述目标任务调度节点,其中,所述目标任务处理节点为在子服务集合中任务处理子服务关联的任务处理节点集合中确定的,所述任务处理子服务为根据所述目标任务处理节点的节点属性信息与所述子服务集合对应的筛选条件的匹配结果,在所述子服务集合中确定的;The device management node is configured to, in response to the task scheduling request, determine the target task processing node corresponding to the construction subtask, and send the processing node identification information of the target task processing node to the target task scheduling node, wherein the target task processing node is determined in the task processing node set associated with the task processing sub-service in the sub-service set, and the task processing sub-service is determined according to the node attribute information of the target task processing node and the The matching result of the filter condition corresponding to the sub-service set is determined in the sub-service set;
所述目标任务调度节点,还被配置为基于所述处理节点标识信息,将所述发布包构建任务对应的构建子任务发送至所述目标任务处理节点;The target task scheduling node is further configured to send the construction subtask corresponding to the release package construction task to the target task processing node based on the processing node identification information;
所述目标任务处理节点,被配置为拉取所述构建子任务对应的子发布文件集合,将所述子发布文件集合推送至所述目标任务聚合节点;The target task processing node is configured to pull the sub-release file set corresponding to the construction sub-task, and push the sub-release file set to the target task aggregation node;
所述目标任务聚合节点,被配置为基于接收的所述子发布文件集合构建所述发布包构建任务对应的目标发布包。The target task aggregation node is configured to construct a target release package corresponding to the release package construction task based on the received sub-release file set.
根据本申请实施例的第四方面,提供了一种包构建方法,包括:According to a fourth aspect of the embodiments of the present application, a package construction method is provided, including:
接收发布包构建任务,将所述发布包构建任务拆分为构建子任务;receiving a release package construction task, and splitting the release package construction task into construction subtasks;
确定所述构建子任务对应的目标任务处理节点,并将所述构建子任务发送至所述目标任务处理节点,其中,所述目标任务处理节点为在子服务集合中任务处理子服务关联的任务处理节点集合中确定的,所述任务处理子服务为根据所述目标任务处理节点的节点属性信息与所述子服务集合对应的筛选条件的匹配结果,在所述子服务集合中确定的;Determine the target task processing node corresponding to the construction subtask, and send the construction subtask to the target task processing node, wherein the target task processing node is a task associated with the task processing subservice in the subservice set The task processing sub-service is determined in the sub-service set according to the matching result of the node attribute information of the target task processing node and the filter condition corresponding to the sub-service set;
接收所述目标任务处理节点基于所述构建子任务返回的子发布文件集合;receiving the sub-release file set returned by the target task processing node based on the construction sub-task;
基于所述子发布文件集合构建所述发布包构建任务对应的目标发布包。A target release package corresponding to the release package construction task is constructed based on the set of sub-release files.
根据本申请实施例的第五方面,提供了一种计算设备,包括:According to a fifth aspect of the embodiments of the present application, a computing device is provided, including:
存储器和处理器;memory and processor;
所述存储器用于存储计算机可执行指令,所述处理器执行所述计算机可执行指令时实现所述节点管理方法的步骤。The memory is used to store computer-executable instructions, and the processor implements the steps of the node management method when executing the computer-executable instructions.
根据本申请实施例的第六方面,提供了一种计算机可读存储介质,其存储有计算机可执行指令,该指令被处理器执行时实现所述节点管理方法或包构建方法的步骤。According to a sixth aspect of the embodiments of the present application, there is provided a computer-readable storage medium, which stores computer-executable instructions, and implements the steps of the node management method or the package construction method when the instructions are executed by a processor.
根据本申请实施例的第七方面,提供了一种芯片,其存储有计算机程序,该计算机程序被芯片执行时实现所述节点管理方法或包构建方法的步骤。According to a seventh aspect of the embodiments of the present application, there is provided a chip, which stores a computer program, and when the computer program is executed by the chip, implements the steps of the node management method or the package construction method.
本申请提供的节点管理方法,为了使设备节点得到合理的利用,通过接收携带有节点属性信息的节点分配请求,其中,节点属性信息对应设备节点,将节点属性信息与子服务集合对应的筛选条件进行匹配,再根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务,实现了根据设备节点自身的节点属性信息,为其匹配适合的目标子服务;并基于节点属性信息以及目标子服务的服务属性信息,建立设备节点和所述目标子服务之间的关联关系,并作为节点分配请求的响应,以便使用该设备节点提供目标子服务对应的服务功能,不仅保障了目标子服务和设备节点之间的适配性,还保障了目标子服务的处理效率。The node management method provided by this application, in order to make the device nodes be reasonably utilized, receives node allocation requests carrying node attribute information, wherein the node attribute information corresponds to the device node, and the filter conditions corresponding to the node attribute information and the sub-service set Perform matching, and then determine the target sub-service corresponding to the device node in the sub-service set according to the matching result, so as to match the appropriate target sub-service for it according to the node attribute information of the device node itself; and based on the node attribute information And the service attribute information of the target sub-service, establish the association relationship between the device node and the target sub-service, and use it as a response to the node allocation request, so that the device node can be used to provide the service function corresponding to the target sub-service, which not only ensures the target The adaptability between sub-services and device nodes also ensures the processing efficiency of target sub-services.
附图说明Description of drawings
图1是本申请一实施例提供的一种节点管理方法的示意图;FIG. 1 is a schematic diagram of a node management method provided by an embodiment of the present application;
图2是本申请一实施例提供的一种节点管理方法的流程图;FIG. 2 is a flow chart of a node management method provided by an embodiment of the present application;
图3是本申请一实施例提供的一种节点管理系统的结构示意图;Fig. 3 is a schematic structural diagram of a node management system provided by an embodiment of the present application;
图4是本申请一实施例提供的一种节点管理系统中发布包构建任务的系统架构图;FIG. 4 is a system architecture diagram of a release package construction task in a node management system provided by an embodiment of the present application;
图5是本申请一实施例提供的一种包构建系统的结构示意图;Fig. 5 is a schematic structural diagram of a package construction system provided by an embodiment of the present application;
图6是本申请一实施例提供的一种包构建方法的流程图;Fig. 6 is a flow chart of a package construction method provided by an embodiment of the present application;
图7是本申请一实施例提供的一种计算设备的结构框图。Fig. 7 is a structural block diagram of a computing device provided by an embodiment of the present application.
具体实施方式Detailed ways
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。In the following description, numerous specific details are set forth in order to provide a thorough understanding of the application. However, the present application can be implemented in many other ways different from those described here, and those skilled in the art can make similar promotions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.
在本申请一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请一个或多个实施例。在本申请一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本申请一个或多个实施例中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。Terms used in one or more embodiments of the present application are for the purpose of describing specific embodiments only, and are not intended to limit the one or more embodiments of the present application. As used in one or more embodiments of this application and the appended claims, the singular forms "a", "the", and "the" are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and/or" used in one or more embodiments of the present application refers to and includes any and all possible combinations of one or more associated listed items.
应当理解,尽管在本申请一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second, and similarly, second may also be referred to as first, without departing from the scope of one or more embodiments of the present application.
在本申请中,提供了一种节点管理方法。本申请同时涉及一种节点管理系统,一种包构建系统,一种包构建方法,一种计算设备,以及一种计算机可读存储介质,在下面的实施例中逐一进行详细说明。In this application, a node management method is provided. The present application also relates to a node management system, a package construction system, a package construction method, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
参见图1,本说明书实施例,为了使设备节点得到合理的利用,通过接收携带有节点属性信息的节点分配请求,其中,节点属性信息对应设备节点,将节点属性信息与子服务集合对应的筛选条件进行匹配,再根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务,实现了根据设备节点自身的节点属性信息,为其匹配适合的目标子服务;并基于节点属性信息以及目标子服务的服务属性信息,建立设备节点和所述目标子服务之间的关联关系,并作为节点分配请求的响应,以便使用该设备节点提供目标子服务对应的服务功能,不仅保障了目标子服务和设备节点之间的适配性,还保障了目标子服务的处理效率。Referring to Fig. 1, the embodiment of this specification, in order to make the device nodes be reasonably utilized, by receiving the node allocation request carrying the node attribute information, wherein the node attribute information corresponds to the device node, the node attribute information and the corresponding screening of the sub-service set Match the conditions, and then determine the target sub-service corresponding to the device node in the sub-service set according to the matching result, so as to match the appropriate target sub-service for it according to the node attribute information of the device node itself; and based on the node attribute Information and the service attribute information of the target sub-service, establish the association relationship between the device node and the target sub-service, and serve as a response to the node allocation request, so that the device node can be used to provide the service function corresponding to the target sub-service, which not only guarantees The adaptability between the target sub-service and the device node also ensures the processing efficiency of the target sub-service.
图2示出了根据本申请一实施例提供的一种节点管理方法的流程图,具体包括以下步骤:FIG. 2 shows a flow chart of a node management method provided according to an embodiment of the present application, which specifically includes the following steps:
步骤202:接收携带有节点属性信息的节点分配请求,其中,所述节点属性信息对应设备节点。Step 202: Receive a node allocation request carrying node attribute information, wherein the node attribute information corresponds to a device node.
具体的,所述节点属性信息,是指用以描述设备节点的相关信息,比如设备标识信息、操作系统信息(比如Windows\Mac\Linux等),处理器信息、内存信息、磁盘信息等。相应的,设备节点,可以是笔记本电脑、台式机、平板电脑等智能设备。节点分配请求,是指用以将设备节点分配至子服务,使其提供某种服务的请求。比如将设备节点分配给子服务A,则表示使用该设备节点提供子服务A对应的服务功能。Specifically, the node attribute information refers to relevant information used to describe a device node, such as device identification information, operating system information (such as Windows\Mac\Linux, etc.), processor information, memory information, disk information, and the like. Correspondingly, the device node may be a smart device such as a laptop computer, a desktop computer, and a tablet computer. A node allocation request refers to a request for allocating a device node to a sub-service so that it can provide a certain service. For example, assigning a device node to sub-service A means that the device node is used to provide the service function corresponding to sub-service A.
实际应用中,由于企业中通常包含多台智能设备,这些智能设备可能是员工的工作电脑、也可能是机房的服务器,此外,还可以是其他闲置的智能设备。为了更好地利用这些设备资源,可以将智能设备作为设备节点,并基于设备节点的节点属性信息生成节点分配请求,发送至设备管理节点。其中,设备管理节点,是指对分布式的设备节点提供设备管理服务的智能设备。实际应用中,设备管理节点可以为一个也可以为多个,在此不做限制。In practical applications, since an enterprise usually contains multiple smart devices, these smart devices may be employees' work computers, servers in the computer room, or other idle smart devices. In order to make better use of these device resources, the smart device can be used as a device node, and a node allocation request is generated based on the node attribute information of the device node and sent to the device management node. Wherein, the device management node refers to an intelligent device that provides device management services to distributed device nodes. In practical applications, there may be one or more device management nodes, which is not limited here.
具体实施时,可以由设备节点直接提交节点分配请求,还可以通过注册节点向设备管理节点发送节点分配请求,该节点分配请求也可以理解为节点注册请求。其中,注册节点,是指用以将设备节点注册到设备管理节点的智能设备。注册节点接收设备节点提交的节点属性信息,并基于该节点属性信息构建节点分配请求,将该节点分配请求发送至设备管理节点,节点分配请求中携带设备节点的节点属性信息。之后设备管理节点接收携带节点属性信息的节点分配请求。During specific implementation, the node allocation request may be directly submitted by the device node, or the node allocation request may be sent to the device management node through the registration node, and the node allocation request may also be understood as a node registration request. Wherein, the registration node refers to an intelligent device used to register the device node to the device management node. The registration node receives the node attribute information submitted by the device node, constructs a node assignment request based on the node attribute information, and sends the node assignment request to the device management node, and the node assignment request carries the node attribute information of the device node. Afterwards, the device management node receives the node assignment request carrying the node attribute information.
比如:接收设备节点SERVER1的节点属性信息info,该节点属性信息info包括:设备名称SERVER1,操作系统Windows,处理器16核,磁盘容量4T。For example: receiving node attribute information info of device node SERVER1, the node attribute information info includes: device name SERVER1, operating system Windows, processor 16 cores, disk capacity 4T.
步骤204:将所述节点属性信息与子服务集合对应的筛选条件进行匹配。Step 204: Match the node attribute information with the filter condition corresponding to the sub-service set.
具体的,在上述接收节点分配请求的基础上,为了保障对设备节点分配的合理性,本说明书实施例中,将节点属性信息与子服务集合对应的筛选条件匹配,以便确定设备节点适配的子服务。Specifically, on the basis of receiving the node assignment request above, in order to ensure the rationality of the device node assignment, in the embodiment of this specification, the node attribute information is matched with the filter conditions corresponding to the sub-service set, so as to determine the device node adaptation subservice.
其中,子服务集合,是指与设备管理节点对应的任务关联的子服务组成的集合。假设任务为计算任务,子服务集合可以包括:计算拆分子服务、计算执行服务、计算结果子服务等。假设任务为发布包构建任务,子服务集合中可以包括:任务调度子服务、任务处理子服务、任务聚合子服务、任务回溯子服务、任务安全子服务等。筛选条件,是指子服务集合中子服务对应的筛选条件。比如任务处理子服务是用以进行任务处理的子服务,其对于处理器的要求较高,则任务处理子服务对应的筛选条件可以为处理器:大于8核。比如任务聚合子服务,是用以进行产物聚合的子服务,其对于磁盘容量的要求较高,则任务聚合子服务的筛选条件可以为磁盘容量:大于2T。Wherein, the set of sub-services refers to a set of sub-services associated with tasks corresponding to the device management node. Assuming that the task is a computing task, the set of sub-services may include: computing splitting sub-service, computing execution service, computing result sub-service, etc. Assuming that the task is a release package construction task, the sub-service set may include: task scheduling sub-service, task processing sub-service, task aggregation sub-service, task backtracking sub-service, task security sub-service, etc. The filter condition refers to the filter condition corresponding to the sub-service in the sub-service set. For example, the task processing sub-service is a sub-service for task processing, which has high requirements on processors, and the filter condition corresponding to the task processing sub-service may be processor: greater than 8 cores. For example, the task aggregation sub-service is a sub-service for product aggregation, which has high requirements for disk capacity, so the filter condition of the task aggregation sub-service can be disk capacity: greater than 2T.
需要说明的是,子服务集合中可能包括至少两个子服务,因此,将节点属性信息与子服务集合对应的筛选条件进行匹配,需要将节点属性信息依次与各个子服务的筛选条件进行匹配。此外,子服务的筛选条件可以是多个,在筛选条件为多个的情况下,可以将节点属性信息依次与各个筛选条件进行匹配,并在节点属性信息匹配全部的筛选条件的情况下,确定设备节点与该子服务的匹配结果为匹配;若任意一个匹配结果为不匹配的情况下,确定设备节点与该子服务的匹配结果为不匹配。It should be noted that the sub-service set may include at least two sub-services. Therefore, matching the node attribute information with the filter conditions corresponding to the sub-service set requires matching the node attribute information with the filter conditions of each sub-service in turn. In addition, there may be multiple filter conditions for sub-services. If there are multiple filter conditions, the node attribute information may be matched with each filter condition in turn, and when the node attribute information matches all the filter conditions, determine The matching result of the device node and the sub-service is a match; if any matching result is a mismatch, it is determined that the matching result of the device node and the sub-service is a mismatch.
进一步的,为了简化匹配过程,使匹配过程标准化,可以根据节点属性信息为设备节点进行打标处理,具体实施时,确定节点属性信息的属性类型对应的标签类型,并确定节点属性信息对应的标签类型对应的标签信息。再确定基于子服务集合中子服务的筛选条件对应的目标标签类型,并将目标标签类型对应的标签信息与筛选条件进行匹配。具体的,匹配过程,可以理解为判断标签内容是否满足筛选条件,若满足,则表明节点属性信息与筛选节点匹配,若不满足,则表明节点属性信息与筛选节点不匹配。Further, in order to simplify the matching process and standardize the matching process, the device node can be marked according to the node attribute information. During specific implementation, the label type corresponding to the attribute type of the node attribute information is determined, and the label corresponding to the node attribute information is determined The label information corresponding to the type. Then determine the target label type corresponding to the filter condition based on the sub-service in the sub-service set, and match the label information corresponding to the target label type with the filter condition. Specifically, the matching process can be understood as judging whether the label content satisfies the screening condition. If yes, it indicates that the node attribute information matches the screening node. If not, it indicates that the node attribute information does not match the screening node.
沿用上例,基于设备节点SERVER1的节点属性信息info,为该设备节点SERVER1添加操作系统标签,该操作系统标签的标签信息为Windows,为该设备节点SERVER1添加处理器标签,该处理器标签的标签信息为16核,并为该设备节点SERVER1添加磁盘容量标签,该磁盘容量标签的标签信息为500G。而子服务集合中任务处理子服务的筛选条件为处理器大于8核,该筛选条件对应的目标标签类型为处理器标签,则将处理器标签的标签信息与筛选条件进行匹配,由于16核大于8核,因此,确定节点属性信息info与任务处理子服务的筛选条件的匹配结果为匹配。Following the above example, add an operating system label to the device node SERVER1 based on the node attribute information info of the device node SERVER1. The label information of the operating system label is Windows, and add a processor label to the device node SERVER1. The label of the processor label The information is 16 cores, and a disk capacity label is added to the device node SERVER1, and the label information of the disk capacity label is 500G. In the sub-service set, the filter condition of the task processing sub-service is that the processor is greater than 8 cores, and the target label type corresponding to the filter condition is a processor label. 8 cores, therefore, it is determined that the matching result of the node attribute information info and the filter condition of the task processing sub-service is a match.
步骤206:根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务。Step 206: Determine the target sub-service corresponding to the device node in the sub-service set according to the matching result.
具体的,在上述将节点属性信息与子服务集合对应的筛选条件的匹配的基础上,根据匹配结果,即可确定设备节点适配的子服务,即目标子服务。Specifically, on the basis of matching the above-mentioned filter conditions corresponding to the node attribute information and the sub-service set, according to the matching result, the sub-service adapted to the device node, that is, the target sub-service can be determined.
具体实施时,将匹配结果为匹配的筛选条件对应的子服务确定为设备节点对应的目标子服务,并忽略匹配结果为不匹配的筛选条件即可。During specific implementation, the sub-service corresponding to the filter condition whose matching result is matched is determined as the target sub-service corresponding to the device node, and the filter condition whose matching result is not matched is ignored.
沿用上例,确定节点属性信息info与任务处理子服务的筛选条件的匹配结果为匹配情况下,将任务处理子服务确定为设备节点SERVER1对应的目标子服务。Following the above example, when it is determined that the matching result of the node attribute information info and the filter condition of the task processing sub-service is a match, the task processing sub-service is determined as the target sub-service corresponding to the device node SERVER1.
实际应用中,在确定设备节点对应的目标子服务的基础上,考虑到该设备节点中可能并未安装或启动该目标子服务对应的服务程序,因此无法提供该目标子服务相应的服务功能,因此,本说明书实施例中,所述根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务之后,还包括:In practical applications, on the basis of determining the target sub-service corresponding to the device node, considering that the service program corresponding to the target sub-service may not be installed or started in the device node, so the corresponding service function of the target sub-service cannot be provided, Therefore, in the embodiment of this specification, after determining the target sub-service corresponding to the device node in the sub-service set according to the matching result, it further includes:
向所述设备节点发送所述目标子服务对应的服务启动脚本;sending a service startup script corresponding to the target sub-service to the device node;
在接收到所述设备节点响应于所述服务启动脚本发送的启动成功信息的情况下,执行下述步骤208。In case of receiving the startup success information sent by the device node in response to the service startup script, the following step 208 is executed.
具体的,服务启动脚本,是指用以启动目标子服务对应的服务程序的脚本。实际应用中,若设备节点中已经安装目标子服务对应的服务程序,则该服务启动脚本则为启动该服务程序的脚本;若设备节点中未安装目标子服务对应的服务程序,则该服务启动脚本运行时,包括对应用程序的安装以及启动。Specifically, the service startup script refers to a script used to start a service program corresponding to a target sub-service. In practical applications, if the service program corresponding to the target sub-service has been installed in the device node, the service startup script is the script to start the service program; if the service program corresponding to the target sub-service is not installed in the device node, the service starts When the script runs, it includes installing and starting the application.
基于此,在确定设备节点对应的目标子服务的基础上,为了使设备节点具备提供该目标子服务的能力,向该设备节点发送目标子服务对应的服务启动脚本。设备节点接收该服务启动脚本,并通过运行该服务启动脚本,启动目标子服务对应的应用程序,并在该应用程序启动成功的情况下,表明设备节点已经具备提供目标子服务的能力,则执行下述步骤208。Based on this, on the basis of determining the target sub-service corresponding to the device node, in order to enable the device node to provide the target sub-service, a service startup script corresponding to the target sub-service is sent to the device node. The device node receives the service startup script, and by running the service startup script, starts the application corresponding to the target sub-service, and if the application starts successfully, it indicates that the device node has the ability to provide the target sub-service, then execute Step 208 described below.
沿用上例,在将任务处理子服务确定为设备节点SERVER1对应的目标子服务的基础上,将任务处理子服务对应的服务启动脚本发送至设备节点SERVER1,设备节点SERVER1运行该服务启动脚本,并通过服务启动脚本完成目标子服务对应的应用程序的启动之后,向设备管理节点发送启动成功信息,设备管理节点接收到该启动成功信息的情况下,执行下述步骤208。Following the above example, on the basis of determining the task processing sub-service as the target sub-service corresponding to the device node SERVER1, send the service startup script corresponding to the task processing sub-service to the device node SERVER1, and the device node SERVER1 runs the service startup script, and After the application program corresponding to the target sub-service is started through the service startup script, the startup success information is sent to the device management node. When the device management node receives the startup success information, the following step 208 is executed.
综上,通过向设备节点发送目标子服务的服务启动脚本,并在设备节点启动成功的情况下,再进行设备节点的分配,保障了分配后的设备节点具有目标子服务的服务功能,并保障了服务运行的稳定性。In summary, by sending the service startup script of the target sub-service to the device node, and when the device node is successfully started, the device node is allocated, which ensures that the allocated device node has the service function of the target sub-service, and guarantees stability of service operation.
步骤208:基于所述节点属性信息以及所述目标子服务的服务属性信息,建立所述设备节点和所述目标子服务之间的关联关系,并作为所述节点分配请求的响应。Step 208: Based on the node attribute information and the service attribute information of the target sub-service, establish an association relationship between the device node and the target sub-service, and use it as a response to the node assignment request.
具体的,在上述确定设备节点对应的目标子服务的基础上,进一步建立设备节点和目标子服务之间的关联关系,以便设备管理节点基于该关联关系,为设备节点分配该目标子服务对应的相关任务。Specifically, on the basis of determining the target sub-service corresponding to the device node, further establish an association relationship between the device node and the target sub-service, so that the device management node can assign the device node the corresponding target sub-service based on the association relationship. related tasks.
其中,服务属性信息,是指目标子服务相关的信息。该服务属性信息可以是目标子服务的服务名称、服务编号等。进一步的,建立设备节点和目标子服务之间的关联关系,可以是将设备标识信息添加至服务标识信息的下级展示目录中。也可以是建立二者之间的对应关系表等,在此不做限制。Wherein, the service attribute information refers to information related to the target sub-service. The service attribute information may be the service name, service number, etc. of the target sub-service. Further, establishing the association relationship between the device node and the target sub-service may be adding the device identification information to the lower-level display directory of the service identification information. It may also be to establish a correspondence table between the two, etc., which is not limited here.
考虑到设备节点可能出现故障,为了避免影响目标子服务的正常运行,需要及时获知设备节点的节点状态,并避免异常的设备节点继续被分配其对应子服务相关的任务,本说明书实施例中,所述节点管理任务,还可以通过如下两种方式,实现对设备节点状态检测:Considering that the device node may fail, in order to avoid affecting the normal operation of the target sub-service, it is necessary to know the node status of the device node in time, and to prevent abnormal device nodes from continuing to be assigned tasks related to their corresponding sub-services. In the embodiment of this specification, The node management task can also detect the status of the device node in the following two ways:
方式一:向所述设备节点发送状态检测指令,并接收所述状态检测指令对应的检测信息,在所述检测信息为异常检测信息的情况下,响应于所述异常检测信息删除所述关联关系。Mode 1: Send a state detection instruction to the device node, and receive detection information corresponding to the state detection instruction, and delete the association relationship in response to the abnormal detection information when the detection information is abnormal detection information .
具体的,状态检测指令,是指用以检测设备节点健康状态的指令,该状态检测指令,可以是ping命令,也可以是触发设备节点进行状态检测的指令等,在此不做限制。相应的,检测信息,是指执行状态检测指令的返回信息。异常检测信息,表明设备节点出现异常或故障的信息。若检测信息中存在报错信息或其他非正常信息的情况下,则将检测信息确定为异常检测信息。Specifically, the status detection instruction refers to an instruction used to detect the health status of the device node. The status detection instruction may be a ping command, or an instruction to trigger the device node to perform status detection, etc., which is not limited here. Correspondingly, the detection information refers to information returned by executing the status detection instruction. Abnormality detection information, which indicates that the device node is abnormal or faulty. If there is error information or other abnormal information in the detection information, the detection information is determined as abnormal detection information.
基于此,完成设备节点的服务分配的基础上,为了保障服务的可持续性,可以按照预设的时间周期,向设备节点发送状态检测指令,以便周期性地获取设备节点的状态情况。并在检测信息为异常检测信息的情况下,删除设备节点和目标子服务之间的关联关系,即表明将该设备节点从目标子服务中移除,使其不再提供目标子服务对应的服务功能。Based on this, on the basis of completing the service allocation of the device nodes, in order to ensure the sustainability of the service, a status detection command can be sent to the device nodes according to the preset time period, so as to periodically obtain the status of the device nodes. And when the detection information is abnormal detection information, deleting the association relationship between the device node and the target sub-service means removing the device node from the target sub-service so that it no longer provides the service corresponding to the target sub-service Function.
比如:向设备节点SERVER1发送ping命令,并接收到该ping命令对应的超时信息,由于该超时信息表明设备节点SERVER1出现网络故障,即该超时信息为异常检测信息,因此,删除设备节点SERVER1和任务处理子服务之间的关联关系。For example: send a ping command to the device node SERVER1, and receive the timeout information corresponding to the ping command, because the timeout information indicates that the device node SERVER1 has a network failure, that is, the timeout information is abnormal detection information, therefore, delete the device node SERVER1 and the task Handle the relationship between sub-services.
方式二:接收所述设备节点上报的异常上报信息,响应于所述异常上报信息删除所述关联关系。Mode 2: receiving the abnormal reporting information reported by the device node, and deleting the association relationship in response to the abnormal reporting information.
具体的,异常上报信息,是指设备节点向设备管理节点发送的异常信息,实际应用中,在对设备节点完成分配后,将保持其与节点管理节点的长连接,以便处理来自双方的健康检查及异常反馈。Specifically, the abnormal reporting information refers to the abnormal information sent by the device node to the device management node. In practical applications, after the allocation of the device node is completed, it will maintain a long connection with the node management node in order to process health checks from both parties and abnormal feedback.
比如:接收设备节点SERVER1上报的内存异常信息,则响应于该内存异常信息删除设备节点SERVER1和任务处理子服务之间的关联关系。For example, after receiving the memory exception information reported by the device node SERVER1, the relationship between the device node SERVER1 and the task processing sub-service is deleted in response to the memory exception information.
综上,通过主动和/或被动的方式对设备节点进行状态监控,并在确定设备节点出现异常或故障的情况下,删除设备节点和目标子服务之间的关联关系,保障了目标子服务的稳定性,并减少了子服务功能处理异常的情况。In summary, the state monitoring of the device node is carried out in an active and/or passive manner, and when the device node is determined to be abnormal or faulty, the association between the device node and the target sub-service is deleted, which ensures the integrity of the target sub-service. Stability, and reduce the exception handling of sub-service functions.
在完成设备节点的分配的基础上,设备节点即可在任务执行过程中提供相应的子服务功能,本说明书实施例中,对于发布包构建任务的处理具体包括如下步骤:On the basis of completing the allocation of device nodes, the device nodes can provide corresponding sub-service functions during the task execution process. In the embodiment of this specification, the processing of the release package construction task specifically includes the following steps:
步骤20802:接收发布包构建任务关联的调度节点请求,基于所述调度节点请求在所述子服务集合中任务调度子服务关联的任务调度节点集合中确定目标任务调度节点。Step 20802: Receive the scheduling node request associated with the release package construction task, and determine the target task scheduling node in the task scheduling node set associated with the task scheduling sub-service in the sub-service set based on the scheduling node request.
具体的,发布包构建任务,是指用以构建发布包的任务。其中,发布包,可以是应用程序的发布包(比如游戏程序的发布包、视频程序的发布包等)或资源的发布包(比如教育资源的发布包、演讲资源的发布包等)。相应的,调度节点请求,是指用以申请任务调度节点的请求。Specifically, the task of building a release package refers to a task for building a release package. Wherein, the release package may be an application release package (such as a game program release package, a video program release package, etc.) or a resource release package (such as an education resource release package, a speech resource release package, etc.). Correspondingly, the scheduling node request refers to a request for applying for a task scheduling node.
任务调度子服务,是指用以对发布包构建任务进行拆分以及发起任务调度请求的子服务。相应的,任务调度节点集合,是指由至少一个任务调度节点组成的集合。其中,任务调度节点是指用以提供任务调度子服务的设备节点。目标任务调度节点,是指用以为该发布包构建任务提供任务调度子服务的设备节点。The task scheduling sub-service refers to the sub-service for splitting the release package construction task and initiating a task scheduling request. Correspondingly, the task scheduling node set refers to a set composed of at least one task scheduling node. Wherein, the task scheduling node refers to a device node for providing task scheduling sub-services. The target task scheduling node refers to the device node used to provide task scheduling sub-services for the release package construction task.
步骤20804:将所述目标任务调度节点的调度节点标识信息发送至所述调度节点请求对应的任务请求节点。Step 20804: Send the scheduling node identification information of the target task scheduling node to the task requesting node corresponding to the scheduling node request.
调度节点标识信息,是指可以唯一标识目标任务调度节点的信息。比如该目标任务调度节点的服务名、IP地址等。任务请求节点,是指发起发布包构建任务的节点。The scheduling node identification information refers to information that can uniquely identify the target task scheduling node. For example, the service name and IP address of the target task scheduling node. The task request node refers to the node that initiates the release package construction task.
基于此,为了执行发布包构建任务,可以由外部系统中的任务请求节点提交发布包构建任务关联的调度节点请求,设备管理节点接收到该调度节点请求之后,则基于该调度节点请求在任务调度子服务关联的任务调度节点集合中确定目标任务调度节点。具体实施时,可以随机在任务调度节点中随机选取目标任务调度节点。也可以按照预设顺序或预设规则,选取目标任务调度节点,在此不做限制。并将目标任务调度节点的调度节点标识信息,发送至任务请求节点。Based on this, in order to execute the release package construction task, the task request node in the external system can submit the scheduling node request associated with the release package construction task. The target task scheduling node is determined in the task scheduling node set associated with the sub-service. During specific implementation, the target task scheduling node may be randomly selected from the task scheduling nodes. The target task scheduling node may also be selected according to a preset order or a preset rule, which is not limited here. And send the scheduling node identification information of the target task scheduling node to the task requesting node.
步骤20806:接收所述目标任务调度节点基于所述发布包构建任务发送的任务调度请求。Step 20806: Receive the task scheduling request sent by the target task scheduling node based on the release package construction task.
具体的,任务调度请求,是指申请对发布包构建任务进行处理的请求。Specifically, the task scheduling request refers to a request for processing the release package construction task.
基于此,在任务请求节点接收到该调度节点标识信息之后,将发布包构建任务发送至目标任务调度节点。可以由目标任务调度节点对该发布包构建任务申请任务处理节点(即构建任务调度请求,并向设备管理节点发送任务调度请求)。Based on this, after the task requesting node receives the scheduling node identification information, it sends the publishing package construction task to the target task scheduling node. The target task scheduling node may apply to the task processing node for the publishing package construction task (ie, constructing a task scheduling request and sending the task scheduling request to the device management node).
步骤20808:基于所述任务调度请求,在所述子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点,并将所述目标任务处理节点的处理节点标识信息发送至所述目标任务调度节点。Step 20808: Based on the task scheduling request, determine the target task processing node in the task processing node set associated with the task processing sub-service in the sub-service set, and send the processing node identification information of the target task processing node to the The target task scheduling node.
具体的,任务处理子服务,是指用以处理发布包构建任务的子服务。相应的,任务处理节点集合,是指由至少一个任务处理节点组成的集合。其中,任务处理节点,是指用以提供任务处理子服务的设备节点。目标任务处理节点,是指用以为发布包构建任务提供任务处理子服务的设备节点。该目标任务处理节点的数量可以是一个或多个,在此不做限制。Specifically, the task processing sub-service refers to a sub-service for processing the release package construction task. Correspondingly, the task processing node set refers to a set composed of at least one task processing node. Wherein, the task processing node refers to a device node for providing task processing sub-services. The target task processing node refers to the device node used to provide task processing sub-services for the release package construction task. The number of the target task processing nodes may be one or more, which is not limited here.
进一步的,为了提高发布包构建任务的构建效率,可以由任务调度节点,将发布包构建任务拆分为构建子任务,并基于构建子任务的子任务信息提交任务调度请求。因此,本说明书实施例中,所述基于所述任务调度请求,在所述子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点,具体实现如下所示:Further, in order to improve the construction efficiency of the release package construction task, the task scheduling node may split the release package construction task into construction subtasks, and submit a task scheduling request based on the subtask information of the construction subtasks. Therefore, in the embodiment of this specification, based on the task scheduling request, the target task processing node is determined in the task processing node set associated with the task processing sub-service in the sub-service set, and the specific implementation is as follows:
对所述任务调度请求进行解析,获得所述发布包构建任务对应的子任务信息;Analyzing the task scheduling request to obtain subtask information corresponding to the release package construction task;
基于所述子任务信息,在所述子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点。Based on the subtask information, a target task processing node is determined in the task processing node set associated with the task processing subservice in the subservice set.
具体的,子任务信息,是指与发布包构建任务对应的构建子任务关联的信息。该子任务信息,可以构建子任务的构建子任务数量,也可以为构建子任务的子任务标识信息。其中,构建子任务,是指将发布包任务进行拆分后获得的子任务。相应的,子任务标识信息,是指可以唯一标识构建子任务的信息,比如子任务名称或子任务编码等信息。Specifically, the subtask information refers to information associated with a build subtask corresponding to a release package build task. The subtask information may be the number of subtasks for constructing subtasks, or may be subtask identification information for constructing subtasks. Wherein, the construction subtask refers to a subtask obtained by splitting the release package task. Correspondingly, the subtask identification information refers to information that can uniquely identify the construction of a subtask, such as information such as a subtask name or a subtask code.
基于此,设备管理节点接收到该任务调度请求之后,即可基于任务调度请求,在子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点。具体实施时,可以在任务调度节点中随机选取目标任务调度节点,也可以按照预设顺序或预设规则,在任务处理节点中选取目标任务调度节点,在此不做限制。本说明书实施例中,对任务调度请求进行解析,确定发布包构建任务对应的构建子任务关联的子任务信息,并基于子任务信息在任务处理子服务关联的任务处理节点集合中确定对应的目标任务处理节点,将目标任务处理节点的处理节点标识信息发送至目标任务调度节点。Based on this, after receiving the task scheduling request, the device management node can determine the target task processing node in the task processing node set associated with the task processing sub-service in the sub-service set based on the task scheduling request. During specific implementation, the target task scheduling node may be randomly selected from the task scheduling nodes, or the target task scheduling node may be selected from the task processing nodes according to a preset order or preset rules, which is not limited here. In the embodiment of this specification, the task scheduling request is analyzed, the subtask information associated with the construction subtask corresponding to the release package construction task is determined, and the corresponding target is determined in the task processing node set associated with the task processing subservice based on the subtask information The task processing node sends the processing node identification information of the target task processing node to the target task scheduling node.
比如:设备管理节点对目标任务调度节点d_Node发送的任务调度请求dQ进行解析,获得的发布包构建任务A对应的子任务信息为:构建子任务数量2个,则确定的目标任务处理节点的数量为2个,并按照预设筛选规则在在子服务集合中任务处理子服务关联的任务处理节点集合中筛选2个目标任务处理节点,其中,每个目标任务处理节点用以处理一个构建子任务。并将这2个目标任务处理节点的处理节点标识信息发送至目标任务调度节点d_Node。For example: the device management node analyzes the task scheduling request dQ sent by the target task scheduling node d_Node, and obtains the subtask information corresponding to the release package construction task A: the number of subtasks to be constructed is 2, and the determined number of target task processing nodes 2, and according to the preset screening rules, select 2 target task processing nodes in the task processing node set associated with the task processing sub-service in the sub-service set, where each target task processing node is used to process a construction sub-task . And send the processing node identification information of the two target task processing nodes to the target task scheduling node d_Node.
综上,基于发布包构建任务对应的子任务信息,确定目标任务处理节点,实现了基于子任务确定所需要的目标任务处理节点,保障了确定目标任务处理节点的合理性,并提高了发布包构建任务的任务处理效率。In summary, based on the subtask information corresponding to the release package construction task, the target task processing node is determined, which realizes the determination of the required target task processing node based on the subtask, ensures the rationality of determining the target task processing node, and improves the release package. Task processing efficiency of build tasks.
步骤20810:接收所述目标任务处理节点返回的处理结果信息,并基于所述处理结果信息确定所述发布包构建任务的任务中间结果。Step 20810: Receive the processing result information returned by the target task processing node, and determine the task intermediate result of the release package construction task based on the processing result information.
具体的,处理节点标识信息,是指可以唯一标识目标任务处理节点的信息。处理结果信息,是指用以描述处理构建子任务的处理结果的信息,比如处理完成、处理成功、处理失败等。任务中间结果,是指发布包构建任务中包含的构建子任务的综合处理结果。比如任意一个目标任务处理节点返回的处理结果信息为处理失败的情况下,该任务中间结果为处理失败。Specifically, the processing node identification information refers to information that can uniquely identify the target task processing node. The processing result information refers to information used to describe the processing results of the processing and construction subtasks, such as processing completed, processing successful, processing failed, and the like. The task intermediate result refers to the comprehensive processing result of the construction subtasks included in the release package construction task. For example, if the processing result information returned by any target task processing node is processing failure, the intermediate result of the task is processing failure.
基于此,在存在多个目标任务处理节点的情况下,全部目标任务处理节点返回的处理结果信息均为处理成功的情况下,确定发布包构建任务的任务中间结果为处理成功;存在任意一个目标任务处理节点返回的处理结果信息为处理失败的情况下,确定发布包构建任务的任务中间结果为处理失败。Based on this, in the case of multiple target task processing nodes, if the processing result information returned by all target task processing nodes is processing success, it is determined that the task intermediate result of the release package construction task is processing success; there is any target task processing node If the processing result information returned by the task processing node is processing failure, it is determined that the task intermediate result of the release package construction task is processing failure.
综上,通过设备管理节点、目标任务调度节点以及目标任务处理节点之间的配合,实现了发布包构建任务的自动处理,并且不仅保障了处理过程的稳定性,还提高了处理效率。To sum up, through the cooperation between the device management node, target task scheduling node and target task processing node, the automatic processing of the release package construction task is realized, which not only ensures the stability of the processing process, but also improves the processing efficiency.
进一步的,考虑到如果随机选择目标任务处理节点,可能会出现选取的目标任务处理节点太过繁忙,而导致构建子任务处理不及时的情况出现。因此,本说明书实施例中,基于所述子任务信息,在子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点,具体实现如下所示:Further, it is considered that if the target task processing node is randomly selected, the selected target task processing node may be too busy, resulting in a situation that the construction of subtasks is not processed in time. Therefore, in the embodiment of this specification, based on the subtask information, the target task processing node is determined in the task processing node set associated with the task processing subservice in the subservice set, and the specific implementation is as follows:
确定所述任务处理子服务关联的任务处理节点集合,并确定所述任务处理节点集合中的任务处理节点对应的子任务处理数量;Determine the set of task processing nodes associated with the task processing sub-service, and determine the number of subtasks corresponding to the task processing nodes in the set of task processing nodes;
根据所述子任务处理数量,对所述任务处理节点集合中的任务处理节点进行排序,并根据排序结果在所述任务处理节点集合中筛选所述子任务信息关联的目标任务处理节点。Sorting the task processing nodes in the task processing node set according to the subtask processing quantity, and screening the target task processing nodes associated with the subtask information in the task processing node set according to the sorting result.
具体的,子任务处理数量,是指任务处理节点中当前未完成的子任务的数量。该子任务处理数量越多,表示任务处理节点越繁忙。实际应用中,可以在确定目标任务处理节点,并将目标任务处理节点的任务处理标识信息发送至目标任务调度节点后,将该子任务处理数量加一,以便实现对目标任务处理节点的子任务数量的记录。Specifically, the number of subtasks processed refers to the number of currently unfinished subtasks in the task processing node. The more subtasks are processed, the busier the task processing node is. In practical applications, after determining the target task processing node and sending the task processing identification information of the target task processing node to the target task scheduling node, the number of subtasks to be processed can be increased by one, so as to realize the subtask processing of the target task processing node. number of records.
基于此,为了实现资源分配的合理性,可以通过查找的方式,确定任务处理子服务对应的任务处理节点的集合(即任务处理节点集合),以便确定可以用以提供任务处理子服务的设备节点。再查找该任务处理节点集合中的任务处理节点的子任务处理数量,并按照子任务数量(比如从少到多的顺序或从多到少的顺序),对任务处理节点集合中的任务处理节点进行排序,并根据排序结果在任务处理节点集合中筛选子任务数量最少的任务处理节点作为子任务信息关联的目标任务处理节点。具体的,在子任务信息为构建子任务数量的情况下,则需要筛选与构建子任务数量相同数量的目标任务处理节点,在子任务信息为子任务标识信息的情况下,需要筛选各个子任务标识信息对应的目标任务处理节点。Based on this, in order to realize the rationality of resource allocation, the set of task processing nodes corresponding to the task processing sub-service (that is, the set of task processing nodes) can be determined by means of searching, so as to determine the device nodes that can be used to provide the task processing sub-service . Find the number of subtasks processed by the task processing nodes in the task processing node set, and according to the number of subtasks (such as the order from few to many or the order from many to few), the task processing nodes in the task processing node set Sorting is performed, and according to the sorting result, the task processing node with the least number of subtasks is selected in the task processing node set as the target task processing node associated with the subtask information. Specifically, when the subtask information is the number of subtasks to be constructed, it is necessary to filter the target task processing nodes of the same number as the number of subtasks to be constructed; The target task processing node corresponding to the identification information.
比如:设备管理节点对目标任务调度节点d_Node发送的任务调度请求dQ进行解析,获得的发布包构建任务A对应的构建子任务sT1的子任务标识信息ID1,以及构建子任务sT2的子任务标识信息ID2的基础上,基于任务处理子服务的服务名称查找到和任务处理子服务存在对应关系的任务处理节点集合中包括5个任务处理节点,这5个任务处理节点分别为:h_Node1,h_Node2,h_Node3,h_Node4,h_Node5。其中,任务处理节点h_Node1对应的子任务数量为3,任务处理节点h_Node2对应的子任务数量为5,任务处理节点h_Node3对应的子任务数量为0,任务处理节点h_Node4对应的子任务数量为1,任务处理节点h_Node5对应的子任务数量为2。则按照子任务数量从少到多的顺序,对这5个任务处理节点进行排序的排序结果为:任务处理节点h_Node3,任务处理节点h_Node4,任务处理节点h_Node5,任务处理节点h_Node1,任务处理节点h_Node2。再根据排序结果,从中筛选出排在前两位的任务处理节点h_Node3,任务处理节点h_Node4,并将任务处理节点h_Node3作为子任务标识信息ID1对应的目标任务处理节点,将任务处理节点h_Node4作为子任务标识信息ID2对应的目标任务处理节点。For example: the device management node analyzes the task scheduling request dQ sent by the target task scheduling node d_Node, and obtains the subtask identification information ID1 of the construction subtask sT1 corresponding to the release package construction task A, and the subtask identification information of the construction subtask sT2 On the basis of ID2, based on the service name of the task processing sub-service, the task processing node set corresponding to the task processing sub-service includes 5 task processing nodes, and these 5 task processing nodes are: h_Node1, h_Node2, h_Node3 , h_Node4, h_Node5. Among them, the number of subtasks corresponding to task processing node h_Node1 is 3, the number of subtasks corresponding to task processing node h_Node2 is 5, the number of subtasks corresponding to task processing node h_Node3 is 0, and the number of subtasks corresponding to task processing node h_Node4 is 1. The number of subtasks corresponding to the task processing node h_Node5 is 2. Then, according to the order of the number of subtasks from small to large, the sorting results of these five task processing nodes are: task processing node h_Node3, task processing node h_Node4, task processing node h_Node5, task processing node h_Node1, task processing node h_Node2 . Then according to the sorting results, filter out the top two task processing nodes h_Node3 and task processing node h_Node4, and use the task processing node h_Node3 as the target task processing node corresponding to the subtask identification information ID1, and use the task processing node h_Node4 as the subtask processing node The target task processing node corresponding to the task identification information ID2.
综上,根据子任务处理数量,在任务处理节点集合中筛选各个子任务标识信息对应的目标任务处理节点,可以实现选取子任务处理数量少的任务处理节点作为目标任务处理节点,保障了计算资源的合理分配,从而充分利用算力资源,减少了由于资源抢占导致的任务处理时间延长的情况,大大加快包体构建速度。In summary, according to the number of subtasks processed, the target task processing node corresponding to each subtask identification information can be selected in the task processing node set, and the task processing node with a small number of subtask processing can be selected as the target task processing node, which ensures the computing resources Reasonable allocation, so as to make full use of computing power resources, reduce the task processing time extension caused by resource preemption, and greatly speed up the package body construction speed.
实际应用中,可能存在目标任务处理节点本身出现故障,或目标任务处理节点在处理构建子任务的过程中出现异常,导致无法完成构建子任务的情况,为了使处理失败的构建子任务得以被重新处理,本说明书实施例中,所述将所述目标任务处理节点的处理节点标识信息发送至所述目标任务调度节点之后,还包括:In practical applications, there may be a failure of the target task processing node itself, or an abnormality in the process of processing the construction subtask of the target task processing node, resulting in the inability to complete the construction subtask. In order to make the failed construction subtasks be restarted Processing, in the embodiment of this specification, after sending the processing node identification information of the target task processing node to the target task scheduling node, further includes:
将所述处理节点标识信息发送至所述子服务集合中任务回溯子服务关联的目标任务回溯节点;Send the processing node identification information to the target task backtracking node associated with the task backtracking sub-service in the sub-service set;
在预设时长内未接收到任意一个目标任务处理节点返回的处理结果信息情况下,将任意一个目标任务处理节点作为失败目标任务处理节点,所述节点管理方法,还包括:In the case that no processing result information returned by any target task processing node is received within the preset time period, any target task processing node is regarded as a failed target task processing node, and the node management method further includes:
确定所述失败目标任务处理节点的目标处理节点标识信息;Determine the target processing node identification information of the failed target task processing node;
基于所述目标处理节点标识信息构建子任务查询请求,并将所述子任务查询请求发送至所述目标任务回溯节点,并接收所述目标任务回溯节点返回的所述任务查询请求对应的目标构建子任务;Construct a subtask query request based on the target processing node identification information, send the subtask query request to the target task backtracking node, and receive the target construction corresponding to the task query request returned by the target task backtracking node Subtasks;
在所述任务处理子服务关联的任务处理节点集合中,确定所述目标构建子任务对应的更新任务处理节点,并将所述构建子任务发送至所述更新任务处理节点。In the task processing node set associated with the task processing sub-service, determine the update task processing node corresponding to the target construction sub-task, and send the construction sub-task to the update task processing node.
具体的,任务回溯子服务,是指提供任务回溯功能的子服务。相应的,目标任务回溯节点,是指用以为发布包构建任务提供任务回溯子服务的设备节点。实际应用中,在对发布包构建任务进行任务处理过程中任意一个设备节点的处理信息都可以以日志的形式发送至该目标任务回溯节点,以便在任意一个处理过程出错的情况下,可以基于该目标任务回溯节点中存储的处理信息进行任务回溯,从而重新执行出错的任务部分。此外,对系统处理过程中异常问题定位时,也可触发任务回溯,执行特定任务回溯来定位具体异常内容。Specifically, the task backtracking sub-service refers to a sub-service that provides a task backtracking function. Correspondingly, the target task backtracking node refers to a device node used to provide task backtracking sub-services for the release package construction task. In practical applications, during the task processing of the release package construction task, the processing information of any device node can be sent to the target task backtracking node in the form of logs, so that in the case of any error in the processing process, it can be based on the The processing information stored in the target task backtracking node performs task backtracking, so as to re-execute the wrong part of the task. In addition, when locating abnormal problems during system processing, task backtracking can also be triggered, and specific task backtracking can be performed to locate specific abnormal content.
失败目标任务处理节点,是指未返回处理结果信息的目标任务处理节点。目标处理节点标识信息,是指失败目标任务处理节点对应的处理节点标识信息。子任务查询请求,是指用以查询目标任务处理节点所处理失败的构建子任务的查询请求。更新任务处理节点,是指用以针对处理失败的构建子任务进行重新处理的任务处理节点。目标构建子任务,是指处理失败的构建子任务,也即失败目标任务处理节点所处理的构建子任务。A failed target task processing node refers to a target task processing node that does not return processing result information. The target processing node identification information refers to the processing node identification information corresponding to the failed target task processing node. The subtask query request refers to a query request for querying failed construction subtasks processed by the target task processing node. The update task processing node refers to the task processing node used to reprocess the failed construction subtask. The target construction subtask refers to the construction subtask that fails to be processed, that is, the construction subtask processed by the failed target task processing node.
基于此,为了便于对构建子任务的回溯,将目标任务处理节点的处理节点标识信息发送至目标任务调度节点之后,将所述目标任务处理节点的处理节点信息发送至目标任务回溯节点。并在预设时长内未接收到失败目标任务处理节点返回的处理结果信息情况下,基于失败目标任务处理节点的目标处理节点标识信息构建子任务查询请求,并将子任务查询请求发送至目标任务回溯节点;由目标任务回溯节点基于该子任务查询请求中的目标处理节点标识信息,查询失败目标任务处理节点对应的目标构建子任务,并将该目标构建子任务发送至设备管理节点,设备管理节点接收目标任务回溯节点返回的所述任务查询请求对应的目标构建子任务。在任务处理子服务关联的任务处理节点集合中,确定目标构建子任务对应的更新任务处理节点;并将目标构建子任务发送至所述更新任务处理节点,以便利用更新任务处理节点对该目标构建子任务进行任务处理。Based on this, in order to facilitate the traceback of building subtasks, after sending the processing node identification information of the target task processing node to the target task scheduling node, the processing node information of the target task processing node is sent to the target task traceback node. And if the processing result information returned by the failed target task processing node is not received within the preset time period, a subtask query request is constructed based on the target processing node identification information of the failed target task processing node, and the subtask query request is sent to the target task Backtracking node: the target task backtracking node queries the target construction subtask corresponding to the failed target task processing node based on the target processing node identification information in the subtask query request, and sends the target construction subtask to the device management node, and the device management The node receives the target construction subtask corresponding to the task query request returned by the target task backtracking node. In the task processing node set associated with the task processing sub-service, determine the update task processing node corresponding to the target construction sub-task; and send the target construction sub-task to the update task processing node, so that the target can be constructed by the update task processing node Subtasks perform task processing.
比如:目标任务处理节点为h_Node3以及目标任务处理节点h_Node4的情况下,并将目标任务处理节点h_Node3的处理节点标识信息h_Node3001,目标任务处理节点h_Node4的处理节点标识信息h_Node4002发送任务回溯子任务关联的目标任务回溯节点r_Node。目标任务回溯节点r_Node接收这两个处理节点标识信息,并将这两个处理节点标识信息进行存储。在10分钟内未收到目标任务处理节点h_Node3返回的处理结果信息,则将目标任务处理节点h_Node3作为失败目标任务处理节点,并基于该失败目标任务处理节点h_Node3的目标处理节点标识信息h_Node3001构建子任务查询请求sq,将该子任务查询请求sq发送至目标任务回溯节点r_Node。目标任务回溯节点基于该子任务查询请求sq中的目标处理节点标识信息h_Node3001进行查询,确定目标处理节点标识信息h_Node3001对应的目标构建子任务为sT1,并将该目标构建子任务为sT1发送至设备管理节点,设备管理节点确定目标构建子任务sT1对应的更新任务处理节点为:任务处理节点h_Node5,则将该目标构建子任务sT1发送至任务处理节点h_Node5,以便由任务处理节点h_Node5对该目标构建子任务携带的子任务文件列表进行文件拉取。For example: when the target task processing node is h_Node3 and the target task processing node h_Node4, the processing node identification information h_Node3001 of the target task processing node h_Node3 and the processing node identification information h_Node4002 of the target task processing node h_Node4 are sent to the subtask associated with the task backtracking The target task backtracks to node r_Node. The target task backtracking node r_Node receives the identification information of the two processing nodes and stores the identification information of the two processing nodes. If the processing result information returned by the target task processing node h_Node3 is not received within 10 minutes, then the target task processing node h_Node3 is regarded as the failed target task processing node, and the subclass is constructed based on the target processing node identification information h_Node3001 of the failed target task processing node h_Node3 The task query request sq, sends the subtask query request sq to the target task backtracking node r_Node. The target task backtracking node searches based on the target processing node identification information h_Node3001 in the subtask query request sq, determines the target construction subtask corresponding to the target processing node identification information h_Node3001 as sT1, and sends the target construction subtask as sT1 to the device The management node, the device management node determines that the update task processing node corresponding to the target construction subtask sT1 is: task processing node h_Node5, then sends the target construction subtask sT1 to the task processing node h_Node5, so that the task processing node h_Node5 builds the target The subtask file list carried by the subtask is used for file pull.
综上,通过对失败目标任务处理节点进行回溯处理,确定失败目标任务处理节点对应的目标构建子任务,并将目标构建子任务发送至更新任务处理节点重新处理,实现了对处理失败的目标构建子任务更换任务处理节点,保证了发布包构建任务的健壮性。To sum up, through the backtracking process of the failed target task processing node, the target construction subtask corresponding to the failed target task processing node is determined, and the target construction subtask is sent to the update task processing node for reprocessing, realizing the target construction of the failed processing node Subtasks replace task processing nodes to ensure the robustness of the release package construction task.
此外,为了避免该失败目标任务处理节点仍作为待调度任务处理节点,导致其他子任务的异常状况,本说明书实施例中,还包括:In addition, in order to avoid that the failed target task processing node is still used as a task processing node to be scheduled, causing abnormal conditions of other subtasks, the embodiment of this specification also includes:
删除所述失败目标任务处理节点和所述任务处理子服务之间的目标关联关系。Delete the target association relationship between the failed target task processing node and the task processing sub-service.
目标关联关系,是指失败目标任务处理节点和任务处理子服务之间关联关系。The target association relationship refers to the association relationship between the failed target task processing node and the task processing sub-service.
比如:在目标任务处理节点h_Node3为失败目标任务处理节点情况下,删除失败目标任务处理节点h_Node3和任务处理子服务之间的对应关系。For example: in the case that the target task processing node h_Node3 is a failed target task processing node, delete the corresponding relationship between the failed target task processing node h_Node3 and the task processing sub-service.
综上,预设时长内未接收到目标任务处理节点返回的处理结果信息情况下,删除目标任务处理节点和任务处理子服务之间的目标关联关系,避免了在该目标任务处理节点异常的情况下,仍将该目标任务处理节点用以处理其他子任务,导致其他子任务也无法被顺利执行。To sum up, if the processing result information returned by the target task processing node is not received within the preset time period, the target association relationship between the target task processing node and the task processing sub-service is deleted to avoid the abnormality of the target task processing node In this case, the target task processing node is still used to process other subtasks, resulting in the failure of other subtasks to be executed smoothly.
在目标任务处理节点为多个情况下,由于各个目标任务处理节点只处理了一部分任务,它们的处理结果都无法作为一个完整的发布包,因此,所述基于所述处理结果信息确定所述发布包构建任务的任务中间结果之后,还包括:In the case where there are multiple target task processing nodes, since each target task processing node only processes a part of tasks, their processing results cannot be used as a complete release package, therefore, the determination of the release based on the processing result information After the task intermediate results of the package build task, also include:
在所述任务中间结果为处理成功的情况下,在所述子服务集合中任务聚合子服务关联的任务聚合节点集合中确定所述发布包构建任务对应的目标任务聚合节点,并将所述目标任务聚合节点的聚合节点标识信息发送至各个目标任务处理节点;In the case that the intermediate result of the task is processed successfully, the target task aggregation node corresponding to the release package construction task is determined in the task aggregation node set associated with the task aggregation sub-service in the sub-service set, and the target The aggregation node identification information of the task aggregation node is sent to each target task processing node;
接收所述目标任务聚合节点返回的聚合结果信息,并基于所述聚合结果信息确定所述发布包构建任务的任务构建结果。The aggregation result information returned by the target task aggregation node is received, and the task construction result of the release package construction task is determined based on the aggregation result information.
具体的,任务聚合子服务,是指用以将目标任务处理节点生成的子任务产物进行聚合的子服务。相应的,任务聚合节点集合,是指由至少一个任务聚合节点组成的集合。目标任务聚合节点,是指用以为上述发布包构建任务提供任务聚合子服务的设备节点。聚合节点标识信息,是指可以唯一标识目标任务聚合节点的信息,该聚合节点标识信息可以是目标任务聚合节点服务名、或IP地址等,在此不做限制。聚合结果信息,是指目标任务聚合节点执行任务聚合子服务的执行结果信息,该聚合结果信息可以为聚合成功信息,聚合完成信息或聚合失败信息。相应的,任务构建结果,是指发布包构建任务对应的发布包的构建结果,该任务构建结果,可以为构建成功,或构建失败。Specifically, the task aggregation sub-service refers to a sub-service for aggregating the sub-task products generated by the target task processing node. Correspondingly, the task aggregation node set refers to a set composed of at least one task aggregation node. The target task aggregation node refers to a device node used to provide task aggregation sub-services for the above release package construction tasks. The aggregation node identification information refers to information that can uniquely identify the target task aggregation node. The aggregation node identification information may be the service name or IP address of the target task aggregation node, which is not limited here. The aggregation result information refers to the execution result information of the task aggregation sub-service executed by the target task aggregation node, and the aggregation result information may be aggregation success information, aggregation completion information or aggregation failure information. Correspondingly, the task build result refers to the build result of the release package corresponding to the release package build task, and the build result of the task may be build success or build failure.
需要说明的是,在所述子服务集合中任务聚合子服务关联的任务聚合节点集合中确定所述发布包构建任务对应的目标任务聚合节点的具体实现方式,与上述在所述子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点的具体实现方式类似,参考上述在所述子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点的具体实现方式即可,在此不做赘述。It should be noted that the specific implementation of determining the target task aggregation node corresponding to the release package construction task in the task aggregation node set associated with the task aggregation sub-service in the sub-service set is the same as the above-mentioned in the sub-service set The specific implementation of determining the target task processing node in the set of task processing nodes associated with the task processing sub-service is similar, refer to the above-mentioned specific implementation of determining the target task processing node in the set of task processing nodes associated with the task processing sub-service in the sub-service set The method is enough, so I won’t repeat it here.
基于此,在任务中间结果为处理成功的情况下,表明目标任务处理节点已经完成对应的构建子任务,并存在相应的任务中间产物(即子发布文件集合)。为了将分散在多个目标任务处理节点的子发布文件集合进行聚合,需要由设备管理节点在任务聚合子服务关联的任务聚合节点集合中确定所述发布包构建任务对应的目标任务聚合节点,并将目标任务聚合节点的聚合节点标识信息发送至各个目标任务处理节点。以便各个目标任务处理节点将子发布文件集合发送至目标任务聚合节点。目标任务聚合节点接收到各个目标任务处理节点发送的子发布文件集合,并基于这些子发布文件集合构建发布构建任务对应的目标分布包。并根据构建结果生成聚合结果信息,将聚合结果信息发送至设备管理节点,设备管理节点接收目标任务聚合节点返回的聚合结果信息,并基于所述聚合结果信息确定所述发布包构建任务的任务构建结果。Based on this, if the task intermediate result is processing success, it indicates that the target task processing node has completed the corresponding construction sub-task, and there is a corresponding task intermediate product (ie, a set of sub-release files). In order to aggregate the sub-published file collections dispersed in multiple target task processing nodes, the device management node needs to determine the target task aggregation node corresponding to the release package construction task in the task aggregation node set associated with the task aggregation sub-service, and Send the aggregation node identification information of the target task aggregation node to each target task processing node. So that each target task processing node sends the set of sub-published files to the target task aggregation node. The target task aggregation node receives the sub-release file sets sent by each target task processing node, and builds the target distribution package corresponding to the release construction task based on these sub-release file sets. And generate aggregated result information according to the construction result, send the aggregated result information to the device management node, the device management node receives the aggregated result information returned by the target task aggregation node, and determine the task construction of the release package construction task based on the aggregated result information result.
比如:在发布包构建任务A对应的任务中间结果为处理成功的情况下,在任务聚合子服务关联的任务聚合节点集合中确定发布包构建任务A对应的目标任务聚合节点t_Node,并将目标任务聚合节点t_Node的聚合节点标识信息t_Node0034发送至目标任务处理节点h_Node3以及目标任务处理节点h_Node4,目标任务处理节点h_Node3将其根据构建子任务携带的子任务文件列表cTL1,从预设资源管理节点res_Node拉取的子任务文件列表cTL1对应的子发布文件集合w_col1发送至目标任务聚合节点t_Node。目标任务处理节点h_Node4将其根据构建子任务携带的子任务文件列表cTL2,从预设资源管理节点res_Node拉取的子任务文件列表cTL2对应的子发布文件集合w_col2发送至目标任务聚合节点t_Node。目标任务聚合节点t_Node将接收的子发布文件集合w_col1和子发布文件集合w_col2进行聚合处理,获得目标发布包。并聚合成功的情况下,向设备管理节点发送聚合成功信息,设备管理节点基于聚合成功信息,确定发布包构建任务对应的任务构建结果为构建成功。For example: in the case that the intermediate result of the task corresponding to the release package construction task A is processed successfully, determine the target task aggregation node t_Node corresponding to the release package construction task A in the task aggregation node set associated with the task aggregation sub-service, and set the target task The aggregation node identification information t_Node0034 of the aggregation node t_Node is sent to the target task processing node h_Node3 and the target task processing node h_Node4, and the target task processing node h_Node3 pulls it from the preset resource management node res_Node according to the subtask file list cTL1 carried by the construction subtask The sub-release file set w_col1 corresponding to the obtained sub-task file list cTL1 is sent to the target task aggregation node t_Node. The target task processing node h_Node4 sends the sub-release file set w_col2 corresponding to the sub-task file list cTL2 pulled from the preset resource management node res_Node according to the sub-task file list cTL2 carried by the construction sub-task to the target task aggregation node t_Node. The target task aggregation node t_Node aggregates the received sub-release file set w_col1 and sub-release file set w_col2 to obtain the target release package. And if the aggregation is successful, the aggregation success information is sent to the device management node, and the device management node determines that the task construction result corresponding to the release package construction task is successful based on the aggregation success information.
综上,通过设备管理节点选取的目标任务聚合节点对目标任务处理节点的处理结果进行聚合,并基于返回的聚合结果信息确定任务构建结果,保障了构建发布包构建任务对应的发布包的准确性。In summary, the target task aggregation node selected by the device management node aggregates the processing results of the target task processing node, and determines the task construction result based on the returned aggregation result information, which ensures the accuracy of the release package corresponding to the build release package construction task .
本申请提供的节点管理方法,为了使设备节点得到合理的利用,通过接收携带有节点属性信息的节点分配请求,其中,节点属性信息对应设备节点,将节点属性信息与子服务集合对应的筛选条件进行匹配,再根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务,实现了根据设备节点自身的节点属性信息,为其匹配适合的目标子服务;并基于节点属性信息以及目标子服务的服务属性信息,建立设备节点和所述目标子服务之间的关联关系,并作为节点分配请求的响应,以便使用该设备节点提供目标子服务对应的服务功能,不仅保障了子服务和设备节点之间的适配性,还保障了子服务的处理效率。The node management method provided by this application, in order to make the device nodes be reasonably utilized, receives node allocation requests carrying node attribute information, wherein the node attribute information corresponds to the device node, and the filter conditions corresponding to the node attribute information and the sub-service set Perform matching, and then determine the target sub-service corresponding to the device node in the sub-service set according to the matching result, so as to match the appropriate target sub-service for it according to the node attribute information of the device node itself; and based on the node attribute information And the service attribute information of the target sub-service, establish the association relationship between the device node and the target sub-service, and use it as a response to the node allocation request, so that the device node can be used to provide the service function corresponding to the target sub-service, which not only ensures the The adaptability between service and device nodes also ensures the processing efficiency of sub-services.
与上述方法实施例相对应,本申请还提供了节点管理系统实施例,图3示出了本申请一实施例提供的一种节点管理系统的结构示意图。如图3所示,该节点管理系统300包括:Corresponding to the above method embodiment, the present application also provides a node management system embodiment, and FIG. 3 shows a schematic structural diagram of a node management system provided by an embodiment of the present application. As shown in Figure 3, the node management system 300 includes:
注册节点302和设备管理节点304;Registration node 302 and device management node 304;
其中,所述注册节点302,被配置为接收设备节点提交的节点属性信息,基于所述节点属性信息构建节点分配请求,将所述节点分配请求发送至所述设备管理节点304;Wherein, the registration node 302 is configured to receive node attribute information submitted by the device node, construct a node assignment request based on the node attribute information, and send the node assignment request to the device management node 304;
所述设备管理节点304,被配置为接收携带有节点属性信息的节点分配请求,将所述节点属性信息与子服务集合对应的筛选条件进行匹配;根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务;基于所述节点属性信息以及所述目标子服务的服务属性信息,建立所述设备节点和所述目标子服务之间的关联关系,并作为所述节点分配请求的响应。The device management node 304 is configured to receive a node allocation request carrying node attribute information, match the node attribute information with the filter conditions corresponding to the sub-service set; determine the selected sub-service set in the sub-service set according to the matching result The target sub-service corresponding to the device node; based on the node attribute information and the service attribute information of the target sub-service, establish an association relationship between the device node and the target sub-service, and use it as the node allocation request the response to.
具体的,注册节点302,是指用以将设备节点注册到设备管理节点304的智能设备。设备管理节点304,是指对分布式的设备节点提供设备管理服务的智能设备。实际应用中,注册节点302和设备管理节点304都可以为一个也可以为多个,在此不做限制。Specifically, the registration node 302 refers to an intelligent device used to register a device node to the device management node 304 . The device management node 304 refers to an intelligent device that provides device management services for distributed device nodes. In practical applications, there may be one or more registration nodes 302 and device management nodes 304, which are not limited here.
设备节点,是指笔记本电脑、台式机或平板电脑等类型的智能设备。相应的,节点属性信息,是指用以描述设备节点的相关信息,比如设备标识信息、操作系统信息(比如Windows\Mac\Linux等),处理器信息、内存信息、磁盘信息等。节点分配请求,是指用以将设备节点分配至子服务,使其提供某种服务的请求。比如将设备节点分配给子服务A,则表示使用该设备节点提供子服务A对应的服务功能。Device nodes refer to smart devices such as laptops, desktops, or tablets. Correspondingly, node attribute information refers to relevant information used to describe a device node, such as device identification information, operating system information (such as Windows\Mac\Linux, etc.), processor information, memory information, disk information, and the like. A node allocation request refers to a request for allocating a device node to a sub-service so that it can provide a certain service. For example, assigning a device node to sub-service A means that the device node is used to provide the service function corresponding to sub-service A.
子服务集合,是指与设备管理节点304对应的任务关联的子服务组成的集合。假设任务为计算任务,子服务集合可以包括:计算拆分子服务、计算执行服务、计算结果子服务等。假设任务为发布包构建任务,子服务集合中可以包括:任务调度子服务、任务处理子服务、任务聚合子服务、任务回溯子服务、任务安全子服务等。筛选条件,是指子服务集合中子服务对应的筛选条件。比如任务处理子服务是用以进行任务处理的子服务,其对于处理器的要求较高,则任务处理子服务对应的筛选条件可以为处理器:大于8核。比如任务聚合子服务,是用以进行产物聚合的子服务,其对于磁盘容量的要求较高,则任务聚合子服务的筛选条件可以为磁盘容量:大于2T。The set of sub-services refers to a set of sub-services associated with tasks corresponding to the device management node 304 . Assuming that the task is a computing task, the set of sub-services may include: computing splitting sub-service, computing execution service, computing result sub-service, etc. Assuming that the task is a release package construction task, the sub-service set may include: task scheduling sub-service, task processing sub-service, task aggregation sub-service, task backtracking sub-service, task security sub-service, etc. The filter condition refers to the filter condition corresponding to the sub-service in the sub-service set. For example, the task processing sub-service is a sub-service for task processing, which has high requirements on processors, and the filter condition corresponding to the task processing sub-service may be processor: greater than 8 cores. For example, the task aggregation sub-service is a sub-service for product aggregation, which has high requirements for disk capacity, so the filter condition of the task aggregation sub-service can be disk capacity: greater than 2T.
服务属性信息,是指目标子服务相关的信息。该服务属性信息可以是目标子服务的服务名称、服务编号等。进一步的,建立设备节点和目标子服务之间的关联关系,可以是将设备标识信息添加至服务标识信息的下级展示目录中。也可以是建立二者之间的对应关系表等,在此不做限制。The service attribute information refers to the information related to the target sub-service. The service attribute information may be the service name, service number, etc. of the target sub-service. Further, establishing the association relationship between the device node and the target sub-service may be adding the device identification information to the lower-level display directory of the service identification information. It may also be to establish a correspondence table between the two, etc., which is not limited here.
实际应用中,由于企业中通常包含多台智能设备,这些智能设备可能是员工的工作电脑、也可能是机房的服务器,此外,还可以是其他闲置的智能设备。为了更好地利用这些设备资源,可以将这些智能设备作为设备节点,并基于设备节点的节点属性信息生成节点分配请求,发送至设备管理节点304。In practical applications, since an enterprise usually contains multiple smart devices, these smart devices may be employees' work computers, servers in the computer room, or other idle smart devices. In order to make better use of these device resources, these smart devices can be used as device nodes, and a node allocation request is generated based on the node attribute information of the device nodes and sent to the device management node 304 .
基于此,注册节点302接收设备节点提交的节点属性信息,并基于该节点属性信息构建节点分配请求,该节点分配请求也可以理解为节点注册请求。将该节点分配请求发送至设备管理节点304,节点分配请求中携带设备节点的节点属性信息。之后设备管理节点304接收携带节点属性信息的节点分配请求,并为了保障对设备节点分配的合理性,将节点属性信息与子服务集合对应的筛选条件匹配。根据匹配结果,即可确定设备节点适配的子服务,即目标子服务。再建立设备节点和目标子服务之间的关联关系,以便设备管理节点304基于该关联关系,将设备节点分配该目标子服务对应的相关任务。Based on this, the registration node 302 receives the node attribute information submitted by the device node, and constructs a node allocation request based on the node attribute information, which can also be understood as a node registration request. The node allocation request is sent to the device management node 304, and the node allocation request carries node attribute information of the device node. Afterwards, the device management node 304 receives the node allocation request carrying the node attribute information, and matches the node attribute information with the filter conditions corresponding to the sub-service set in order to ensure the rationality of device node allocation. According to the matching result, the sub-service to which the device node is adapted can be determined, that is, the target sub-service. Then establish an association relationship between the device node and the target sub-service, so that the device management node 304 assigns the device node to the relevant task corresponding to the target sub-service based on the association relationship.
比如:接收设备节点SERVER1的节点属性信息info,该节点属性信息info包括:设备名称SERVER1,操作系统Windows,处理器16核,磁盘容量4T。基于设备节点SERVER1的节点属性信息info,为该设备节点SERVER1添加操作系统标签,该操作系统标签的标签信息为Windows,为该设备节点SERVER1添加处理器标签,该处理器标签的标签信息为16核,并为该设备节点SERVER1添加磁盘容量标签,该磁盘容量标签的标签信息为500G。而任务处理子服务的筛选条件为处理器大于8核,该筛选条件对应的目标标签类型为处理器标签,则将处理器标签的标签信息与筛选条件进行匹配,由于16核大于8核,因此,确定节点属性信息info与任务处理子服务的筛选条件的匹配结果为匹配。并在确定节点属性信息info与任务处理子服务的筛选条件的匹配结果为匹配情况下,将任务处理子服务确定为设备节点SERVER1对应的目标子服务。For example: receiving node attribute information info of device node SERVER1, the node attribute information info includes: device name SERVER1, operating system Windows, processor 16 cores, disk capacity 4T. Based on the node attribute information info of the device node SERVER1, add an operating system label to the device node SERVER1. The label information of the operating system label is Windows, and add a processor label to the device node SERVER1. The label information of the processor label is 16 cores , and add a disk capacity label to the device node SERVER1, and the label information of the disk capacity label is 500G. The filter condition of the task processing sub-service is that the processor is greater than 8 cores, and the target label type corresponding to the filter condition is a processor label, and the label information of the processor label is matched with the filter condition. Since 16 cores are greater than 8 cores, , determine that the matching result of the node attribute information info and the filter condition of the task processing sub-service is a match. And when it is determined that the matching result of the node attribute information info and the screening condition of the task processing sub-service matches, the task processing sub-service is determined as the target sub-service corresponding to the device node SERVER1.
实际应用中,在完成设备节点的分配的基础上,设备节点即可在任务执行过程中提供相应的子服务功能,由于存在多种子服务,这些子服务管理的设备节点在发布包构建任务的执行过程中,即可彼此配合共同完成该发布包构建任务的相关任务处理。本说明书实施例,所述节点管理系统300,还包括:目标任务调度节点;In practical applications, on the basis of completing the allocation of device nodes, the device nodes can provide corresponding sub-service functions during the task execution process. Due to the existence of multiple sub-services, the device nodes managed by these sub-services are important in the execution of the release package construction task. During the process, they can cooperate with each other to complete the relevant task processing of the release package construction task. In the embodiment of this specification, the node management system 300 further includes: a target task scheduling node;
所述设备管理节点304,还被配置为接收发布包构建任务关联的调度节点请求,基于所述调度节点请求确定所述子服务集合中任务调度子服务关联的目标任务调度节点;并将所述目标任务调度节点的调度节点标识信息发送至所述调度节点请求对应的任务请求节点;The device management node 304 is further configured to receive a request from a dispatching node associated with a publishing package construction task, determine a target task dispatching node associated with a task dispatching sub-service in the sub-service set based on the dispatching node request; and The scheduling node identification information of the target task scheduling node is sent to the scheduling node to request the corresponding task request node;
所述目标任务调度节点,被配置为接收所述任务请求节点提交的所述发布包构建任务,并基于所述发布包构建任务,构建任务调度请求,将所述任务调度请求发送至所述设备管理节点304;The target task scheduling node is configured to receive the release package construction task submitted by the task request node, construct a task based on the release package, construct a task scheduling request, and send the task scheduling request to the device management node 304;
所述设备管理节点304,还被配置为基于所述任务调度请求,在所述子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点,并将所述目标任务处理节点的处理节点标识信息发送至所述目标任务调度节点。The device management node 304 is further configured to determine a target task processing node in the task processing node set associated with the task processing sub-service in the sub-service set based on the task scheduling request, and assign the target task processing node to Send the identification information of the processing node to the target task scheduling node.
基于此,为了执行发布包构建任务,可以由外部系统中的任务请求节点提交发布包构建任务关联的调度节点请求,设备管理节点304接收到该调度节点请求之后,则基于该调度节点请求在任务调度子服务关联的任务调度节点集合中确定目标任务调度节点。具体实施时,可以随机在任务调度节点中随机选取目标任务调度节点。也可以按照预设顺序或预设规则,选取目标任务调度节点,在此不做限制。并将目标任务调度节点的调度节点标识信息,发送至任务请求节点。Based on this, in order to execute the release package construction task, the task request node in the external system may submit a dispatch node request associated with the release package construction task. The target task scheduling node is determined in the task scheduling node set associated with the scheduling sub-service. During specific implementation, the target task scheduling node may be randomly selected from the task scheduling nodes. The target task scheduling node may also be selected according to a preset order or a preset rule, which is not limited here. And send the scheduling node identification information of the target task scheduling node to the task requesting node.
在任务请求节点接收到该调度节点标识信息之后,将发布包构建任务发送至目标任务调度节点。由目标任务调度节点基于发布包构建任务申请目标任务处理节点(即构建任务调度请求,并向设备管理节点304发送任务调度请求)。具体实施时,目标任务调度节点基于发布包构建任务,构建任务调度请求的方式是多种多样的,比如目标任务调度节点可以根据发布包构建任务对应的发布包所需的存储容量,确定所需要申请的目标任务处理节点的节点数量;具体的,存储容量越大,申请的节点数量越多,并基于该节点数量构建任务调度请求。After the task request node receives the scheduling node identification information, it sends the release package construction task to the target task scheduling node. The target task scheduling node constructs the task application target task processing node based on the release package (that is, constructs a task scheduling request and sends the task scheduling request to the device management node 304). During specific implementation, the target task scheduling node constructs tasks based on the release package, and there are various ways to construct task scheduling requests. For example, the target task scheduling node can determine the required storage capacity according to the release package corresponding to the release package construction task. The number of nodes to apply for the target task processing node; specifically, the larger the storage capacity, the more the number of nodes to apply for, and a task scheduling request is constructed based on the number of nodes.
设备管理节点304接收到该任务调度请求之后,即可基于任务调度请求,在子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点。具体实施时,可以在任务调度节点中随机选取目标任务调度节点,也可以按照预设顺序或预设规则,在任务处理节点中选取目标任务调度节点,在此不做限制。并将目标任务处理节点的处理节点标识信息发送至目标任务调度节点。After receiving the task scheduling request, the device management node 304 can determine the target task processing node in the task processing node set associated with the task processing sub-service in the sub-service set based on the task scheduling request. During specific implementation, the target task scheduling node may be randomly selected from the task scheduling nodes, or the target task scheduling node may be selected from the task processing nodes according to a preset order or preset rules, which is not limited here. And send the processing node identification information of the target task processing node to the target task scheduling node.
比如:设备管理节点304接收任务请求节点q_Node提交的发布包构建任务A关联的调度节点请求nQ,基于该调度节点请求nQ,在子服务集合中任务调度子服务关联的任务调度节点集合中确定目标任务调度节点d_Node,并将目标任务调度节点d_Node的调度节点标识信息:d_Node0234发送至调度节点请求nQ,调度节点请求nQ接收到该调度节点标识信息:d_Node0234,并将发布包构建任务A发送至该调度节点标识信息:d_Node0234对应的目标任务调度节点d_Node。目标任务调度节点d_Node接收到发布包构建任务A后,基于发布包任务中携带的发布包类型:增量包,确定需要申请的目标任务处理节点的节点数量为2,则基于该节点数量2构建任务调度请求dQ,将任务调度请求dQ发送至设备管理节点304,设备管理节点304基于该任务调度请求dQ中携带的节点数量2,按照预设筛选规则在在子服务集合中任务处理子服务关联的任务处理节点集合中筛选2个目标任务处理节点,并将这2个目标任务处理节点的处理节点标识信息发送至目标任务调度节点d_Node。For example: the device management node 304 receives the release package submitted by the task request node q_Node to construct the scheduling node request nQ associated with task A, and based on the scheduling node request nQ, determines the target in the task scheduling node set associated with the task scheduling sub-service in the sub-service set The task scheduling node d_Node sends the scheduling node identification information of the target task scheduling node d_Node: d_Node0234 to the scheduling node request nQ, and the scheduling node requests nQ to receive the scheduling node identification information: d_Node0234, and sends the release package construction task A to the Scheduling node identification information: the target task scheduling node d_Node corresponding to d_Node0234. After the target task scheduling node d_Node receives the release package construction task A, based on the release package type carried in the release package task: incremental package, it is determined that the number of target task processing nodes that need to be applied for is 2, and then build based on the number of nodes 2 The task scheduling request dQ sends the task scheduling request dQ to the device management node 304. Based on the number of nodes carried in the task scheduling request dQ 2, the device management node 304 associates the task processing sub-services in the sub-service set according to the preset screening rules Select two target task processing nodes from the set of task processing nodes, and send the processing node identification information of the two target task processing nodes to the target task scheduling node d_Node.
综上,由设备管理节点304确定发布包构建任务对应的目标任务调度节点,并由目标任务调度节点基于发布包构建任务,构建任务调度请求,使设备管理节点304基于任务调度请求确定待调度的目标任务处理节点,并将目标任务处理节点的处理节点标识信息发送至目标任务调度节点,实现了对发布包构建任务所需的目标任务处理节点的调度。To sum up, the device management node 304 determines the target task scheduling node corresponding to the release package construction task, and the target task scheduling node builds a task based on the release package and constructs a task scheduling request, so that the device management node 304 determines the task to be scheduled based on the task scheduling request. The target task processing node sends the processing node identification information of the target task processing node to the target task scheduling node, realizing the scheduling of the target task processing node required for the release package construction task.
具体的,为了保障目标任务处理节点的处理节点标识信息发送至所述目标任务调度节点所申请的目标任务处理节点的合理性,从而提升任务处理的效率,本说明书实施例中,所述节点管理系统,还包括:目标任务处理节点;Specifically, in order to ensure the rationality of sending the processing node identification information of the target task processing node to the target task processing node applied by the target task scheduling node, so as to improve the efficiency of task processing, in the embodiment of this specification, the node management The system also includes: a target task processing node;
所述目标任务调度节点,进一步被配置为将所述发布包构建任务拆分为构建子任务,并基于所述发布包构建任务对应的构建子任务关联的子任务信息构建任务调度请求;The target task scheduling node is further configured to split the release package construction task into construction subtasks, and construct a task scheduling request based on subtask information associated with the construction subtasks corresponding to the release package construction task;
相应的,所述设备管理节点304,进一步被配置为对所述任务调度请求进行解析,获得所述发布包构建任务对应的子任务信息;基于所述子任务信息,在所述子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点;并将所述目标任务处理节点的处理节点标识信息发送至所述目标任务调度节点;Correspondingly, the device management node 304 is further configured to parse the task scheduling request to obtain subtask information corresponding to the release package construction task; based on the subtask information, in the subservice set Determine the target task processing node in the task processing node set associated with the task processing sub-service; and send the processing node identification information of the target task processing node to the target task scheduling node;
所述目标任务调度节点,还被配置为基于所述处理节点标识信息,将所述发布包构建任务对应的构建子任务发送至所述目标任务处理节点;The target task scheduling node is further configured to send the construction subtask corresponding to the release package construction task to the target task processing node based on the processing node identification information;
所述目标任务处理节点,被配置为根据所述构建子任务携带的子任务文件列表,从预设资源管理节点拉取所述子任务文件列表对应的子发布文件集合,并在拉取完成的情况下,向所述设备管理节点304发送处理结果信息;The target task processing node is configured to pull the sub-release file set corresponding to the sub-task file list from the preset resource management node according to the sub-task file list carried by the construction sub-task, and when the pulling is completed, In this case, send processing result information to the device management node 304;
所述设备管理节点304,还被配置为接收所述目标任务处理节点返回的处理结果信息,并基于所述处理结果信息确定所述发布包构建任务的任务中间结果。The device management node 304 is further configured to receive the processing result information returned by the target task processing node, and determine the task intermediate result of the release package construction task based on the processing result information.
具体的,子任务文件列表,是指构建子任务对应的任务文件列表,该子任务文件列表中包括构建子任务所需要拉取的文件的名称和/或位置等信息。预设资源管理节点,是指用以管理以及存储待发布资源的设备节点。子发布文件集合,是指由构建子任务对应的资源文件组成的集合。Specifically, the subtask file list refers to a task file list corresponding to building a subtask, and the subtask file list includes information such as names and/or locations of files to be pulled to build a subtask. The default resource management node refers to a device node used to manage and store resources to be released. The sub-release file set refers to a set composed of resource files corresponding to build subtasks.
基于此,为了提高发布包构建任务的构建效率,目标任务调度节点将发布包构建任务拆分为构建子任务,再基于发布包构建任务对应的构建子任务关联的子任务信息构建任务调度请求。具体的,子任务信息,是指与发布包构建任务对应的构建子任务关联的信息。该子任务信息,可以构建子任务的构建子任务数量,也可以为构建子任务的子任务标识信息。Based on this, in order to improve the construction efficiency of the release package construction task, the target task scheduling node splits the release package construction task into construction subtasks, and then constructs a task scheduling request based on the subtask information associated with the construction subtasks corresponding to the release package construction task. Specifically, the subtask information refers to information associated with a build subtask corresponding to a release package build task. The subtask information may be the number of subtasks for constructing subtasks, or may be subtask identification information for constructing subtasks.
设备管理节点304对任务调度请求进行解析,确定发布包构建任务对应的构建子任务关联的子任务信息,并基于子任务信息在任务处理子服务关联的任务处理节点集合中确定对应的目标任务处理节点,将目标任务处理节点的处理节点标识信息发送至目标任务调度节点。The device management node 304 analyzes the task scheduling request, determines the subtask information associated with the construction subtask corresponding to the release package construction task, and determines the corresponding target task processing node set in the task processing node set associated with the task processing subservice based on the subtask information The node sends the processing node identification information of the target task processing node to the target task scheduling node.
目标任务调度节点接收到该处理节点标识信息之后,基于处理节点标识信息,将发布包构建任务对应的构建子任务发送至处理节点标识信息对应的目标任务处理节点。目标任务处理节点接收到构建子任务后,由于构建子任务携带的子任务文件列表。因此,目标任务处理节点可以根据构建子任务携带的子任务文件列表,从预设资源管理节点拉取子任务文件列表对应的子发布文件集合。并在拉取完成的情况下,向设备管理节点304发送处理结果信息。After receiving the processing node identification information, the target task scheduling node sends the construction subtask corresponding to the release package construction task to the target task processing node corresponding to the processing node identification information based on the processing node identification information. After the target task processing node receives the construction subtask, it is due to the list of subtask files carried by the construction subtask. Therefore, the target task processing node can pull the sub-release file set corresponding to the sub-task file list from the preset resource management node according to the sub-task file list carried by the construction sub-task. And when the pulling is completed, the processing result information is sent to the device management node 304 .
比如:目标任务调度节点d_Node接收到发布包构建任务A后,将发布包构建任务A拆分为2个构建子任务,并根据构建子任务的构建子任务数量构建任务调度请求dQ。设备管理节点304对目标任务调度节点d_Node发送的任务调度请求dQ进行解析,获得的发布包构建任务A对应的构建子任务数量2个,则确定的目标任务处理节点的数量为2个,并按照预设筛选规则在在子服务集合中任务处理子服务关联的任务处理节点集合中筛选2个目标任务处理节点:h_Node3以及h_Node4,并将这2个目标任务处理节点的处理节点标识信息发送至目标任务调度节点d_Node。目标任务调度节点d_Node将2个构建子任务分别发送到这2个目标任务处理节点。目标任务处理节点h_Node3将其根据构建子任务携带的子任务文件列表For example: after the target task scheduling node d_Node receives the release package construction task A, it splits the release package construction task A into two construction subtasks, and constructs a task scheduling request dQ according to the number of construction subtasks of the construction subtasks. The device management node 304 analyzes the task scheduling request dQ sent by the target task scheduling node d_Node, and obtains 2 construction subtasks corresponding to the release package construction task A, then the determined number of target task processing nodes is 2, and according to The preset filtering rules filter two target task processing nodes: h_Node3 and h_Node4 in the task processing node set associated with the task processing sub-service in the sub-service set, and send the processing node identification information of these two target task processing nodes to the target Task scheduling node d_Node. The target task scheduling node d_Node sends the two construction subtasks to the two target task processing nodes respectively. The target task processing node h_Node3 lists the subtask files carried by it according to the construction subtask
cTL1,从预设资源管理节点res_Node拉取的子任务文件列表cTL1对应的子发布文件集合cTL1, the sub-release file collection corresponding to the sub-task file list cTL1 pulled from the preset resource management node res_Node
w_col1,目标任务处理节点h_Node4将其根据构建子任务携带的子任务文件列表cTL2,从预设资源管理节点res_Node拉取的子任务文件列表cTL2对应的子发布文件集合w_col2,并在拉取完成的情况下,向设备管理节点304发送处理结果信息。设备管理节点304接收目标任务处理节点h_Node3以及h_Node4返回的处理结果信息均为拉取成功,则确定发布包构建任务A的任务中间结果为处理成功。w_col1, the target task processing node h_Node4 uses the subtask file list cTL2 carried by the construction subtask to pull the subtask file list cTL2 corresponding to the subtask file set w_col2 from the preset resource management node res_Node, and completes the pull In this case, the processing result information is sent to the device management node 304 . The device management node 304 receives the processing result information returned by the target task processing nodes h_Node3 and h_Node4, both of which are pulled successfully, and then determines that the task intermediate result of the release package construction task A is processed successfully.
综上,基于发布包构建任务对应的构建子任务的子任务信息,确定目标任务处理节点,实现了基于构建子任务确定所需要的目标任务处理节点,保障了确定目标任务处理节点的合理性,并提高了发布包构建任务的任务处理效率。In summary, based on the subtask information of the construction subtask corresponding to the release package construction task, the target task processing node is determined, which realizes the determination of the required target task processing node based on the construction subtask, and ensures the rationality of determining the target task processing node. And the task processing efficiency of the release package construction task is improved.
可选地,由于保障对发布包构建任务拆分的合理性,本说明书实施例中,需要先确定发布包构建任务对应的任务文件列表,再基于任务文件列表进行拆分,所述目标任务调度节点,进一步被配置为:获取所述发布包构建任务携带的发布包信息;基于所述发布包信息确定任务文件列表;按照预设拆分策略,将所述任务文件列表拆分为子任务文件列表,并基于各个子任务文件列表构建对应的构建子任务。Optionally, to ensure the rationality of splitting the release package construction task, in the embodiment of this specification, it is necessary to first determine the task file list corresponding to the release package construction task, and then split based on the task file list. The target task scheduling The node is further configured to: obtain release package information carried by the release package construction task; determine a task file list based on the release package information; split the task file list into subtask files according to a preset split strategy list, and build corresponding build subtasks based on each subtask file list.
进一步的,所述目标任务调度节点,将发布包构建任务拆分为构建子任务,具体实现如下所示:Further, the target task scheduling node splits the release package construction task into construction subtasks, and the specific implementation is as follows:
获取所述发布包构建任务携带的发布包信息;基于所述发布包信息确定任务文件列表;按照预设拆分策略,将所述任务文件列表拆分为子任务文件列表,并基于各个子任务文件列表构建对应的构建子任务。Obtain the release package information carried by the release package construction task; determine the task file list based on the release package information; split the task file list into subtask file lists according to the preset split strategy, and based on each subtask File list build corresponding build subtasks.
具体的,发布包信息,可以理解为待构建的发布包的相关信息,比如发布包类型(增量包类型,修复包类型,全量包类型和/或流式包类型等),或者发布包文件位置等信息。基于该发布包信息,即可确定发布包构建任务对应的任务文件列表,其中,任务文件列表,狮是指发布包构建任务所需要的资源文件的列表。该列表中可以包括资源文件的相关信息,比如文件名称、文件目录等信息。并对任务文件列表进行拆分获得子任务文件列表。Specifically, the release package information can be understood as the relevant information of the release package to be built, such as the release package type (incremental package type, repair package type, full package type and/or streaming package type, etc.), or the release package file location and other information. Based on the release package information, a task file list corresponding to the release package construction task can be determined, wherein, the task file list refers to a list of resource files required for the release package construction task. The list may include information about resource files, such as file names, file directories, and other information. And the task file list is split to obtain the subtask file list.
基于此,根据发布包信息,确定发布包任务对应的任务文件列表,再将任务文件列表拆分为子任务文件列表,具体的,对任务文件列表进行拆分,可以是按照文件目录进行拆分,也可以是资源文件数量进行拆分,此外,还可以按照文件大小进行拆分等,在此不做限制。进一步的,可以将拆分后的子任务文件列表添加相应的子任务标识信息,生成构建子任务。Based on this, according to the release package information, determine the task file list corresponding to the release package task, and then split the task file list into subtask file lists. Specifically, split the task file list, which can be split according to the file directory , can also be divided by the number of resource files, in addition, can also be divided according to the file size, etc., there is no limit here. Further, corresponding subtask identification information may be added to the split subtask file list to generate a construction subtask.
比如:在发布包信息为发布包类型:增量包的情况下,需要进行版本对比,从而确定增量包对应的任务文件列表TL,再根据任务文件列表TL中文件的数量1000,以及预设的拆分数量:500,将发布包构建任务拆分为两个构建子任务:构建子任务sT1以及构建子任务sT2,每个构建子任务对应包含500个资源文件的子任务文件列表。For example: when the release package information is the release package type: incremental package, version comparison is required to determine the task file list TL corresponding to the incremental package, and then according to the number of files in the task file list TL 1000, and the preset Number of splits: 500, split the release package build task into two build subtasks: build subtask sT1 and build subtask sT2, each build subtask corresponds to a subtask file list containing 500 resource files.
综上,基于发布包信息确定任务文件列表,保障了任务文件列表的准确性。再基于对任务文件列表的拆分实现对发布包构建任务的拆分,增加了拆分的灵活性以及合理性。In summary, determining the task file list based on the release package information ensures the accuracy of the task file list. Based on the splitting of the task file list, the splitting of the release package construction task is realized, which increases the flexibility and rationality of the splitting.
在目标任务处理节点为多个情况下,由于各个目标任务处理节点只处理了一部分任务,它们的处理结果都无法作为一个完整的发布包,本说明书实施例,所述节点管理系统300,还包括:目标任务聚合节点;In the case where there are multiple target task processing nodes, since each target task processing node only processes a part of tasks, their processing results cannot be used as a complete release package. In the embodiment of this specification, the node management system 300 also includes : target task aggregation node;
所述设备管理节点304,还被配置为在任务中间结果为处理成功的情况下,在所述子服务集合中任务聚合子服务关联的任务聚合节点集合中确定所述发布包构建任务对应的目标任务聚合节点,并将所述目标任务聚合节点的聚合节点标识信息发送至各个目标任务处理节点;The device management node 304 is further configured to determine the target corresponding to the release package construction task in the task aggregation node set associated with the task aggregation sub-service in the sub-service set when the intermediate result of the task is processing success a task aggregation node, and send the aggregation node identification information of the target task aggregation node to each target task processing node;
所述目标任务处理节点,进一步被配置为将所述子发布文件集合推送至所述聚合节点标识信息对应的所述目标任务聚合节点;The target task processing node is further configured to push the set of sub-published files to the target task aggregation node corresponding to the aggregation node identification information;
所述目标任务聚合节点,被配置为基于接收的所述子发布文件集合构建所述发布包构建任务对应的目标发布包,并根据构建结果生成聚合结果信息,将所述聚合结果信息发送至设备管理节点304;The target task aggregation node is configured to construct the target release package corresponding to the release package construction task based on the received sub-release file set, generate aggregated result information according to the construction result, and send the aggregated result information to the device management node 304;
所述设备管理节点304,还被配置为接收所述目标任务聚合节点返回的聚合结果信息,并基于所述聚合结果信息确定所述发布包构建任务的任务构建结果。The device management node 304 is further configured to receive the aggregation result information returned by the target task aggregation node, and determine the task construction result of the release package construction task based on the aggregation result information.
具体的,任务聚合子服务,是指用以将目标任务处理节点生成的子任务产物(即子发布文件集合)进行聚合的子服务。相应的,任务聚合节点集合,是指由至少一个任务聚合节点组成的集合。目标任务聚合节点,是指用以为上述发布包构建任务提供任务聚合子服务的设备节点。聚合节点标识信息,是指可以唯一标识目标任务聚合节点的信息,该聚合节点标识信息可以是目标任务聚合节点服务名、或IP地址等,在此不做限制。聚合结果信息,是指目标任务聚合节点执行任务聚合子服务的执行结果信息,该聚合结果信息可以为聚合成功信息,聚合完成信息或聚合失败信息。相应的,任务构建结果,是指发布包构建任务对应的发布包(即目标发布包)的构建结果,该任务构建结果,可以为构建成功,或构建失败。Specifically, the task aggregation sub-service refers to a sub-service for aggregating the sub-task products (ie, the set of sub-published files) generated by the target task processing node. Correspondingly, the task aggregation node set refers to a set composed of at least one task aggregation node. The target task aggregation node refers to a device node used to provide task aggregation sub-services for the above release package construction tasks. The aggregation node identification information refers to information that can uniquely identify the target task aggregation node. The aggregation node identification information may be the service name or IP address of the target task aggregation node, which is not limited here. The aggregation result information refers to the execution result information of the task aggregation sub-service executed by the target task aggregation node, and the aggregation result information may be aggregation success information, aggregation completion information or aggregation failure information. Correspondingly, the task construction result refers to the construction result of the release package corresponding to the release package construction task (that is, the target release package). The task construction result may be a successful build or a build failure.
基于此,在任务中间结果为处理成功的情况下,表明目标任务处理节点已经完成对应的构建子任务,并存在相应的子发布文件集合。为了将分散在多个目标任务处理节点的子发布文件集合进行聚合,需要由设备管理节点304在任务聚合子服务关联的任务聚合节点集合中确定所述发布包构建任务对应的目标任务聚合节点,并将目标任务聚合节点的聚合节点标识信息发送至各个目标任务处理节点。以便各个目标任务处理节点将子发布文件集合发送至目标任务聚合节点。目标任务聚合节点接收到各个目标任务处理节点发送的子发布文件集合,并基于这些子发布文件集合以及发布的版本信息,发布程序等构建发布构建任务对应的目标分布包。并根据构建结果生成聚合结果信息,将聚合结果信息发送至设备管理节点304,设备管理节点304接收目标任务聚合节点返回的聚合结果信息,并基于所述聚合结果信息确定所述发布包构建任务的任务构建结果。Based on this, if the intermediate result of the task is processing successfully, it indicates that the target task processing node has completed the corresponding construction sub-task, and there is a corresponding set of sub-release files. In order to aggregate the sub-published file sets dispersed in multiple target task processing nodes, it is necessary for the device management node 304 to determine the target task aggregation node corresponding to the release package construction task in the task aggregation node set associated with the task aggregation sub-service, And send the aggregation node identification information of the target task aggregation node to each target task processing node. So that each target task processing node sends the set of sub-published files to the target task aggregation node. The target task aggregation node receives the sub-release file sets sent by each target task processing node, and builds the target distribution package corresponding to the release build task based on these sub-release file sets, the released version information, and the release program. And generate aggregation result information according to the construction result, send the aggregation result information to the device management node 304, the device management node 304 receives the aggregation result information returned by the target task aggregation node, and determines the release package construction task based on the aggregation result information Task build result.
比如:在发布包构建任务A对应的任务中间结果为处理成功的情况下,在任务聚合子服务关联的任务聚合节点集合中确定发布包构建任务A对应的目标任务聚合节点t_Node,并将目标任务聚合节点t_Node的聚合节点标识信息t_Node0034发送至目标任务处理节点h_Node3以及目标任务处理节点h_Node4,目标任务处理节点h_Node3将其根据构建子任务携带的子任务文件列表cTL1,从预设资源管理节点res_Node拉取的子任务文件列表cTL1对应的子发布文件集合w_col1发送至目标任务聚合节点t_Node。目标任务处理节点h_Node4将其根据构建子任务携带的子任务文件列表cTL2,从预设资源管理节点res_Node拉取的子任务文件列表cTL2对应的子发布文件集合w_col2发送至目标任务聚合节点t_Node。目标任务聚合节点t_Node将接收的子发布文件集合w_col1和子发布文件集合w_col2进行聚合处理,获得目标发布包。并聚合成功的情况下,向设备管理节点304发送聚合成功信息,设备管理节点基于聚合成功信息,确定发布包构建任务对应的任务构建结果为构建成功。For example: in the case that the intermediate result of the task corresponding to the release package construction task A is processed successfully, determine the target task aggregation node t_Node corresponding to the release package construction task A in the task aggregation node set associated with the task aggregation sub-service, and set the target task The aggregation node identification information t_Node0034 of the aggregation node t_Node is sent to the target task processing node h_Node3 and the target task processing node h_Node4, and the target task processing node h_Node3 pulls it from the preset resource management node res_Node according to the subtask file list cTL1 carried by the construction subtask The sub-release file set w_col1 corresponding to the obtained sub-task file list cTL1 is sent to the target task aggregation node t_Node. The target task processing node h_Node4 sends the sub-release file set w_col2 corresponding to the sub-task file list cTL2 pulled from the preset resource management node res_Node according to the sub-task file list cTL2 carried by the construction sub-task to the target task aggregation node t_Node. The target task aggregation node t_Node aggregates the received sub-release file set w_col1 and sub-release file set w_col2 to obtain the target release package. If the aggregation is successful, the aggregation success information is sent to the device management node 304, and based on the aggregation success information, the device management node determines that the task construction result corresponding to the release package construction task is a successful construction.
综上,通过设备管理节点304选取的目标任务聚合节点对目标任务处理节点的处理结果进行聚合,并基于返回的聚合结果信息确定任务构建结果,保障了构建发布包构建任务的准确性。In summary, the target task aggregation node selected by the device management node 304 aggregates the processing results of the target task processing node, and determines the task construction result based on the returned aggregation result information, which ensures the accuracy of the release package construction task.
实际应用中,可能存在目标任务处理节点本身出现故障,或目标任务处理节点在处理构建子任务的过程中出现异常,导致无法完成构建子任务的情况,为了使处理失败的构建子任务得以被重新处理,本说明书实施例中,所述节点管理系统300,还包括:目标任务回溯节点;In practical applications, there may be a failure of the target task processing node itself, or an abnormality in the process of processing the construction subtask of the target task processing node, resulting in the inability to complete the construction subtask. In order to make the failed construction subtasks be restarted Processing, in the embodiment of this specification, the node management system 300 further includes: a target task backtracking node;
所述设备管理节点304,还被配置为将所述处理节点标识信息发送至所述子服务集合中任务回溯子服务关联的所述目标任务回溯节点;The device management node 304 is further configured to send the processing node identification information to the target task backtracking node associated with the task backtracking sub-service in the sub-service set;
所述目标任务调度节点,还被配置为将各个构建子任务以及各个构建子任务对应的处理节点标识信息发送至所述目标任务回溯节点;The target task scheduling node is further configured to send each construction subtask and the processing node identification information corresponding to each construction subtask to the target task backtracking node;
在预设时长内未接收到任意一个目标任务处理节点返回的处理结果信息情况下,将任意一个目标任务处理节点作为失败目标任务处理节点,所述设备管理节点304,还被配置为确定所述失败目标任务处理节点的目标处理节点标识信息;基于所述目标处理节点标识信息构建子任务查询请求,并将所述子任务查询请求发送至所述目标任务回溯节点;If no processing result information returned by any target task processing node is received within the preset time period, any target task processing node is regarded as a failed target task processing node, and the device management node 304 is further configured to determine the Target processing node identification information of the failed target task processing node; constructing a subtask query request based on the target processing node identification information, and sending the subtask query request to the target task backtracking node;
所述目标任务回溯节点,被配置为基于子任务查询请求中携带的目标处理节点标识信息,查询所述失败目标任务处理节点对应的目标构建子任务,并将所述目标构建子任务发送至设备管理节点304;The target task backtracking node is configured to query the target construction subtask corresponding to the failed target task processing node based on the target processing node identification information carried in the subtask query request, and send the target construction subtask to the device management node 304;
所述设备管理节点304,还被配置为接收所述目标任务回溯节点返回的所述子任务查询请求对应的目标构建子任务;在所述任务处理子服务关联的任务处理节点集合中,确定所述目标构建子任务对应的更新任务处理节点,并将所述目标构建子任务发送至所述更新任务处理节点。The device management node 304 is further configured to receive the target construction subtask corresponding to the subtask query request returned by the target task backtracking node; in the set of task processing nodes associated with the task processing sub-service, determine the an update task processing node corresponding to the target construction subtask, and send the target construction subtask to the update task processing node.
具体的,任务回溯子服务,是指提供任务回溯功能的子服务。相应的,目标任务回溯节点,是指用以为发布包构建任务提供任务回溯子服务的设备节点。实际应用中,在对发布包构建任务进行任务处理过程中任意一个设备节点的处理信息都可以以日志的形式发送至该目标任务回溯节点,以便在任意一个处理过程出错的情况下,可以基于该目标任务回溯节点中存储的处理信息进行任务回溯,从而重新执行出错的任务部分。此外,对系统处理过程中异常问题定位时,也可触发任务回溯,执行特定任务回溯来定位具体异常内容。Specifically, the task backtracking sub-service refers to a sub-service that provides a task backtracking function. Correspondingly, the target task backtracking node refers to a device node used to provide task backtracking sub-services for the release package construction task. In practical applications, during the task processing of the release package construction task, the processing information of any device node can be sent to the target task backtracking node in the form of logs, so that in the case of any error in the processing process, it can be based on the The processing information stored in the target task backtracking node performs task backtracking, so as to re-execute the wrong part of the task. In addition, when locating abnormal problems during system processing, task backtracking can also be triggered, and specific task backtracking can be performed to locate specific abnormal content.
失败目标任务处理节点,是指未返回处理结果信息的目标任务处理节点。目标处理节点标识信息,是指失败目标任务处理节点对应的处理节点标识信息。子任务查询请求,是指用以查询目标任务处理节点所处理失败的构建子任务的查询请求。更新任务处理节点,是指用以针对处理失败的构建子任务进行重新处理的任务处理节点。目标构建子任务,是指处理失败的构建子任务,也即失败目标任务处理节点所处理的构建子任务。A failed target task processing node refers to a target task processing node that does not return processing result information. The target processing node identification information refers to the processing node identification information corresponding to the failed target task processing node. The subtask query request refers to a query request for querying failed construction subtasks processed by the target task processing node. The update task processing node refers to the task processing node used to reprocess the failed construction subtask. The target construction subtask refers to the construction subtask that fails to be processed, that is, the construction subtask processed by the failed target task processing node.
基于此,为了便于对构建子任务的回溯,将目标任务处理节点的处理节点标识信息发送至目标任务调度节点之后,将所述目标任务处理节点的处理节点信息发送至目标任务回溯节点。并且,目标任务调度节点将各个构建子任务以及各个构建子任务对应的处理节点标识信息也发送至目标任务回溯节点;在预设时长内未接收到失败目标任务处理节点返回的处理结果信息情况下,基于失败目标任务处理节点的目标处理节点标识信息构建子任务查询请求,并将子任务查询请求发送至目标任务回溯节点。Based on this, in order to facilitate the traceback of building subtasks, after sending the processing node identification information of the target task processing node to the target task scheduling node, the processing node information of the target task processing node is sent to the target task traceback node. Moreover, the target task scheduling node also sends each construction subtask and the processing node identification information corresponding to each construction subtask to the target task backtracking node; if the processing result information returned by the failed target task processing node is not received within the preset time period , constructing a subtask query request based on the target processing node identification information of the failed target task processing node, and sending the subtask query request to the target task backtracking node.
由目标任务回溯节点基于该子任务查询请求中的目标处理节点标识信息,查询失败目标任务处理节点对应的目标构建子任务,并将该目标构建子任务发送至设备管理节点304,设备管理节点304接收目标任务回溯节点返回的所述任务查询请求对应的目标构建子任务。在任务处理子服务关联的任务处理节点集合中,确定目标构建子任务对应的更新任务处理节点;并将目标构建子任务发送至所述更新任务处理节点,以便利用更新任务处理节点对该目标构建子任务进行任务处理。Based on the target processing node identification information in the subtask query request, the target task backtracking node queries the target construction subtask corresponding to the failed target task processing node, and sends the target construction subtask to the device management node 304, and the device management node 304 Receive the target construction subtask corresponding to the task query request returned by the target task backtracking node. In the task processing node set associated with the task processing sub-service, determine the update task processing node corresponding to the target construction sub-task; and send the target construction sub-task to the update task processing node, so that the target can be constructed by the update task processing node Subtasks perform task processing.
比如:目标任务处理节点为h_Node3以及目标任务处理节点h_Node4的情况下,并将目标任务处理节点h_Node3的处理节点标识信息h_Node3001,目标任务处理节点h_Node4的处理节点标识信息h_Node4002发送任务回溯子任务关联的目标任务回溯节点r_Node。目标任务回溯节点r_Node接收这两个处理节点标识信息,并将这两个处理节点标识信息进行存储。For example: when the target task processing node is h_Node3 and the target task processing node h_Node4, the processing node identification information h_Node3001 of the target task processing node h_Node3 and the processing node identification information h_Node4002 of the target task processing node h_Node4 are sent to the subtask associated with the task backtracking The target task backtracks to node r_Node. The target task backtracking node r_Node receives the identification information of the two processing nodes and stores the identification information of the two processing nodes.
此外,目标任务调度节点d_Node将构建子任务sT1以及构建子任务sT1对应的处理节点标识信息h_Node3001发送至目标任务回溯节点r_Node,并将构建子任务sT2以及构建子任务sT2对应的处理节点标识信息h_Node4002发送至目标任务回溯节点r_Node。In addition, the target task scheduling node d_Node sends the construction subtask sT1 and the processing node identification information h_Node3001 corresponding to the construction subtask sT1 to the target task backtracking node r_Node, and constructs the subtask sT2 and the processing node identification information h_Node4002 corresponding to the construction subtask sT2 Send to the target task backtracking node r_Node.
设备管理节点在10分钟内未收到目标任务处理节点h_Node3返回的处理结果信息,则将目标任务处理节点h_Node3作为失败目标任务处理节点,并基于该失败目标任务处理节点h_Node3的目标处理节点标识信息h_Node3001构建子任务查询请求sq,将该子任务查询请求sq发送至目标任务回溯节点r_Node。目标任务回溯节r_Node点基于该子任务查询请求sq中的目标处理节点标识信息h_Node3001进行查询,确定目标处理节点标识信息h_Node3001对应的目标构建子任务为sT1,并将该目标构建子任务sT1发送至设备管理节点304,设备管理节点304确定目标构建子任务sT1对应的更新任务处理节点为:任务处理节点h_Node5,则将该目标构建子任务sT1发送至任务处理节点h_Node5,以便由任务处理节点h_Node5对该目标构建子任务sT1携带的子任务文件列表进行文件拉取。The device management node does not receive the processing result information returned by the target task processing node h_Node3 within 10 minutes, then the target task processing node h_Node3 is regarded as the failed target task processing node, and based on the target processing node identification information of the failed target task processing node h_Node3 h_Node3001 constructs a subtask query request sq, and sends the subtask query request sq to the target task backtracking node r_Node. The target task backtracking node r_Node is queried based on the target processing node identification information h_Node3001 in the subtask query request sq, and the target construction subtask corresponding to the target processing node identification information h_Node3001 is determined as sT1, and the target construction subtask sT1 is sent to The device management node 304, the device management node 304 determines that the update task processing node corresponding to the target construction subtask sT1 is: task processing node h_Node5, then sends the target construction subtask sT1 to the task processing node h_Node5, so that the task processing node h_Node5 can The target constructs the subtask file list carried by the subtask sT1 to pull the files.
综上,通过对失败目标任务处理节点进行回溯处理,确定失败目标任务处理节点对应的目标构建子任务,并将目标构建子任务发送至更新任务处理节点重新处理,实现了对处理失败的目标构建子任务更换任务处理节点,保证了发布包构建任务的健壮性。To sum up, through the backtracking process of the failed target task processing node, the target construction subtask corresponding to the failed target task processing node is determined, and the target construction subtask is sent to the update task processing node for reprocessing, realizing the target construction of the failed processing node Subtasks replace task processing nodes to ensure the robustness of the release package construction task.
实际应用中,考虑到设备节点之间通信的安全性,子服务集合中还可以包括任务安全子服务,该任务安全子服务关联任务安全节点集合,所述节点管理系统300,还包括:任务安全节点;In practical applications, considering the security of communication between device nodes, the sub-service set may also include a task security sub-service, and the task security sub-service is associated with a task security node set. The node management system 300 also includes: task security node;
所述任务安全节点,被配置为接收所述注册节点提交的所述节点属性信息;基于所述节点属性信息确定节点认证关联信息,并基于所述节点认证关联信息生成通讯令牌,将所述通讯令牌发送至所述设备节点,其中,所述通讯令牌用于在设备间通信过程中对所述设备节点进行安全认证。The task safety node is configured to receive the node attribute information submitted by the registration node; determine node authentication association information based on the node attribute information, and generate a communication token based on the node authentication association information, and transfer the The communication token is sent to the device node, wherein the communication token is used to perform security authentication on the device node during inter-device communication.
具体的,任务安全节点,是指用以提供任务安全子服务的设备节点。其中任务安全子服务,是指提供节点间通信的安全认证的子服务。该任务安全节点可以进行如主机注册信息验证、签名验证、IP验证、游戏白名单验证等验证。节点认证关联信息,是指用以生成通讯令牌的信息,比如节点名称、IP地址等信息。通讯令牌,可以理解为任务安全节点为设备节点颁发的节点认证。Specifically, the task security node refers to a device node for providing task security sub-services. The task security sub-service refers to a sub-service that provides security authentication for communication between nodes. The task security node can perform verification such as host registration information verification, signature verification, IP verification, and game whitelist verification. Node authentication association information refers to information used to generate communication tokens, such as node name, IP address and other information. The communication token can be understood as the node authentication issued by the task safety node for the device node.
基于此,在注册节点接收到设备节点的节点属性信息之后,则可以将该节点属性信息发送至任务安全节点,任务安全节点可以在节点属性信息中直接提取节点认证关联信息,并对节点认证关联信息采用预设加密算法进行加密,生成通讯令牌,将通讯令牌发送至设备节点,设备节点在与其他设备节点进行通讯时,即可在通讯请求中携带该通讯令牌,以便通讯对端可以基于通讯令牌对其进行身份认证。Based on this, after the registration node receives the node attribute information of the device node, it can send the node attribute information to the task safety node, and the task safety node can directly extract the node authentication association information from the node attribute information, and associate the node authentication The information is encrypted using a preset encryption algorithm to generate a communication token and send the communication token to the device node. When the device node communicates with other device nodes, it can carry the communication token in the communication request so that the communication peer It can be authenticated based on a communication token.
假设,设备节点SERVER1的节点属性信息info中还包括IP地址以及服务名,任务安全节点s_Node接收到该节点属性信息info之后,提取节点属性信息info中的IP地址以及服务名,并对二者采用哈希算法进行加密,生成通讯令牌Token,并将该通讯令牌Token发送至设备节点SERVER1。Assume that the node attribute information info of the device node SERVER1 also includes an IP address and a service name. After receiving the node attribute information info, the task security node s_Node extracts the IP address and service name in the node attribute information info, and uses The hash algorithm is encrypted to generate a communication token Token, and the communication token Token is sent to the device node SERVER1.
综上,通过任务安全节点将通讯令牌发送至设备节点,实现了设备节点之间的安全通讯,保障了发布包构建任务执行过程中的安全性。To sum up, the communication token is sent to the device node through the task security node, which realizes the secure communication between the device nodes and ensures the security during the execution of the release package construction task.
可选地,所述设备管理节点304,还被配置为:Optionally, the device management node 304 is further configured to:
删除所述失败目标任务处理节点和所述任务处理子服务之间的目标关联关系。Delete the target association relationship between the failed target task processing node and the task processing sub-service.
可选地,所述设备管理节点304,还被配置为:Optionally, the device management node 304 is further configured to:
向所述设备节点发送所述目标子服务对应的服务启动脚本;在接收到所述设备节点响应于所述服务启动脚本发送的启动成功信息的情况下,执行所述基于所述节点属性信息以及所述目标子服务的服务属性信息,建立所述设备节点和所述目标子服务之间的关联关系,并作为所述节点分配请求的响应步骤。Send the service startup script corresponding to the target sub-service to the device node; in the case of receiving the startup success information sent by the device node in response to the service startup script, execute the The service attribute information of the target sub-service establishes an association relationship between the device node and the target sub-service, and serves as a response step to the node allocation request.
可选地,所述设备管理节点304,还被配置为:Optionally, the device management node 304 is further configured to:
向所述设备节点发送状态检测指令,并接收所述状态检测指令对应的检测信息,在所述检测信息为异常检测信息的情况下,响应于所述异常检测信息删除所述关联关系;和/或,Sending a state detection instruction to the device node, and receiving detection information corresponding to the state detection instruction, and deleting the association relationship in response to the abnormality detection information when the detection information is abnormality detection information; and/or or,
接收所述设备节点上报的异常上报信息,响应于所述异常上报信息删除所述关联关系。receiving the abnormal reporting information reported by the device node, and deleting the association relationship in response to the abnormal reporting information.
可选地,所述设备管理节点304,进一步被配置为:Optionally, the device management node 304 is further configured to:
确定所述任务处理子服务关联的任务处理节点集合,并确定所述任务处理节点集合中的任务处理节点对应的子任务处理数量;Determine the set of task processing nodes associated with the task processing sub-service, and determine the number of subtasks corresponding to the task processing nodes in the set of task processing nodes;
根据所述子任务处理数量,对所述任务处理节点集合中的任务处理节点进行排序,并根据排序结果在所述任务处理节点集合中筛选所述子任务信息关联的目标任务处理节点。Sorting the task processing nodes in the task processing node set according to the subtask processing quantity, and screening the target task processing nodes associated with the subtask information in the task processing node set according to the sorting result.
上述实施例中设备管理节点304的具体实现与上述方法实施例中设备管理节点的具体实现类似,参考上述方法实施例中的具体实现即可,在此不再赘述。The specific implementation of the device management node 304 in the above embodiment is similar to the specific implementation of the device management node in the above method embodiment, just refer to the specific implementation in the above method embodiment, and will not be repeated here.
具体的,如图4所示的发布包构建任务的系统架构图所示,为了保障在发布包构建任务的执行过程的高效性以及稳定性,需要由注册服务、节点管理服务以及分布式资源管理服务之间相互配合共同完成发布包的构建。其中,注册服务提供将设备节点注册至设备管理节点的服务,该注册服务由上述注册节点提供相应的服务功能;节点管理服务提供对设备节点的注册(分配)、状态检查等服务功能,该节点管理服务由上述设备管理节点提供相应的服务功能;分布式资源管理服务提供对资源文件的存储、下发等服务功能,分布式资源管理服务该由上述预设资源管理节点提供相应的服务功能。Specifically, as shown in the system architecture diagram of the release package construction task shown in Figure 4, in order to ensure the efficiency and stability of the execution process of the release package construction task, registration services, node management services, and distributed resource management are required. The services cooperate with each other to complete the construction of the release package. Among them, the registration service provides the service of registering the device node to the device management node, and the registration service provides corresponding service functions by the registration node; the node management service provides service functions such as registration (assignment) and status inspection of the device node. The above-mentioned device management nodes provide corresponding service functions for management services; distributed resource management services provide service functions such as storage and distribution of resource files, and distributed resource management services should be provided by the above-mentioned preset resource management nodes.
进一步的,节点管理服务中还包括5个子服务,这5个子服务分别为任务调度子服务、任务处理子服务、任务聚合子服务、任务回溯子服务以及任务安全子服务。其中,任务调度子服务提供对发布包构建任务的拆分以及发起任务调度请求等服务功能,该任务调度子服务由其关联的任务调度节点提供相应的服务功能;任务处理子服务提供对拆分后的构建子任务进行任务处理的服务功能,该任务处理子服务由其关联的任务处理节点提供相应的服务功能;任务聚合子服务提供对任务处理节点中生成的任务中间产物进行聚合的服务功能,该任务聚合子服务由其关联的任务聚合节点提供相应的服务功能;任务回溯子服务提供对其他服务以及子服务关联的处理过程进行回溯的服务功能,该任务回溯子服务由其关联的任务回溯节点提供相应的服务功能;任务安全子服务提供对其他服务以及子服务关联的设备节点进行通讯认证的服务功能,该任务安全子服务由其关联的任务安全节点提供相应的服务功能;需要说明的是上述各种服务以及子服务关联的设备节点(注册节点、设备管理节点、任务调度节点、任务处理节点、任务聚合节点、任务回溯节点、预设资源管理节点)的数量为至少一个。此外,发布包构建任务的实现还可以外部依赖资源同步,包管理等服务。其中资源同步用以将更新的资源文件同步至分布式管理服务关联的预设资源管理节点。包管理,用以对构建的发布包进行类型以及版本的管理。Further, the node management service also includes 5 sub-services, which are task scheduling sub-service, task processing sub-service, task aggregation sub-service, task backtracking sub-service and task security sub-service. Among them, the task scheduling sub-service provides service functions such as splitting the release package construction task and initiating task scheduling requests. The task scheduling sub-service is provided by its associated task scheduling node with corresponding service functions; the task processing sub-service provides the split The task processing sub-service is provided by its associated task processing node; the task aggregation sub-service provides the service function of aggregating the task intermediate products generated in the task processing node , the task aggregation sub-service provides the corresponding service function by its associated task aggregation node; the task backtracking sub-service provides the service function of backtracking other services and the processing process associated with the sub-service, and the task backtracking sub-service is provided by its associated task The backtracking node provides the corresponding service function; the task security sub-service provides the service function of communication authentication for other services and the device nodes associated with the sub-service, and the task security sub-service is provided by its associated task security node with the corresponding service function; need to explain The number of device nodes (registration nodes, device management nodes, task scheduling nodes, task processing nodes, task aggregation nodes, task backtracking nodes, and preset resource management nodes) associated with the above-mentioned various services and sub-services is at least one. In addition, the implementation of the release package construction task can also rely on external services such as resource synchronization and package management. The resource synchronization is used to synchronize the updated resource files to the preset resource management nodes associated with the distributed management service. Package management, used to manage the type and version of the built release package.
本申请提供的节点管理系统300,为了使设备节点得到合理的利用,通过注册节点302和设备管理节点304相配合,其中,注册节点302,被配置为接收设备节点提交的节点属性信息,基于节点属性信息构建节点分配请求,将节点分配请求发送至设备管理节点304;实现对设备节点发起节点分配请求;设备管理节点304,被配置为接收携带有节点属性信息的节点分配请求,其中,节点属性信息对应设备节点,将节点属性信息与子服务集合对应的筛选条件进行匹配,再根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务,实现了根据设备节点自身的节点属性信息,为其匹配适合的目标子服务;并基于节点属性信息以及目标子服务的服务属性信息,建立设备节点和所述目标子服务之间的关联关系,并作为节点分配请求的响应,以便使用该设备节点提供目标子服务对应的服务功能。The node management system 300 provided by this application cooperates with the device management node 304 through the registration node 302 in order to make the device nodes be reasonably utilized. The registration node 302 is configured to receive the node attribute information submitted by the device node, based on the node The attribute information constructs a node allocation request, and sends the node allocation request to the device management node 304; realizes initiating a node allocation request to the device node; the device management node 304 is configured to receive a node allocation request carrying node attribute information, wherein the node attribute The information corresponds to the device node, and the node attribute information is matched with the filter conditions corresponding to the sub-service set, and then the target sub-service corresponding to the device node is determined in the sub-service set according to the matching result, and the node Attribute information, to match it with a suitable target sub-service; and based on the node attribute information and the service attribute information of the target sub-service, establish an association relationship between the device node and the target sub-service, and use it as a response to the node allocation request, so that Use this device node to provide the service function corresponding to the target sub-service.
本申请提供的节点管理系统,为了使设备节点得到合理的利用,通过所述注册节点302,接收设备节点提交的节点属性信息,基于所述节点属性信息构建节点分配请求,将所述节点分配请求发送至所述设备管理节点304;并通过设备管理节点304接收携带有节点属性信息的节点分配请求,将所述节点属性信息与子服务集合对应的筛选条件进行匹配;根据匹配结果在所述子服务集合中确定所述设备节点对应的目标子服务;基于所述节点属性信息以及所述目标子服务的服务属性信息,建立所述设备节点和所述目标子服务之间的关联关系,并作为所述节点分配请求的响应。实现了根据设备节点自身的节点属性信息,为其匹配适合的目标子服务,以便使用该设备节点提供目标子服务对应的服务功能,不仅保障了目标子服务和设备节点之间的适配性,还保障了目标子服务的处理效率。The node management system provided by this application, in order to make the device nodes be reasonably utilized, through the registration node 302, receives the node attribute information submitted by the device node, constructs a node allocation request based on the node attribute information, and sends the node allocation request Send it to the device management node 304; and receive the node assignment request carrying the node attribute information through the device management node 304, and match the node attribute information with the filter conditions corresponding to the sub-service set; according to the matching result in the sub-service Determine the target sub-service corresponding to the device node in the service set; establish an association relationship between the device node and the target sub-service based on the node attribute information and the service attribute information of the target sub-service, and use it as The node allocates the response to the request. According to the node attribute information of the device node itself, it is matched with the appropriate target sub-service, so that the device node can be used to provide the service function corresponding to the target sub-service, which not only ensures the adaptability between the target sub-service and the device node, The processing efficiency of the target sub-service is also guaranteed.
上述为本实施例的一种节点管理系统的示意性方案。需要说明的是,该节点管理系统的技术方案与上述的节点管理方法的技术方案属于同一构思,节点管理系统的技术方案未详细描述的细节内容,均可以参见上述节点管理方法的技术方案的描述。The foregoing is a schematic solution of a node management system in this embodiment. It should be noted that the technical solution of the node management system and the above-mentioned technical solution of the node management method belong to the same concept, and details of the technical solution of the node management system that are not described in detail can be found in the description of the technical solution of the above-mentioned node management method .
与上述方法实施例相对应,本申请还提供了包构建系统实施例,图5示出了本申请一实施例提供的一种包构建系统的结构示意图。如图5所示,该包构建系统500包括:Corresponding to the foregoing method embodiments, the present application also provides an embodiment of a package construction system. FIG. 5 shows a schematic structural diagram of a package construction system provided by an embodiment of the present application. As shown in Figure 5, the package construction system 500 includes:
目标任务调度节点502、设备管理节点504、目标任务处理节点506以及目标任务聚合节点508,target task scheduling node 502, device management node 504, target task processing node 506 and target task aggregation node 508,
其中,所述目标任务调度节点502,被配置为接收发布包构建任务,并将所述发布包构建任务拆分为构建子任务,并基于所述构建子任务构建任务调度请求,将所述任务调度请求发送至所述设备管理节点504;Wherein, the target task scheduling node 502 is configured to receive the release package construction task, split the release package construction task into construction subtasks, and build a task scheduling request based on the construction subtasks, and divide the task A dispatch request is sent to the device management node 504;
所述设备管理节点504,被配置为响应于所述任务调度请求,确定所述构建子任务对应的目标任务处理节点506,并将所述目标任务处理节点506的处理节点标识信息发送至所述目标任务调度节点502,其中,所述目标任务处理节点506为在子服务集合中任务处理子服务关联的任务处理节点集合中确定的,所述任务处理子服务为根据所述目标任务处理节点506的节点属性信息与所述子服务集合对应的筛选条件的匹配结果,在所述子服务集合中确定的;The device management node 504 is configured to, in response to the task scheduling request, determine the target task processing node 506 corresponding to the construction subtask, and send the processing node identification information of the target task processing node 506 to the The target task scheduling node 502, wherein the target task processing node 506 is determined in the task processing node set associated with the task processing sub-service in the sub-service set, and the task processing sub-service is determined according to the target task processing node 506 The matching result of the node attribute information and the filter condition corresponding to the sub-service set is determined in the sub-service set;
所述目标任务调度节点502,还被配置为基于所述处理节点标识信息,将所述发布包构建任务对应的构建子任务发送至所述目标任务处理节点506;The target task scheduling node 502 is further configured to send the construction subtask corresponding to the release package construction task to the target task processing node 506 based on the identification information of the processing node;
所述目标任务处理节点506,被配置为拉取所述构建子任务对应的子发布文件集合,将所述子发布文件集合推送至所述目标任务聚合节点508;The target task processing node 506 is configured to pull the sub-release file set corresponding to the construction sub-task, and push the sub-release file set to the target task aggregation node 508;
所述目标任务聚合节点508,被配置为基于接收的所述子发布文件集合构建所述发布包构建任务对应的目标发布包。The target task aggregation node 508 is configured to construct a target release package corresponding to the release package construction task based on the received sub-release file set.
可选地,所述设备管理节点504,还被配置为接收发布包构建任务关联的调度节点请求,基于所述调度节点请求确定所述子服务集合中任务调度子服务关联的目标任务调度节点502;并将所述目标任务调度节点502的调度节点标识信息发送至所述调度节点请求对应的任务请求节点;Optionally, the device management node 504 is further configured to receive a scheduling node request associated with a task of publishing a package construction, and determine a target task scheduling node 502 associated with a task scheduling sub-service in the sub-service set based on the scheduling node request ; and send the scheduling node identification information of the target task scheduling node 502 to the task requesting node corresponding to the scheduling node request;
所述目标任务调度节点502,进一步被配置为接收所述任务请求节点提交的所述发布包构建任务。The target task scheduling node 502 is further configured to receive the release package construction task submitted by the task request node.
可选地,所述目标任务调度节点502,进一步被配置为基于所述发布包构建任务对应的构建子任务关联的子任务信息构建任务调度请求;Optionally, the target task scheduling node 502 is further configured to build a task scheduling request based on the subtask information associated with the build subtask corresponding to the release package build task;
相应的,所述设备管理节点504,进一步被配置为对所述任务调度请求进行解析,获得所述发布包构建任务对应的子任务信息;基于所述子任务信息,在所述子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点506。Correspondingly, the device management node 504 is further configured to parse the task scheduling request to obtain subtask information corresponding to the release package construction task; based on the subtask information, in the subservice set The target task processing node 506 is determined in the task processing node set associated with the task processing sub-service.
可选地,所述目标任务处理节点506,还被配置为并在拉取完成的情况下,向所述设备管理节点504发送处理结果信息;Optionally, the target task processing node 506 is further configured to send processing result information to the device management node 504 when the pulling is completed;
所述设备管理节点504,还被配置为接收所述目标任务处理节点506返回的处理结果信息,并基于所述处理结果信息确定所述发布包构建任务的任务中间结果;在所述任务中间结果为处理成功的情况下,在所述子服务集合中任务聚合子服务关联的任务聚合节点集合中确定所述发布包构建任务对应的目标任务聚合节点508,并将所述目标任务聚合节点508的聚合节点标识信息发送至各个目标任务处理节点506。The device management node 504 is further configured to receive the processing result information returned by the target task processing node 506, and determine the task intermediate result of the release package construction task based on the processing result information; in the task intermediate result If the processing is successful, determine the target task aggregation node 508 corresponding to the release package construction task in the task aggregation node set associated with the task aggregation sub-service in the sub-service set, and set the target task aggregation node 508 The aggregation node identification information is sent to each target task processing node 506 .
可选地,所述目标任务调度节点502,进一步被配置为获取所述发布包构建任务携带的发布包信息;基于所述发布包信息确定任务文件列表;Optionally, the target task scheduling node 502 is further configured to acquire release package information carried by the release package construction task; determine a task file list based on the release package information;
按照预设拆分策略,将所述任务文件列表拆分为子任务文件列表,并基于各个子任务文件列表构建对应的构建子任务。According to a preset splitting strategy, the task file list is split into subtask file lists, and corresponding construction subtasks are constructed based on each subtask file list.
所述目标任务处理节点506,进一步被配置为根据所述构建子任务携带的子任务文件列表,从预设资源管理节点拉取所述子任务文件列表对应的子发布文件集合。The target task processing node 506 is further configured to pull the sub-published file set corresponding to the sub-task file list from a preset resource management node according to the sub-task file list carried by the construction sub-task.
可选地,所述目标任务聚合节点508,进一步被配置为基于接收的所述子发布文件集合构建所述发布包构建任务对应的目标发布包,并根据构建结果生成聚合结果信息,将所述聚合结果信息发送至所述设备管理节点504;Optionally, the target task aggregation node 508 is further configured to construct the target release package corresponding to the release package construction task based on the received set of sub-release files, and generate aggregation result information according to the construction result, and convert the The aggregation result information is sent to the device management node 504;
所述设备管理节点504,还被配置为接收所述目标任务聚合节点508返回的聚合结果信息,并基于所述聚合结果信息确定所述发布包构建任务的任务构建结果。The device management node 504 is further configured to receive the aggregation result information returned by the target task aggregation node 508, and determine the task construction result of the release package construction task based on the aggregation result information.
可选地,所述包构建系统,还包括:目标任务回溯节点;Optionally, the package construction system further includes: a target task backtracking node;
所述设备管理节点504,还被配置为将所述处理节点标识信息发送至所述子服务集合中任务回溯子服务关联的所述目标任务回溯节点;The device management node 504 is further configured to send the processing node identification information to the target task backtracking node associated with the task backtracking sub-service in the sub-service set;
所述目标任务调度节点502,还被配置为将各个构建子任务以及各个构建子任务对应的处理节点标识信息发送至所述目标任务回溯节点;The target task scheduling node 502 is further configured to send each construction subtask and the processing node identification information corresponding to each construction subtask to the target task backtracking node;
在预设时长内未接收到任意一个目标任务处理节点506返回的处理结果信息情况下,将任意一个目标任务处理节点506作为失败目标任务处理节点506,所述设备管理节点504,还被配置为确定所述失败目标任务处理节点506的目标处理节点标识信息;基于所述目标处理节点标识信息构建子任务查询请求,并将所述子任务查询请求发送至所述目标任务回溯节点;In the case that the processing result information returned by any target task processing node 506 is not received within the preset time length, any target task processing node 506 is regarded as a failed target task processing node 506, and the device management node 504 is also configured as Determine the target processing node identification information of the failed target task processing node 506; construct a subtask query request based on the target processing node identification information, and send the subtask query request to the target task backtracking node;
所述目标任务回溯节点,被配置为基于子任务查询请求中携带的目标处理节点标识信息,查询所述失败目标任务处理节点506对应的目标构建子任务,并将所述目标构建子任务发送至设备管理节点504;The target task backtracking node is configured to query the target construction subtask corresponding to the failed target task processing node 506 based on the target processing node identification information carried in the subtask query request, and send the target construction subtask to Device management node 504;
所述设备管理节点504,还被配置为接收所述目标任务回溯节点返回的所述子任务查询请求对应的目标构建子任务;在所述任务处理子服务关联的任务处理节点集合中,确定所述目标构建子任务对应的更新任务处理节点,并将所述目标构建子任务发送至所述更新任务处理节点。The device management node 504 is further configured to receive the target construction subtask corresponding to the subtask query request returned by the target task backtracking node; in the task processing node set associated with the task processing sub-service, determine the an update task processing node corresponding to the target construction subtask, and send the target construction subtask to the update task processing node.
可选地,所述包构建系统,还包括:注册节点;Optionally, the package construction system further includes: a registration node;
所述注册节点,被配置为接收目标任务处理节点506提交的节点属性信息,基于所述节点属性信息构建节点分配请求,将所述节点分配请求发送至所述设备管理节点504;The registration node is configured to receive node attribute information submitted by the target task processing node 506, construct a node allocation request based on the node attribute information, and send the node allocation request to the device management node 504;
所述设备管理节点504,被配置为接收携带有节点属性信息的节点分配请求,将所述节点属性信息与子服务集合对应的筛选条件进行匹配;根据匹配结果在所述子服务集合中确定所述目标任务处理节点506对应的任务处理子服务;基于所述节点属性信息以及所述任务处理子服务的服务属性信息,建立所述目标任务处理节点506和所述任务处理子服务之间的关联关系,并作为所述节点分配请求的响应。The device management node 504 is configured to receive a node allocation request carrying node attribute information, match the node attribute information with the filter conditions corresponding to the sub-service set; The task processing sub-service corresponding to the target task processing node 506; based on the node attribute information and the service attribute information of the task processing sub-service, establish an association between the target task processing node 506 and the task processing sub-service relationship, and as a response to the node assignment request.
可选地,所述包构建系统,还包括:任务安全节点;Optionally, the package construction system also includes: a task safety node;
所述任务安全节点,被配置为接收所述注册节点提交的所述节点属性信息;基于所述节点属性信息确定节点认证关联信息,并基于所述节点认证关联信息生成通讯令牌,将所述通讯令牌发送至所述目标任务处理节点506,其中,所述通讯令牌用于在设备间通信过程中对所述目标任务处理节点506进行安全认证。The task security node is configured to receive the node attribute information submitted by the registration node; determine node authentication association information based on the node attribute information, and generate a communication token based on the node authentication association information, and transfer the The communication token is sent to the target task processing node 506, wherein the communication token is used to perform security authentication on the target task processing node 506 during inter-device communication.
可选地,所述设备管理节点504,还被配置为删除所述失败目标任务处理节点506和所述任务处理子服务之间的目标关联关系。Optionally, the device management node 504 is further configured to delete the target association relationship between the failed target task processing node 506 and the task processing sub-service.
可选地,所述设备管理节点504,还被配置为向所述目标任务处理节点506发送所述任务处理子服务对应的服务启动脚本;在接收到所述任务处理节点响应于所述服务启动脚本发送的启动成功信息的情况下,执行所述基于所述节点属性信息以及所述任务处理子服务的服务属性信息,建立所述目标任务处理节点506和所述任务处理子服务之间的关联关系,并作为所述节点分配请求的响应。Optionally, the device management node 504 is further configured to send the service startup script corresponding to the task processing sub-service to the target task processing node 506; In the case of the start-up success information sent by the script, execute the association between the target task processing node 506 and the task processing sub-service based on the node attribute information and the service attribute information of the task processing sub-service relationship, and as a response to the node assignment request.
可选地,所述设备管理节点504,还被配置为向所述D节点发送状态检测指令,并接收所述状态检测指令对应的检测信息,在所述检测信息为异常检测信息的情况下,响应于所述异常检测信息删除所述关联关系;和/或,Optionally, the device management node 504 is further configured to send a state detection instruction to the D node, and receive detection information corresponding to the state detection instruction, and when the detection information is abnormal detection information, deleting the association relationship in response to the anomaly detection information; and/or,
接收所述目标任务处理节点506上报的异常上报信息,响应于所述异常上报信息删除所述目标任务处理节点506和所述任务处理子服务之间的关联关系。receiving the abnormal reporting information reported by the target task processing node 506, and deleting the association relationship between the target task processing node 506 and the task processing sub-service in response to the abnormal reporting information.
可选地,所述设备管理节点504,进一步被配置为确定所述任务处理子服务关联的任务处理节点集合,并确定所述任务处理节点集合中的任务处理节点对应的子任务处理数量;Optionally, the device management node 504 is further configured to determine a set of task processing nodes associated with the task processing sub-service, and determine the number of subtasks corresponding to the task processing nodes in the set of task processing nodes;
根据所述子任务处理数量,对所述任务处理节点集合中的任务处理节点进行排序,并根据排序结果在所述任务处理节点集合中筛选所述子任务信息关联的目标任务处理节点506。According to the subtask processing quantity, sort the task processing nodes in the task processing node set, and filter the target task processing node 506 associated with the subtask information in the task processing node set according to the sorting result.
综上,本说明书实施例提供的包构建系统,通过目标任务调度节点502、设备管理节点504、目标任务处理节点506以及目标任务聚合节点508进行配合,其中,所述目标任务调度节点502,被配置为接收发布包构建任务,并将发布包构建任务拆分为构建子任务,并基于构建子任务构建任务调度请求,将任务调度请求发送至设备管理节点504,实现了针对拆分后的构建子任务申请用以进行任务处理的目标任务处理节点;设备管理节点504,被配置为响应于任务调度请求,确定构建子任务对应的目标任务处理节点506,并将目标任务处理节点506的处理节点标识信息发送至目标任务调度节点502,其中,目标任务处理节点506为在子服务集合中任务处理子服务关联的任务处理节点集合中确定的,任务处理子服务为根据目标任务处理节点506的节点属性信息与子服务集合对应的筛选条件的匹配结果,在子服务集合中确定的,保障了用以进行任务处理的目标任务处理节点的处理能力;目标任务调度节点502,还被配置为基于处理节点标识信息,将发布包构建任务对应的构建子任务发送至目标任务处理节点506;目标任务处理节点506,被配置为拉取构建子任务对应的子发布文件集合,将子发布文件集合推送目标任务聚合节点508;目标任务聚合节点508,被配置为基于接收的所述子发布文件集合构建发布包构建任务对应的目标发布包,实现了基于构建子任务进行任务处理,从而提高了任务处理效率。To sum up, the package construction system provided by the embodiment of this specification cooperates through the target task scheduling node 502, the device management node 504, the target task processing node 506 and the target task aggregation node 508, wherein the target task scheduling node 502 is It is configured to receive the release package construction task, split the release package construction task into construction subtasks, construct a task scheduling request based on the construction subtasks, and send the task scheduling request to the device management node 504, realizing the construction after splitting The subtask applies for a target task processing node for task processing; the device management node 504 is configured to determine the target task processing node 506 corresponding to the construction subtask in response to the task scheduling request, and assign the processing node of the target task processing node 506 The identification information is sent to the target task scheduling node 502, wherein the target task processing node 506 is determined in the task processing node set associated with the task processing sub-service in the sub-service set, and the task processing sub-service is a node according to the target task processing node 506 The matching result of the attribute information and the filter condition corresponding to the sub-service set is determined in the sub-service set, which guarantees the processing capability of the target task processing node for task processing; the target task scheduling node 502 is also configured to process based on Node identification information, send the construction subtask corresponding to the release package construction task to the target task processing node 506; the target task processing node 506 is configured to pull the sub-release file set corresponding to the build sub-task, and push the sub-release file set to the target The task aggregation node 508; the target task aggregation node 508 is configured to construct the target release package corresponding to the release package construction task based on the received sub-release file set, and implement task processing based on the construction of sub-tasks, thereby improving task processing efficiency .
上述为本实施例的一种包构建系统的示意性方案。需要说明的是,该包构建系统的技术方案与上述的节点管理系统的技术方案属于同一构思,包构建系统的技术方案未详细描述的细节内容,均可以参见上述节点管理系统的技术方案的描述。The foregoing is a schematic solution of a package construction system in this embodiment. It should be noted that the technical solution of the package construction system and the technical solution of the above-mentioned node management system belong to the same concept. For details not described in detail in the technical solution of the package construction system, please refer to the description of the technical solution of the above-mentioned node management system .
与上述系统实施例相对应,本申请还提供了包构建方法实施例,图6示出了本申请一实施例提供的一种包构建方法的流程图,所述包构建方法,具体包括如下步骤:Corresponding to the above-mentioned system embodiment, the present application also provides an embodiment of a package construction method. FIG. 6 shows a flow chart of a package construction method provided by an embodiment of the present application. The package construction method specifically includes the following steps :
步骤602:接收发布包构建任务,将所述发布包构建任务拆分为构建子任务;Step 602: Receive the release package construction task, and split the release package construction task into construction subtasks;
步骤604:确定所述构建子任务对应的目标任务处理节点,并将所述构建子任务发送至所述目标任务处理节点,其中,所述目标任务处理节点为在子服务集合中任务处理子服务关联的任务处理节点集合中确定的,所述任务处理子服务为根据所述目标任务处理节点的节点属性信息与所述子服务集合对应的筛选条件的匹配结果,在所述子服务集合中确定的;Step 604: Determine the target task processing node corresponding to the construction subtask, and send the construction subtask to the target task processing node, wherein the target task processing node is the task processing subservice in the subservice set Determined in the associated task processing node set, the task processing sub-service is determined in the sub-service set according to the matching result of the node attribute information of the target task processing node and the filter condition corresponding to the sub-service set of;
步骤606:接收所述目标任务处理节点基于所述构建子任务返回的子发布文件集合;Step 606: Receive the sub-release file set returned by the target task processing node based on the construction sub-task;
步骤608:基于所述子发布文件集合构建所述发布包构建任务对应的目标发布包。Step 608: Construct the target release package corresponding to the release package construction task based on the set of sub-release files.
可选地,所述确定所述构建子任务对应的目标任务处理节点,包括:Optionally, the determining the target task processing node corresponding to the construction subtask includes:
基于所述构建子任务对应的子任务信息,在所述子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点。Based on the subtask information corresponding to the construction subtask, the target task processing node is determined in the task processing node set associated with the task processing subservice in the subservice set.
可选地,所述将所述发布包构建任务拆分为构建子任务,包括:Optionally, the splitting the publishing package building task into building subtasks includes:
获取所述发布包构建任务携带的发布包信息;Acquiring the release package information carried by the release package construction task;
基于所述发布包信息确定任务文件列表;determining a task file list based on the release package information;
按照预设拆分策略,将所述任务文件列表拆分为子任务文件列表,并基于各个子任务文件列表构建对应的构建子任务。According to a preset splitting strategy, the task file list is split into subtask file lists, and corresponding construction subtasks are constructed based on each subtask file list.
可选地,所述确定所述构建子任务对应的目标任务处理节点之后,还包括:Optionally, after determining the target task processing node corresponding to the construction subtask, the method further includes:
将各个构建子任务以及各个构建子任务对应的处理节点标识信息发送至所述目标任务回溯节点;Send each construction subtask and the processing node identification information corresponding to each construction subtask to the target task backtracking node;
所述将所述构建子任务发送至所述目标任务处理节点之后,还包括:After sending the construction subtask to the target task processing node, it also includes:
在预设时长内未接收到任意一个目标任务处理节点返回的处理结果信息情况下,将任意一个目标任务处理节点作为失败目标任务处理节点;If the processing result information returned by any target task processing node is not received within the preset time period, any target task processing node is regarded as a failed target task processing node;
确定所述失败目标任务处理节点的目标处理节点标识信息;Determine the target processing node identification information of the failed target task processing node;
基于所述目标处理节点标识信息构建子任务查询请求,并将所述子任务查询请求发送至所述目标任务回溯节点;Constructing a subtask query request based on the target processing node identification information, and sending the subtask query request to the target task backtracking node;
接收所述目标任务回溯节点返回的所述子任务查询请求对应的目标构建子任务;receiving the target construction subtask corresponding to the subtask query request returned by the target task backtracking node;
在所述任务处理子服务关联的任务处理节点集合中,确定所述目标构建子任务对应的更新任务处理节点,并将所述目标构建子任务发送至所述更新任务处理节点。In the task processing node set associated with the task processing sub-service, determine the update task processing node corresponding to the target construction sub-task, and send the target construction sub-task to the update task processing node.
可选地,所述将任意一个目标任务处理节点作为失败目标任务处理节点之后,还包括:删除所述失败目标任务处理节点和所述任务处理子服务之间的目标关联关系。Optionally, after setting any target task processing node as the failed target task processing node, the method further includes: deleting the target association relationship between the failed target task processing node and the task processing sub-service.
可选地,所述包构建方法,还包括:Optionally, the package construction method also includes:
接收所述目标任务处理节点的节点属性信息;receiving node attribute information of the target task processing node;
基于所述节点属性信息确定节点认证关联信息,并基于所述节点认证关联信息生成通讯令牌,将所述通讯令牌发送至所述目标任务处理节点,其中,所述通讯令牌用于在设备间通信过程中对所述目标任务处理节点进行安全认证。Determine node authentication association information based on the node attribute information, and generate a communication token based on the node authentication association information, and send the communication token to the target task processing node, wherein the communication token is used in Security authentication is performed on the target task processing node during inter-device communication.
可选地,所述包构建方法,还包括:Optionally, the package construction method also includes:
接收携带有所述节点属性信息的节点分配请求,将所述节点属性信息与子服务集合对应的筛选条件进行匹配;receiving a node assignment request carrying the node attribute information, and matching the node attribute information with the filter conditions corresponding to the sub-service set;
根据匹配结果在所述子服务集合中确定所述目标任务处理节点对应的任务处理子服务;determining the task processing sub-service corresponding to the target task processing node in the sub-service set according to the matching result;
基于所述节点属性信息以及所述任务处理子服务的服务属性信息,建立所述目标任务处理节点和所述任务处理子服务之间的关联关系,并作为所述节点分配请求的响应。Based on the node attribute information and the service attribute information of the task processing sub-service, establish an association relationship between the target task processing node and the task processing sub-service, and use it as a response to the node allocation request.
可选地,所述根据匹配结果在所述子服务集合中确定所述目标任务处理节点对应的任务处理子服务之后,还包括:Optionally, after determining the task processing sub-service corresponding to the target task processing node in the sub-service set according to the matching result, the method further includes:
向所述目标任务处理节点发送所述任务处理子服务对应的服务启动脚本;sending a service startup script corresponding to the task processing sub-service to the target task processing node;
在接收到所述任务处理节点响应于所述服务启动脚本发送的启动成功信息的情况下,执行所述基于所述节点属性信息以及所述任务处理子服务的服务属性信息,建立所述目标任务处理节点和所述任务处理子服务之间的关联关系,并作为所述节点分配请求的响应步骤。In the case of receiving the startup success information sent by the task processing node in response to the service startup script, execute the service attribute information based on the node attribute information and the task processing sub-service, and create the target task Processing the association relationship between the node and the task processing sub-service, as a response step of the node allocation request.
可选地,所述包构建方法,还包括:Optionally, the package construction method also includes:
向所述目标任务处理节点发送状态检测指令,并接收所述状态检测指令对应的检测信息,在所述检测信息为异常检测信息的情况下,响应于所述异常检测信息删除所述关联关系;和/或,Sending a state detection instruction to the target task processing node, and receiving detection information corresponding to the state detection instruction, and deleting the association relationship in response to the abnormal detection information when the detection information is abnormal detection information; and / or,
接收所述目标任务处理节点上报的异常上报信息,响应于所述异常上报信息删除所述关联关系。receiving the abnormal reporting information reported by the target task processing node, and deleting the association relationship in response to the abnormal reporting information.
可选地,所述基于所述构建子任务对应的子任务信息,在所述子服务集合中任务处理子服务关联的任务处理节点集合中确定目标任务处理节点,包括:Optionally, based on the subtask information corresponding to the construction subtask, determining the target task processing node in the task processing node set associated with the task processing subservice in the subservice set includes:
确定所述任务处理子服务关联的任务处理节点集合,并确定所述任务处理节点集合中的任务处理节点对应的子任务处理数量;Determine the set of task processing nodes associated with the task processing sub-service, and determine the number of subtasks corresponding to the task processing nodes in the set of task processing nodes;
根据所述子任务处理数量,对所述任务处理节点集合中的任务处理节点进行排序,并根据排序结果在所述任务处理节点集合中筛选所述子任务信息关联的目标任务处理节点。Sorting the task processing nodes in the task processing node set according to the subtask processing quantity, and screening the target task processing nodes associated with the subtask information in the task processing node set according to the sorting result.
综上,本说明书实施例提供的包构建方法,通过接收发布包构建任务,将发布包构建任务拆分为构建子任务;确定构建子任务对应的目标任务处理节点,并将所述构建子任务发送至目标任务处理节点,实现了针对拆分后的构建子任务申请用以进行任务处理的目标任务处理节点,其中,目标任务处理节点为在子服务集合中任务处理子服务关联的任务处理节点集合中确定的,任务处理子服务为根据目标任务处理节点的节点属性信息与所述子服务集合对应的筛选条件的匹配结果,在子服务集合中确定的,保障了用以进行任务处理的目标任务处理节点的处理能力;并接收目标任务处理节点基于构建子任务返回的子发布文件集合,基于子发布文件集合构建发布包构建任务对应的目标发布包,实现了基于构建子任务进行任务处理,从而提高了任务处理效率。To sum up, the package construction method provided by the embodiment of this specification splits the release package construction task into construction subtasks by receiving the release package construction task; determines the target task processing node corresponding to the construction subtasks, and divides the construction subtasks Send it to the target task processing node, and implement the target task processing node for the split construction subtask application for task processing, where the target task processing node is the task processing node associated with the task processing sub-service in the sub-service set Determined in the set, the task processing sub-service is determined in the sub-service set according to the matching result of the node attribute information of the target task processing node and the filter conditions corresponding to the sub-service set, which guarantees the goal of task processing The processing capability of the task processing node; and receive the sub-release file set returned by the target task processing node based on the construction of the sub-task, build the release package based on the sub-release file set and build the target release package corresponding to the task, and realize task processing based on the construction of sub-tasks, Thereby improving the task processing efficiency.
上述为本实施例的一种包构建方法的示意性方案。需要说明的是,该包构建方法的技术方案与上述的节点管理系统的技术方案属于同一构思,包构建系统的技术方案未详细描述的细节内容,均可以参见上述节点管理系统的技术方案的描述。The foregoing is a schematic solution of a package construction method in this embodiment. It should be noted that the technical solution of the package construction method and the above-mentioned technical solution of the node management system belong to the same concept, and details not described in detail in the technical solution of the package construction system can be found in the description of the technical solution of the above-mentioned node management system .
图7示出了根据本申请一实施例提供的一种计算设备700的结构框图。该计算设备700的部件包括但不限于存储器710和处理器720。处理器720与存储器710通过总线730相连接,数据库750用于保存数据。FIG. 7 shows a structural block diagram of a computing device 700 provided according to an embodiment of the present application. Components of the computing device 700 include, but are not limited to, memory 710 and processor 720 . The processor 720 is connected to the memory 710 through the bus 730, and the database 750 is used for storing data.
计算设备700还包括接入设备740,接入设备740使得计算设备700能够经由一个或多个网络760通信。这些网络的示例包括公用交换电话网(PSTN,Public SwitchedTelephone Network)、局域网(LAN,Local Area Network)、广域网(WAN,Wide AreaNetwork)、个域网(PAN,Personal Area Network)或诸如因特网的通信网络的组合。接入设备740可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC,networkinterface controller))中的一个或多个,诸如IEEE802.11无线局域网(WLAN,WirelessLocal Area Network)无线接口、全球微波互联接入(Wi-MAX,WorldwideInteroperability for Microwave Access)接口、以太网接口、通用串行总线(USB,Universal Serial Bus)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC,Near FieldCommunication)接口,等等。Computing device 700 also includes an access device 740 that enables computing device 700 to communicate via one or more networks 760 . Examples of these networks include a public switched telephone network (PSTN, Public Switched Telephone Network), a local area network (LAN, Local Area Network), a wide area network (WAN, Wide Area Network), a personal area network (PAN, Personal Area Network) or a communication network such as the Internet The combination. The access device 740 may include one or more of wired or wireless network interfaces of any type (for example, a network interface card (NIC, network interface controller)), such as an IEEE802.11 wireless local area network (WLAN, Wireless Local Area Network) wireless interface , Worldwide Interoperability for Microwave Access (Wi-MAX, Worldwide Interoperability for Microwave Access) interface, Ethernet interface, Universal Serial Bus (USB, Universal Serial Bus) interface, cellular network interface, Bluetooth interface, near field communication (NFC, Near FieldCommunication ) interface, and so on.
在本申请的一个实施例中,计算设备700的上述部件以及图7中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图7所示的计算设备结构框图仅仅是出于示例的目的,而不是对本申请范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In an embodiment of the present application, the above-mentioned components of the computing device 700 and other components not shown in FIG. 7 may also be connected to each other, for example, through a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 7 is only for the purpose of illustration, rather than limiting the scope of the application. Those skilled in the art can add or replace other components as needed.
计算设备700可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或个人计算机(PC,Personal Computer)的静止计算设备。计算设备700还可以是移动式或静止式的服务器。Computing device 700 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile telephones (e.g., smartphones), ), wearable computing devices (eg, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PC, Personal Computer). Computing device 700 may also be a mobile or stationary server.
其中,处理器720用于执行所述节点管理方法的计算机可执行指令。Wherein, the processor 720 is configured to execute computer-executable instructions of the node management method.
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的节点管理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述节点管理方法的技术方案的描述。The foregoing is a schematic solution of a computing device in this embodiment. It should be noted that the technical solution of the computing device and the above-mentioned technical solution of the node management method belong to the same concept, and details not described in detail in the technical solution of the computing device can refer to the description of the technical solution of the above-mentioned node management method.
本申请一实施例还提供一种计算机可读存储介质,其存储有计算机指令,该指令被处理器执行时以用于节点管理方法。An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions, and the instructions are used for the node management method when executed by a processor.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的节点管理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述节点管理方法的技术方案的描述。The foregoing is a schematic solution of a computer-readable storage medium in this embodiment. It should be noted that the technical solution of the storage medium and the above-mentioned technical solution of the node management method belong to the same idea, and details not described in detail in the technical solution of the storage medium can refer to the description of the technical solution of the above-mentioned node management method.
所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The computer instructions include computer program code, which may be in source code form, object code form, executable file or some intermediate form or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer-readable media Excludes electrical carrier signals and telecommunication signals.
本申请一实施例还提供一种芯片,其存储有计算机程序,该计算机程序被芯片执行时实现所述节点管理方法的步骤。An embodiment of the present application also provides a chip, which stores a computer program, and when the computer program is executed by the chip, the steps of the node management method are implemented.
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本申请所必须的。It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
以上公开的本申请优选实施例只是用于帮助阐述本申请。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本申请的内容,可作很多的修改和变化。本申请选取并具体描述这些实施例,是为了更好地解释本申请的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本申请。本申请仅受权利要求书及其全部范围和等效物的限制。The preferred embodiments of the present application disclosed above are only used to help clarify the present application. Alternative embodiments are not exhaustive in all detail, nor are the inventions limited to specific implementations described. Obviously, many modifications and changes can be made according to the content of this application. This application selects and specifically describes these embodiments in order to better explain the principles and practical applications of this application, so that those skilled in the art can well understand and use this application. This application is to be limited only by the claims, along with their full scope and equivalents.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310443896.XA CN116455962A (en) | 2023-04-21 | 2023-04-21 | Node management method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310443896.XA CN116455962A (en) | 2023-04-21 | 2023-04-21 | Node management method and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116455962A true CN116455962A (en) | 2023-07-18 |
Family
ID=87123587
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310443896.XA Pending CN116455962A (en) | 2023-04-21 | 2023-04-21 | Node management method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116455962A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130219036A1 (en) * | 2012-02-21 | 2013-08-22 | Oracle International Corporation | Assigning server categories to server nodes in a heterogeneous cluster |
| US8595103B1 (en) * | 2008-09-30 | 2013-11-26 | Accenture Global Services Limited | Deployment and release component system |
| US9106676B1 (en) * | 2013-03-07 | 2015-08-11 | Ca, Inc. | Grid-based server messaging infrastructure |
| CN108038215A (en) * | 2017-12-22 | 2018-05-15 | 上海达梦数据库有限公司 | Data processing method and system |
| CN111290854A (en) * | 2020-01-20 | 2020-06-16 | 腾讯科技(深圳)有限公司 | Task management method, device and system, computer storage medium and electronic equipment |
| US20220095260A1 (en) * | 2019-01-14 | 2022-03-24 | Apple Inc. | Management of vehicle-to-everything pc5 capability in 5g systems |
-
2023
- 2023-04-21 CN CN202310443896.XA patent/CN116455962A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8595103B1 (en) * | 2008-09-30 | 2013-11-26 | Accenture Global Services Limited | Deployment and release component system |
| US20130219036A1 (en) * | 2012-02-21 | 2013-08-22 | Oracle International Corporation | Assigning server categories to server nodes in a heterogeneous cluster |
| US9106676B1 (en) * | 2013-03-07 | 2015-08-11 | Ca, Inc. | Grid-based server messaging infrastructure |
| CN108038215A (en) * | 2017-12-22 | 2018-05-15 | 上海达梦数据库有限公司 | Data processing method and system |
| US20220095260A1 (en) * | 2019-01-14 | 2022-03-24 | Apple Inc. | Management of vehicle-to-everything pc5 capability in 5g systems |
| CN111290854A (en) * | 2020-01-20 | 2020-06-16 | 腾讯科技(深圳)有限公司 | Task management method, device and system, computer storage medium and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10700947B2 (en) | Life cycle management method and device for network service | |
| CA2969755C (en) | Type-to-type analysis for cloud computing technical components | |
| CN105049268A (en) | Distributed computing resource allocation system and task processing method | |
| CN109951551B (en) | Container mirror image management system and method | |
| CN103139299A (en) | Cloud service scheduling method and cloud service scheduling system among multiple clouds | |
| CN109298937A (en) | File parsing method and network device | |
| CN108243055A (en) | A container cloud automatic discovery and registration system and method | |
| CN110324423A (en) | A kind of service registration discovery method, system, equipment and medium | |
| CN110581893B (en) | Data transmission method and device, routing equipment, server and storage medium | |
| CN116455962A (en) | Node management method and system | |
| US10819557B1 (en) | Systems and methods for selective discovery of services | |
| CN116821215B (en) | OPC UA server search method based on port query | |
| CN116095007A (en) | Load scheduling method, device, computer equipment and storage medium | |
| CN112889247B (en) | VNF service instantiation method and device | |
| CN109286513B (en) | Resource deployment method and device | |
| US20250298597A1 (en) | Application Deployment Based on Image Fingerprint | |
| HK40089547A (en) | Method, apparatus, device, and storage medium for determining number of copies | |
| WO2016087640A1 (en) | Type-to-type analysis for cloud computing technical components | |
| WO2024118045A1 (en) | Continuous container utilization system and method | |
| CN116980465A (en) | Application publishing method, device, computer equipment and computer-readable storage medium | |
| CN117472541A (en) | A cluster task processing method, device, electronic device and storage medium | |
| CN120179934A (en) | URL convergence method, server and computing device cluster | |
| CN118433273A (en) | Industrial Internet identification resolution method, equipment, storage medium and device | |
| CN119473498A (en) | A capacity reduction method, device, electronic device and storage medium based on Yarn-Kubernetes | |
| CN114884987A (en) | Method, device and storage medium for acquiring equipment state information |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |