Cluster host monitoring system, method and storage medium
By designing a cluster host monitoring system with multiple transmission paths in the cluster host monitoring system, the problem of interruption and loss of monitoring data in the event of a fault is solved, and the availability of the system is improved.
Patent Information
- Application Number
- CN202211666448.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-23
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-12-23
AI Technical Summary
In the existing cluster host monitoring system, when the main monitoring system fails, monitoring data is interrupted and lost, resulting in low availability.
A cluster host monitoring system is designed, including a host probe module, a cluster monitoring module, a monitoring summary module and an agent forwarding module. The system is composed of multiple transmission paths. If one path fails, other paths can continue to transmit monitoring data to ensure No data loss or interruption.
It improves the availability of the cluster host monitoring system, avoids the interruption and loss of monitoring data in the event of failure, and enhances the high availability of the system.
Smart Images

Figure CN116232965B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a cluster host monitoring system, method and storage medium. Background Art
[0002] At present, users can use cloud platform technology to deploy various services and applications on a large cluster consisting of hosts in multiple regions and computer rooms. In the existing technology, cluster host monitoring mostly only realizes the monitoring of the high availability of the platform, and there is little construction of the high availability of the monitoring system itself. Most of them adopt the monitoring system with active-standby switching.
[0003] However, most of the above-mentioned active-standby switching monitoring systems switch to the standby monitoring system when a failure occurs in the active monitoring system, resulting in interruption and loss of monitoring data when the active-standby monitoring system switches, thus reducing the availability of the monitoring system. Summary of the invention
[0004] The present application provides a cluster host monitoring system, method and storage medium, which can solve the problem of low availability of the monitoring system.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a cluster host monitoring system, which includes: a host probe module, at least two cluster monitoring modules, at least two monitoring summary modules and an agent forwarding module, wherein the host probe module is respectively connected to the at least two cluster monitoring modules, the at least two cluster monitoring modules are respectively connected to the at least two monitoring summary modules, and the at least two monitoring summary modules are respectively connected to the agent forwarding module; wherein the host probe module is used to obtain first information, and the first information includes at least one of the following: the working status of each host in the cluster host, and the working status of the service deployed by each host in the cluster host; each cluster monitoring module is used to obtain second information, and the second information includes the first information and the working status information of other cluster monitoring modules in at least two cluster monitoring modules; each monitoring summary module is used to obtain third information, and the third information includes the second information of each cluster monitoring module and the working status information of other monitoring summary modules in at least two monitoring summary modules; the agent forwarding module is used to obtain the third information, and according to the third information, perform agent forwarding on the access request of a specific source address, and determine the transmission path of the monitoring data corresponding to the access request of the specific source address.
[0007] Based on the above technical solution, the cluster host monitoring system provided by the embodiment of the present application can reach the proxy forwarding module through multiple transmission paths composed of cluster monitoring modules and monitoring aggregation modules, and the proxy forwarding module forwards the host monitoring data. In use, if one of the transmission paths fails, the other transmission paths can still complete the forwarding of the host monitoring data, and the host monitoring data will not be lost or interrupted, thereby improving the availability of the cluster host monitoring system.
[0008] In a first possible implementation of the first aspect, the host probe module includes a first port, each cluster monitoring module includes a second port, and each monitoring aggregation module includes a third port; the first port is respectively connected to at least two cluster monitoring modules, the second port is respectively connected to at least two monitoring aggregation modules, and the third port is connected to the proxy forwarding module; wherein the first port is used to send the first information to at least two cluster monitoring modules, the second port is used to send the second information to at least two monitoring aggregation modules, and the third port is used to send the third information to the proxy forwarding module.
[0009] In a second possible implementation manner of the first aspect, at least two cluster monitoring modules are deployed on at least two hosts in the cluster host of the smallest dimensional unit.
[0010] In a third possible implementation of the first aspect, each cluster monitoring module includes a cluster monitoring service, and the cluster monitoring service includes at least one of the following: a host monitoring service, the host monitoring service is used to periodically collect first information of the target cluster host according to the host probe module, and the target cluster host is the cluster host to which each cluster monitoring module in the cluster host belongs; a first monitoring service, the first monitoring service is used to monitor the working status of the host monitoring service and collect working status information of the host monitoring service; a second port service, the second port service is used to send the second information to at least two monitoring aggregation modules; a second monitoring service, the second monitoring service is used to monitor the working status of the second port and collect working status information of the second port; a third monitoring service, the third monitoring service is used to monitor the working status of other cluster monitoring modules and generate second information; a synchronization configuration service, the synchronization configuration service is used to ensure that the configuration of the cluster monitoring service of each cluster monitoring module is the same.
[0011] In a fourth possible implementation manner of the first aspect, at least two monitoring aggregation modules are deployed in cluster hosts at different levels, and each level includes at least two monitoring aggregation modules.
[0012] In a fifth possible implementation of the first aspect, each monitoring aggregation module includes a monitoring aggregation service, and the monitoring aggregation service includes at least one of the following: a fourth monitoring service, the fourth monitoring service is used to periodically collect second information through a second port service, and generate fourth information, the fourth information including the second information of this level and the second information of the next level; a third port service, the third port service is used to send the third information to the proxy forwarding module; a fifth monitoring service, the fifth monitoring service is used to monitor the working status of the second port and collect working status information of the third port; a sixth monitoring service, the sixth monitoring service is used to monitor the working status of other monitoring aggregation modules in the same level, and generate third information, the third information including the fourth information; a synchronization configuration service, the synchronization configuration service is used to ensure that the configuration of the monitoring aggregation service of each monitoring aggregation module is the same.
[0013] In a sixth possible implementation of the first aspect, the proxy forwarding module includes a proxy forwarding service, which includes at least one of the following: a seventh monitoring service, which is used to obtain the third information sent by the highest-level monitoring aggregation module; a high availability algorithm, which is used to determine at least one currently available monitoring aggregation module based on the third information, and generate a target rule, which is used to allocate access requests from a specific source address to a fixed currently available monitoring aggregation module, and the allocation probability of each currently available monitoring aggregation module in at least one currently available monitoring aggregation module is the same; a fourth port service, which is used to proxy the access request from a specific source address to a fixed currently available monitoring aggregation module based on the high availability algorithm.
[0014] In a second aspect, the present application provides a cluster host monitoring method, the method comprising: obtaining target information; determining, based on the target information, a transmission path for monitoring data from at least one transmission path; wherein the target information comprises: first information, second information and third information, the first information comprising at least one of the following: the working status of each host in the cluster host, the working status of the service deployed by each host in the cluster host; the second information comprising at least one of the following: the first information and the working status information of at least two cluster monitoring modules; the third information comprising at least one of the following: the second information corresponding to each cluster monitoring module and the working status information of at least two monitoring summary modules.
[0015] In a first possible implementation of the second aspect, determining a transmission path for monitoring data from at least one transmission path according to target information includes: determining a transmission path for monitoring data from at least one transmission path according to target information and a high availability algorithm.
[0016] In a third aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal, the terminal executes the cluster host monitoring method described in the second aspect and any possible implementation of the second aspect.
[0017] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product runs on a cluster host monitoring system, the cluster host monitoring system executes the cluster host monitoring method as described in the second aspect and any possible implementation of the second aspect.
[0018] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the cluster host monitoring method described in the second aspect and any possible implementation method of the second aspect.
[0019] Specifically, the chip provided in the embodiment of the present application also includes a memory for storing computer programs or instructions. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 One of the structural diagrams of a cluster host monitoring system provided in an embodiment of the present application;
[0021] Figure 2 A second structural diagram of a cluster host monitoring system provided in an embodiment of the present application;
[0022] Figure 3 A flowchart of a cluster host monitoring method provided in an embodiment of the present application;
[0023] Figure 4 This is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The cluster host monitoring system, method and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0025] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0026] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0027] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0028] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0029] In the description of the present application, unless otherwise specified, “plurality” means two or more.
[0030] At present, cloud platform technology is widely used in various industries. From the perspective of architecture, cloud platform is a huge cluster composed of hosts in multiple regions and computer rooms, on which various services and applications are deployed. For managers and customers, monitoring the status of hosts and applications in the cloud platform environment is a very important work content. In addition, another major concern of cloud platforms is high availability, that is, when a host, application, or service encounters a failure, it can ensure that the business can be switched to the backup role in time and continue without interruption. For example, the active-standby switching scheduling method is adopted, that is, the active-standby monitoring shares external storage, and the active monitoring is switched to the backup monitoring after the failure. However, the above method has the following problems:
[0031] (1) Most existing monitoring systems are non-high-availability architectures, that is, the monitoring service runs on a single instance. If the monitoring service or the host where it resides fails, the monitoring fails.
[0032] (2) Existing high-availability monitoring system solutions are mostly single-instance modes that rely on master-slave switching, base scheduling, or network storage. They cannot guarantee instant switching, and data collection and reporting may be interrupted or missing.
[0033] (3) Most cloud platforms have a multi-level regional architecture, and the multi-level tree-like monitoring network lacks a high-availability solution.
[0034] In order to solve the problem in the prior art that monitoring data collection and reporting may be interrupted or missing, the present application provides a cluster host monitoring system, which includes a host probe module, at least two cluster monitoring modules, at least two monitoring summary modules and an agent forwarding module, wherein the host probe module is respectively connected to at least two cluster monitoring modules, at least two cluster monitoring modules are respectively connected to at least two monitoring summary modules, and at least two monitoring summary modules are connected to the agent forwarding module. In this solution, the agent forwarding module can be reached through multiple transmission paths composed of cluster monitoring modules and monitoring summary modules, and the host monitoring data is forwarded by the agent forwarding module. In use, the cluster host monitoring system can monitor the working status of each transmission path. If one of the transmission paths fails, the other transmission paths can still complete the forwarding of the host monitoring data, and the host monitoring data will not be lost or interrupted, thereby improving the availability of the cluster host monitoring system.
[0035] like Figure 1 As shown, it is an example diagram of a cluster host monitoring system provided in an embodiment of the present application. The system 10 includes: a host probe module 11, at least two cluster monitoring modules 12, at least two monitoring aggregation modules 13 and an agent forwarding module 14. The host probe module 11 is respectively connected to the at least two cluster monitoring modules 12, at least two cluster monitoring modules 12 are respectively connected to the at least two monitoring aggregation modules 13, and at least two monitoring aggregation modules 13 are respectively connected to the agent forwarding module 14.
[0036] In an embodiment of the present application, the above-mentioned host probe module is used to obtain first information, and the first information includes at least one of the following: the working status of each host in the cluster host, and the working status of the service deployed by each host in the cluster host; each cluster monitoring module is used to obtain second information, and the second information includes the first information and the working status information of other cluster monitoring modules in at least two cluster monitoring modules; each monitoring summary module is used to obtain third information, and the third information includes the second information of each cluster monitoring module and the working status information of other monitoring summary modules in at least two monitoring summary modules; the proxy forwarding module is used to obtain the third information, and based on the third information, proxy forward the access request of the specific source address, and determine the transmission path of the monitoring data corresponding to the access request of the specific source address.
[0037] It should be noted that the cluster host monitoring system in the embodiment of the present application is a vertical structure.
[0038] Optionally, in the embodiment of the present application, the host probe module may be one or more.
[0039] Exemplarily, when there is only one host probe module, each host in the cluster is connected to the host probe module through a public HTTP interface.
[0040] Exemplarily, when there are multiple host probe modules, each host in the cluster includes a host probe module.
[0041] Exemplarily, each of the above-mentioned cluster monitoring modules is used to obtain the working status information of other cluster monitoring modules in at least two cluster monitoring modules, that is, each cluster monitoring module provided in this application can monitor each other, so that the cluster host monitoring system can obtain the working status information of each cluster monitoring module.
[0042] Exemplarily, each of the above-mentioned monitoring aggregation modules is used to obtain the working status information of other monitoring aggregation modules in at least two monitoring aggregation modules, that is, each monitoring aggregation module provided in the present application can monitor each other, so that the cluster host monitoring system can obtain the working status information of each monitoring aggregation module.
[0043] Optionally, in the embodiment of the present application, Figure 2 As shown, the host probe module 11 includes a first port 110, each cluster monitoring module 12 includes a second port 120, and each monitoring aggregation module 13 includes a third port 130; the first port 110 is respectively connected to at least two cluster monitoring modules 12, the second port 120 is respectively connected to at least two monitoring aggregation modules 13, and the third port 130 is connected to the proxy forwarding module 14.
[0044] In an embodiment of the present application, the first port is used to send the first information to at least two cluster monitoring modules respectively, the second port is used to send the second information to at least two monitoring aggregation modules respectively, and the third port is used to send the third information to the proxy forwarding module.
[0045] It should be noted that Figure 1 The at least two cluster monitoring modules in the example are two cluster monitoring modules, and the at least two monitoring aggregation modules are two monitoring aggregation modules as an example.
[0046] Exemplarily, in the embodiment of the present application, the first port, the second port, and the third port may all be HTTP ports.
[0047] Optionally, in an embodiment of the present application, the at least two cluster monitoring modules are deployed on at least two hosts in the cluster host of the smallest dimensional unit.
[0048] It should be noted that the above-mentioned dimensional units refer to dimensional units such as computer room, data center, city area, and global area, among which the smallest dimensional unit is the computer room.
[0049] Optionally, in an embodiment of the present application, each of the at least two cluster monitoring modules includes a cluster monitoring service, and the cluster monitoring service includes at least one of the following:
[0050] The host monitoring service is used to periodically collect first information of a target cluster host according to a host probe module. The target cluster host is a cluster host to which each cluster monitoring module in the cluster host belongs.
[0051] The first monitoring service is used to monitor the working status of the host monitoring service and collect working status information of the host monitoring service.
[0052] Exemplarily, the above working status information can be 0 and 1; wherein 0 represents a normal working status, and 1 represents an abnormal working status.
[0053] The second port service is used to send the second information to at least two monitoring aggregation modules.
[0054] The second monitoring service is used to monitor the working status of the second port and collect the working status information of the second port.
[0055] The third monitoring service is used to monitor the working status of other cluster monitoring modules and generate second information.
[0056] Synchronous configuration service: The synchronous configuration service is used to ensure that the configuration of the cluster monitoring service of each cluster monitoring module is the same.
[0057] Optionally, in an embodiment of the present application, the at least two monitoring aggregation modules are deployed in cluster hosts at different levels, and each level includes at least two monitoring aggregation modules.
[0058] Optionally, in the embodiment of the present application, each of the at least two monitoring aggregation modules includes a monitoring aggregation service, and the monitoring aggregation service includes at least one of the following:
[0059] The fourth monitoring service is used to periodically collect the second information through the second port service and generate the fourth information, and the fourth information includes the second information of the current level and the second information of the next level.
[0060] The third port service is used to send the third information to the proxy forwarding module.
[0061] The fifth monitoring service is used to monitor the working status of the second port and collect working status information of the third port.
[0062] The sixth monitoring service is used to monitor the working status of other monitoring aggregation modules in the same level and generate third information, which includes the fourth information.
[0063] Synchronous configuration service: The synchronous configuration service is used to ensure that the configuration of the monitoring aggregation service of each monitoring aggregation module is the same.
[0064] Optionally, in the embodiment of the present application, the proxy forwarding module includes a proxy forwarding service, and the proxy forwarding service includes at least one of the following:
[0065] The seventh monitoring service is used to obtain the third information sent by the highest-level monitoring summary module.
[0066] High availability algorithm, the high availability algorithm is used to determine at least one currently available monitoring aggregation module based on the third information, and generate a target rule, the target rule is used to allocate access requests from a specific source address to a fixed currently available monitoring aggregation module, and the allocation probability of each currently available monitoring aggregation module in at least one currently available monitoring aggregation module is the same.
[0067] The fourth port service is used to proxy 5 access requests from a specific source address to a fixed currently available monitoring summary module based on a high availability algorithm.
[0068] It should be noted that the above-mentioned proxy forwarding module is located in the cloud platform and is managed based on the cloud platform.
[0069] The present application provides a cluster host monitoring system, which includes a host probe module, at least two cluster monitoring modules, at least two monitoring summary modules and an agent forwarding module, wherein the host probe module is respectively connected to at least two cluster monitoring modules, at least two cluster monitoring modules are respectively connected to at least two monitoring summary modules, and at least two monitoring summary modules are respectively connected to the agent forwarding module. In this solution, the agent forwarding module can be reached through multiple transmission paths formed by the cluster monitoring modules and the monitoring summary modules, and the agent forwarding module can perform
[0070] During use, if one of the transmission paths fails, the other transmission paths can still complete the forwarding of the host monitoring data, and the host monitoring data will not be lost or interrupted, thereby improving the availability of the cluster host monitoring system.
[0071] like Figure 3 FIG. 1 is a flow chart of a cluster host monitoring method provided by an embodiment of the present application, and the method includes the following steps S101 and S102:
[0072] S101. The cluster host monitoring system obtains target information.
[0073] In the embodiment of the present application, the target information includes: first information, second information and third information, the first information includes at least one of the following: the working status of each host in the cluster host, the working status of the service deployed by each host in the cluster host; the second information includes at least one of the following: the working status information of the first information and at least two cluster monitoring modules; the third information includes at least one of the following:
[0074] One item: the second information corresponding to each cluster monitoring module and the working state information of at least two monitoring aggregation modules.
[0075] In the embodiment of the present application, the cluster host monitoring system can specifically obtain the first information through the first port of the host probe module, obtain the second information through the second port of the cluster monitoring module, and obtain the third information through the third port of the monitoring summary module.
[0076] S102: The cluster host monitoring system determines a transmission path for monitoring data from at least one transmission path according to target information.
[0077] It should be noted that each of the at least one transmission path is a transmission path between the host probe module, the cluster monitoring module, the monitoring aggregation module, and the proxy forwarding module.
[0078] Exemplarily, the monitoring data may be monitoring data requested by a specific source address.
[0079] The embodiment of the present application provides a cluster host monitoring method, and the cluster host monitoring system can obtain target information, and then determine the transmission path of the monitoring data from at least one transmission path according to the target information. In this solution, since the target information contains the working status information of each transmission path and the transmitted data information, the cluster host monitoring system can determine at least one data path according to the target information, and then transmit the monitoring data according to the at least one data path. In use, if one of the transmission paths fails, the other transmission paths can still complete the forwarding of the host monitoring data, and the host monitoring data will not be lost or interrupted, thereby improving the availability of the cluster host monitoring system.
[0080] Optionally, in the embodiment of the present application, the above step S102 can be specifically implemented through the following process.
[0081] The cluster host monitoring system determines a transmission path for monitoring data from at least one transmission path according to target information and a high availability algorithm.
[0082] In an embodiment of the present application, after obtaining the target information, the cluster host monitoring system can determine the target rule based on the high availability algorithm in the proxy forwarding module, and the target rule is used to allocate the access request of the specific source address to a fixed currently available monitoring aggregation module (i.e., a transmission path), and proxy the access request of the specific source address to a fixed currently available monitoring aggregation module through the fourth port service in the proxy forwarding module.
[0083] In an embodiment of the present application, the cluster host monitoring system determines the transmission path of the monitoring data through target information and a high-availability algorithm, thereby avoiding the problem of easy loss of monitoring data due to failures in the current transmission path. This improves the flexibility and accuracy of the cluster host monitoring system in determining the transmission path of the monitoring data.
[0084] Figure 4 1 is a schematic diagram of the structure of a chip 170 provided in an embodiment of the present application. The chip 170 includes one or more (including two) processors 1710 and a communication interface 1730 .
[0085] Optionally, the chip 170 further includes a memory 1740, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor 1710. A portion of the memory 1740 may also include a non-volatile random access memory (NVRAM).
[0086] In some embodiments, the memory 1740 stores the following elements, execution modules or data structures, or a subset thereof, or an extended set thereof.
[0087] In the embodiment of the present application, the corresponding operation is performed by calling the operation instruction stored in the memory 1740 (the operation instruction may be stored in the operating system).
[0088] Among them, the above-mentioned processor 1710 can implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of this application. The processor can be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, etc.
[0089] The memory 1740 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above types of memory.
[0090] The bus 1720 may be an Extended Industry Standard Architecture (EISA) bus, etc. The bus 1720 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 The fact that only one line is used in the diagram does not mean that there is only one bus or only one type of bus.
[0091] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0092] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the cluster host monitoring method in the above method embodiment.
[0093] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the cluster host monitoring method in the method flow shown in the above method embodiment.
[0094] Among them, the computer-readable storage medium can 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 (a non-exhaustive list) include: 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), a register, a hard disk, 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, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0095] An embodiment of the present invention provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the following Figures 1 to 4 The cluster host monitoring method described in .
[0096] Since the cluster host monitoring system, method, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present invention will not be repeated here.
[0097] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0098] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0099] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0100] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A cluster host monitoring system, characterized in that: The system comprises: a host probe module, at least two cluster monitoring modules, at least two monitoring summary modules and an agent forwarding module, wherein the host probe module is respectively connected to the at least two cluster monitoring modules, the at least two cluster monitoring modules are respectively connected to the at least two monitoring summary modules, and the at least two monitoring summary modules are respectively connected to the agent forwarding module; Among them, the host probe module is used to obtain first information, and the first information includes: the working status of each host in the cluster host, and the working status of the service deployed by each host in the cluster host; each cluster monitoring module is used to obtain second information, and the second information includes the first information and the working status information of other cluster monitoring modules in the at least two cluster monitoring modules; each monitoring summary module is used to obtain third information, and the third information includes the second information of each cluster monitoring module and the working status information of other monitoring summary modules in the at least two monitoring summary modules; the proxy forwarding module is used to obtain the third information, and according to the third information, proxy forward the access request of the specific source address, and determine the transmission path of the monitoring data corresponding to the access request of the specific source address; the transmission path is composed of the cluster monitoring module and the monitoring summary module; Each cluster monitoring module includes a cluster monitoring service, which includes: A host monitoring service, wherein the host monitoring service is used to periodically collect the first information of a target cluster host according to the host probe module, wherein the target cluster host is a cluster host to which each cluster monitoring module in the cluster hosts belongs; A first monitoring service, wherein the first monitoring service is used to monitor the working status of the host monitoring service and collect working status information of the host monitoring service; a second port service, wherein the second port service is used to send the second information to the at least two monitoring aggregation modules; A second monitoring service, wherein the second monitoring service is used to monitor the working status of the second port and collect working status information of the second port; a third monitoring service, wherein the third monitoring service is used to monitor the working status of other cluster monitoring modules and generate the second information; A synchronization configuration service, the synchronization configuration service is used to ensure that the configuration of the cluster monitoring service of each cluster monitoring module is the same; The at least two monitoring aggregation modules are deployed in cluster hosts at different levels, and each level includes at least two monitoring aggregation modules; Each monitoring aggregation module includes a monitoring aggregation service, and the monitoring aggregation service includes: a fourth monitoring service, the fourth monitoring service being used to periodically collect the second information through the second port service and generate fourth information, the fourth information including the second information of the current level and the second information of the next level; A third port service, wherein the third port service is used to send the third information to the proxy forwarding module; a fifth monitoring service, the fifth monitoring service being used to monitor the working status of the second port and collect working status information of the third port; a sixth monitoring service, the sixth monitoring service being used to monitor the working status of other monitoring aggregation modules in the same level and generate the third information, wherein the third information includes the fourth information; A synchronization configuration service, which is used to ensure that the configuration of the monitoring aggregation service of each monitoring aggregation module is the same; The proxy forwarding module includes a proxy forwarding service, and the proxy forwarding service includes: a seventh monitoring service, the seventh monitoring service being used to obtain the third information sent by the highest-level monitoring aggregation module; A high availability algorithm, wherein the high availability algorithm is used to determine at least one currently available monitoring aggregation module according to the third information, and generate a target rule, wherein the target rule is used to allocate access requests from a specific source address to a fixed currently available monitoring aggregation module, and the allocation probability of each currently available monitoring aggregation module in the at least one currently available monitoring aggregation module is the same; The fourth port service is used to proxy the access request of the specific source address to a fixed currently available monitoring aggregation module according to the high availability algorithm.
2. The system according to claim 1, characterized in that The host probe module includes a first port, each cluster monitoring module includes a second port, and each monitoring summary module includes a third port; the first port is connected to the at least two cluster monitoring modules respectively, the second port is connected to the at least two monitoring summary modules respectively, and the third port is connected to the proxy forwarding module; The first port is used to send the first information to the at least two cluster monitoring modules respectively, the second port is used to send the second information to at least two monitoring aggregation modules respectively, and the third port is used to send the third information to the proxy forwarding module.
3. A cluster host monitoring method, characterized in that: The method is applied to the cluster host monitoring system according to any one of claims 1 and 2, and the method comprises: Get target information; Determining, according to the target information, a transmission path of the monitoring data from at least one transmission path; The target information includes: first information, second information and third information, wherein the first information includes: the working status of each host in the cluster host, and the working status of the service deployed by each host in the cluster host; the second information includes: the first information and the working status information of at least two cluster monitoring modules; the third information includes: the second information corresponding to each cluster monitoring module and the working status information of at least two monitoring aggregation modules; The step of determining, according to the target information, a transmission path of the monitoring data from at least one transmission path comprises: Determine a target rule according to the target information and the high availability algorithm; Allocating a specific source address access request to a fixed currently available monitoring aggregation module according to the target rule; the fixed currently available monitoring aggregation module is a transmission path for the monitoring data; Among them, the allocation probability of each currently available monitoring aggregation module in at least one currently available monitoring aggregation module is the same.
4. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When a computer executes the instruction, the computer executes the cluster host monitoring method as claimed in claim 3.
Citation Information
Patent Citations
Host cluster monitoring method and device
CN106383771A
System and method for massive data monitoring based on deep packet detection
CN106815112A
Hadoop cluster-based management monitor system and method
CN108390907A
Distributed monitoring system, method and device
CN108418710A
Multi-container cluster monitoring data acquisition method and device and electronic equipment
CN111064781A
