CN106790723B - Application service monitoring method, load balancing equipment and monitoring equipment - Google Patents

Application service monitoring method, load balancing equipment and monitoring equipment Download PDF

Info

Publication number
CN106790723B
CN106790723B CN201710177159.4A CN201710177159A CN106790723B CN 106790723 B CN106790723 B CN 106790723B CN 201710177159 A CN201710177159 A CN 201710177159A CN 106790723 B CN106790723 B CN 106790723B
Authority
CN
China
Prior art keywords
service node
load balancing
monitoring
state information
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710177159.4A
Other languages
Chinese (zh)
Other versions
CN106790723A (en
Inventor
张绪勇
苏建栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201710177159.4A priority Critical patent/CN106790723B/en
Publication of CN106790723A publication Critical patent/CN106790723A/en
Application granted granted Critical
Publication of CN106790723B publication Critical patent/CN106790723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Abstract

The embodiment of the invention provides a monitoring method, load balancing equipment and monitoring equipment of application services. The method comprises the following steps: the method comprises the steps that load balancing equipment obtains state information of each service node under each cluster node corresponding to the load balancing equipment at the current moment, receives a first monitoring request sent by monitoring equipment, wherein the first monitoring request comprises an identification of the cluster node, and sends the state information of each service node corresponding to the identification of the cluster node to the monitoring equipment according to the identification of the cluster node. According to the technical scheme, when the load balancing equipment acquires the state information of each service node, a script does not need to be implanted into the service node independently, and therefore invasion to the service node is avoided. Meanwhile, the monitoring device only needs to send the first monitoring information carrying the identification of the cluster node to the load balancing device, so that the problem of large data volume caused by sending a monitoring request to each service node by the monitoring device is avoided.

Description

Application service monitoring method, load balancing equipment and monitoring equipment
Technical Field
The embodiment of the invention relates to a monitoring technology, in particular to a monitoring method, load balancing equipment and monitoring equipment for application services.
Background
With the development of computer technology, in order to improve the reliability of application services, real-time monitoring of each application service is required.
Currently, a technology for monitoring application services is to implant a script into a monitoring object where each application service is located, and obtain monitoring data of the monitoring object using the script. Then, the monitoring device obtains the monitoring data of each monitoring object, and judges whether each application service is normal or not according to the monitoring data of each monitoring object. For example, if 1000 monitoring objects are provided, the monitoring index is application service availability monitoring, and the detection is performed once in 5seconds, the monitoring device will send session requests to 1000 monitoring objects within 5 seconds. If the monitoring metric increases to 10, then the monitoring device needs to send 10000 single-threaded session requests in 5 seconds.
Therefore, in the prior art, when each monitored object is monitored, the monitoring device sends a monitoring request to each monitored object, which causes a problem of huge monitoring workload and instability of the monitoring system.
Disclosure of Invention
The embodiment of the invention provides a monitoring method, load balancing equipment and monitoring equipment for application services, and aims to solve the problems that monitoring workload is huge and a monitoring system is unstable due to the fact that the monitoring equipment sends monitoring requests to each service node in the prior art.
In a first aspect, an embodiment of the present invention provides a method for monitoring an application service, including:
the method comprises the steps that load balancing equipment obtains state information of each service node under each cluster node corresponding to the load balancing equipment at the current moment, wherein the load balancing equipment corresponds to a plurality of cluster nodes, each cluster node corresponds to a plurality of service nodes, and the state information comprises normality and abnormality;
the load balancing equipment receives a first monitoring request sent by monitoring equipment, wherein the first monitoring request comprises an identifier of the cluster node;
and the load balancing equipment sends the state information of each service node corresponding to the identification of the cluster node to the monitoring equipment according to the identification of the cluster node.
With reference to the first aspect, in a possible implementation manner of this embodiment, the obtaining, by the load balancing device, state information of each service node under each cluster node corresponding to the load balancing device at the current time specifically includes:
the load balancing equipment sends a second monitoring request to each service node, wherein the second monitoring request comprises the identifier of each service node;
the load balancing equipment receives response information sent by each service node, wherein the response information comprises the identification of the service node and the state information of the service node at the current moment;
and the load balancing equipment stores the state information of the service node under the identification of the cluster node corresponding to the service node according to the identification of the service node.
With reference to the first aspect, in another possible implementation manner of this embodiment, after the load balancing device sends the second monitoring request to each service node, the method further includes:
the load balancing equipment judges whether response information sent by the service node according to the second monitoring request is received within preset time;
if not, the load balancing equipment sends the second monitoring request to each service node again.
In a second aspect, an embodiment of the present invention provides a method for monitoring an application service, including:
the monitoring equipment sends a first monitoring request to load balancing equipment, wherein the first monitoring request comprises the identification of the cluster node;
and the monitoring equipment receives the state information of each service node corresponding to the identification of the cluster node, which is sent by the load balancing equipment, wherein the state information comprises normal and abnormal.
With reference to the second aspect, in a possible implementation manner of this embodiment, the method further includes:
and the monitoring equipment acquires the service nodes with abnormal state information according to the state information of each service node, and alarms the service nodes with abnormal state information.
A third aspect and an embodiment of the present invention provide a load balancing device, including:
an obtaining module, configured to obtain state information of each service node under each cluster node corresponding to the load balancing device at a current time, where the load balancing device corresponds to multiple cluster nodes, each cluster node corresponds to multiple service nodes, and the state information includes normal and abnormal;
a receiving module, configured to receive a first monitoring request sent by a monitoring device, where the first monitoring request includes an identifier of the cluster node;
and the sending module is used for sending the state information of each service node corresponding to the identification of the cluster node to the monitoring equipment according to the identification of the cluster node.
With reference to the third aspect, in a possible implementation manner of this embodiment, the obtaining module specifically includes:
a sending unit, configured to send a second monitoring request to each service node, where the second monitoring request includes an identifier of each service node;
a receiving unit, configured to receive response information sent by each service node, where the response information includes an identifier of the service node and state information of the service node at the current time;
and the storage unit is used for storing the state information of the service node under the identification of the cluster node corresponding to the service node according to the identification of the service node.
With reference to the third aspect, in another possible implementation manner of this embodiment, the load balancing device further includes:
the judging module is used for judging whether response information sent by the service node is received within preset time;
and the determining module is used for determining that the state information of the service node is abnormal when the judging module does not receive the response information sent by the service node within the preset time.
In a fourth aspect, an embodiment of the present invention provides a monitoring device, including:
a sending module, configured to send a first monitoring request to a load balancing device, where the first monitoring request includes an identifier of the cluster node;
and the receiving module is used for receiving the state information of each service node corresponding to the identification of the cluster node, which is sent by the cluster node, wherein the state information comprises normal and abnormal.
With reference to the fourth aspect, in a possible implementation manner of this embodiment, the monitoring device further includes:
the acquisition module is used for acquiring the service nodes with abnormal state information according to the state information of each service node;
and the alarm module is used for alarming the service node with abnormal state information.
The embodiment of the invention provides a monitoring method, load balancing equipment and monitoring equipment for application services. According to the technical scheme of the embodiment, the state information of each service node is acquired through the load balancing equipment, and a script does not need to be implanted into the service node independently in the acquiring process, so that the service node is prevented from being invaded. Meanwhile, the monitoring equipment only needs to send first monitoring information carrying the identification of the cluster node to the load balancing equipment, so that the load balancing equipment sends the state information of each service node to the monitoring equipment, and the problem of large data volume caused by the fact that the monitoring equipment sends a monitoring request to each service node is avoided, the reliability of monitoring the service nodes is improved, and the stable operation of the whole monitoring system is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1a is an application scenario diagram of a monitoring method for application services according to an embodiment of the present invention;
fig. 1 is a signaling flowchart of a first embodiment of a monitoring method for application services provided by the present invention;
fig. 1b is a data list diagram of each service node acquired by the monitoring method for application services provided by the present invention;
fig. 2 is a flowchart illustrating a second embodiment of a method for monitoring application services provided by the present invention;
FIG. 2a is a schematic view of a monitoring configuration of the F5 apparatus;
fig. 3 is a flowchart illustrating a third embodiment of a monitoring method for application services provided by the present invention;
fig. 4 is a schematic structural diagram of a first load balancing device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a second embodiment of the load balancing apparatus provided in the present invention;
fig. 6 is a schematic structural diagram of a third embodiment of the load balancing apparatus provided in the present invention;
fig. 7 is a schematic structural diagram of a monitoring device according to a first embodiment of the present invention;
fig. 8 is a schematic structural diagram of a second monitoring device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1a is an application scenario diagram of a monitoring method for application services according to an embodiment of the present invention. In fig. 1a, one monitoring device corresponds to a plurality of load balancing devices, one balancing device corresponds to a plurality of service nodes, and the load balancing device may be an F5 device.
It should be noted that, when the load balancing device of this embodiment establishes the cluster system, the communication relationship between the load balancing device and each cluster node and each service node under each cluster node is already established, and the identifier of each cluster node and the identifier of each service node under each cluster node are known.
In the technical method of this embodiment, the load balancing device obtains the state information of each service node under each cluster node at the current time, and when receiving a first monitoring request generated by the monitoring device, the load balancing device generates the state information of each service node under the identifier of the cluster node carried in the first monitoring request to the monitoring device, so that the monitoring device monitors each service node. According to the scheme of the embodiment, the monitoring device sends the first monitoring request carrying the identification of the cluster node to the load balancing device without sending the monitoring request to each service node, so that the problems that in the prior art, the monitoring workload is huge and a monitoring system is unstable due to the fact that the monitoring device sends the monitoring request to each service node are solved.
In the monitoring method for the application service of this embodiment, the monitoring device sends the first monitoring request carrying the identifier of the cluster node to the balancing device, so that the data volume for sending the monitoring request is reduced. Meanwhile, in the method of the embodiment, when the load balancing device establishes the cluster system, the load balancing device already establishes communication with each cluster node and each service node under each cluster node, so that when the load balancing device acquires the state information of each service node, a monitoring script does not need to be implanted into each service node independently, and further, the intrusion to each service node is avoided.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a signaling flowchart of a first embodiment of a monitoring method for application services provided by the present invention. The embodiment relates to a specific process in which the load balancing device sends the state information of the service node corresponding to the identifier of the cluster node to the monitoring device according to the identifier of the cluster node carried in the first monitoring request sent by the monitoring device. As shown in fig. 1, the method of this embodiment may include:
s101, the load balancing equipment acquires the state information of each service node under each cluster node corresponding to the load balancing equipment at the current moment.
The load balancing device corresponds to a plurality of cluster nodes, each cluster node corresponds to a plurality of service nodes, and the state information includes normal and abnormal.
As can be seen from the above, when the load balancing device establishes the cluster system, the communication relationship between the load balancing device and the cluster node and between the load balancing device and each service node under each cluster node is already established, so that the load balancing device can obtain the state information of each service node. The state information of the service node includes normal and abnormal.
The load balancing device may obtain the status information of each service node in real time, and optionally, the balancing device may further monitor the status information of each service node at intervals. Optionally, each service node may send the state information of the service node itself at the current time to the load balancing device at a preset time point. The present embodiment does not limit the specific method for the load balancing device to obtain the state information of each service node.
Fig. 1b is a data list of each service node acquired by the load balancing device, as shown in fig. 1b, one load balancing device corresponds to a plurality of cluster nodes, for example, cluster nodes Pool-eba-80 and Pool-eba-8088, one cluster node corresponds to a plurality of services and nodes, for example, 10.149.131.8092 and 10.149.132.8089 are service nodes under the cluster node Pool-eba-80, and 10.149.133.8093 and 10.149.133.8095 are service nodes under the cluster node Pool-eba-8088.
In the data list of each service node shown in fig. 1b, the status information of each service node at the current time may be represented by different colors, for example, green is marked as that the service node is normal, and other colors represent service anomalies of the service node, such as red, black, yellow, etc., where different colors represent different instances of the anomalies of the service node. It should be noted that, all the above processes are configured when the cluster system is established, and the monitoring device does not need to intervene.
Optionally, as shown in fig. 1b, the state information of each service node acquired by the load balancing device further includes a data amount processed by each service node at the current time, for example, input/output bits, input/output data packets, and the like.
In this embodiment, a load balancing device is taken as an example for explanation, and when a monitoring device corresponds to a plurality of load balancing devices, the specific working process of each load balancing device is similar, which is not described in this embodiment.
S102, the monitoring device sends a first monitoring request to the load balancing device, wherein the first monitoring request comprises the identification of the cluster node.
It should be noted that, as shown in fig. 1a, the monitoring device and each cluster node may communicate with each other, and optionally, the monitoring device may further obtain a corresponding relationship between each cluster node and each service node according to the cluster node.
When the monitoring device needs to monitor the operation condition of each service node, the monitoring device carries the identifier of the cluster node corresponding to the service node needing to be monitored in the first monitoring request. Optionally, when the monitoring device needs to monitor the state of each service node under the monitoring device, the monitoring device carries the identifier of each cluster node in the first monitoring request, so as to monitor the state of each service node under each cluster node.
S103, the load balancing equipment receives a first monitoring request sent by the monitoring equipment.
S104, the load balancing equipment sends the state information of each service node corresponding to the identification of the cluster node to the monitoring equipment according to the identification of the cluster node.
The load balancing equipment receives a first monitoring request sent by the monitoring equipment, analyzes the first monitoring request and acquires the identification of the cluster node carried by the first monitoring request. And then, the load balancing equipment sends the state information of each service node under the cluster node to the monitoring equipment according to the identifier of the cluster node. Optionally, the load balancing device may further send a data list of each service node as shown in fig. 1b to the monitoring device, so that the monitoring device obtains the state information of each service node from the data list.
S105, the monitoring device receives the state information of each service node corresponding to the cluster node identifier sent by the load balancing device.
After the monitoring device receives the state information of each service node under the identification of the cluster node, which is sent by the load balancing device, the monitoring device judges whether each service node is normal or not according to the state information of each service node at the current moment.
To further illustrate the technical method of the present embodiment, the following is specifically exemplified:
fig. 1b illustrates a load balancing device a obtaining status information of each service node under a cluster node at the current time. The cluster node identifier carried in the first monitoring request sent by the monitoring device to the load balancing device is Pool-eba-80. After receiving the first monitoring request sent by the monitoring device, the load balancing device obtains the identifier Pool-eba-80 of the cluster node carried in the first monitoring request, and sends the state information of each service node 10.149.131.8092, 10.149.132.8089, … …, 10.149.133.8096 of the identifier Pool-eba-80 of the cluster node to the monitoring device. The monitoring device receives the state information of each service node corresponding to the cluster node identifier sent by the load balancing device, and learns whether the state of each service node is normal or not according to the state information of each service node, so that the state of each service node is monitored, and the reliability of the service nodes is improved.
In actual use, taking F5 device as an example, the monitoring device creates a first monitoring request, where the first monitoring request executes a windows script, the script implements java program call for health collected data, and the inside of the program obtains an identifier of a cluster node to be monitored by reading an XML (Extensible Markup Language) configuration file. Then, the identifier of the cluster node is used as an input parameter, and an API (Application Programming Interface) of the F5 device is called according to the input parameter, so as to obtain the state information of each service node corresponding to the identifier of the cluster node. Optionally, information such as an IP and a port of each service node may also be obtained. According to the technical scheme of the embodiment, when the service node shown in fig. 1b is monitored, the monitoring of 25 service nodes is completed only by the following two XML descriptions, which reduces the workload compared with the prior art that monitoring requests are respectively sent to 25 service nodes.
Wherein, the XML description of the first monitoring request may be:
Figure BDA0001252666280000081
in this embodiment, when a new cluster node is added to the monitoring system, only one section of XML description as shown above needs to be added, and the Pool name is configured, so as to implement quick and convenient addition of the monitoring object.
In the monitoring method for application service provided in the embodiment of the present invention, the load balancing device obtains the state information of each service node under each cluster node corresponding to the load balancing device at the current time, the monitoring device sends the first monitoring request to the load balancing device, and the load balancing device receives the first monitoring request sent by the monitoring device and sends the state information of each service node corresponding to the identifier of the cluster node to the monitoring device according to the identifier of the cluster node, so that the monitoring device determines whether the state of the current service node is normal according to the state information of each service node. According to the technical scheme of the embodiment, the state information of each service node is acquired through the load balancing equipment, and a script does not need to be implanted into the service node independently in the acquiring process, so that the service node is prevented from being invaded. Meanwhile, the monitoring equipment only needs to send first monitoring information carrying the identification of the cluster node to the load balancing equipment, so that the load balancing equipment sends the state information of each service node to the monitoring equipment, and the problem of large data volume caused by the fact that the monitoring equipment sends a monitoring request to each service node is avoided, the reliability of monitoring the service nodes is improved, and the stable operation of the whole monitoring system is ensured.
In a possible implementation manner of the present invention, the monitoring device obtains a service node whose state information is abnormal according to the state information of each service node, and alarms the service node whose state information is abnormal.
Specifically, the monitoring device receives state information of each service node sent by the load balancing device, the state information may include information such as an IP and a port of the service node, the monitoring device organizes alarm content for the service node in an abnormal state, the alarm content includes the IP, the port, the state, the alarm level and the like of the service node, and the alarm content is sent to an alarm receiver in a short message or the like, so that the reliability of monitoring the service node is further improved.
Fig. 2 is a flowchart illustrating a second embodiment of a method for monitoring an application service provided by the present invention. On the basis of the foregoing embodiment, this embodiment relates to a specific process in which the load balancing device acquires state information of each service node under each cluster node corresponding to the load balancing device at the current time. As shown in fig. 2, the method of this embodiment may further include:
s201, the load balancing device sends a second monitoring request to each service node, wherein the second monitoring request comprises the identification of each service node.
In this embodiment, the load balancing device obtains the status information of each service node in the balancing device in real time, and the load balancing device obtains the status information of each service node at intervals. Specifically, when the interval time arrives, the load balancing device sends the second monitoring request to each service node, and because the communication relationship is established between the load balancing device and each service node, the load balancing device can directly acquire the state information of each service node without additionally configuring an acquisition script, thereby avoiding the intrusion to the service nodes.
For example, when it is assumed that the load balancing device is an F5 device, as shown in the schematic monitoring configuration diagram of the F5 device shown in fig. 2a, information such as a monitoring interval may be set in a monitoring configuration process, where specific setting of the monitoring interval may be determined according to actual needs, which is not limited in this embodiment. For example, the monitoring interval shown in fig. 2a is 5 seconds. Then, when the monitoring configuration is completed, applying the monitoring policy to the corresponding service node, specifically, initiating a second request to each service node under the load balancing device every 5seconds by the load balancing device, where the second request carries an identifier of each service node.
S202, the load balancing equipment receives response information sent by each service node, wherein the response information comprises the identification of the service node and the state information of the service node at the current moment.
S203, the load balancing equipment stores the state information of the service node under the identification of the cluster node corresponding to the service node according to the identification of the service node.
Specifically, the load balancing device receives response information returned by each service node from an interface of the service node corresponding to the identifier of the service node, and refreshes the response information of each service node to the local cache library. The response information returned by each service node carries the identifier of the service node, the state information of the service node and the like.
The specific process of the load balancing device for refreshing the response information of each service node into the local cache library is that the load balancing device stores the state information of each service node under the identifier of the cluster node corresponding to each service node according to the corresponding relationship between the service node and the cluster node. As shown in fig. 1b, the load balancing device stores the response information of the service nodes 10.149.131.8092, 10.149.132.8089 in the cluster node Pool-eba-80, and further obtains the status information of each service node in each cluster node.
In the monitoring method for application service provided in the embodiment of the present invention, a second monitoring request is sent to each service node through a load balancing device, the second monitoring request includes an identifier of each service node, a response message sent by each service node is received, the response message includes the identifier of the service node and state information of the service node at the current time, and the state information of the service node is stored under an identifier of a cluster node corresponding to the service node according to the identifier of the service node, thereby accurately obtaining the state information of each service node.
Fig. 3 is a flowchart illustrating a third embodiment of a monitoring method for application services provided by the present invention. The embodiment relates to a specific process of determining whether a service node is abnormal by a load balancing device. As shown in fig. 3, the method of this embodiment may include:
s301, the load balancing device judges whether response information sent by the service node is received within preset time.
And S302, if not, the load balancing equipment sends the second monitoring request to each service node again.
As shown in fig. 2a, during the monitoring configuration, the load device may further configure a preset time (i.e., a waiting time), which is specifically set according to actual needs, for example, as shown in fig. 2a, the preset time may be set to 16 seconds.
In actual use, the load balancing device sends a second monitoring request to each service node. Then, the load balancing device determines whether response information sent by each service node is received within a preset time. If so, the load balancing device stores the response information of the service node at the moment, and sends the response information (or the state information in the response information) of each service node at the moment to the monitoring device when the monitoring device sends the first monitoring request, so that the monitoring device determines the state of each service node at the moment. And if the load balancing equipment judges that the response information sent by each service node is not received within the preset time, the load balancing equipment sends a second monitoring request to each service node again.
Optionally, this embodiment may also set the number of times that the load balancing device repeatedly sends the second monitoring request. When the times reach the preset value, the load balancing equipment still does not receive the response information sent by each service node, and then the service nodes can be determined to be abnormal. In this case, the load balancing device may send the judgment structure to the monitoring device, so that the monitoring device gives an alarm, or the load balancing device gives an alarm by itself, so as to further improve the reliability of the monitoring system.
In the monitoring method for application services provided in the embodiment of the present invention, the load balancing device determines whether response information sent by the service node according to the second monitoring request is received within a preset time; if not, the load balancing equipment sends the second monitoring request to each service node again, and therefore the reliability of monitoring of the service nodes is improved.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Fig. 4 is a schematic structural diagram of a load balancing apparatus according to a first embodiment of the present invention. As shown in fig. 4, the load balancing apparatus 100 of the present embodiment may include:
an obtaining module 10, configured to obtain state information of each service node under each cluster node corresponding to the load balancing device at the current time, where the load balancing device corresponds to multiple cluster nodes, each cluster node corresponds to multiple service nodes, and the state information includes normal and abnormal.
A receiving module 20, configured to receive a first monitoring request sent by a monitoring device, where the first monitoring request includes an identifier of the cluster node.
A sending module 30, configured to send, according to the identifier of the cluster node, the state information of each service node corresponding to the identifier of the cluster node to the monitoring device.
The load balancing device of this embodiment may be configured to execute the technical solutions of the above-described method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of a second embodiment of the load balancing apparatus according to the present invention. On the basis of the foregoing embodiment, the obtaining module 10 of this embodiment specifically includes:
a sending unit 101, configured to send a second monitoring request to each service node, where the second monitoring request includes an identifier of each service node;
a receiving unit 102, configured to receive response information sent by each service node, where the response information includes an identifier of the service node and state information of the service node at the current time;
a storing unit 103, configured to store the state information of the service node under the identifier of the cluster node corresponding to the service node according to the identifier of the service node.
The load balancing device of this embodiment may be configured to execute the technical solutions of the above-described method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of a third embodiment of the load balancing apparatus provided in the present invention. On the basis of the above embodiment, the load balancing apparatus 100 of the present embodiment further includes:
and the judging module 40 is configured to judge whether the response message sent by the service node is received within a preset time.
A determining module 50, configured to determine that the status information of the service node is abnormal when the determining module 40 does not receive the response information sent by the service node within a preset time.
The load balancing device of this embodiment may be configured to execute the technical solutions of the above-described method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a monitoring device according to a first embodiment of the present invention. The monitoring apparatus 200 of the present embodiment may include:
a sending module 10, configured to send a first monitoring request to a load balancing device, where the first monitoring request includes an identifier of the cluster node;
a receiving module 20, configured to receive state information of each service node corresponding to the identifier of the cluster node, where the state information includes normal and abnormal.
The monitoring device of this embodiment may be configured to execute the technical solution of the above-described method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of a second monitoring device according to an embodiment of the present invention. On the basis of the foregoing embodiment, the monitoring apparatus 200 of the present embodiment may further include:
an obtaining module 30, configured to obtain, according to the state information of each service node, a service node whose state information is abnormal.
And the alarm module 40 is configured to alarm the service node with abnormal state information.
The monitoring device of this embodiment may be configured to execute the technical solution of the above-described method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for monitoring application services, comprising:
the method comprises the steps that load balancing equipment obtains state information of each service node under each cluster node corresponding to the load balancing equipment at the current moment, wherein the load balancing equipment corresponds to a plurality of cluster nodes, each cluster node corresponds to a plurality of service nodes, the state information comprises normality and abnormality, and the state information further comprises data volume processed by each service node at the current moment;
the load balancing equipment receives a first monitoring request sent by monitoring equipment, wherein the first monitoring request comprises an identifier of the cluster node;
the load balancing equipment sends the state information of each service node corresponding to the identification of the cluster node to the monitoring equipment according to the identification of the cluster node;
the obtaining, by the load balancing device, state information of each service node under each cluster node corresponding to the load balancing device at the current time specifically includes:
the load balancing equipment sends a second monitoring request to each service node, wherein the second monitoring request comprises the identifier of each service node;
the load balancing equipment receives response information sent by each service node, wherein the response information comprises the identification of the service node and the state information of the service node at the current moment;
and the load balancing equipment stores the state information of the service node under the identification of the cluster node corresponding to the service node according to the identification of the service node.
2. The method of claim 1, wherein after the load balancing device sends the second monitoring request to each service node, the method further comprises:
the load balancing equipment judges whether response information sent by the service node according to the second monitoring request is received within preset time;
if not, the load balancing equipment sends the second monitoring request to each service node again.
3. A method for monitoring application services, comprising:
the monitoring equipment sends a first monitoring request to load balancing equipment, wherein the first monitoring request comprises the identification of the cluster node;
the monitoring equipment receives state information of each service node corresponding to the identification of the cluster node, which is sent by the load balancing equipment, wherein the state information comprises normality and abnormality, and the state information further comprises the data volume processed by each service node at the current moment; wherein, the state information of each service node is obtained by the following method: the load balancing equipment sends a second monitoring request to each service node, wherein the second monitoring request comprises the identifier of each service node; the load balancing equipment receives response information sent by each service node, wherein the response information comprises the identification of the service node and the state information of the service node at the current moment; and the load balancing equipment stores the state information of the service node under the identification of the cluster node corresponding to the service node according to the identification of the service node.
4. The method of claim 3, further comprising:
and the monitoring equipment acquires the service nodes with abnormal state information according to the state information of each service node, and alarms the service nodes with abnormal state information.
5. A load balancing device, comprising:
an obtaining module, configured to obtain state information of each service node under each cluster node corresponding to the load balancing device at a current time, where the load balancing device corresponds to multiple cluster nodes, each cluster node corresponds to multiple service nodes, the state information includes normality and abnormality, and the state information further includes a data volume processed by each service node at the current time;
a receiving module, configured to receive a first monitoring request sent by a monitoring device, where the first monitoring request includes an identifier of the cluster node;
the sending module is used for sending the state information of each service node corresponding to the identification of the cluster node to the monitoring equipment according to the identification of the cluster node;
the acquisition module specifically includes:
a sending unit, configured to send a second monitoring request to each service node, where the second monitoring request includes an identifier of each service node;
a receiving unit, configured to receive response information sent by each service node, where the response information includes an identifier of the service node and state information of the service node at the current time;
and the storage unit is used for storing the state information of the service node under the identification of the cluster node corresponding to the service node according to the identification of the service node.
6. The load balancing device of claim 5, further comprising:
the judging module is used for judging whether response information sent by the service node is received within preset time;
and the determining module is used for determining that the state information of the service node is abnormal when the judging module does not receive the response information sent by the service node within the preset time.
7. A monitoring device, comprising:
a sending module, configured to send a first monitoring request to a load balancing device, where the first monitoring request includes an identifier of the cluster node;
a receiving module, configured to receive state information of each service node corresponding to the identifier of the cluster node, where the state information includes normal and abnormal states, and the state information further includes a data amount processed by each service node at a current time; wherein, the state information of each service node is obtained by the following method: the load balancing equipment sends a second monitoring request to each service node, wherein the second monitoring request comprises the identifier of each service node; the load balancing equipment receives response information sent by each service node, wherein the response information comprises the identification of the service node and the state information of the service node at the current moment; and the load balancing equipment stores the state information of the service node under the identification of the cluster node corresponding to the service node according to the identification of the service node.
8. The monitoring device of claim 7, further comprising:
the acquisition module is used for acquiring the service nodes with abnormal state information according to the state information of each service node;
and the alarm module is used for alarming the service node with abnormal state information.
CN201710177159.4A 2017-03-23 2017-03-23 Application service monitoring method, load balancing equipment and monitoring equipment Active CN106790723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710177159.4A CN106790723B (en) 2017-03-23 2017-03-23 Application service monitoring method, load balancing equipment and monitoring equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710177159.4A CN106790723B (en) 2017-03-23 2017-03-23 Application service monitoring method, load balancing equipment and monitoring equipment

Publications (2)

Publication Number Publication Date
CN106790723A CN106790723A (en) 2017-05-31
CN106790723B true CN106790723B (en) 2020-03-13

Family

ID=58966132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710177159.4A Active CN106790723B (en) 2017-03-23 2017-03-23 Application service monitoring method, load balancing equipment and monitoring equipment

Country Status (1)

Country Link
CN (1) CN106790723B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110581784B (en) * 2018-06-08 2023-01-10 阿里巴巴集团控股有限公司 Node health check method, device and equipment
CN109344040A (en) * 2018-09-14 2019-02-15 郑州云海信息技术有限公司 A kind of feedback storage service status method and device
CN112134748B (en) * 2019-06-25 2022-08-16 西安诺瓦星云科技股份有限公司 Equipment state monitoring method, device, system and computer readable medium
CN110278133B (en) * 2019-07-31 2021-08-13 中国工商银行股份有限公司 Checking method, device, computing equipment and medium executed by server
CN110659272A (en) * 2019-08-30 2020-01-07 深圳壹账通智能科技有限公司 Data cleaning method and system
CN110851298B (en) * 2019-11-08 2023-07-21 卫盈联信息技术(深圳)有限公司 Abnormality analysis and processing method, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719841A (en) * 2009-11-13 2010-06-02 曙光信息产业(北京)有限公司 Monitoring system and method of distributed type assemblies
CN103685486A (en) * 2013-12-02 2014-03-26 中国科学院计算技术研究所 Distributed system monitoring method stepping over data center clusters and system
CN105007193A (en) * 2015-08-19 2015-10-28 浪潮(北京)电子信息产业有限公司 Multi-layer information processing method, system thereof and cluster management node
CN105024851A (en) * 2015-06-25 2015-11-04 四川理工学院 Cloud computing-based monitoring management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719841A (en) * 2009-11-13 2010-06-02 曙光信息产业(北京)有限公司 Monitoring system and method of distributed type assemblies
CN103685486A (en) * 2013-12-02 2014-03-26 中国科学院计算技术研究所 Distributed system monitoring method stepping over data center clusters and system
CN105024851A (en) * 2015-06-25 2015-11-04 四川理工学院 Cloud computing-based monitoring management system
CN105007193A (en) * 2015-08-19 2015-10-28 浪潮(北京)电子信息产业有限公司 Multi-layer information processing method, system thereof and cluster management node

Also Published As

Publication number Publication date
CN106790723A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106790723B (en) Application service monitoring method, load balancing equipment and monitoring equipment
US20220201534A1 (en) Method and device for determining terminal behavior analysis
CN108989136B (en) Business end-to-end performance monitoring method and device
US11115307B2 (en) Systems and methods for changing the frequency of monitoring data
US10129774B2 (en) Methods and apparatuses of WLAN alarm notification in cellular networks
CN111200526B (en) Monitoring system and method of network equipment
EP2778925A2 (en) Dashboard notifications on management console during a remote control session
US20160119181A1 (en) Network state monitoring system
CN110659109A (en) Openstack cluster virtual machine monitoring system and method
US20180324063A1 (en) Cloud-based system for device monitoring and control
CN112528296B (en) Vulnerability detection method and device, storage medium and electronic equipment
CN105530145A (en) Agentless equipment monitoring network based on ZABBIX framework, networking method and monitoring method
CN107425994B (en) Method, terminal and server for realizing remote parameter management
CN107612755A (en) The management method and its device of a kind of cloud resource
CN110896569B (en) Bullet screen automatic reconnection method, storage medium, electronic equipment and system
CN106230939A (en) A kind of application operation and monitoring method and system
US10516594B2 (en) Systems and methods for changing the frequency of monitoring data
CN115835275A (en) Method and device for diagnosing faults of 5G CPE (customer premises equipment)
JP2015082131A (en) Monitoring system, monitoring method, monitoring program, and monitoring device
CN109213657A (en) A kind of grid operation data cloud storage device
CN112383342B (en) Satellite communication link monitoring method, device and storage medium
CN113079065A (en) Heartbeat detection method, device, equipment and medium based on Ambari
CN116260747A (en) Monitoring method and device of terminal test equipment and electronic equipment
CN117242754A (en) Methods, systems, and computer readable media for autonomic network test case generation
KR101581400B1 (en) Traffic monitoring system of monitoring camera and traffic monitoring method using the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant