Movatterモバイル変換


[0]ホーム

URL:


CN114363175A - Cluster monitoring method, device and electronic device - Google Patents

Cluster monitoring method, device and electronic device
Download PDF

Info

Publication number
CN114363175A
CN114363175ACN202210194432.5ACN202210194432ACN114363175ACN 114363175 ACN114363175 ACN 114363175ACN 202210194432 ACN202210194432 ACN 202210194432ACN 114363175 ACN114363175 ACN 114363175A
Authority
CN
China
Prior art keywords
cluster
configuration data
node
updated
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210194432.5A
Other languages
Chinese (zh)
Inventor
徐川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co LtdfiledCriticalBeijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202210194432.5ApriorityCriticalpatent/CN114363175A/en
Publication of CN114363175ApublicationCriticalpatent/CN114363175A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

The invention provides a cluster monitoring method, a cluster monitoring device and electronic equipment, wherein the method comprises the following steps: monitoring configuration data of each node in a target cluster under a multi-cluster architecture in a preset plug-in; the preset plug-in stores configuration data of nodes contained in each cluster in the multi-cluster architecture; and if the configuration data of the target node in the target cluster is monitored to be updated, sending the updated configuration data to the target node so that the target node adjusts the configuration according to the updated configuration data. In the method, the configuration data of each cluster under the multi-cluster architecture can be uniformly managed through the preset plug-in, and when the configuration data in the preset plug-in changes, the change data can be automatically triggered to be issued to the corresponding node, so that the global synchronization of the configuration data is ensured, and the phenomena of configuration omission and configuration errors in the cluster deployment process are avoided.

Description

Translated fromChinese
集群监控方法、装置和电子设备Cluster monitoring method, device and electronic device

技术领域technical field

本发明涉及集群管理技术领域,尤其是涉及一种集群监控方法、装置和电子设备。The present invention relates to the technical field of cluster management, in particular to a cluster monitoring method, device and electronic device.

背景技术Background technique

相关技术中,Rancher是一个容器集群的编排工具,该Rancher为容器提供一揽子基础架构服务,也可以让服务跨越公有云、私有云、虚拟机和物理机环境运行,真正实现一键式应用部署和管理。在Rancher部署的多集群环境下,集群公用的基础设施可能需要重新部署,但多套环境的配置可能在部署过程中存在遗漏或者错误的情况,同时也难以对集群配置进行统一管理。In related technologies, Rancher is an orchestration tool for container clusters. Rancher provides a package of infrastructure services for containers, and also allows services to run across public cloud, private cloud, virtual machine and physical machine environments, truly realizing one-click application deployment and deployment. manage. In the multi-cluster environment deployed by Rancher, the common infrastructure of the cluster may need to be redeployed, but the configuration of multiple environments may be omitted or wrong in the deployment process, and it is also difficult to manage the cluster configuration in a unified manner.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种集群监控方法、装置和电子设备,以避免集群部署过程中配置遗漏或者配置错误的现象,同时实现对集群配置的统一管理。The purpose of the present invention is to provide a cluster monitoring method, device and electronic device, so as to avoid the phenomenon of configuration omission or configuration error in the cluster deployment process, and at the same time realize the unified management of the cluster configuration.

第一方面,本发明提供了一种集群监控方法,该方法应用于预设的多集群架构中的目标集群;多集群架构中包含有多个集群,每个集群包含有至少一个节点;该方法包括:监听预设插件中目标集群中每个节点的配置数据;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据;如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至目标节点,以使目标节点根据更新的配置数据调整配置。In a first aspect, the present invention provides a cluster monitoring method, which is applied to a target cluster in a preset multi-cluster architecture; the multi-cluster architecture includes multiple clusters, and each cluster includes at least one node; the method Including: monitoring the configuration data of each node in the target cluster in the preset plug-in; wherein, the preset plug-in stores the configuration data of the nodes included in each cluster in the multi-cluster architecture; if the configuration data of the target node in the target cluster is monitored The data is updated, and the updated configuration data is sent to the target node, so that the target node adjusts the configuration according to the updated configuration data.

在可选的实施方式中,上述预设插件包含有自定义接口;上述如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至目标节点的步骤,包括:如果监听到预设插件中目标节点的配置数据被更新,通过自定义接口从预设插件中获取更新的配置数据;将获取到的更新的配置数据发送至目标节点。In an optional embodiment, the above-mentioned preset plug-in includes a custom interface; the above-mentioned step of sending the updated configuration data to the target node if the configuration data of the target node in the target cluster is monitored is updated, including: The configuration data of the target node in the preset plug-in is updated, and the updated configuration data is obtained from the preset plug-in through the custom interface; the obtained updated configuration data is sent to the target node.

在可选的实施方式中,上述方法还包括:接收自定义接口发送的数据获取指令;通过该自定义接口,将数据获取指令请求的数据发送至指定设备。In an optional embodiment, the above method further includes: receiving a data acquisition instruction sent by a custom interface; and sending the data requested by the data acquisition instruction to a designated device through the custom interface.

在可选的实施方式中,上述方法还包括:如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至除目标节点之外的指定节点。In an optional implementation manner, the above method further includes: if it is monitored that the configuration data of the target node in the target cluster is updated, sending the updated configuration data to a specified node other than the target node.

第二方面,本发明提供了一种集群监控方法,该方法应用于预设的多集群架构中的部署设备;该多集群架构中包含有多个集群,每个集群包含有至少一个节点;该方法包括:如果第一集群加入到多集群架构,将第一集群所包含的每个节点的配置数据保存至预设插件;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据;通过第一集群中的控制器,监听预设插件中第一集群中每个节点的配置数据;如果监听到第一集群中第一节点的配置数据被更新,将更新的配置数据发送至第一节点,以使第一节点根据接收到的更新的配置数据调整配置。In a second aspect, the present invention provides a cluster monitoring method, which is applied to a deployment device in a preset multi-cluster architecture; the multi-cluster architecture includes multiple clusters, and each cluster includes at least one node; the The method includes: if the first cluster is added to the multi-cluster architecture, saving the configuration data of each node included in the first cluster to a preset plug-in; wherein, the preset plug-in stores the data contained in each cluster in the multi-cluster architecture. The configuration data of the node; through the controller in the first cluster, monitor the configuration data of each node in the first cluster in the preset plug-in; if the configuration data of the first node in the first cluster is monitored to be updated, the updated configuration The data is sent to the first node to cause the first node to adjust the configuration according to the received updated configuration data.

在可选的实施方式中,上述方法还包括:响应针对于第二集群中第二节点的配置数据的修改指令,更新预设插件中第二集群中的第二节点的配置数据。In an optional embodiment, the above method further includes: in response to a modification instruction for the configuration data of the second node in the second cluster, updating the configuration data of the second node in the second cluster in the preset plug-in.

第三方面,本发明实施例还提供了一种集群监控装置,该装置设置于预设的多集群架构中的目标集群;该多集群架构中包含有多个集群,每个集群包含有至少一个节点;该装置包括:数据监听模块,用于监听预设插件中目标集群中每个节点的配置数据;其中,该预设插件中存储有多集群架构中每个集群所包含的节点的配置数据;数据发送模块,用于如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至目标节点,以使目标节点根据更新的配置数据调整配置。In a third aspect, an embodiment of the present invention further provides a cluster monitoring device, the device is set to a target cluster in a preset multi-cluster architecture; the multi-cluster architecture includes multiple clusters, and each cluster includes at least one node; the device includes: a data monitoring module for monitoring the configuration data of each node in the target cluster in the preset plug-in; wherein, the preset plug-in stores the configuration data of the nodes included in each cluster in the multi-cluster architecture ; The data sending module is configured to send the updated configuration data to the target node if the configuration data of the target node in the target cluster is monitored to be updated, so that the target node can adjust the configuration according to the updated configuration data.

第四方面,本发明实施例还提供了一种集群监控装置,该装置设置于预设的多集群架构中的部署设备;多集群架构中包含有多个集群,每个集群包含有至少一个节点;该装置还包括:数据存储模块,用于如果第一集群加入到多集群架构,将第一集群所包含的每个节点的配置数据保存至预设插件;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据;数据监控模块,用于通过第一集群中的控制器,监听预设插件中第一集群中每个节点的配置数据;如果监听到第一集群中第一节点的配置数据被更新,将更新的配置数据发送至第一节点,以使第一节点根据接收到的更新的配置数据调整配置。In a fourth aspect, an embodiment of the present invention further provides a cluster monitoring device, the device is set on a deployment device in a preset multi-cluster architecture; the multi-cluster architecture includes multiple clusters, and each cluster includes at least one node ; The device also includes: a data storage module for saving the configuration data of each node included in the first cluster to a preset plug-in if the first cluster is added to the multi-cluster architecture; wherein the preset plug-in stores multiple The configuration data of the nodes included in each cluster in the cluster architecture; the data monitoring module is used to monitor the configuration data of each node in the first cluster in the preset plug-in through the controller in the first cluster; if the first cluster is monitored The configuration data of the first node in the cluster is updated, and the updated configuration data is sent to the first node, so that the first node adjusts the configuration according to the received updated configuration data.

第五方面,本发明实施例还提供了一种电子设备,该电子设备包括处理器和存储器,该存储器存储有能够被处理器执行的机器可执行指令,处理器执行机器可执行指令以实现上述集群监控方法。In a fifth aspect, an embodiment of the present invention further provides an electronic device, the electronic device includes a processor and a memory, the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above Cluster monitoring method.

第六方面,本发明实施例还提供了一种机器可读存储介质,该机器可读存储介质存储有机器可执行指令,该机器可执行指令在被处理器调用和执行时,机器可执行指令促使处理器实现上述集群监控方法。In a sixth aspect, an embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions The processor is prompted to implement the above cluster monitoring method.

本发明实施例带来了以下有益效果:The embodiments of the present invention have brought the following beneficial effects:

本发明提供的一种集群监控方法、装置和电子设备,首先通过多集群架构下的目标集群监听预设插件中该目标集群中每个节点的配置数据;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据;如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至目标节点,以使目标节点根据更新的配置数据调整配置。该方式中,通过预设插件可以统一管理多集群架构下每个集群的配置数据,当预设插件中的配置数据发生变化时,可以自动触发变化数据下发至对应的节点,从而保证了配置数据的全局同步,从而也避免了集群部署过程中配置遗漏和配置错误的现象。In a cluster monitoring method, device and electronic device provided by the present invention, firstly, a target cluster under a multi-cluster architecture monitors the configuration data of each node in the target cluster in a preset plug-in; wherein, the preset plug-in stores multiple clusters The configuration data of the nodes contained in each cluster in the architecture; if the configuration data of the target node in the target cluster is monitored to be updated, the updated configuration data is sent to the target node, so that the target node can adjust the configuration according to the updated configuration data. In this method, the configuration data of each cluster under the multi-cluster architecture can be managed uniformly through the preset plug-in. When the configuration data in the preset plug-in changes, the changed data can be automatically triggered to be sent to the corresponding node, thus ensuring the configuration Global synchronization of data, thereby avoiding configuration omissions and configuration errors during cluster deployment.

本发明的其他特征和优点将在随后的说明书中阐述,或者,部分特征和优点可以从说明书推知或毫无疑义地确定,或者通过实施本发明的上述技术即可得知。Additional features and advantages of the present invention will be set forth in the description which follows, or some may be inferred or unambiguously determined from the description, or may be learned by practicing the above-described techniques of the present invention.

为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施方式,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more clearly understood, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the specific embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the specific embodiments or the prior art. Obviously, the accompanying drawings in the following description The drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

图1为相关技术中提供的在Ranche下部署的多集群架构的示意图;1 is a schematic diagram of a multi-cluster architecture deployed under Ranche provided in the related art;

图2为本发明实施例提供的一种集群监控方法的流程图;FIG. 2 is a flowchart of a cluster monitoring method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种多集群架构的示意图;3 is a schematic diagram of a multi-cluster architecture provided by an embodiment of the present invention;

图4为本发明实施例提供的另一种集群监控方法的流程图;FIG. 4 is a flowchart of another cluster monitoring method provided by an embodiment of the present invention;

图5为本发明实施例提供的另一种集群监控方法的流程图;FIG. 5 is a flowchart of another cluster monitoring method provided by an embodiment of the present invention;

图6为本发明实施例提供的一种集群监控装置的结构示意图;FIG. 6 is a schematic structural diagram of a cluster monitoring device according to an embodiment of the present invention;

图7为本发明实施例提供的另一种集群监控装置的结构示意图;FIG. 7 is a schematic structural diagram of another cluster monitoring device according to an embodiment of the present invention;

图8为本发明实施例提供的一种电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. The components of the embodiments of the invention generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.

因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。Thus, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but is merely representative of selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

Rancher是一个容器集群的编排工具,在部署和使用的易用性方面比较突出。该Rancher为容器提供一揽子基础架构服务,包括CNI(Container Network Interface,容器网络接口)兼容的网络服务、存储服务、主机管理、负载均衡和防护墙等,该Rancher也可以让这些基础架构服务跨越公有云、私有云、虚拟机和物理机环境运行,真正实现一键式应用部署和管理。Rancher is an orchestration tool for container clusters, which stands out in terms of ease of deployment and use. The Rancher provides a package of infrastructure services for containers, including CNI (Container Network Interface, container network interface) compatible network services, storage services, host management, load balancing and firewalls, etc. The Rancher can also allow these infrastructure services to span public Cloud, private cloud, virtual machine and physical machine environment operation, truly realize one-click application deployment and management.

如图1所示为在Ranche下部署的多集群架构的示意图,图1中的多集群架构下包含有N个集群,分别是cluster-1、cluster-2、…、cluster-N;每个集群下对应有多个服务节点(如图1中的service),该服务节点可以虚拟接或者物理机等。在Rancher部署的多集群架构下,集群公用的基础设施可能需要重新部署或者修改,但多套环境的配置可能在部署或修改过程中存在遗漏或者错误的情况,同时也难以对集群配置进行统一管理。Figure 1 shows a schematic diagram of a multi-cluster architecture deployed under Ranche. The multi-cluster architecture in Figure 1 contains N clusters, namely cluster-1, cluster-2, ..., cluster-N; each cluster There are multiple service nodes (such as the service in FIG. 1 ) correspondingly below, and the service nodes can be virtual connected or physical machines. Under the multi-cluster architecture deployed by Rancher, the common infrastructure of the cluster may need to be redeployed or modified, but the configuration of multiple environments may be omitted or wrong in the process of deployment or modification, and it is also difficult to manage the cluster configuration in a unified manner. .

基于上述问题,本发明实施例提供了一种集群监控方法、装置和电子设备,该技术可以应用于多集群环境下的集群配置管理的场景中。为便于对本实施例进行理解,首先对本发明实施例所公开的一种集群监控方法进行详细介绍,该方法应用于预设的多集群架构中的目标集群;该多集群架构中包含有多个集群,每个集群包含有至少一个节点(该节点相当于上述服务节点);如图2所示,该方法包括如下具体步骤:Based on the above problems, embodiments of the present invention provide a cluster monitoring method, apparatus, and electronic device, and the technology can be applied to a cluster configuration management scenario in a multi-cluster environment. In order to facilitate the understanding of this embodiment, a cluster monitoring method disclosed in the embodiment of the present invention is first introduced in detail, and the method is applied to a target cluster in a preset multi-cluster architecture; the multi-cluster architecture includes multiple clusters , each cluster contains at least one node (the node is equivalent to the above-mentioned service node); as shown in Figure 2, the method includes the following specific steps:

步骤S202,监听预设插件中目标集群中每个节点的配置数据;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据。Step S202, monitoring the configuration data of each node in the target cluster in the preset plug-in; wherein, the preset plug-in stores the configuration data of the nodes included in each cluster in the multi-cluster architecture.

上述多集群架构可以是在Rancher下部署的,该多集群架构下包含有多个集群,多个集群可以包括已有的集群和新加入的集群。上述目标集群可以是多集群架构下的任意一个集群,该目标集群中包含至少一个节点,每个节点均可以向外提供服务。The above multi-cluster architecture may be deployed under Rancher, and the multi-cluster architecture includes multiple clusters, and the multiple clusters may include existing clusters and newly added clusters. The above target cluster may be any cluster under a multi-cluster architecture, the target cluster includes at least one node, and each node can provide services to the outside.

上述预设插件可以存储上述多集群架构中每个集群所包含的每个节点的配置数据,该配置数据可以包括集群内的节点所使用的网络带宽、集群网络配置、服务之间的连通性、集群环境变量、集群内部节点的所有配置、集群内基础设施的配置(例如,mysql、redis或flannel等)等。在具体实现时,上述预设插件可以以表格的形式存储每个集群所包含的每个节点的配置数据。The above-mentioned preset plug-in can store the configuration data of each node included in each cluster in the above-mentioned multi-cluster architecture, and the configuration data can include network bandwidth used by nodes in the cluster, cluster network configuration, connectivity between services, Cluster environment variables, all configurations of nodes inside the cluster, configuration of infrastructure within the cluster (for example, mysql, redis or flannel, etc.), etc. During specific implementation, the above-mentioned preset plug-in may store the configuration data of each node included in each cluster in the form of a table.

如图3所示为本发明实施例提供的多集群架构的示意图,图3中的plug-in相当于上述预设插件,该预设插件可以管理Ranche下部署的多集群架构中的每个集群的配置数据,从而实现多集群下配置数据的统一管理。FIG. 3 is a schematic diagram of a multi-cluster architecture provided by an embodiment of the present invention. The plug-in in FIG. 3 is equivalent to the above-mentioned preset plug-in, and the preset plug-in can manage each cluster in the multi-cluster architecture deployed under Ranche configuration data, so as to achieve unified management of configuration data under multiple clusters.

步骤S204,如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至目标节点,以使目标节点根据更新的配置数据调整配置。Step S204, if it is monitored that the configuration data of the target node in the target cluster is updated, the updated configuration data is sent to the target node, so that the target node can adjust the configuration according to the updated configuration data.

上述目标节点可以是目标集群中的任意一个节点。上述预设插件中的配置数据可以根据实际需求进行人为修改或者在多集群架构新加入集群后自动添加,当目标集群监听到它所包含的某一节点的配置数据被更新时,会将被更新的配置数据发送至对应的节点,以使该节点根据更新的配置数据调整自身配置,以保证预设插件中保存的配置数据与节点实际的配置数据的统一性。The above target node may be any node in the target cluster. The configuration data in the above preset plug-ins can be manually modified according to actual needs or added automatically after the multi-cluster architecture is newly added to the cluster. When the target cluster monitors that the configuration data of a node it contains is updated, it will be updated. The configuration data is sent to the corresponding node, so that the node can adjust its own configuration according to the updated configuration data, so as to ensure the consistency between the configuration data saved in the preset plug-in and the actual configuration data of the node.

在实际应用中,可在多集群架构下的每个集群中设置控制器(controller),并由每个集群下的控制器监听预设插件中的各自集群下每个节点的配置数据;如果控制器监听到其对应的集群中的某一节点的配置数据发生变化,会自动将变化的配置数据下发至对应的节点,从而可以保证一套配置,全局自动触发更新,从而也保证了配置数据的全局同步。In practical applications, a controller can be set in each cluster under the multi-cluster architecture, and the controller under each cluster monitors the configuration data of each node under the respective cluster in the preset plug-in; if the controller is controlled The server monitors the configuration data of a node in its corresponding cluster to change, and will automatically send the changed configuration data to the corresponding node, so as to ensure a set of configurations and automatically trigger the update globally, thus ensuring the configuration data. global synchronization.

本发明实施例提供的一种集群监控方法,首先通过多集群架构下的目标集群监听预设插件中该目标集群中每个节点的配置数据;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据;如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至目标节点,以使目标节点根据更新的配置数据调整配置。该方式中,通过预设插件可以统一管理多集群架构下每个集群的配置数据,当预设插件中的配置数据发生变化时,可以自动触发变化数据下发至对应的节点,从而保证了配置数据的全局同步,从而也避免了集群部署过程中配置遗漏和配置错误的现象。In a cluster monitoring method provided by an embodiment of the present invention, firstly, a target cluster in a multi-cluster architecture monitors the configuration data of each node in the target cluster in a preset plug-in; wherein, the preset plug-in stores each node in the multi-cluster architecture. The configuration data of the nodes contained in each cluster; if the configuration data of the target node in the target cluster is monitored to be updated, the updated configuration data is sent to the target node, so that the target node can adjust the configuration according to the updated configuration data. In this method, the configuration data of each cluster under the multi-cluster architecture can be managed uniformly through the preset plug-in. When the configuration data in the preset plug-in changes, the changed data can be automatically triggered to be sent to the corresponding node, thus ensuring the configuration Global synchronization of data, thereby avoiding configuration omissions and configuration errors during cluster deployment.

本发明实施例还提供了另一种集群访问方法,该方法在上述实施例方法的基础上实现;该方法重点描述预设插件包含有自定义接口的情况下,如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至目标节点的具体过程(通过下述步骤S404-S408实现);如图4所示,该方法包括如下具体步骤:The embodiment of the present invention also provides another cluster access method, which is implemented on the basis of the method in the above-mentioned embodiment; the method focuses on describing that if the preset plug-in contains a custom interface, if the target node in the target cluster is monitored The specific process of sending the updated configuration data to the target node (implemented through the following steps S404-S408); as shown in Figure 4, the method includes the following specific steps:

步骤S402,监听预设插件中目标集群中每个节点的配置数据。Step S402: Monitor the configuration data of each node in the target cluster in the preset plug-in.

步骤S404,判断目标节点的配置数据是否被更新;如果是,执行步骤S406;否则,执行步骤S402。Step S404, it is judged whether the configuration data of the target node is updated; if so, step S406 is performed; otherwise, step S402 is performed.

步骤S406,通过自定义接口从预设插件中获取更新的配置数据。Step S406, obtain updated configuration data from the preset plug-in through a custom interface.

在具体实现时,目标集群可以通过自定义接口从预设插件中获取更新后的目标节点的配置数据。During specific implementation, the target cluster can obtain the updated configuration data of the target node from the preset plug-in through a custom interface.

在一些实施例中,可根据用户需求来制定预设插件的自定义接口可以获取的数据,例如,可以指定某一个集群通过自定义接口获取到该集群中的信息。In some embodiments, the data that can be obtained by the custom interface of the preset plug-in can be formulated according to user requirements, for example, a certain cluster can be designated to obtain the information in the cluster through the custom interface.

具体地,目标集群可以接收自定义接口发送的数据获取指令;进而通过自定义接口,将数据获取指令请求的数据发送至指定设备,该指定设备可以多集群架构中的任一节点,可以是指定的客户端或者服务器等。上述数据获取指令可以是通过客户端触发的,也可以是自动触发的,该数据获取指令可以根据需求从集群中获取相应的数据。例如,假设有集群A和集群B,集群A侧重于资源管理,此时的自定义接口请求的数据可以是拿取集群A内资源的信息;集群B侧重服务性能,此时自定义接口请求的数据可以是拿取集群B内部的网络性能参数等;当然,集群A也可拿取集群A内部的网络性能数据,只是需要提前设置相应的请求参数或者请求指令。Specifically, the target cluster can receive the data acquisition instruction sent by the custom interface; and then send the data requested by the data acquisition instruction to the specified device through the custom interface, and the specified device can be any node in the multi-cluster architecture, which can be a specified client or server, etc. The above data acquisition instruction may be triggered by the client or automatically, and the data acquisition instruction may acquire corresponding data from the cluster as required. For example, assuming that there are cluster A and cluster B, cluster A focuses on resource management, the data requested by the custom interface at this time can be the information to obtain the resources in cluster A; cluster B focuses on service performance, at this time, the data requested by the custom interface The data can be the network performance parameters inside the cluster B; of course, the cluster A can also obtain the network performance data inside the cluster A, but the corresponding request parameters or request instructions need to be set in advance.

步骤S408,将获取到的更新的配置数据发送至目标节点,以使目标节点根据更新的配置数据调整自身配置。Step S408: Send the acquired updated configuration data to the target node, so that the target node adjusts its own configuration according to the updated configuration data.

在一些实施例中,如果监听到目标集群中目标节点的配置数据被更新,也可将更新的配置数据发送至除目标节点之外的指定节点。也可以理解为,当目标集群中的控制器到目标集群中的目标节点的配置数据发生变化时,会将变化的配置数据下发至目标节点,或者目标集群中的指定节点,该指定节点可以是目标集群中除目标节点之外的任意一个或者多个节点,也可以是目标集群中除目标节点之外的所有节点,具体该指定节点是那些节点可以根据实际需求进行设定。例如,可以设置目标集群中某一节点与目标节点进行信息同步(可设置同步字段为true),那么在目标节点的配置数据发生变化时,会将变化的配置数据发送至目标节点和与其信息同步的节点。In some embodiments, if it is monitored that the configuration data of the target node in the target cluster is updated, the updated configuration data may also be sent to a specified node other than the target node. It can also be understood that when the configuration data from the controller in the target cluster to the target node in the target cluster changes, the changed configuration data will be delivered to the target node, or to a designated node in the target cluster. It is any one or more nodes in the target cluster except the target node, and can also be all nodes in the target cluster except the target node. Specifically, the specified nodes are those nodes that can be set according to actual needs. For example, you can set a node in the target cluster to synchronize information with the target node (you can set the synchronization field to true), then when the configuration data of the target node changes, the changed configuration data will be sent to the target node and its information will be synchronized. node.

上述集群监控方法,首先监听预设插件中目标集群中每个节点的配置数据;进而判断目标节点的配置数据是否被更新;如果被更新,通过自定义接口从预设插件中获取更新的配置数据,并将获取到的更新的配置数据发送至目标节点,以使目标节点根据更新的配置数据调整自身配置;如果没有被更新,会继续监听目标节点的配置数据是否被更新。该方式可以保证节点的配置发生变化后,全局自动触发更新,从而保证了集群中配置数据的一致性,也可通过预设插件实现对配置数据的统一管理。The above cluster monitoring method first monitors the configuration data of each node in the target cluster in the preset plug-in; then judges whether the configuration data of the target node is updated; if it is updated, obtains the updated configuration data from the preset plug-in through a custom interface , and send the obtained updated configuration data to the target node, so that the target node adjusts its own configuration according to the updated configuration data; if it is not updated, it will continue to monitor whether the configuration data of the target node is updated. This method can ensure that after the configuration of the node changes, the update is automatically triggered globally, thereby ensuring the consistency of configuration data in the cluster, and can also achieve unified management of configuration data through preset plug-ins.

本发明实施例还提供了另一种集群监控方法,该方法在上述实施例方法的基础上实现;该方法应用于预设的多集群架构中的部署设备;如图5所示,该方法包括如下具体步骤:An embodiment of the present invention further provides another cluster monitoring method, which is implemented on the basis of the method in the above-mentioned embodiment; the method is applied to a deployment device in a preset multi-cluster architecture; as shown in FIG. 5 , the method includes: The specific steps are as follows:

步骤S502,如果第一集群加入多集群架构,将第一集群所包含的每个节点的配置数据保存至预设插件;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据。Step S502, if the first cluster joins the multi-cluster architecture, save the configuration data of each node included in the first cluster to a preset plug-in; wherein, the preset plug-in stores the nodes included in each cluster in the multi-cluster architecture configuration data.

上述第一集群可以理解为新加入多集群架构中的集群。在具体实现时,如果有新集群加入到多集群架构中,预设插件即可获取到新加入的集群的配置数据,从而实现对多集群架构中所有集群的配置数据的统一管理。The above-mentioned first cluster can be understood as a cluster newly added to the multi-cluster architecture. In the specific implementation, if a new cluster is added to the multi-cluster architecture, the preset plug-in can obtain the configuration data of the newly added cluster, thereby realizing unified management of the configuration data of all clusters in the multi-cluster architecture.

步骤S504,通过第一集群中的控制器,监听预设插件中第一集群中每个节点的配置数据;如果监听到第一集群中第一节点的配置数据被更新,将更新的配置数据发送至第一节点,以使第一节点根据接收到的更新的配置数据调整配置。Step S504, through the controller in the first cluster, monitor the configuration data of each node in the first cluster in the preset plug-in; if it is monitored that the configuration data of the first node in the first cluster is updated, send the updated configuration data to the first node, so that the first node adjusts the configuration according to the received updated configuration data.

上述第一节点可以是第一集群中的任意一个节点。在具体实现时,当第一集群加入到多集群架构后,上述第一集群可以看作是目标集群,也即是上述第一集群通过控制器监听配置数据的具体实现方式,可以参考上述目标节点监听配置数据的实施例,在此不再赘述。The above-mentioned first node may be any node in the first cluster. In the specific implementation, after the first cluster is added to the multi-cluster architecture, the above-mentioned first cluster can be regarded as the target cluster, that is, the specific implementation method of the above-mentioned first cluster monitoring the configuration data through the controller, you can refer to the above-mentioned target node The embodiment of monitoring configuration data will not be repeated here.

在一些实施例中,上述部署节点还可以响应针对于第二集群中第二节点的配置数据的修改指令,更新预设插件中第二集群中的第二节点的配置数据。In some embodiments, the above-mentioned deployment node may also update the configuration data of the second node in the second cluster in the preset plug-in in response to the modification instruction for the configuration data of the second node in the second cluster.

上述第二集群可以是多集群架构下的任意一个节点,自然该第二集群也可以是上述第一集群或者目标集群;上述第二节点可以是第二集群中的任意一个节点。上述修改指令可以是用户通过客户端发送的指令,例如,根据用户在客户端的操作界面上针对某一配置数据进行修改操作,自动触发的修改指令。The second cluster may be any node in a multi-cluster architecture, and naturally the second cluster may also be the first cluster or the target cluster; the second node may be any node in the second cluster. The above modification instruction may be an instruction sent by the user through the client, for example, a modification instruction automatically triggered according to a modification operation performed by the user on a certain configuration data on the operation interface of the client.

在具体实现时,本发明可以对rancher技术进行上层业务的抽象隔离,并单独封装服务,以实现对配置数据的监控和统一管理;该服务可以部署在rancher master(相当于上述部署节点)上,并对下发所有集群的基础设施配置统一管理。In the specific implementation, the present invention can abstractly isolate the upper-layer business of the rancher technology, and encapsulate the service separately to realize the monitoring and unified management of the configuration data; the service can be deployed on the rancher master (equivalent to the above-mentioned deployment node), It also manages the infrastructure configuration of all clusters distributed in a unified manner.

上述集群控制方法,如果第一集群加入多集群架构,将第一集群所包含的每个节点的配置数据保存至预设插件;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据;通过第一集群中的控制器,监听预设插件中第一集群中每个节点的配置数据;如果监听到第一集群中第一节点的配置数据被更新,将更新的配置数据发送至第一节点,以使第一节点根据接收到的更新的配置数据调整配置。该方式中,通过预设插件可以统一管理多集群架构下每个集群的配置数据,当预设插件中的配置数据发生变化时,可以自动触发变化数据下发至对应的节点,从而保证了配置数据的全局同步,从而也避免了集群部署过程中配置遗漏和配置错误的现象。In the above cluster control method, if the first cluster joins the multi-cluster architecture, the configuration data of each node included in the first cluster is saved to the preset plug-in; The configuration data of the node in the first cluster; through the controller in the first cluster, monitor the configuration data of each node in the first cluster in the preset plug-in; if the configuration data of the first node in the first cluster is monitored to be updated, the updated The configuration data is sent to the first node so that the first node adjusts the configuration according to the received updated configuration data. In this method, the configuration data of each cluster under the multi-cluster architecture can be managed uniformly through the preset plug-in. When the configuration data in the preset plug-in changes, the changed data can be automatically triggered to be sent to the corresponding node, thus ensuring the configuration Global synchronization of data, thereby avoiding configuration omissions and configuration errors during cluster deployment.

针对于上述集群监控方法的实施例,本发明实施例提供了一种集群监控装置,该装置设置于预设的多集群架构中的目标集群;该多集群架构中包含有多个集群,每个集群包含有至少一个节点;如图6所示,该装置包括:For the embodiment of the above cluster monitoring method, the embodiment of the present invention provides a cluster monitoring device, the device is set to a target cluster in a preset multi-cluster architecture; the multi-cluster architecture includes a plurality of clusters, each of which is The cluster includes at least one node; as shown in Figure 6, the device includes:

数据监听模块60,用于监听预设插件中目标集群中每个节点的配置数据;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据。Thedata monitoring module 60 is configured to monitor the configuration data of each node in the target cluster in the preset plug-in; wherein, the preset plug-in stores the configuration data of the nodes included in each cluster in the multi-cluster architecture.

数据发送模块61,用于如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至目标节点,以使目标节点根据更新的配置数据调整配置。Thedata sending module 61 is configured to send the updated configuration data to the target node if it is monitored that the configuration data of the target node in the target cluster is updated, so that the target node can adjust the configuration according to the updated configuration data.

上述集群监控装置,首先通过多集群架构下的目标集群监听预设插件中该目标集群中每个节点的配置数据;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据;如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至目标节点,以使目标节点根据更新的配置数据调整配置。该方式中,通过预设插件可以统一管理多集群架构下每个集群的配置数据,当预设插件中的配置数据发生变化时,可以自动触发变化数据下发至对应的节点,从而保证了配置数据的全局同步,从而也避免了集群部署过程中配置遗漏和配置错误的现象。The above cluster monitoring device first monitors the configuration data of each node in the target cluster in the preset plug-in through the target cluster under the multi-cluster architecture; wherein, the preset plug-in stores the data of the nodes included in each cluster in the multi-cluster architecture. Configuration data; if the configuration data of the target node in the target cluster is monitored to be updated, the updated configuration data is sent to the target node, so that the target node adjusts the configuration according to the updated configuration data. In this method, the configuration data of each cluster under the multi-cluster architecture can be managed uniformly through the preset plug-in. When the configuration data in the preset plug-in changes, the changed data can be automatically triggered to be sent to the corresponding node, thus ensuring the configuration Global synchronization of data, thereby avoiding configuration omissions and configuration errors during cluster deployment.

进一步地,上述预设插件包含有自定义接口;上述数据发送模块61,还用于:如果监听到预设插件中目标节点的配置数据被更新,通过自定义接口从预设插件中获取更新的配置数据;将获取到的更新的配置数据发送至目标节点。Further, the above-mentioned preset plug-in includes a custom interface; the above-mentioneddata sending module 61 is also used for: if the configuration data of the target node in the preset plug-in is monitored to be updated, obtain the updated data from the preset plug-in through the custom interface. Configuration data; send the obtained updated configuration data to the target node.

进一步地,上述装置还包括数据获取模块,用于:接收所述自定义接口发送的数据获取指令;通过自定义接口,将数据获取指令请求的数据发送至指定设备。Further, the above-mentioned apparatus further includes a data acquisition module, configured to: receive the data acquisition instruction sent by the self-defined interface; and send the data requested by the data acquisition instruction to the designated device through the self-defined interface.

在具体实现时,上述装置还包括数据同步模块,用于:如果监听到目标集群中目标节点的配置数据被更新,将更新的配置数据发送至除目标节点之外的指定节点。In a specific implementation, the above device further includes a data synchronization module, configured to: if the configuration data of the target node in the target cluster is monitored to be updated, send the updated configuration data to a designated node other than the target node.

本发明实施例所提供的集群监控装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principle and technical effects of the cluster monitoring device provided by the embodiments of the present invention are the same as those of the foregoing method embodiments. For brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding content in the foregoing method embodiments.

针对于上述集群监控方法的实施例,本发明实施例提供了另一种集群监控装置,该装置设置于预设的多集群架构中的部署设备;该多集群架构中包含有多个集群,每个集群包含有至少一个节点;如图7所示,该装置包括:For the embodiment of the above cluster monitoring method, the embodiment of the present invention provides another cluster monitoring device, the device is set in the deployment equipment in a preset multi-cluster architecture; the multi-cluster architecture includes a plurality of clusters, each Each cluster includes at least one node; as shown in Figure 7, the device includes:

数据存储模块70,用于如果第一集群加入到多集群架构,将第一集群所包含的每个节点的配置数据保存至预设插件;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据。Thedata storage module 70 is configured to save the configuration data of each node included in the first cluster to a preset plug-in if the first cluster is added to the multi-cluster architecture; wherein, the preset plug-in stores each node in the multi-cluster architecture Configuration data for the nodes contained in the cluster.

数据监控模块71,用于通过第一集群中的控制器,监听预设插件中第一集群中每个节点的配置数据;如果监听到第一集群中第一节点的配置数据被更新,将更新的配置数据发送至第一节点,以使第一节点根据接收到的更新的配置数据调整配置。Thedata monitoring module 71 is used to monitor the configuration data of each node in the first cluster in the preset plug-in through the controller in the first cluster; if the configuration data of the first node in the first cluster is monitored to be updated, it will update The updated configuration data is sent to the first node, so that the first node adjusts the configuration according to the received updated configuration data.

上述一种集群监控装置,如果第一集群加入多集群架构,将第一集群所包含的每个节点的配置数据保存至预设插件;其中,预设插件中存储有多集群架构中每个集群所包含的节点的配置数据;通过第一集群中的控制器,监听预设插件中第一集群中每个节点的配置数据;如果监听到第一集群中第一节点的配置数据被更新,将更新的配置数据发送至第一节点,以使第一节点根据接收到的更新的配置数据调整配置。该方式中,通过预设插件可以统一管理多集群架构下每个集群的配置数据,当预设插件中的配置数据发生变化时,可以自动触发变化数据下发至对应的节点,从而保证了配置数据的全局同步,从而也避免了集群部署过程中配置遗漏和配置错误的现象。In the above-mentioned cluster monitoring device, if the first cluster joins a multi-cluster architecture, the configuration data of each node included in the first cluster is saved to a preset plug-in; wherein, the preset plug-in stores each cluster in the multi-cluster architecture The configuration data of the included nodes; through the controller in the first cluster, monitor the configuration data of each node in the first cluster in the preset plug-in; if the configuration data of the first node in the first cluster is monitored to be updated, the The updated configuration data is sent to the first node, so that the first node adjusts the configuration according to the received updated configuration data. In this method, the configuration data of each cluster under the multi-cluster architecture can be managed uniformly through the preset plug-in. When the configuration data in the preset plug-in changes, the changed data can be automatically triggered to be sent to the corresponding node, thus ensuring the configuration Global synchronization of data, thereby avoiding configuration omissions and configuration errors during cluster deployment.

进一步地,上述装置还包括数据修改模块,用于:响应针对于第二集群中第二节点的配置数据的修改指令,更新预设插件中第二集群中的第二节点的配置数据。Further, the above-mentioned apparatus further includes a data modification module, configured to update the configuration data of the second node in the second cluster in the preset plug-in in response to the modification instruction for the configuration data of the second node in the second cluster.

本发明实施例所提供的集群监控装置,其实现原理及产生的技术效果和前述集群访问方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述集群监控方法实施例中相应内容。The implementation principle and the technical effects of the cluster monitoring device provided by the embodiments of the present invention are the same as those of the foregoing cluster access method embodiments. For a brief description, for the parts not mentioned in the device embodiments, reference may be made to the foregoing cluster monitoring method embodiments. corresponding content.

本发明实施例还提供了一种电子设备,如图8所示,该电子设备包括处理器101和存储器100,该存储器100存储有能够被处理器101执行的机器可执行指令,该处理器101执行机器可执行指令以实现上述集群监控方法。An embodiment of the present invention further provides an electronic device. As shown in FIG. 8 , the electronic device includes aprocessor 101 and amemory 100, where thememory 100 stores machine-executable instructions that can be executed by theprocessor 101. Theprocessor 101 Machine-executable instructions are executed to implement the cluster monitoring method described above.

进一步地,图8所示的电子设备还包括总线102和通信接口103,处理器101、通信接口103和存储器100通过总线102连接。Further, the electronic device shown in FIG. 8 further includes a bus 102 and acommunication interface 103 , and theprocessor 101 , thecommunication interface 103 and thememory 100 are connected through the bus 102 .

其中,存储器100可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口103(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。总线102可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。Thememory 100 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is implemented through at least one communication interface 103 (which may be wired or wireless), which may use the Internet, a wide area network, a local network, a metropolitan area network, and the like. The bus 102 may be an ISA bus, a PCI bus, an EISA bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one bidirectional arrow is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.

处理器101可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器101中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器101可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DigitalSignal Processing,简称DSP)、专用集成电路(Application Specific IntegratedCircuit,简称ASIC)、现成可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器100,处理器101读取存储器100中的信息,结合其硬件完成前述实施例的方法的步骤。Theprocessor 101 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in theprocessor 101 or an instruction in the form of software. The above-mentionedprocessor 101 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP for short) , Application Specific Integrated Circuit (ASIC for short), Field-Programmable Gate Array (FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components. Various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in thememory 100, and theprocessor 101 reads the information in thememory 100, and completes the steps of the methods in the foregoing embodiments in combination with its hardware.

本发明实施例还提供了一种机器可读存储介质,该机器可读存储介质存储有机器可执行指令,该机器可执行指令在被处理器调用和执行时,该机器可执行指令促使处理器实现上述集群监控方法,具体实现可参见方法实施例,在此不再赘述。Embodiments of the present invention further provide a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to For the implementation of the above cluster monitoring method, the specific implementation can refer to the method embodiment, which will not be repeated here.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present invention, and are used to illustrate the technical solutions of the present invention, but not to limit them. The protection scope of the present invention is not limited thereto, although referring to the foregoing The embodiment has been described in detail the present invention, those of ordinary skill in the art should understand: any person skilled in the art who is familiar with the technical field within the technical scope disclosed by the present invention can still modify the technical solutions described in the foregoing embodiments. Or can easily think of changes, or equivalently replace some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be covered in the present invention. within the scope of protection. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

Translated fromChinese
1.一种集群监控方法,其特征在于,所述方法应用于预设的多集群架构中的目标集群;所述多集群架构中包含有多个集群,每个集群包含有至少一个节点;所述方法包括:1. A cluster monitoring method, wherein the method is applied to a target cluster in a preset multi-cluster architecture; the multi-cluster architecture includes multiple clusters, and each cluster includes at least one node; The methods described include:监听预设插件中所述目标集群中每个节点的配置数据;其中,所述预设插件中存储有所述多集群架构中每个集群所包含的节点的配置数据;Monitor the configuration data of each node in the target cluster in the preset plug-in; wherein, the preset plug-in stores the configuration data of the nodes included in each cluster in the multi-cluster architecture;如果监听到所述目标集群中目标节点的配置数据被更新,将更新的配置数据发送至所述目标节点,以使所述目标节点根据所述更新的配置数据调整配置。If it is monitored that the configuration data of the target node in the target cluster is updated, the updated configuration data is sent to the target node, so that the target node adjusts the configuration according to the updated configuration data.2.根据权利要求1所述的方法,其特征在于,所述预设插件包含有自定义接口;2. The method according to claim 1, wherein the preset plug-in comprises a custom interface;所述如果监听到所述目标集群中目标节点的配置数据被更新,将更新的配置数据发送至所述目标节点的步骤,包括:The step of sending the updated configuration data to the target node if it is monitored that the configuration data of the target node in the target cluster is updated, includes:如果监听到所述预设插件中所述目标节点的配置数据被更新,通过所述自定义接口从所述预设插件中获取所述更新的配置数据;If it is monitored that the configuration data of the target node in the preset plug-in is updated, obtain the updated configuration data from the preset plug-in through the custom interface;将获取到的所述更新的配置数据发送至所述目标节点。Send the obtained updated configuration data to the target node.3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises:接收所述自定义接口发送的数据获取指令;receiving a data acquisition instruction sent by the custom interface;通过所述自定义接口,将所述数据获取指令请求的数据发送至指定设备。The data requested by the data acquisition instruction is sent to the specified device through the custom interface.4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises:如果监听到所述目标集群中目标节点的配置数据被更新,将所述更新的配置数据发送至除所述目标节点之外的指定节点。If it is monitored that the configuration data of the target node in the target cluster is updated, the updated configuration data is sent to a specified node other than the target node.5.一种集群监控方法,其特征在于,所述方法应用于预设的多集群架构中的部署设备;所述多集群架构中包含有多个集群,每个集群包含有至少一个节点;所述方法包括:5. A cluster monitoring method, wherein the method is applied to a deployment device in a preset multi-cluster architecture; the multi-cluster architecture includes multiple clusters, and each cluster includes at least one node; the The methods described include:如果第一集群加入到所述多集群架构,将所述第一集群所包含的每个节点的配置数据保存至预设插件;其中,所述预设插件中存储有所述多集群架构中每个集群所包含的节点的配置数据;If the first cluster is added to the multi-cluster architecture, the configuration data of each node included in the first cluster is saved to a preset plug-in; wherein, the preset plug-in stores each node in the multi-cluster architecture. Configuration data of nodes contained in a cluster;通过所述第一集群中的控制器,监听所述预设插件中所述第一集群中每个节点的配置数据;如果监听到所述第一集群中第一节点的配置数据被更新,将更新的配置数据发送至所述第一节点,以使所述第一节点根据接收到的更新的配置数据调整配置。Through the controller in the first cluster, the configuration data of each node in the first cluster in the preset plug-in is monitored; if the configuration data of the first node in the first cluster is monitored to be updated, the The updated configuration data is sent to the first node, so that the first node adjusts the configuration according to the received updated configuration data.6.根据权利要求5所述的方法,其特征在于,所述方法还包括:6. The method according to claim 5, wherein the method further comprises:响应针对于第二集群中第二节点的配置数据的修改指令,更新所述预设插件中所述第二集群中的所述第二节点的配置数据。In response to the modification instruction for the configuration data of the second node in the second cluster, the configuration data of the second node in the second cluster in the preset plug-in is updated.7.一种集群监控装置,其特征在于,所述装置设置于预设的多集群架构中的目标集群;所述多集群架构中包含有多个集群,每个集群包含有至少一个节点;所述装置包括:7. A cluster monitoring device, wherein the device is set in a target cluster in a preset multi-cluster architecture; the multi-cluster architecture includes multiple clusters, and each cluster includes at least one node; the The device includes:数据监听模块,用于监听预设插件中所述目标集群中每个节点的配置数据;其中,所述预设插件中存储有所述多集群架构中每个集群所包含的节点的配置数据;A data monitoring module, configured to monitor the configuration data of each node in the target cluster in the preset plug-in; wherein, the preset plug-in stores the configuration data of the nodes included in each cluster in the multi-cluster architecture;数据发送模块,用于如果监听到所述目标集群中目标节点的配置数据被更新,将更新的配置数据发送至所述目标节点,以使所述目标节点根据所述更新的配置数据调整配置。The data sending module is configured to send the updated configuration data to the target node if it is monitored that the configuration data of the target node in the target cluster is updated, so that the target node can adjust the configuration according to the updated configuration data.8.一种集群监控装置,其特征在于,所述装置设置于预设的多集群架构中的部署设备;所述多集群架构中包含有多个集群,每个集群包含有至少一个节点;所述装置包括:8. A cluster monitoring device, characterized in that the device is set in a preset deployment device in a multi-cluster architecture; the multi-cluster architecture includes multiple clusters, and each cluster includes at least one node; the The device includes:数据存储模块,用于如果第一集群加入到所述多集群架构,将所述第一集群所包含的每个节点的配置数据保存至预设插件;其中,所述预设插件中存储有所述多集群架构中每个集群所包含的节点的配置数据;A data storage module, configured to save the configuration data of each node included in the first cluster to a preset plug-in if the first cluster is added to the multi-cluster architecture; wherein the preset plug-in stores data the configuration data of the nodes contained in each cluster in the multi-cluster architecture;数据监控模块,用于通过所述第一集群中的控制器,监听所述预设插件中所述第一集群中每个节点的配置数据;如果监听到所述第一集群中第一节点的配置数据被更新,将更新的配置数据发送至所述第一节点,以使所述第一节点根据接收到的更新的配置数据调整配置。A data monitoring module is used to monitor, through the controller in the first cluster, the configuration data of each node in the first cluster in the preset plug-in; if the configuration data of the first node in the first cluster is monitored; The configuration data is updated, and the updated configuration data is sent to the first node, so that the first node adjusts the configuration according to the received updated configuration data.9.一种电子设备,其特征在于,所述电子设备包括处理器和存储器,所述存储器存储有能够被所述处理器执行的机器可执行指令,所述处理器执行所述机器可执行指令以实现权利要求1至6任一项所述的集群监控方法。9. An electronic device, characterized in that the electronic device comprises a processor and a memory, the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions In order to realize the cluster monitoring method according to any one of claims 1 to 6.10.一种机器可读存储介质,其特征在于,所述机器可读存储介质存储有机器可执行指令,所述机器可执行指令在被处理器调用和执行时,所述机器可执行指令促使处理器实现权利要求1至6任一项所述的集群监控方法。10. A machine-readable storage medium, characterized in that the machine-readable storage medium stores machine-executable instructions that, when invoked and executed by a processor, cause the machine-executable instructions to The processor implements the cluster monitoring method according to any one of claims 1 to 6.
CN202210194432.5A2022-03-012022-03-01 Cluster monitoring method, device and electronic devicePendingCN114363175A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210194432.5ACN114363175A (en)2022-03-012022-03-01 Cluster monitoring method, device and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210194432.5ACN114363175A (en)2022-03-012022-03-01 Cluster monitoring method, device and electronic device

Publications (1)

Publication NumberPublication Date
CN114363175Atrue CN114363175A (en)2022-04-15

Family

ID=81093033

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210194432.5APendingCN114363175A (en)2022-03-012022-03-01 Cluster monitoring method, device and electronic device

Country Status (1)

CountryLink
CN (1)CN114363175A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118714033A (en)*2024-06-042024-09-27浪潮云信息技术股份公司 Cloud component management method, device, medium, and equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101431520A (en)*2008-12-242009-05-13金蝶软件(中国)有限公司Method for establishing connection, method for re-orienting connection and correlated equipment
CN107493191A (en)*2017-08-082017-12-19深信服科技股份有限公司A kind of clustered node and self scheduling container group system
CN110221920A (en)*2019-06-042019-09-10合肥讯飞数码科技有限公司Dispositions method, device, storage medium and system
CN111078238A (en)*2018-10-192020-04-28中国移动通信集团浙江有限公司 Method and device for centralized processing of application configuration in container environment
CN111865642A (en)*2019-04-252020-10-30瞻博网络公司 Multi-cluster configuration controller for software-defined networking
CN112000434A (en)*2020-08-142020-11-27苏州浪潮智能科技有限公司Kubernetes dynamic management service based governance rule configuration method and system
CN112162821A (en)*2020-09-252021-01-01中国电力科学研究院有限公司Container cluster resource monitoring method, device and system
CN112612545A (en)*2020-12-232021-04-06北京浪潮数据技术有限公司Configuration hot loading system, method, equipment and medium of server cluster
CN112835713A (en)*2021-01-282021-05-25交通银行股份有限公司Workload combination unified deployment method and system based on multi-container cluster
CN113626280A (en)*2021-06-302021-11-09广东浪潮智慧计算技术有限公司Cluster state control method and device, electronic equipment and readable storage medium
CN113645071A (en)*2021-08-102021-11-12广域铭岛数字科技有限公司Cluster deployment method, system, medium and electronic terminal
KR102328384B1 (en)*2020-07-232021-11-18아콘소프트 주식회사Computer readable media storing automatic provisioning engine program for managed cluster
CN113778623A (en)*2021-08-262021-12-10北京达佳互联信息技术有限公司Resource processing method and device, electronic equipment and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101431520A (en)*2008-12-242009-05-13金蝶软件(中国)有限公司Method for establishing connection, method for re-orienting connection and correlated equipment
CN107493191A (en)*2017-08-082017-12-19深信服科技股份有限公司A kind of clustered node and self scheduling container group system
CN111078238A (en)*2018-10-192020-04-28中国移动通信集团浙江有限公司 Method and device for centralized processing of application configuration in container environment
CN111865642A (en)*2019-04-252020-10-30瞻博网络公司 Multi-cluster configuration controller for software-defined networking
CN110221920A (en)*2019-06-042019-09-10合肥讯飞数码科技有限公司Dispositions method, device, storage medium and system
KR102328384B1 (en)*2020-07-232021-11-18아콘소프트 주식회사Computer readable media storing automatic provisioning engine program for managed cluster
CN112000434A (en)*2020-08-142020-11-27苏州浪潮智能科技有限公司Kubernetes dynamic management service based governance rule configuration method and system
CN112162821A (en)*2020-09-252021-01-01中国电力科学研究院有限公司Container cluster resource monitoring method, device and system
CN112612545A (en)*2020-12-232021-04-06北京浪潮数据技术有限公司Configuration hot loading system, method, equipment and medium of server cluster
CN112835713A (en)*2021-01-282021-05-25交通银行股份有限公司Workload combination unified deployment method and system based on multi-container cluster
CN113626280A (en)*2021-06-302021-11-09广东浪潮智慧计算技术有限公司Cluster state control method and device, electronic equipment and readable storage medium
CN113645071A (en)*2021-08-102021-11-12广域铭岛数字科技有限公司Cluster deployment method, system, medium and electronic terminal
CN113778623A (en)*2021-08-262021-12-10北京达佳互联信息技术有限公司Resource processing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
富亚军: "《企业互联网架构原理与实践》", 31 May 2021, pages: 121 - 127*

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118714033A (en)*2024-06-042024-09-27浪潮云信息技术股份公司 Cloud component management method, device, medium, and equipment

Similar Documents

PublicationPublication DateTitle
US11146453B2 (en)Method and apparatus for creating network slice, and communications system
CN111385114B (en)VNF service instantiation method and device
US11051183B2 (en)Service provision steps using slices and associated definitions
CN112187545B (en)Network slice deployment method and device
JP7624167B2 (en) Method, Apparatus, and Electronic Device for Cloud Service Migration - Patent application
CN109586938B (en) Method and device for generating instance service topology
WO2021093515A1 (en)Data transmission method and related apparatus
CN102857370B (en) A method and device for allocating resources
WO2020186911A1 (en)Resource management method and device for containerized virtualised network function vnf
CN106776998B (en)Database service providing method and server
CN110034944B (en)Network slice deployment method and device
CN104144073A (en)Master-slave device environment deployment method and master-slave device environment deployment system
CN112311628B (en)Network speed measuring method, system, network equipment and storage medium
WO2019075773A1 (en)Data processing method and apparatus, computer device and storage medium
CN113794652B (en)Data processing method, device, electronic equipment and storage medium
CN112087311B (en)Virtual network function VNF deployment method and device
JP2023526843A (en) PORT STATE SETTING METHOD, APPARATUS AND SYSTEM, AND STORAGE MEDIUM
WO2019062995A1 (en)Network management method, device and system
WO2019029645A1 (en)Network slice management method and apparatus
CN113612643A (en) Network configuration method, device, device and storage medium of cloud mobile phone
JP6621075B2 (en) Resource acquisition method and apparatus
CN114363175A (en) Cluster monitoring method, device and electronic device
WO2021017906A1 (en)Communication method and apparatus
US12047241B2 (en)Identifying an instance of a virtual network function
EP4083795A1 (en)Method for deploying virtual machine, and related apparatus

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20220415

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp