A data reporting system and method

By introducing the architecture of management nodes, processing nodes and regional nodes into the monitoring system, combined with message middleware and data persistence nodes, the problems of high centralization and data loss in the existing technology are solved, and the robustness and intelligence of the system are achieved. Load balancing is suitable for rapid monitoring and expansion of large-scale multi-computer room environments.

CN109639480BActive Publication Date: 2024-09-24JINGDONG TECH HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811503253.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-10
Publication Date
2024-09-24
Estimated Expiration
2038-12-10

AI Technical Summary

Technical Problem

The existing monitoring system architecture has a high degree of centralization problem. Central node failure will cause system paralysis, and it cannot be expanded as the scale grows. The simple asynchronous reporting structure is prone to data loss when synchronizing data in multiple computer rooms, and deployment and policy issuance are difficult. And it is difficult to achieve intelligent load balancing.

Method used

A data reporting system is designed, including management nodes, processing nodes and multiple regional nodes. The regional nodes receive the data of the host node and deliver it according to the delivery strategy. The management node monitors the load status of the regional nodes and issues the load strategy to achieve Intelligent load balancing, and improving system robustness through message middleware and data persistence nodes.

Benefits of technology

It achieves fast and accurate monitoring in a large-scale multi-machine room environment, facilitates capacity expansion, and has high system robustness. It can monitor node load conditions in real time, avoid excessive pressure on central nodes, reduce the risk of data loss, and simplify deployment and policy distribution. Intelligent load balancing is implemented.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109639480B
    Figure CN109639480B
Patent Text Reader

Abstract

The present invention discloses a system and method for data reporting, and relates to the field of computer technology. A specific implementation of the system includes: a management node, a processing node, and multiple regional nodes, wherein each regional node is used to receive data reported by a host node bound thereto, and deliver the data according to a stored delivery strategy; the processing node is used to obtain data delivered by the regional node, and process the obtained data according to a stored processing strategy; the management node is used to monitor the load status of the multiple regional nodes. The system is designed for large-scale multi-computer room business deployment, and can monitor quickly, accurately and effectively, while being easy to expand and highly robust. In addition, it can monitor the real-time load status of the node to achieve load balancing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a system and method for reporting data. Background Art

[0002] The monitoring system is an important system that every Internet company must have. It is related to whether each company's business can operate normally, whether it can be notified immediately after a failure occurs, and whether it can gain enough time to take correct measures to prevent the problem from further expanding after the problem is discovered.

[0003] The existing monitoring system architecture mainly includes two types, namely the central node type and the simple asynchronous reporting structure. Figure 1 As shown in the figure, the overall structure is star-shaped, actively detecting all around, triggering the execution of the monitoring program on the host node, and collecting the monitoring results. Among them, all monitoring strategies and monitoring items exist in the central node. There is usually an agent on the host node, waiting for the central node to call. The central node calls each host node by timing or polling, and sends alarms according to the stored alarm strategy. At the same time, the central node may also be responsible for drawing performance graphs or storing related data. The entire system relies entirely on the support of the central node. This structure has the problem of high centralization. If the central node fails, the entire system will be paralyzed. In addition, the central node will consume a lot of host hardware performance. As the scale grows, it reaches a critical point and cannot continue to expand.

[0004] For the existing simple asynchronous reporting structure, such as Figure 2 As shown in the figure, agents are still deployed on each host node, but the triggering conditions of the agents are not on the remote central node, but are scheduled through their own triggering strategies, usually in a timed manner. In addition, the collected data is reported to the message middleware by the agent itself, and then extracted from the message middleware by the back-end platform for unified processing. This architecture relieves the pressure on the central node, but also increases the difficulty of deployment and policy delivery. If multiple computer rooms synchronize data only through the message middleware, data loss may occur once there is a problem with the physical link between the computer rooms. Summary of the invention

[0005] In view of this, the embodiment of the present invention provides a data reporting system and method, which can monitor the large-scale multi-computer room business deployment quickly, accurately and effectively, and can easily expand the capacity and have high robustness. In addition, it can monitor the real-time load of the node and realize intelligent load balancing.

[0006] To achieve the above objective, according to one aspect of an embodiment of the present invention, a system for reporting data is provided.

[0007] The data reporting system of the embodiment of the present invention includes: a management node, a processing node and multiple regional nodes, wherein each regional node is used to receive data reported by the host node bound to it and deliver the data according to the stored delivery strategy; the processing node is used to obtain the data delivered by the regional node and process the obtained data according to the stored processing strategy; the management node is used to monitor the load status of the multiple regional nodes.

[0008] Optionally, the regional node is also used to receive registration information of a newly added host node and send the registration information to the management node; the management node determines the regional node to be bound to the newly added host node based on the load conditions of the monitored regional nodes and the registration information, and returns the information of the regional node to be bound.

[0009] Optionally, the management node is further used to send a load policy to a corresponding regional node according to the load status of the monitored regional node; the corresponding regional node adjusts the binding relationship with the host node according to the received load policy.

[0010] Optionally, the data reporting system of the embodiment of the present invention further includes a message middleware for receiving data delivered by the regional node, and the processing node extracts data from the message middleware.

[0011] Optionally, the processing node includes at least an alarm node; the alarm node obtains an alarm configuration from the management node, and generates alarm information according to the alarm configuration and the obtained data.

[0012] Optionally, the data reporting system of the embodiment of the present invention further includes a data persistence node, which is used to extract data from the message middleware and store the extracted data in a database.

[0013] Optionally, the data reporting system of the embodiment of the present invention further includes an interactive node for visualizing the load status of the regional nodes monitored by the management node.

[0014] To achieve the above objective, according to another aspect of an embodiment of the present invention, a method for reporting data is provided.

[0015] The data reporting method of the embodiment of the present invention includes: for each regional node, receiving data reported by the host node bound thereto, and delivering the data according to the stored delivery strategy; the processing node obtains the data delivered by the regional node, and processes the obtained data according to the stored processing strategy; and the management node monitors the load status of each regional node

[0016] Optionally, the regional node receives registration information of the newly added host node and sends the registration information to the management node; the management node determines the regional node to be bound to the newly added host node based on the load of the monitored regional nodes and the registration information, and returns the information of the regional node to be bound.

[0017] Optionally, the management node sends a load policy to a corresponding regional node according to the load status of the monitored regional node; the corresponding regional node adjusts the binding relationship with the host node according to the received load policy.

[0018] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.

[0019] The electronic device of an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement any of the above-mentioned data reporting methods.

[0020] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any of the above-mentioned data reporting methods is implemented.

[0021] An embodiment of the above invention has the following advantages or beneficial effects: the host node binds a regional node and reports data to the regional node, and the regional node can deliver data according to the delivery strategy. In addition, the management node monitors the load status of all regional nodes in real time. In the case of capacity expansion, the bound regional node can be determined according to the load status to further achieve load balancing. The processing node processes the data core according to the processing strategy, and the system is highly robust.

[0022] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0024] Figure 1 and 2 It is a schematic diagram of a data reporting system in the prior art;

[0025] Figure 3 is a schematic diagram of a data reporting system according to an embodiment of the present invention;

[0026] Figure 4 is a schematic diagram of a data reporting system according to an embodiment of the present invention;

[0027] Figure 5 It is a schematic diagram of registration data reporting according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0029] Figure 3 is a schematic diagram of a data reporting system according to an embodiment of the present invention, such as Figure 3 As shown, the system for determining data reporting in the embodiment of the present invention mainly includes: a management node, a processing node and multiple regional nodes.

[0030] Each regional node is used to receive data reported by the host node bound to it, and deliver the data according to the stored delivery strategy. In the embodiment of the present invention, the host node is an agent deployed on the host. In the collection architecture, it can be equivalent to the host and is the source of data. The binding relationship between the regional node and the host node is that when the host node is added to the system, it establishes a long connection with one of the regional nodes by applying for registration, and then a binding relationship is established between the two. For a regional node, it can be bound to many host nodes.

[0031] In addition, the regional node can obtain the delivery strategy from the management node (deliver the data to the corresponding nodes according to the different data categories), and then deliver the data according to the delivery strategy and the data reported by the received host node. To a certain extent, it is equivalent to a postman, responsible for the accurate delivery of messages. For example, if the host node reports a data packet of streaming computing, the data is directly delivered to the spark cluster according to the delivery strategy. For the registration data packet reported by the host node, the data is delivered to the management node according to the delivery strategy. For some emergency situations, the alarm data is directly delivered to the alarm node in the processing node. After the alarm node obtains the alarm data, it directly issues an alarm without making an alarm judgment. The regional node layer can make relatively complex delivery strategies, and can also be responsible for downtime alarm checks and play the role of data buffering.

[0032] The processing node is used to obtain the data delivered by the regional node and process the obtained data according to the stored processing strategy. The processing strategy can be sent from the management node to the processing node, and the processing node stores it. The processing strategy can also be directly deployed to the processing node, and the processing node stores it. In an embodiment of the present invention, the processing node includes at least an alarm node; the alarm node obtains the alarm configuration from the management node, and generates alarm information according to the alarm configuration and the obtained data.

[0033] Regarding the architecture of the data reporting system in the prior art, one method is to perform calculations and alarms through a central node. This architecture puts a lot of pressure on the central node. The other method is to directly perform alarm judgments through agents and generate alarm information. The alarm information is then reported to the central node, which is sent by the central node. In an embodiment of the present invention, the alarm information is differentiated separately, so that more complex alarm configurations can be made. For example: an application cluster has 20 nodes, and usually hanging up a few nodes does not affect the business, but if more than half of the nodes fail, the business will fail. In this case, an alarm can be sent when more than 50% of the nodes alarm. This avoids the slow response of the monitoring system due to high pressure, or even delays and failures, and can also add additional high-complexity alarm strategies. This separation of the alarm framework and the collection framework is more robust and does not affect each other's performance.

[0034] The data reporting system of the embodiment of the present invention further includes a message middleware providing an asynchronous queue service, which is used to receive data delivered by the regional nodes, and the processing node extracts the data from the message middleware.

[0035] The management node is used to monitor the load status of multiple regional nodes. The management node is also used to send the load policy to the corresponding regional node according to the load status of the monitored regional node. And the corresponding regional node adjusts the binding relationship with the host node according to the received load policy. The management node is used to monitor the entire system and send the corresponding policy configuration.

[0036] The regional node is also used to receive the registration information of the newly added host node and send the registration information to the management node. The management node determines the regional node to be bound to the newly added host node based on the load of the monitored regional nodes and the registration information, and returns the information of the regional node to be bound.

[0037] The data reporting system of the embodiment of the present invention also includes a data persistence node, which is used to extract data from the message middleware and store the extracted data in a database for subsequent data analysis. The data reporting system of the embodiment of the present invention also includes an interactive node, which is used to visualize the load status of the regional node monitored by the management node. The interactive node is a window for human-computer interaction, providing functions such as visualization and policy configuration management.

[0038] Figure 4 is a schematic diagram of a data reporting system according to an embodiment of the present invention, such as Figure 4 As shown, the data reporting system of the embodiment of the present invention includes a host node, a regional node, a message middleware, an alarm node, a data persistence node, an interaction node and a management node. Figure 4 The regional nodes shown are regional node 1, regional node 2, regional node 3 and regional node 4. In actual applications, the number of regional nodes can be set according to requirements.

[0039] The host node at the bottom layer is the agent deployed on each host. The regional node above the host node is the agent node of each computer room. One regional node can be deployed in each computer room, and then the regional node is bound to all host nodes in the computer room. Alternatively, two or more regional nodes are deployed in a computer room, and the host nodes in the computer room are evenly bound to the deployed regional nodes. Regional node 1, regional node 2, regional node 3 and regional node 4 are responsible for collecting data packets reported by the host nodes, and then unpacking and delivering them according to the delivery strategy. Message middleware provides asynchronous queue services for message bodies.

[0040] In the embodiment of the present invention, the alarm node can extract alarm information from the message middleware, and then judge and process it according to the stored alarm configuration. The alarm node obtains the alarm configuration from the management node to make alarm judgments, and after being triggered, it can be sent according to the alarm recipient. The separation of the alarm framework and the collection framework makes the system more robust and the performance does not affect each other.

[0041] The data persistence node extracts messages from the message middleware and stores them in the database for later analysis and use. The management node is the management node of the entire system and is used to issue monitoring policies. The interaction node is a window for human-computer interaction, providing visualization and policy configuration management functions.

[0042] Figure 5 It is a schematic diagram of registration data reporting according to an embodiment of the present invention.

[0043] In the embodiment of the present invention, the first step of starting each host node is to register and establish a binding relationship with the regional node. Figure 5 As shown, first, the host node (MiiCOO) connects to a regional node (PAARAA) through a fixed domain name or IP, and passes the registration data packet through the regional node. The registration data packet can uniquely locate the computing resource where the host node is located, which may include: the machine's SN, operation and maintenance ID (usually burned into the ILO card), the machine's IP, and the machine's instance ID (unique to the cloud service), as well as the running host node version number and other information.

[0044] The regional node forwards the registration data packet to the management node (MGT). The management node assigns a relatively suitable regional node to the host node based on the registration status of the computer room where the host node applying for registration is located. The host node can then bind to the assigned regional node. The management node stores a list of regional node information. Through this list, the IP of the regional node in the same computer room can be found. After registration, the data packet is reported to the management node. The management node assigns the host node a regional node IP that best suits it based on the load of the regional node in that computer room. The host node then finds this regional node for optimal registration. For example: If a computer room has 3 regional nodes, all host nodes register with one of the regional nodes A, and none of the other two regional nodes have any host nodes maintained, then this is an inappropriate state. At this time, 1 / 3 of the host nodes will be selected and told to go to regional node B, and another 1 / 3 will be arranged to go to regional node C. In this way, the load is balanced, which is a relatively appropriate state.

[0045] The management node returns the policy package of the assigned regional node to the regional node that forwarded the registration information. After receiving the returned policy package, the regional node determines the regional node to be bound to the host node. If it is determined that the regional node it is bound to is itself, it will maintain a long connection with the host node and complete the registration, and return the package to the host node so that it can report data normally. If it is determined that it is another regional node, the policy package returned by the management node is returned to the host node, which also includes the IP of the regional node assigned by the management node, and the long connection with the host node is disconnected. After receiving the policy package, the host node will disconnect the long connection, and find the corresponding regional node through the received address and bind it.

[0046] The successfully registered host node obtains the configuration from the management node. The regional node reports the relevant information of its own nodes to the management node every two reporting cycles (for example, two minutes) as a heartbeat to keep in touch with the management node. Through the registration of the above nodes, the corresponding relationship between all host nodes and regional nodes can be determined. These host nodes are responsible for the region to which they belong.

[0047] When a large number of host nodes are newly registered in a short period of time, or there is a physical network failure, causing the correspondence between regional nodes and host nodes to be unbalanced, the regional node can obtain the balance policy package from the management node through the heartbeat link, triggering its host nodes to respond to the issued balance policy package, pointing to the recommended new regional node, and forcibly cutting off the long connection. The generation of the balance policy package is usually set to be triggered when the deviation from the optimal number exceeds 20%, and this ratio can be adjusted in the management node according to business needs.

[0048] For the system in the embodiment of the present invention, all components at all levels are cached. In the event of a physical network failure, the data is not discarded, but cached in the cache, and then added to the corresponding record after the network is restored. According to business needs, alarm information delayed for more than 30 minutes (configurable) can be discarded.

[0049] Regarding the architecture of the reporting system in the prior art, firstly, the central node calls each host node by timing or polling, and performs alarm processing according to the stored alarm strategy; at the same time, the central node may also be responsible for drawing performance graphs or storing related data. Secondly, the host node schedules through its own trigger strategy, reports the data to the message middleware by itself, and then the back-end central node extracts it from the message middleware for unified processing. The central node is relatively stupid at this time and can only obtain data from a fixed place. The agent performs all the collection and judgment work, weakening the corresponding logic of the central node, but abnormal situations occur in the process and are difficult to locate.

[0050] The main problems of the existing technology are: highly centralized. If the central node fails, the entire system will be paralyzed. In addition, the central node will consume a lot of host hardware performance. As the scale grows, it is likely that the entire system will collapse directly after reaching a bottleneck. Moreover, the system that reaches the critical point can no longer be expanded. Therefore, if there are still machines that are not monitored, you can only start over and redeploy another system. It is difficult to process and view the monitoring data between multiple systems together. Although the simple distributed architecture solves the embarrassment of high centralization and disperses different components to handle different things, it also increases the difficulty of deployment and policy issuance. If multiple computer rooms synchronize data only through message middleware, once the physical link between the computer rooms has problems, data loss may occur. In addition, how to effectively manage the asynchronous reporting agent is also a thorny issue. For example, different businesses may require different monitoring items, and different businesses may also have different monitoring and alarm frequencies. Even a node that no longer sends messages cannot determine its specific problem. If a machine has never sent a message, it is impossible to determine whether the machine has been deployed with monitoring.

[0051] The system in the embodiment of the present invention is a targeted asynchronous collection method with high efficiency, good configuration and push, and low deployment difficulty. Different from the existing central node type and simple asynchronous things, the hardware performance can be effectively exerted through node management. And it can expand capacity quickly. For example, in the case of big promotions and other activities, a large amount of capacity expansion is required in a short period of time, and then the capacity is reduced. In a short period of time, the underlying servers are constantly registering, resulting in high system pressure. Through the embodiment of the present invention, only horizontal expansion is required at the regional node layer to easily relieve the pressure, and the corresponding monitoring strategy does not need to be adjusted. After the activity is over, even if a node under a regional node is unilaterally removed, after 2 minutes, the unbalanced host nodes on other regional nodes will be assigned to regional nodes with little pressure to average the pressure. The nodes at all levels of the system in the embodiment of the present invention are provided with a cache mechanism to prevent data loss. The buffers at all levels can solve problems at different levels from different levels. The host node cache solves the cabinet network problem, the regional node cache solves the problem of the computer room, and other components solve the problem of sudden pressure increase through the message middleware.

[0052] The system of the embodiment of the present invention can realize intelligent load balancing. It can generate load balancing strategies automatically according to real-time connection conditions without human intervention. It can cope well with large-scale capacity expansion and contraction, or computer room relocation.

[0053] An embodiment of the present invention provides a method for data reporting, which includes: for each regional node, receiving data reported by the host node bound thereto, and delivering the data according to a stored delivery strategy; a processing node acquiring the data delivered by the regional node, and processing the acquired data according to the stored processing strategy; and a management node monitoring the load status of each regional node.

[0054] And, the regional node receives the registration information of the newly added host node and sends the registration information to the management node; the management node determines the regional node to be bound to the newly added host node based on the load of the monitored regional nodes and the registration information, and returns the information of the regional node to be bound.

[0055] Furthermore, the management node sends a load policy to the corresponding regional node according to the load status of the monitored regional node; and the corresponding regional node adjusts the binding relationship with the host node according to the received load policy.

[0056] According to an embodiment of the present invention, an electronic device is provided, which includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement any of the above-mentioned data reporting methods.

[0057] An embodiment of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements any of the above-mentioned data reporting methods.

[0058] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data reporting system, characterized in that: It includes management nodes, processing nodes and multiple regional nodes, among which: For each regional node, receiving data reported by the host node bound thereto and delivering the data according to the stored delivery strategy, including: identifying the type of the reported data, obtaining the corresponding delivery strategy, so as to deliver the reported data to the corresponding node; The processing node is used to obtain data delivered by the regional node and process the obtained data according to the stored processing strategy; The management node is used to monitor the load status of the multiple regional nodes; In response to an unbalanced correspondence between the regional node and the host node, the regional node obtains a balancing policy package from the management node, triggers the host node to respond to the issued balancing policy package, so that the host node points to a new regional node and cuts off a long connection with the host node.

2. The system according to claim 1, characterized in that The regional node is further used to receive registration information of a newly added host node and send the registration information to the management node; The management node determines the regional node to be bound to the newly added host node according to the load conditions of the monitored regional nodes and the registration information, and returns the information of the regional node to be bound.

3. The system according to claim 1, characterized in that The management node is further used to send a load strategy to the corresponding regional node according to the load status of the monitored regional node; the corresponding regional node adjusts the binding relationship with the host node according to the received load strategy.

4. The system according to claim 1, characterized in that It also includes a message middleware for receiving data delivered by the regional node, and the processing node extracts data from the message middleware.

5. The system according to claim 1, characterized in that The processing node at least includes an alarm node; The alarm node obtains the alarm configuration from the management node, and generates alarm information according to the alarm configuration and the obtained data.

6. The system according to claim 4, characterized in that It also includes a data persistence node, which is used to extract data from the message middleware and store the extracted data in a database.

7. The system according to claim 1, characterized in that It also includes an interactive node for visualizing the load status of the regional nodes monitored by the management node.

8. A method for reporting data, characterized in that: include: For each regional node, receiving data reported by the host node bound thereto, and delivering the data according to the stored delivery strategy, including: identifying the type of the reported data, obtaining the corresponding delivery strategy, so as to deliver the reported data to the corresponding node; The processing node obtains the data delivered by the regional node and processes the obtained data according to the stored processing strategy; And, the management node monitors the load status of each regional node; In response to an unbalanced correspondence between the regional node and the host node, the regional node obtains a balancing policy package from the management node, triggers the host node to respond to the issued balancing policy package, so that the host node points to a new regional node and cuts off a long connection with the host node.

9. The method according to claim 8, characterized in that The regional node receives the registration information of the newly added host node and sends the registration information to the management node; The management node determines the regional node to be bound to the newly added host node according to the load conditions of the monitored regional nodes and the registration information, and returns the information of the regional node to be bound.

10. The method according to claim 8, characterized in that The management node sends a load policy to the corresponding regional node according to the load status of the monitored regional node; the corresponding regional node adjusts the binding relationship with the host node according to the received load policy.

11. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, 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 8 to 10.

12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 8 to 10 is implemented.