Monitoring method of edge cluster data and computer equipment

By establishing a long connection between the edge cluster and the central cluster and allowing the central cluster to actively send data requests, the problem of edge cluster data monitoring and management in the existing technology relies on manual labor, and efficient and reliable data monitoring and management are achieved, reducing the Labor costs.

CN119520517APending Publication Date: 2025-02-25云极数字科技(青岛)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411369741.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the prior art, the monitoring and management of edge cluster data relies on labor, resulting in high labor costs and poor results.

Method used

By establishing a long connection between the edge cluster and the central cluster, the central cluster actively sends data requests to obtain data information of the edge cluster, prevent data loss, and perform data analysis in the central cluster.

Benefits of technology

It realizes efficient monitoring and management of edge cluster data, improves monitoring management efficiency, enhances data reliability and security, reduces labor costs, and improves monitoring effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520517A_ABST
    Figure CN119520517A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of edge monitoring, in particular to an edge cluster data monitoring method, which comprises the following steps of: establishing long connection with a central cluster; receiving a data request actively sent by the central cluster so as to prevent data reported by the edge cluster from being lost due to a weak network; and according to the data request, sending data information corresponding to the data request to the central cluster, so that the central cluster performs data analysis according to the corresponding data information. According to the method, the data of the edge cluster is efficiently monitored and managed, the monitoring and management efficiency of the data of the edge cluster is improved, the reliability of the data of the edge cluster is enhanced, the labor cost is reduced, and the monitoring effect is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Based on edge cloud technology, for example, cloud e-sports is a technical service that builds high-configuration "GPU computer computing power + game storage" with the support of high-quality networks. This service model allows users to access the cloud through locally deployed monitors, keyboards and mice, headsets, desks and chairs, and other equipment. Each machine has complete graphics card computing power to ensure that the game runs the same as the local host.

[0003] Similar to the cloud service business attributes of cloud e-sports, there are a large number of edge clusters and edge services to perform data processing and control at the edge of the network. Compared with traditional data centers, edge clusters occupy much less space and meet the needs of real-time data processing and the requirements of user-level data security and reliability, improving the user's gaming experience. At present, the monitoring and management methods of a large number of edge clusters still use manual monitoring and management of edge cluster data, resulting in problems such as high labor costs and poor results in the existing edge cluster data monitoring process. Summary of the invention

[0004] The embodiments of the present application provide a method and computer device for monitoring edge cluster data, thereby solving the technical problems of high labor cost and poor effect in the prior art in the process of monitoring edge cluster data, achieving efficient monitoring and management of edge cluster data, improving the efficiency of monitoring and management of edge cluster data, enhancing the reliability of edge cluster data, reducing labor costs, and achieving high-quality monitoring effects.

[0005] In a first aspect, an embodiment of the present invention provides a method for monitoring edge cluster data, which is applied to an edge cluster. The method includes:

[0006] Establish a long connection with the central cluster;

[0007] Receive data requests actively sent by the central cluster to prevent the data reported by the edge cluster from being lost due to a weak network;

[0008] According to the data request, data information corresponding to the data request is sent to the central cluster, so that the central cluster performs data analysis according to the corresponding data information.

[0009] Optionally, establishing a persistent connection with the central cluster includes:

[0010] During the initial configuration process, the public network address and edge key of the central cluster are obtained and stored;

[0011] In the process of establishing a connection with the central cluster, an access request is sent to the public network address, and the edge key is sent to the central cluster, so that after receiving the access request, the central cluster performs a matching check on the edge key and the stored central public key, and if the edge key and the central public key match successfully, a verification pass message is sent to the edge cluster;

[0012] Receive the verification pass information sent by the central cluster, establish a long connection with the central cluster, and maintain the long connection, wherein the long connection is a TCP connection or a WebSocket connection.

[0013] Optionally, also include:

[0014] The service data of multiple services are acquired and stored through a service discovery module, wherein the service discovery module is a consul module.

[0015] Optionally, sending data information corresponding to the data request to the central cluster according to the data request includes:

[0016] Decoding the data request to obtain a data request in HTTP protocol format;

[0017] According to the data request in the HTTP protocol format, the corresponding service data is captured, and the corresponding service data is coded and packaged to obtain the corresponding data information;

[0018] The corresponding data information is sent to the central cluster through the long connection channel.

[0019] Based on the same inventive concept, in a second aspect, an embodiment of the present invention provides a method for monitoring edge cluster data, which is applied to a central cluster. The method includes:

[0020] Establish a persistent connection with the edge cluster;

[0021] Actively send a data request to the edge cluster, so that the edge cluster sends data information corresponding to the data request according to the data request, to prevent the data reported by the edge cluster from being lost due to a weak network;

[0022] The corresponding data information sent by the edge cluster is received, and data analysis is performed according to the corresponding data information.

[0023] Optionally, establishing a persistent connection with the edge cluster includes:

[0024] In the process of establishing a connection with the edge cluster, receiving an access request and an edge key sent by the edge cluster;

[0025] After receiving the access request, the edge key and the stored central public key are matched and verified. If the edge key and the central public key match successfully, a verification pass message is sent to the edge cluster, so that the edge cluster receives the verification pass message sent by the central cluster, establishes a long connection with the central cluster, and maintains the long connection, wherein the long connection is a TCP connection or a WebSocket connection.

[0026] Optionally, also include:

[0027] Through the Grafana software of the central cluster, the corresponding data information is subjected to drawing and visualization operations to obtain statistical drawings of the corresponding data information for easy viewing and review by administrators.

[0028] Optionally, performing data analysis according to the corresponding data information includes:

[0029] If the corresponding data information meets the preset data conditions, an alarm message is sent to the administrator's terminal device so that the administrator can promptly discover and repair data problems to prevent data problems from spreading to the user end of the edge cluster, wherein the preset data conditions include: the request volume of the edge cluster exceeds the request volume threshold and the failure rate of the edge cluster accessing the public network address of the central cluster exceeds the access threshold.

[0030] Based on the same inventive concept, in a third aspect, the present invention provides a computer device applied to an edge cluster, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the edge cluster data monitoring method described in the first aspect are implemented.

[0031] Based on the same inventive concept, in a fourth aspect, the present invention provides a computer device applied to a central cluster, wherein a computer program is stored on the computer-readable storage medium, and when the program is executed by the processor, the steps of the edge cluster data monitoring method described in the second aspect are implemented.

[0032] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:

[0033] In an embodiment of the present invention, after the edge cluster establishes a long connection with the central cluster, the edge cluster waits for the data request actively sent by the central cluster. In this way, the edge cluster can be efficiently monitored and managed by the central cluster even without a public network address. The edge cluster only needs to collect data and wait for the upstream service (i.e., the central cluster) to crawl it, without relying on it upward, making business expansion easier, and preventing the data reported by the edge cluster from being lost due to a weak network. In this way, the data of the edge cluster is efficiently monitored and managed, the monitoring and management efficiency of the edge cluster data is improved, the reliability and security of the edge cluster data are enhanced, the labor cost is reduced, and the monitoring effect is excellent. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Also, throughout the accompanying drawings, the same reference figures are used to represent the same components. In the drawings:

[0035] Figure 1 A schematic diagram of the steps of a method for monitoring edge cluster data applied to an edge cluster in an embodiment of the present invention is shown;

[0036] Figure 2 A schematic flow chart showing the steps of a method for monitoring edge cluster data applied to a central cluster in an embodiment of the present invention is shown;

[0037] Figure 3 A schematic diagram of the structure of data interaction between a central cluster and an edge cluster in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0038] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary 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 limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0039] Embodiment 1

[0040] The first embodiment of the present invention provides a method for monitoring edge cluster data. Figure 1 As shown, applied to an edge cluster, the method includes:

[0041] S101, establish a long connection with the central cluster;

[0042] S102, receiving a data request actively sent by the central cluster to prevent the data reported by the edge cluster from being lost due to a weak network;

[0043] S103: According to the data request, data information corresponding to the data request is sent to the central cluster, so that the central cluster performs data analysis according to the corresponding data information.

[0044] It should be noted that the monitoring method of this embodiment is applied to the edge cluster, which can be specifically executed by the Prometheus software tool of the edge cluster. The monitoring deployment performance of the Prometheus software tool has the advantages of real-time monitoring, high flexibility, easy expansion, high visualization, alarm function, open source and free, efficient data storage and query, powerful alarm function, high availability, easy integration, etc. It also has a rich indicator library and can execute flexible sampling strategies to store the collected data for a long time. The edge cluster implements the edge agent through the Prometheus software tool of the edge cluster, and the edge agent communicates with the cloud agent of the central cluster.

[0045] In this embodiment, after the edge cluster establishes a long connection with the central cluster, the edge cluster waits for the data request actively sent by the central cluster. In this way, the edge cluster can be efficiently monitored and managed by the central cluster even without a public network address. The edge cluster only needs to collect data and wait for the upstream service (i.e., the central cluster) to crawl it, without relying on it upward, making business expansion easier, and preventing the data reported by the edge cluster from being lost due to a weak network. In this way, the data of the edge cluster is efficiently monitored and managed, the monitoring and management efficiency of the edge cluster data is improved, the reliability and security of the edge cluster data are enhanced, the labor cost is reduced, and the monitoring effect is excellent.

[0046] Next, combine Figure 1 Elaborate on the process steps of the edge cluster data monitoring method applied to the edge cluster:

[0047] First, execute step S101 to establish a persistent connection with the central cluster.

[0048] Specifically, during the initial configuration process, the edge cluster configuration personnel will enter the public network address and edge key of the central cluster in the edge cluster, so that the edge cluster obtains and stores the public network address and edge key of the central cluster. And the public key corresponding to the edge key is stored in the central cluster, so that the central cluster can verify the identity of the edge cluster. The formation of the edge key and the public key can be formed according to the rules set according to actual needs, or according to the existing encryption and decryption algorithm, such as the AES symmetric encryption and decryption method.

[0049] In the process of establishing a connection with the central cluster, an access request is sent to the public network address, and the edge key is sent to the central cluster, so that after receiving the access request, the central cluster will perform a matching check on the edge key and the stored central public key. If the edge key and the central public key match successfully, it means that the edge cluster has passed the identity authentication in the central cluster, and then the verification pass information is sent to the edge cluster. The edge cluster receives the verification pass information sent by the central cluster, establishes a long connection with the central cluster, and maintains the long connection, where the long connection is a TCP connection or a WebSocket connection.

[0050] If the edge key and the central public key do not match successfully, it means that the edge cluster has not passed the identity authentication in the central cluster, and a verification failure message is sent to the edge cluster. The edge cluster receives the verification failure message sent by the central cluster, and resends the access request and edge key to re-verify the identity to the central cluster. After receiving the verification failure message sent by the central cluster multiple times, it means that the number of verification failure messages received from the central cluster exceeds the number threshold, and the connection with the central cluster is disconnected. The number threshold can be set according to actual needs.

[0051] It should also be noted that when the edge cluster establishes a connection with the central cluster, it sends an access request to the public network address through the Prometheus software tool of the edge cluster to actively report the Prometheus query address of the edge cluster, so that the central cluster can efficiently and quickly discover the edge cluster and efficiently and quickly establish a long connection between the two.

[0052] In this way, the edge cluster can be efficiently monitored and managed by the central cluster without applying for a public network address, making the edge cluster more convenient to deploy. In addition, the edge cluster only needs to access the public network address of the central cluster and establish a long connection with the central cluster, making the communication and data transmission between the edge cluster and the central cluster safer and more reliable. This can further avoid the loss of data reported by the edge cluster due to a weak network, realize efficient monitoring and management of the edge cluster data, and improve the monitoring and management efficiency of the edge cluster data.

[0053] Secondly, execute step S102 to receive the data request actively sent by the central cluster to prevent the data reported by the edge cluster from being lost due to a weak network. Specifically, after the edge cluster establishes a long connection with the central cluster, the data request actively sent by the central cluster is received in the long connection channel, indicating that the edge cluster only needs to wait for the upstream service (i.e., the central cluster) to crawl, without relying on the upstream, making business expansion easier, and also preventing the data reported by the edge cluster from being lost due to a weak network. This can improve the monitoring and management efficiency of edge cluster data and ensure the security and reliability of edge cluster data.

[0054] Then, step S103 is executed to send data information corresponding to the data request to the central cluster according to the data request, so that the central cluster performs data analysis according to the corresponding data information.

[0055] Specifically, the edge cluster decodes the data request according to the data request and obtains the data request in HTTP protocol format. Then, according to the data request in HTTP protocol format, it grabs the corresponding service data and encodes and packages the corresponding service data to obtain the corresponding data information. The corresponding data information is sent to the central cluster through the long connection channel.

[0056] The data request is a data request in the format of the HTTP protocol after packaging. The data request can be transmitted quickly and efficiently in the long-connected channel, making the communication and data transmission between the edge cluster and the central cluster more convenient, reliable and efficient. After receiving the data request from the central cluster, the edge cluster needs to decode the data request and restore it to the data request in the format of the HTTP protocol to facilitate the capture of the corresponding service data. Then, the corresponding service data is packaged and coded to obtain the corresponding data information, so that the corresponding data information is transmitted in the long-connected channel. The corresponding data information is sent to the central cluster to complete the monitoring and management process of the edge cluster data by the central cluster.

[0057] In this way, the edge cluster waits for the data request actively sent by the central cluster, so that the edge cluster only needs to collect data and wait for the upstream service (i.e. the central cluster) to crawl, without relying on the upstream, making business expansion easier, and also preventing the loss of data reported by the edge cluster due to weak network. The central cluster can realize efficient monitoring and management of the edge cluster data, improve the monitoring and management efficiency of the edge cluster data, and enhance the reliability and security of the edge cluster data.

[0058] In this embodiment, the edge cluster obtains and stores service data of multiple services through a service discovery module, wherein the service discovery module is a consul module. Specifically, multiple services of the edge cluster register service addresses with the consul module of the edge cluster, so that the consul module can efficiently manage these multiple services. The consul module enables the edge cluster to collect service data of these multiple services more conveniently, quickly and efficiently. The consul module is a distributed, highly available, horizontally scalable module for implementing distributed system services. It is very easy to deploy, requires very few executable programs and configuration files, and is green and lightweight. The consul module can automatically discover services registered on the edge cluster and make them available to other services or applications. This makes communication between services easier and more reliable. Therefore, with the powerful service registration, discovery and configuration management capabilities of the consul module, a reliable, secure and efficient solution is provided for edge cluster data collection.

[0059] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:

[0060] In this embodiment, after the edge cluster establishes a long connection with the central cluster, the edge cluster waits for the data request actively sent by the central cluster. In this way, the edge cluster can be efficiently monitored and managed by the central cluster even without a public network address. The edge cluster only needs to collect data and wait for the upstream service (i.e., the central cluster) to crawl it, without relying on it upward, making business expansion easier, and preventing the data reported by the edge cluster from being lost due to a weak network. In this way, the data of the edge cluster is efficiently monitored and managed, the monitoring and management efficiency of the edge cluster data is improved, the reliability and security of the edge cluster data are enhanced, the labor cost is reduced, and the monitoring effect is excellent.

[0061] Embodiment 2

[0062] Based on the same inventive concept, the second embodiment of the present invention also provides a method for monitoring edge cluster data, such as Figure 2 As shown, applied to the central cluster, the method includes:

[0063] S201, establish a long connection with the edge cluster;

[0064] S202, actively sending a data request to the edge cluster, so that the edge cluster sends data information corresponding to the data request according to the data request, to prevent the data reported by the edge cluster from being lost due to a weak network;

[0065] S203: Receive corresponding data information sent by the edge cluster, and perform data analysis according to the corresponding data information.

[0066] It should be noted that the monitoring method of this embodiment is applied to the central cluster and can be specifically executed by the Prometheus software tool of the central cluster. Figure 3 As shown, the central cluster implements the cloud agent of the central cluster through the Prometheus software tool of the central cluster, so that the cloud agent and the edge agent are communicated and connected.

[0067] In this embodiment, after the central cluster establishes a long connection with the edge cluster, the central cluster actively sends a data request to the edge cluster, and the edge cluster only needs to wait for the data request. In this way, the central cluster can efficiently monitor and manage the edge cluster even when the edge cluster does not have a public network address. The edge cluster only needs to collect data and wait for the upstream service (i.e., the central cluster) to crawl it, without relying on it upward, making business expansion easier, and preventing the data reported by the edge cluster from being lost due to a weak network. In this way, the central cluster efficiently monitors and manages the data of the edge cluster, improves the monitoring and management efficiency of the edge cluster data, enhances the reliability and security of the edge cluster data, reduces labor costs, and achieves high-quality monitoring results.

[0068] Next, combine Figure 2 and Figure 3 Elaborate on the process steps of the edge cluster data monitoring method applied to the edge cluster:

[0069] First, execute step S201 to establish a persistent connection with the edge cluster.

[0070] Specifically, during the initial configuration of the edge cluster, the configuration personnel of the edge cluster will store the central key corresponding to the edge key of the edge cluster to the central cluster so that the central cluster can verify the identity of the edge cluster. In the process of establishing a connection with the edge cluster, the access request and edge key sent by the edge cluster are received. After receiving the access request, the edge key and the stored central public key are matched and verified. If the edge key and the central public key match successfully, it means that the edge cluster has passed the identity authentication in the central cluster, then the verification pass information is sent to the edge cluster so that the edge cluster receives the verification pass information sent by the central cluster, and establishes a long connection with the central cluster and maintains the long connection. Among them, the long connection is a TCP connection or a WebSocket connection. If the edge key and the central public key do not match successfully, it means that the edge cluster has not passed the identity authentication in the central cluster, then the verification failure information is sent to the edge cluster so that the edge cluster resends the access request and edge key, and then re-matches and verifies the edge cluster.

[0071] In this way, the edge cluster can be efficiently monitored and managed by the central cluster without applying for a public network address, making the edge cluster more convenient to deploy. In addition, the edge cluster only needs to access the public network address of the central cluster to establish a long connection between the central cluster and the edge cluster, making the communication and data transmission between the edge cluster and the central cluster safer and more reliable. This can further avoid the loss of data reported by the edge cluster due to a weak network, and enable the central cluster to efficiently monitor and manage the data of the edge cluster, thereby improving the monitoring and management efficiency of the edge cluster data.

[0072] Next, step S202 is executed to actively send a data request to the edge cluster, so that the edge cluster sends data information corresponding to the data request according to the data request, thereby preventing the data reported by the edge cluster from being lost due to a weak network.

[0073] Specifically, the central cluster encodes and packages the data request in HTTP protocol format to obtain the packaged data request in HTTP protocol format. The data request is then quickly and efficiently transmitted to the edge cluster through the long-connected channel, making the communication and data transmission between the edge cluster and the central cluster more convenient, reliable, and efficient. After receiving the data request from the central cluster, the edge cluster needs to decode the data request and restore it to the data request in HTTP protocol format to facilitate the capture of the corresponding service data. The corresponding service data is then encode-packaged to obtain the corresponding data information, so that the corresponding data information is transmitted in the long-connected channel. The corresponding data information is sent to the central cluster to complete the monitoring and management process of the edge cluster data by the central cluster.

[0074] In this way, the edge cluster waits for the data request actively sent by the central cluster, so that the edge cluster only needs to collect data and wait for the upstream service (i.e. the central cluster) to crawl, without relying on the upstream, making business expansion easier, and also preventing the loss of data reported by the edge cluster due to weak network. The central cluster can realize efficient monitoring and management of the edge cluster data, improve the monitoring and management efficiency of the edge cluster data, and enhance the reliability and security of the edge cluster data.

[0075] Then, step S203 is executed to receive corresponding data information sent by the edge cluster, and perform data analysis according to the corresponding data information.

[0076] Specifically, if the corresponding data information meets the preset data conditions, an alarm message is sent to the administrator's terminal device so that the administrator can promptly discover and repair data problems to prevent data problems from spreading to the user end of the edge cluster. Among them, the corresponding data information includes but is not limited to: the request volume of the edge cluster, the failure rate of the edge cluster accessing the public network address of the central cluster, and the parameters of the computer equipment of the edge cluster. The parameters of the computer equipment of the edge cluster include but are not limited to memory availability, disk space availability, CPU idle rate, file system status, and data traffic value. The preset data conditions include: the request volume of the edge cluster exceeds the request volume threshold and the failure rate of the edge cluster accessing the public network address of the central cluster exceeds the access threshold. Both the request volume threshold and the access threshold can be set according to actual needs. The preset data conditions also include: the parameters of the computer equipment of the edge cluster are not up to standard, indicating that the computer equipment of the edge cluster is abnormal. For example, the disk space availability of the computer equipment of the edge cluster is not greater than the disk space availability threshold, indicating that the disk space available of the computer equipment of the edge cluster is small. The disk space availability threshold can be set according to actual needs.

[0077] For example, if the number of requests from the edge cluster exceeds the request volume threshold, it means that the corresponding data information meets the preset data conditions, and an alarm message is sent to the administrator's terminal device. This allows managers to quickly locate data problems in the edge cluster. Based on the problem of excessive requests from the edge cluster, managers optimize the strategy for the central cluster to receive requests from the edge cluster, such as setting the priority of the edge cluster's requests, and efficiently and quickly controlling the number of requests from the central cluster to receive from the edge cluster, thereby improving the monitoring and management efficiency of the edge cluster data and enhancing the reliability of the edge cluster data.

[0078] In this embodiment, the Grafana software of the central cluster is used to perform drawing and visualization operations on the corresponding data information to obtain statistical drawings of the corresponding data information for easy viewing and review by the administrator. Specifically, the Grafana software of the central cluster queries the monitoring data of the Prometheus software tool of the central cluster and generates corresponding statistical drawings, which facilitates the administrator to quickly and efficiently grasp the data situation of the edge cluster. The Grafana software is a visualization plug-in that can perform drawing and visualization based on the collected data.

[0079] Grafana software has the following advantages and features:

[0080] 1. Powerful data source support: Grafana supports a variety of data sources, including Graphite, InfluxDB, Prometheus, Elasticsearch, etc., which allows administrators to easily import various types of data into Grafana for visualization and analysis.

[0081] 2. Rich chart types: Grafana provides a variety of chart types, including line charts, bar charts, pie charts, heat maps, etc. Administrators can choose the appropriate chart type to display data as needed.

[0082] 3. Flexible customization: Grafana allows administrators to customize charts by modifying templates and configurations. Administrators can adjust the chart's color, size, font, and other styles according to their needs, as well as add annotations, labels, and other elements.

[0083] 4. Real-time data update: Grafana supports real-time data update and can display data changes in real time, which is very helpful for monitoring the performance and status of the system.

[0084] 5. Alarm function: Grafana supports the alarm function, and administrators can set alarm rules. Grafana will send alarm notifications based on the alarm rules, which is very helpful for timely detection and handling of problems.

[0085] 6. Plug-in extension: Grafana provides a wealth of plug-ins. Administrators can expand the functions of Grafana by installing plug-ins. Installing the Alerting plug-in can implement the alarm function, and installing the Datasource plug-in can support more data sources.

[0086] 7. Mobile device support: Grafana provides a client for mobile devices, allowing administrators to view and edit data on mobile phones or tablets, which allows users to monitor data anytime and anywhere.

[0087] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:

[0088] In this embodiment, after the central cluster establishes a long connection with the edge cluster, the central cluster actively sends a data request to the edge cluster, and the edge cluster only needs to wait for the data request. In this way, the central cluster can efficiently monitor and manage the edge cluster even when the edge cluster does not have a public network address. The edge cluster only needs to collect data and wait for the upstream service (i.e., the central cluster) to crawl it, without relying on it upward, making business expansion easier, and preventing the data reported by the edge cluster from being lost due to a weak network. In this way, the central cluster efficiently monitors and manages the data of the edge cluster, improves the monitoring and management efficiency of the edge cluster data, enhances the reliability and security of the edge cluster data, reduces labor costs, and achieves high-quality monitoring results.

[0089] Embodiment 3

[0090] Based on the same inventive concept, the third embodiment of the present invention also provides a computer device applied to an edge cluster, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods for monitoring edge cluster data described in the first embodiment are implemented.

[0091] Embodiment 4

[0092] Based on the same inventive concept, the fourth embodiment of the present invention also provides a computer device applied to a central cluster, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods for monitoring edge cluster data described in the second embodiment are implemented.

[0093] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0094] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0095] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0097] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0098] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for monitoring edge cluster data, characterized in that: Applied to an edge cluster, the method includes: Establish a long connection with the central cluster; Receive data requests actively sent by the central cluster to prevent the data reported by the edge cluster from being lost due to a weak network; According to the data request, data information corresponding to the data request is sent to the central cluster, so that the central cluster performs data analysis according to the corresponding data information.

2. The method according to claim 1, characterized in that The step of establishing a long connection with the central cluster includes: During the initial configuration process, the public network address and edge key of the central cluster are obtained and stored; In the process of establishing a connection with the central cluster, an access request is sent to the public network address, and the edge key is sent to the central cluster, so that after receiving the access request, the central cluster performs a matching check on the edge key and the stored central public key, and if the edge key and the central public key match successfully, a verification pass message is sent to the edge cluster; Receive the verification pass information sent by the central cluster, establish a long connection with the central cluster, and maintain the long connection, wherein the long connection is a TCP connection or a WebSocket connection.

3. The method according to claim 1, characterized in that Also includes: The service data of multiple services are acquired and stored through a service discovery module, wherein the service discovery module is a consul module.

4. The method according to claim 1, characterized in that The sending, according to the data request, data information corresponding to the data request to the central cluster includes: Decoding the data request to obtain a data request in HTTP protocol format; According to the data request in the HTTP protocol format, the corresponding service data is captured, and the corresponding service data is coded and packaged to obtain the corresponding data information; The corresponding data information is sent to the central cluster through the long connection channel.

5. A method for monitoring edge cluster data, characterized in that: Applied to the central cluster, the method includes: Establish a persistent connection with the edge cluster; Actively send a data request to the edge cluster, so that the edge cluster sends data information corresponding to the data request according to the data request, to prevent the data reported by the edge cluster from being lost due to a weak network; The corresponding data information sent by the edge cluster is received, and data analysis is performed according to the corresponding data information.

6. The method according to claim 5, characterized in that The step of establishing a persistent connection with the edge cluster includes: In the process of establishing a connection with the edge cluster, receiving an access request and an edge key sent by the edge cluster; After receiving the access request, the edge key and the stored central public key are matched and verified. If the edge key and the central public key match successfully, a verification pass message is sent to the edge cluster, so that the edge cluster receives the verification pass message sent by the central cluster, establishes a long connection with the central cluster, and maintains the long connection, wherein the long connection is a TCP connection or a WebSocket connection.

7. The method according to claim 5, characterized in that Also includes: Through the Grafana software of the central cluster, the corresponding data information is subjected to drawing and visualization operations to obtain statistical drawings of the corresponding data information for easy viewing and review by administrators.

8. The method according to claim 5, characterized in that The performing data analysis according to the corresponding data information includes: If the corresponding data information meets the preset data conditions, an alarm message is sent to the administrator's terminal device so that the administrator can promptly discover and repair data problems to prevent data problems from spreading to the user end of the edge cluster, wherein the preset data conditions include: the request volume of the edge cluster exceeds the request volume threshold and the failure rate of the edge cluster accessing the public network address of the central cluster exceeds the access threshold.

9. A computer device applied to an edge cluster, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method steps according to any one of claims 1 to 4 are implemented.

10. A computer device applied to a central cluster, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method steps according to any one of claims 5 to 8 are implemented.