Information management method, device, electronic device and computer-readable medium

By setting up a second proxy node and a control node in a multi-cluster system, unified processing and storage of event information is achieved, the problem of high resource consumption in the prior art is solved, and the management efficiency of event information is improved.

CN114637648BActive Publication Date: 2025-09-16JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210203453.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-03
Publication Date
2025-09-16
Estimated Expiration
2042-03-03

AI Technical Summary

Technical Problem

In a multi-cluster network topology environment, existing technologies require deploying event information storage and processing programs in each cluster, resulting in high resource consumption and inability to achieve efficient cross-cluster query and filtering.

Method used

By setting up a second proxy node in a multi-cluster system, event information is pushed to the first proxy node for unified processing and storage, avoiding the deployment of independent storage and processing systems in each cluster and using the control node for unified management.

Benefits of technology

It reduces unnecessary resource consumption, improves the efficiency of event information processing and query acquisition, and realizes unified management of multiple clusters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114637648B_ABST
    Figure CN114637648B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose an information management method, apparatus, electronic device, and computer-readable medium. A specific implementation of the method includes: receiving event information sent by a first proxy node in a multi-cluster system, wherein the event information is sent by a cluster in the multi-cluster system having a second proxy node and sent to the first proxy node via the second proxy node; processing the event information according to preset configuration information; and storing the processed event information in a target location. This implementation can achieve unified processing and management of event information for multiple clusters, especially for network topology environments where clusters cannot directly access each other. This can improve information processing efficiency and also help reduce the consumption of cluster resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and more particularly, to an information management method, apparatus, electronic device, and computer-readable medium. Background Art

[0002] In existing container management systems (such as Kubernetes), all resources are represented by Custom Resources (CRs). CRs can be associated with events and used to record key operational and status information about resources. Therefore, event information is crucial for developers and operations personnel, serving as a key diagnostic indicator for ensuring the proper functioning of the system. However, event information is typically only retained within the system for one hour before being deleted.

[0003] Currently, this problem is typically addressed by deploying additional containers (such as Pods) to monitor CR event information and directly storing the event information in a specific location. However, this technology is often not suitable for multi-cluster network topology environments and often has the following disadvantages:

[0004] 1) Each cluster needs to deploy a program for acquiring event information, a storage system for receiving events, and an interface program for querying and filtering received events. This results in a significant increase in unnecessary resource consumption.

[0005] 2) When querying and filtering, you can only view event information from a single cluster. You need to send the request to the service of a sub-cluster and then query and filter from the sub-cluster. It is not possible to retrieve data from all clusters simply and efficiently. Summary of the Invention

[0006] The content of this disclosure is intended to briefly introduce concepts that will be described in detail in the detailed description section below. The content of this disclosure is not intended to identify key features or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions. Some embodiments of the present disclosure provide information management methods, devices, electronic devices, and computer-readable media to address one or more of the technical problems mentioned in the background section above.

[0007] In a first aspect, some embodiments of the present disclosure provide an information management method, which is used for a control node in a multi-cluster system. The method includes: receiving event information sent by a first agent node in the multi-cluster system, wherein the event information is sent to the first agent node by a cluster in the multi-cluster system in which a second agent node is set through the second agent node; processing the event information according to preset configuration information; and storing the processed event information to a target location.

[0008] In some embodiments, the multi-cluster system includes a main cluster and sub-clusters, wherein the control node and the first agent node are set in the main cluster, and the second agent node is set in the sub-cluster.

[0009] In some embodiments, each cluster of the multi-cluster system is further provided with a monitoring node, wherein the monitoring node collects and sends resource event information in response to monitoring an adjustment operation on the resources of the cluster in which it is located.

[0010] In some embodiments, the method further includes: in response to receiving event information sent by a monitoring node in the main cluster, processing the received event information according to preset configuration information.

[0011] In some embodiments, the event information sent by the second agent node is obtained by the following steps: the monitoring node in the sub-cluster sends the collected event information to the second agent node in the sub-cluster.

[0012] In some embodiments, a cluster in the multi-cluster system is a container management system cluster, wherein the monitoring node is implemented through a component mechanism provided by the container management system cluster.

[0013] In some embodiments, the method further includes: in response to receiving the query request, filtering the event information stored in the target location and generating a query result corresponding to the query request.

[0014] In a second aspect, some embodiments of the present disclosure provide an information management device for a control node in a multi-cluster system, the device comprising: a receiving unit configured to receive event information sent by a first agent node in the multi-cluster system, wherein the event information is sent by a cluster in the multi-cluster system in which a second agent node is provided to the first agent node through the second agent node; a processing unit configured to process the event information according to preset configuration information; and a storage unit configured to store the processed event information to a target location.

[0015] In some embodiments, the multi-cluster system includes a main cluster and sub-clusters, wherein the control node and the first agent node are set in the main cluster, and the second agent node is set in the sub-cluster.

[0016] In some embodiments, each cluster of the multi-cluster system is further provided with a monitoring node, wherein the monitoring node collects and sends resource event information in response to monitoring an adjustment operation on the resources of the cluster in which it is located.

[0017] In some embodiments, the processing unit is further configured to, in response to receiving event information sent by the monitoring node in the main cluster, process the received event information according to a preset configuration.

[0018] In some embodiments, the event information sent by the second agent node is obtained by the following steps: the monitoring node in the sub-cluster sends the collected event information to the second agent node in the sub-cluster.

[0019] In some embodiments, a cluster in the multi-cluster system is a container management system cluster, wherein the monitoring node is implemented through a component mechanism provided by the container management system cluster.

[0020] In some embodiments, the device further includes a query unit configured to, in response to receiving a query request, filter the event information stored in the target location and generate a query result corresponding to the query request.

[0021] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation method in the above-mentioned first aspect.

[0022] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any one of the implementations in the first aspect above is implemented.

[0023] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: the information management method of some embodiments of the present disclosure can realize the unified management of multi-cluster event information while reducing unnecessary resource consumption as much as possible. Specifically, the reason for the large resource consumption in the cluster is that there is no direct access between clusters, so it is necessary to deploy a set of programs for obtaining event information, a storage system for receiving events, and a program for subsequent processing of event information in each cluster. Based on this, the information management method of some embodiments of the present disclosure can push out the event information in the cluster by setting a second agent node in the cluster of the multi-cluster system. The first agent node in the multi-cluster system receives the event information, so that the event information can be sent to the control node for unified processing and storage management. In this way, it is possible to avoid deploying a storage system and processing program for event information in each cluster, thereby greatly reducing the consumption of resources in the cluster. And unified management also helps to improve the efficiency of information processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0025] Figure 1is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;

[0026] Figure 2 is a flow chart of some embodiments of the information management method according to the present disclosure;

[0027] Figure 3 are flowcharts of other embodiments of the information management method according to the present disclosure;

[0028] Figure 4 is a schematic diagram of an application scenario of the information management method according to some embodiments of the present disclosure;

[0029] Figure 5 is a schematic structural diagram of some embodiments of the information management device according to the present disclosure;

[0030] Figure 6 It is a structural diagram of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0031] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0032] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other.

[0033] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0034] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0035] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0036] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0037] Figure 1 An exemplary system architecture 100 is shown to which an information management method or an information management apparatus according to some embodiments of the present disclosure may be applied.

[0038] like Figure 1 As shown, system architecture 100 may include a server 101, a network 102, a server cluster 103 (servers 1031, 1032), and a database server 104. Network 102 may be used as a medium to provide a communication link between server 101 and server cluster 103 and database server 104. Network 102 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0039] The servers 1031 and 1032 in the server cluster 103 may be servers that provide various services, such as servers that support an open source container platform. An open source container platform is typically created using a portable container orchestration management tool. This orchestration management tool is typically an open source system (such as the container management system Kubernetes) that can be used to automatically deploy, scale, and manage containerized applications. It often features portability, scalability, and automation.

[0040] Here, the server 101 may be provided with a control node 1011 and a first proxy node A. Each server in the server cluster 103 may be provided with a second proxy node B. Servers 1031 and 1032 may send event information to the first proxy node A via the second proxy node B provided thereon. In this way, the first proxy node A may send the received event information to the control node 1011. After receiving the event information sent by the first proxy node A, the control node 1011 may process the event information according to preset configuration information and may send the processed event information to the database server 104 for storage.

[0041] It is understood that the server 101, the servers 1031 and 1032 in the server cluster 103, and the database server 104 can be hardware or software. When the server 101, the servers 1031 and 1032 in the server cluster 103, and the database server 104 are hardware, they can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server 101, the servers 1031 and 1032 in the server cluster 103, and the database server 104 are software, they can be implemented as multiple software or software modules, for example, to provide distributed services, or as a single software or software module. No specific limitations are given herein.

[0042] It should be noted that, when the servers in the server cluster 103 have the functions of the server 101 and the database server 104 , the server 101 and the database server 104 may not be provided in the system architecture 100 .

[0043] It should be understood that Figure 1 The number of servers, server clusters, database servers, and servers in server clusters is merely illustrative. Depending on actual needs, any number of servers, server clusters, database servers, and servers in server clusters may be provided.

[0044] Continue to refer Figure 2 , shows a process 200 of some embodiments of the information management method according to the present disclosure. The method includes the following steps:

[0045] Step 201: Receive event information sent by a first agent node in a multi-cluster system.

[0046] In some embodiments, the information management method disclosed herein can be used for control nodes in a multi-cluster system. The multi-cluster system may include multiple clusters, a first proxy node, and a control node. Each of the multiple clusters is typically independent and inaccessible, such as the open source system cluster for container management described above. The first proxy node can serve as a communication medium between the control node and the cluster, enabling information transmission between the two. The control node can process and manage information.

[0047] It is understandable that the first agent node and the control node can be hardware or software, or even a function in the software. The location of the first agent node and the control node is not limited here, for example, they can be set at Figure 1 The server 101 shown in FIG.

[0048] In some embodiments, the execution entity (i.e., the control node) of the information management method can receive event information sent by a first agent node in a multi-cluster system via a wired or wireless connection. The event information can be sent to the first agent node by a cluster in the multi-cluster system that has a second agent node configured therein. The second agent node can also be hardware or software, or even a function within the software.

[0049] Here, the first proxy node can expose an interface for receiving event information pushed by the cluster. As an example, the first proxy node can be a server proxy (such as a proxy). The second proxy node can also expose an interface for receiving event information about resources in its cluster and pushing the event information to the first proxy node. As an example, the second proxy node can be a client proxy (such as an agent). The control node can also expose an interface for receiving event information from all clusters in the multi-cluster system.

[0050] It should be noted that if the control node and the first proxy node are independently set on other devices (such as Figure 1 In the server 101 shown in FIG, in order to realize the transmission of event information, a second proxy node may be provided in each cluster in the multi-cluster system.

[0051] Step 202: Process the event information according to preset configuration information.

[0052] In some embodiments, the execution entity may process event information based on preset configuration information. The preset configuration information herein may be information set based on the processing operation to be performed on the event information. For example, the processing operation may include, but is not limited to, at least one of the following: grouping, classification, and grading. In this case, the preset configuration information may include the method or information for grouping, classification, and grading. Thus, the execution entity may perform grouping, classification, or grading of the event information according to the preset configuration information.

[0053] For another example, the processing operation can also be to send an early warning to a specific user when a specific time occurs. At this time, the preset configuration information can include target information (such as a time point or an event) and the information of the target user associated with it (such as an email address, phone number, etc.). In this way, when the execution subject receives the event information, it can determine whether the target information is contained therein. If it is contained, the target user can be notified through the target user's information. In this way, the event information of each cluster in the multi-cluster system can be processed uniformly, thereby avoiding occupying resources in the cluster and reducing the consumption of resources in the cluster. In other words, there is no need to deploy a handler for event information in each cluster.

[0054] Step 203: Store the processed event information in a target location.

[0055] In some embodiments, the executing entity can store the processed event information at a target location. The target location here can be set according to actual needs. As an example, it can be stored in the device where the executing entity is located, or it can be stored in other databases. For example, the target location can be a distributed search engine (such as Elasticsearch) or a message queue (such as the open source stream processing platform Kafka). This can achieve unified and persistent storage of event information, making it easier for developers and operation and maintenance personnel to trace data. It can also further reduce the consumption of resources in the cluster. In other words, there is no need to deploy a storage system for event information in each cluster.

[0056] The information management method provided by some embodiments of the present disclosure proposes a solution for unified processing and management of event information of multiple clusters, especially multiple clusters that cannot access each other, so as to reduce the consumption of resources in the cluster as much as possible. Specifically, by setting a second proxy node in the cluster, the event information of the resources in the cluster can be pushed out. The event information pushed by the second proxy node can be received by the first proxy node and sent to the control node. In this way, the control node can uniformly process and manage the event information of all clusters in the multi-cluster system. There is no need to deploy corresponding storage systems and processing programs in each cluster. It can not only reduce unnecessary consumption of resources in the cluster, but also help to improve the efficiency of information processing.

[0057] See Figure 3 , shows a process 300 of another embodiment of the information management method according to the present disclosure. The method includes the following steps 301-305.

[0058] In this embodiment, if Figure 4 As shown, the multi-cluster system may include a main cluster 401 and sub-clusters 402 and 403. Here, the main cluster may be any cluster in the multi-cluster system. The main cluster can manage the event information of the resources in each sub-cluster. Clusters other than the main cluster in the multi-cluster system are sub-clusters. Among them, the control node C and the first agent node D1 can be set in the main cluster 401. The second agent node D2 can be set in the sub-clusters 402 and 403. In other words, the existing resources of the clusters in the multi-cluster system can be used to monitor and store event information without setting up other devices (such as Figure 1 The server 101 shown in FIG) can thereby improve the utilization of existing resources.

[0059] In addition, in order to improve the integrity and accuracy of event information collection, each cluster of the multi-cluster system can also be equipped with a monitoring node (such as Figure 4In the example shown in FIG. 1 , the monitoring node J is configured to collect and transmit event information about a resource in the cluster in response to detecting an adjustment operation on the resource. These adjustment operations can include, for example, adding or modifying a resource. The monitoring node can also be hardware or software, or even a function within the software. This prevents the omission of event information.

[0060] It should be noted that if the cluster in a multi-cluster system is a container management system cluster, monitoring nodes can be implemented through the component mechanism provided by the container management system cluster. This component mechanism (such as the Informer mechanism provided by the Kubernetes system) generally enables system expansion. For example, the component mechanism allows programs or functions to be embedded or called, thereby implementing the corresponding functions. Although the Kubernetes system itself also has monitoring functions, it typically adds, deletes, and modifies objects of specified types. Implementing monitoring node functionality through its component mechanism also represents a redevelopment and enhancement of the system, i.e., an improvement. This further improves the utilization of existing resources.

[0061] Step 301: Receive event information sent by a monitoring node in the main cluster.

[0062] In some embodiments, the execution subject of the information management method (such as Figure 4 The control node C) shown in FIG can receive the event information sent by the monitoring node in the main cluster through a wired connection or a wireless connection. Then step 303 can be executed. It can be understood that Figure 4 As can be seen from FIG, since the control node C is also set in the main cluster 401, there is no need to set up an additional second agent node in the main cluster 401. That is, the monitoring node J can directly push event information to the control node C.

[0063] Step 302: Receive event information sent by the first agent node.

[0064] In some embodiments, the execution subject may also receive event information sent by the first proxy node. Then, step 303 is executed. The event information here may be sent by the second proxy node in the sub-cluster in the multi-cluster system to the first proxy node (e.g., Figure 3 The event information sent by the second agent node may be collected by the monitoring node in the sub-cluster where the second agent node is located and sent to the second agent node.

[0065] As an example, Figure 4As shown, monitoring node J in sub-cluster 402 can send collected event information to second agent node D2 in sub-cluster 402. Second agent node D2 can then send the event information to first agent node D1 in main cluster 401. First agent node D1 can then send the event information to control node C. Control node C can further process the event information. The same process applies to other sub-clusters in the multi-cluster system and will not be further described here.

[0066] Step 303: Process the event information according to the preset configuration information.

[0067] In some embodiments, according to the preset configuration information, the execution subject can process the event information of the main cluster and the sub-cluster. Figure 2 The description of step 202 in the embodiment will not be repeated here.

[0068] Step 304: Store the processed event information to a target location.

[0069] In some embodiments, the execution entity can store the processed event information in a unified target location. Figure 2 The description of step 203 in the embodiment will not be repeated here.

[0070] Step 305 : In response to receiving the query request, the event information stored in the target location is screened to generate a query result corresponding to the query request.

[0071] In some embodiments, a user may send a query request through a terminal device. The query request may represent a query for event information. Upon receiving the query request, the execution entity may filter the event information stored at the target location and generate a query result corresponding to the query request. For example, the filtered event information may be used as the query result. The execution entity may return the query result to the terminal device for display to the user.

[0072] As can be seen from the preceding description, the main cluster can analyze, search, and filter data from all subclusters, achieving unified management of all clusters. In other words, the control node can centrally manage event information from all clusters in a multi-cluster system without having to send requests to the subclusters. This effectively improves data query efficiency.

[0073] In some embodiments, if the target location (such as the search engine Elasticsearch) can provide query services, the user can also directly send a query request to it through the terminal device to obtain the query results.

[0074] The information management method provided by some embodiments of the present disclosure can introduce a control node into the master cluster of a multi-cluster system, thereby receiving and processing event information pushed from all subclusters. Event information from all subclusters can be pushed to the master cluster via a secondary proxy node. This means that unified management of all clusters in the system can be achieved within the master cluster. This method is particularly suitable for network topologies where the master cluster cannot directly access subclusters. It can improve both the efficiency of event information processing and the utilization of existing resources.

[0075] Further references Figure 5 , as a response to the above Figure 2 and 3 The present disclosure provides some embodiments of an information management device for a control node in a multi-cluster system. Figure 2 and 3 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0076] like Figure 5 As shown, the information management device 500 of some embodiments may include: a receiving unit 501, configured to receive event information sent by a first agent node in a multi-cluster system, wherein the event information is sent to the first agent node by a cluster in the multi-cluster system in which a second agent node is provided through the second agent node; a processing unit 502, configured to process the event information according to preset configuration information; and a storage unit 503, configured to store the processed event information to a target location.

[0077] In some embodiments, the multi-cluster system may include a main cluster and sub-clusters, wherein the control node and the first agent node are set in the main cluster, and the second agent node is set in the sub-cluster.

[0078] In some embodiments, a monitoring node may be further provided in each cluster of the multi-cluster system, wherein the monitoring node collects and sends resource event information in response to detecting an adjustment operation on the resources of the cluster in which it is located.

[0079] In some embodiments, the processing unit 502 may be further configured to, in response to receiving event information sent by a monitoring node in the main cluster, process the received event information according to preset configuration information.

[0080] In some embodiments, the event information sent by the second agent node may be obtained through the following steps: the monitoring node in the sub-cluster sends the collected event information to the second agent node in the sub-cluster.

[0081] In some embodiments, the cluster in the multi-cluster system is a container application management system cluster, wherein the monitoring node is implemented through a component mechanism provided by the container application management system cluster.

[0082] In some embodiments, the apparatus 500 may further include a query unit ( Figure 5 ), is configured to, in response to receiving a query request, filter the event information stored in the target location and generate a query result corresponding to the query request.

[0083] It is understood that the units described in the device 500 are similar to those in the reference Figure 2 and 3 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 500 and the units included therein, and will not be repeated here.

[0084] Reference below Figure 6 , which shows an electronic device (eg, Figure 1 FIG. 6 is a schematic diagram of the structure of the control node in FIG. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0085] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0086] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6Each block shown in the figure may represent one device, or may represent multiple devices as needed.

[0087] In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from a network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of some embodiments of the present disclosure are performed.

[0088] It should be noted that the computer-readable medium described in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0089] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0090] The computer-readable medium may be included in the electronic device, or may exist independently and not incorporated into the electronic device. The computer-readable medium carries one or more programs. When executed by the electronic device, the one or more programs cause the electronic device to: receive event information sent by a first proxy node in a multi-cluster system, where the event information is sent to the first proxy node by a cluster in the multi-cluster system that includes a second proxy node; process the event information according to preset configuration information; and store the processed event information in a target location.

[0091] In addition, computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0092] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0093] The units described in some embodiments of the present disclosure may be implemented via software or hardware. The units described may also be provided within a processor. For example, they may be described as comprising a receiving unit, a processing unit, and a storage unit. The names of these units do not, in some cases, limit the units themselves. For example, the receiving unit may also be described as a "unit for receiving event information sent by the first agent node in a multi-cluster system."

[0094] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0095] The above description is only an illustration of some preferred embodiments of the present disclosure and the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. An information management method, the method being applied to a control node in a multi-cluster system, the method comprising: receiving event information sent by a first proxy node in the multi-cluster system, wherein the event information is sent by a cluster in the multi-cluster system having a second proxy node through the second proxy node to the first proxy node, and the first proxy node serves as a communication medium between the control node and the clusters in the multi-cluster system; Processing the event information according to preset configuration information; storing the processed event information to a target location; The control node is used to receive, process and manage event information of all clusters in the multi-cluster system.

2. The information management method according to claim 1, wherein: The multi-cluster system includes a main cluster and sub-clusters, wherein the control node and the first proxy node are set in the main cluster, and the second proxy node is set in the sub-cluster.

3. The information management method according to claim 2, wherein: A monitoring node is further provided in each cluster of the multi-cluster system. In response to detecting an adjustment operation on the resources of the cluster in which the monitoring node is located, the monitoring node collects and sends event information of the resources.

4. The information management method according to claim 3, wherein: The method further comprises: In response to receiving the event information sent by the monitoring node in the main cluster, the received event information is processed according to the preset configuration information.

5. The information management method according to claim 3, wherein: The event information sent by the second agent node is obtained through the following steps: The monitoring node in the sub-cluster sends the collected event information to the second agent node in the sub-cluster.

6. The information management method according to claim 3, wherein: The cluster in the multi-cluster system is a container management system cluster, wherein the monitoring node is implemented through a component mechanism provided by the container management system cluster.

7. The information management method according to any one of claims 1 to 6, wherein: The method further comprises: In response to receiving the query request, the event information stored in the target location is screened to generate a query result corresponding to the query request.

8. An information management device for a control node in a multi-cluster system, the device comprising: a receiving unit configured to receive event information sent by a first proxy node in a multi-cluster system, wherein the event information is sent by a cluster provided with a second proxy node in the multi-cluster system to the first proxy node through the second proxy node, and the first proxy node serves as a communication medium between the control node and the clusters in the multi-cluster system; a processing unit, configured to process the event information according to preset configuration information; a storage unit configured to store the processed event information in a target location; The control node is used to receive, process and manage event information of all clusters in the multi-cluster system.

9. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer-readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Multi-cluster instance processing method and device, electronic equipment and storage medium

    CN113626286A