CN115914027A - Health check system in load balancing equipment - Google Patents

Health check system in load balancing equipment Download PDF

Info

Publication number
CN115914027A
CN115914027A CN202211633488.2A CN202211633488A CN115914027A CN 115914027 A CN115914027 A CN 115914027A CN 202211633488 A CN202211633488 A CN 202211633488A CN 115914027 A CN115914027 A CN 115914027A
Authority
CN
China
Prior art keywords
result
health check
checking
submodule
health
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.)
Pending
Application number
CN202211633488.2A
Other languages
Chinese (zh)
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.)
Shanghai Hongji Information Technology Co Ltd
Original Assignee
Shanghai Hongji Information Technology 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 Shanghai Hongji Information Technology Co Ltd filed Critical Shanghai Hongji Information Technology Co Ltd
Priority to CN202211633488.2A priority Critical patent/CN115914027A/en
Publication of CN115914027A publication Critical patent/CN115914027A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a health check system in load balancing equipment, relating to the technical field of equipment health check, wherein the system comprises: a health check module and a forwarding module; the forwarding module and the back-end server are both connected with the health check module; the forwarding module is connected with the back-end server; the health examination module is used for examining the back-end server by using N preset health examination methods to obtain N health examination sub-results of the current times; outputting a total health check result of the current times of the back-end server according to a preset threshold and all health check sub-results of the current times; and the forwarding module is used for controlling the flow distribution to the back-end server according to the total health check result of the current times. The invention improves the reliability of the health examination announcement and the forwarding performance of the forwarding module.

Description

Health check system in load balancing equipment
Technical Field
The invention relates to the technical field of equipment health check, in particular to a health check system in load balancing equipment.
Background
The load balancing device will periodically send probe messages to the back-end server to check its operating status, which is called a health check. For example, the load balancing device sends an ICMPrequest message to the back-end server group every 5 seconds, and if one of the servers operates normally, the load balancing device replies an icmprity message to the load balancing device. After receiving the icmp reply of the server, the load balancing device considers that the running state of the server is normal; if the load balancing device does not receive the ICMP reply message of a certain server, the load balancing device considers that the state of the server is abnormal. The load balancing device does not distribute the traffic to the backend servers with abnormal health check states, but only distributes the traffic to the backend servers with normal health check states, namely, only the servers with normal states can receive the traffic, thereby improving the reliability of the service. When the abnormal back-end server recovers to a normal state, the health check also detects and rejoins the abnormal back-end server to the load cluster, and the service flow is carried again.
Generally, only one method is used for health check of a backend server, such as Internet Control Message Protocol (ICMP), transmission Control Protocol (TCP), user Datagram Protocol (UDP), and the like. Under the condition that the network is congested, the message of the health check is easy to discard, so that the misjudgment of the health check is easy to occur. In order to increase fault tolerance, a backend server can be subjected to health check by simultaneously using N (N >1, and up to 16) methods, and the backend server is considered to be normal as long as the results of M (M ≦ N) health checks are normal.
In the existing health check system, as shown in fig. 2, in order to increase the fault tolerance, the health check module performs health check on each backend server by using N (up to 16) methods at the same time, and all the health check results are sent to the forwarding module, in which case, the forwarding module needs to summarize a large number of health check results and perform a large number of analysis decisions, which consumes the performance of the forwarding module and affects the forwarding performance to a certain extent. The health examination announcement is transmitted through a port socket, and when the number of health examination results is large, the number of interactive messages is large, so that the message channel is easy to be congested to cause message loss, and abnormal health results can be caused. In summary, the reliability of the health check notification in the existing health check system is low, and the forwarding performance of the forwarding module is poor.
Disclosure of Invention
The invention aims to provide a health check system in load balancing equipment, which improves the reliability of health check notification and the forwarding performance of a forwarding module.
In order to achieve the purpose, the invention provides the following scheme:
a health check system in a load balancing device, the health check system comprising: the system comprises a health check module and a forwarding module; the forwarding module and the back-end server are both connected with the health check module; the forwarding module is connected with the back-end server;
the health check module comprises:
the checking submodule is connected with the back-end server and used for checking the back-end server by utilizing N preset health checking methods to obtain N health checking sub-results of the current times; the health check result is a normal result or an abnormal result; n is greater than 1;
the result output submodule is connected with the checking submodule and used for outputting the total health checking result of the current times of the back-end server according to a preset threshold value and all health checking sub-results of the current times;
the forwarding module comprises:
and the flow distribution submodule is connected with the result output submodule and is used for controlling the flow distribution to the back-end server according to the total health check result of the current times.
Optionally, the health check system further comprises: a checking method storage submodule; the checking method storage submodule is connected with the checking submodule;
the checking method storage submodule is used for storing the preset health checking method.
Optionally, the health check module further comprises: a checking method acquisition submodule; the checking method obtaining sub-module is respectively connected with the checking method storing sub-module and the checking sub-module;
the checking method obtaining submodule is used for obtaining the preset health checking method from the checking method storage submodule and sending the preset health checking method to the checking submodule.
Optionally, the health check module further comprises: a preset threshold storage submodule; the preset threshold storage submodule is connected with the result output submodule;
the preset threshold storage submodule is used for storing the preset threshold.
Optionally, the result output sub-module includes:
the first judgment unit is connected with the checking submodule and used for judging whether the number of normal results in the R health check sub-results is greater than or equal to the preset threshold value or not to obtain a first judgment result; r < N;
the first execution unit is connected with the first judgment unit and used for controlling the checking submodule to stop checking the current times when the first judgment result is yes and determining the total health check result of the current times as a normal total result;
the second execution unit is connected with the first judgment unit and used for controlling the checking submodule to continue checking the current times when the first judgment result is negative;
the second judgment unit is connected with the checking submodule and used for judging whether the number of normal results in the health check sub-results of the N current times is larger than or equal to the preset threshold value or not when the checking submodule executes the N preset health check methods to obtain a second judgment result;
the third execution unit is connected with the second judgment unit and used for determining the total health check result of the current times as a normal total result when the second judgment result is yes;
a fourth execution unit, connected to the second determination unit, configured to determine the health check total result as an abnormal total result when the second determination result is negative;
and the unit to be forwarded is respectively connected with the first execution unit, the third execution unit, the fourth execution unit and the forwarding module, and is used for sending the total health check result of the current times to the forwarding module when the total health check result of the current times is different from the total health check result of the previous times or a notification interval is reached.
Optionally, the traffic distribution submodule includes:
the third judgment unit is connected with the result output submodule and is used for judging whether the total health check result of the current times is a normal result or not to reach a third judgment result;
a fifth execution unit, connected to the third determination unit, configured to continue to distribute traffic to the backend server when a third determination result is yes;
and the sixth execution unit is connected with the third judgment unit and used for stopping flow distribution to the back-end server when the third judgment result is negative.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention discloses a health check system in load balancing equipment, which comprises: the system comprises a health check module and a forwarding module; the forwarding module and the back-end server are both connected with the health check module; the forwarding module is connected with a back-end server; a health check module comprising: the checking submodule is connected with the back-end server and used for checking the back-end server by utilizing N preset health checking methods to obtain N health checking sub-results of current times; the health examination result is a normal result or an abnormal result; n is greater than 1; the result output submodule is connected with the checking submodule and used for outputting the total health checking result of the current times of the back-end server according to the preset threshold value and the health checking sub-results of all the current times; a forwarding module comprising: and the flow distribution submodule is connected with the result output submodule and is used for controlling the flow distribution to the back-end server according to the total health check result of the current times. The health check module is used for summarizing the health check sub-results of the back-end server to obtain the health check total result, the health check total result is not put into the forwarding module for summarizing judgment, the work of the forwarding module is reduced, the calculation power of the forwarding module is used for flow distribution as much as possible, and therefore the forwarding performance of the load balancing equipment can be improved; in addition, unnecessary health examination announcements between the forwarding module and the health examination module can be reduced, the condition that the health examination announcements are lost due to excessive health examination announcements can be avoided, and the reliability of the health examination announcements and the forwarding performance of the forwarding module are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a health check system in a load balancing device according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a health check system of the prior art;
FIG. 3 is a schematic diagram of a health check process based on a health check system in a load balancing device.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The invention aims to provide a health check system in load balancing equipment, aiming at improving the reliability of health check notification and the forwarding performance of a forwarding module.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 is a schematic structural diagram of a health check system in a load balancing device according to an embodiment of the present invention. As shown in fig. 1, the health check system in the load balancing device in this embodiment includes: a health examination module 1 and a forwarding module 2; the forwarding module 2 and the back-end server 3 are both connected with the health examination module 1; the forwarding module 2 is connected with the back-end server 3.
Health check module 1, comprising:
the checking submodule 11 is connected with the back-end server 3 and is used for checking the back-end server 3 by using N preset health checking methods to obtain N health checking sub-results of current times; the health examination result is a normal result or an abnormal result; n >1. Specifically, nmax may be set to 16.
And the result output submodule 12 is connected with the checking submodule 11 and is used for outputting the total health checking result of the current times of the back-end server 3 according to the preset threshold and all the health checking sub-results of the current times.
A forwarding module 2 comprising:
the traffic distribution submodule 21 is connected to the result output submodule 12, and is configured to control traffic distribution to the backend server 3 according to the total result of the current health check.
As an optional implementation, the health check system further comprises: a checking method storage submodule; the checking method storage submodule is connected with the checking submodule 11.
The examination method storage submodule is used for storing a preset health examination method.
As an optional implementation manner, the health check module 1 further includes: a checking method acquisition submodule; the checking method obtaining submodule is respectively connected with the checking method storing submodule and the checking submodule 11.
The checking method obtaining submodule is used for obtaining the preset health checking method from the checking method storage submodule and sending the preset health checking method to the checking submodule 11.
As an optional implementation, the health check module 1 further includes: a preset threshold storage submodule; the preset threshold storage submodule is connected with the result output submodule 12.
The preset threshold storage submodule is used for storing the preset threshold.
As an alternative embodiment, the result output submodule 12 includes:
the first judging unit is connected with the checking submodule 11 and is used for judging whether the number of normal results in the R health check sub-results is greater than or equal to a preset threshold value or not to obtain a first judging result; r < N.
And the first execution unit is connected with the first judgment unit and used for controlling the checking submodule 11 to stop checking the current times and determining the total health check result of the current times as a normal total result when the first judgment result is yes.
And the second execution unit is connected with the first judgment unit and used for controlling the checking submodule 11 to continue checking the current times when the first judgment result is negative.
And the second judging unit is connected with the checking submodule 11 and is used for judging whether the number of normal results in the health checking sub-results of the N current times is greater than or equal to a preset threshold value or not when the checking submodule 11 finishes executing the N preset health checking methods, so as to obtain a second judging result.
And the third execution unit is connected with the second judgment unit and used for determining the total result of the health examination of the current times as a normal total result when the second judgment result is yes.
And the fourth execution unit is connected with the second judgment unit and used for determining the health check total result as an abnormal total result when the second judgment result is negative.
And the unit to be forwarded is respectively connected with the first execution unit, the third execution unit, the fourth execution unit and the forwarding module 2, and is used for sending the total health check result of the current times to the forwarding module 2 when the total health check result of the current times is different from the total health check result of the previous time or the notification interval is reached.
As an optional implementation, the traffic distribution submodule 21 includes:
and the third judging unit is connected with the result output submodule 12 and is used for judging whether the total health check result of the current times is a normal result or not so as to achieve a third judgment result.
And the fifth execution unit is connected with the third judgment unit and used for continuing to distribute the flow to the backend server 3 when the third judgment result is yes.
And a sixth executing unit, connected to the third judging unit, for stopping the traffic distribution to the backend server 3 when the third judging result is negative.
As shown in fig. 3, the health check process for implementing the load balancing device based on the health check system in the load balancing device includes:
(1) The forwarding module informs the health check module to use N preset health check methods to carry out health check on the specific back-end server, and a preset threshold value is set to be M (M is less than or equal to N).
(2) The health check module starts the N health checks one by one for the back-end server, and if a reply message (ICMPly message) of the back-end server can be received in time and the message conforms to expectations, the state of the server under the health check is considered to be normal for any one of the N health checks; otherwise, the state of this server under the health check is considered abnormal.
(3) After R (R is less than or equal to N) health examination results are collected, the following further judgment is carried out:
assume that among the R health check scores, the number of servers in normal state is S (the number of servers in abnormal state is N-S).
(4) If S is greater than or equal to M, the backend server state is considered normal, otherwise, the remaining health check is continued.
(5) If a health check is not finished, the state of the backend server checked by the health check cannot be known to be normal or abnormal, and if the state of the backend server is not checked to be abnormal, the backend server is regarded as abnormal, otherwise, the process returns to the step (3) to wait for the next round of judgment (because the working time of each health check is different, all the health checks are necessarily executed completely to prevent misjudgment).
(6) After the judgment is finished, if the total health check result changes or a notification interval is reached (the health check module needs to notify the total health check result to the forwarding module, the notification is frequent, for example, once every 1 second, and this is called a notification interval), the total health check result (including two cases: 0 represents that the back-end server is abnormal, and 1 represents that the back-end server is normal) is notified to the forwarding module. The forwarding module is responsible for traffic distribution. The back of the load balancing equipment is connected with a plurality of back-end servers. If a certain back-end server is abnormal in state, the back-end server does not participate in traffic distribution; only the server in normal state can participate in flow distribution, otherwise, the server waits for the next judgment round
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The principles and embodiments of the present invention have been described herein using specific examples, which are presented only to assist in understanding the system and its core concepts of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (6)

1. A health check system in a load-balancing appliance, the health check system comprising: a health check module and a forwarding module; the forwarding module and the back-end server are both connected with the health check module; the forwarding module is connected with the back-end server;
the health check module comprises:
the checking submodule is connected with the back-end server and used for checking the back-end server by utilizing N preset health checking methods to obtain N health checking sub-results of the current times; the health check result is a normal result or an abnormal result; n is greater than 1;
the result output submodule is connected with the checking submodule and is used for outputting the total health checking result of the current times of the back-end server according to a preset threshold value and all health checking sub-results of the current times;
the forwarding module comprises:
and the flow distribution submodule is connected with the result output submodule and is used for controlling the flow distribution to the back-end server according to the total health examination result of the current times.
2. The health check system in a load balancing device of claim 1, further comprising: a checking method storage submodule; the checking method storage submodule is connected with the checking submodule;
the checking method storage submodule is used for storing the preset health checking method.
3. The health check system in a load balancing device of claim 2, wherein said health check module further comprises: a checking method acquisition submodule; the checking method acquisition sub-module is respectively connected with the checking method storage sub-module and the checking sub-module;
the checking method obtaining submodule is used for obtaining the preset health checking method from the checking method storage submodule and sending the preset health checking method to the checking submodule.
4. The health check system in a load balancing device of claim 3, wherein said health check module further comprises: a preset threshold storage submodule; the preset threshold storage submodule is connected with the result output submodule;
the preset threshold storage submodule is used for storing the preset threshold.
5. The health check system in a load balancing device of claim 1, wherein the result output submodule comprises:
the first judgment unit is connected with the checking submodule and used for judging whether the number of normal results in the R health check sub-results is greater than or equal to the preset threshold value or not to obtain a first judgment result; r < N;
the first execution unit is connected with the first judgment unit and used for controlling the checking submodule to stop checking the current times when the first judgment result is yes and determining the total health check result of the current times as a normal total result;
the second execution unit is connected with the first judgment unit and used for controlling the checking submodule to continue checking the current times when the first judgment result is negative;
the second judgment unit is connected with the checking submodule and used for judging whether the number of normal results in the health check sub-results of the N current times is larger than or equal to the preset threshold value or not when the checking submodule executes the N preset health check methods to obtain a second judgment result;
the third execution unit is connected with the second judgment unit and used for determining the total health check result of the current times as a normal total result when the second judgment result is yes;
a fourth execution unit, connected to the second determination unit, configured to determine the health check total result as an abnormal total result when the second determination result is negative;
and the unit to be forwarded is respectively connected with the first execution unit, the third execution unit, the fourth execution unit and the forwarding module, and is used for sending the total health check result of the current times to the forwarding module when the total health check result of the current times is different from the total health check result of the previous times or a notification interval is reached.
6. The health check system in a load balancing device of claim 5, wherein the traffic distribution submodule comprises:
the third judgment unit is connected with the result output submodule and used for judging whether the total health check result of the current times is a normal result or not so as to achieve a third judgment result;
a fifth execution unit, connected to the third determination unit, configured to continue to distribute traffic to the backend server when a third determination result is yes;
and the sixth execution unit is connected with the third judgment unit and used for stopping flow distribution to the back-end server when the third judgment result is negative.
CN202211633488.2A 2022-12-19 2022-12-19 Health check system in load balancing equipment Pending CN115914027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211633488.2A CN115914027A (en) 2022-12-19 2022-12-19 Health check system in load balancing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211633488.2A CN115914027A (en) 2022-12-19 2022-12-19 Health check system in load balancing equipment

Publications (1)

Publication Number Publication Date
CN115914027A true CN115914027A (en) 2023-04-04

Family

ID=86483212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211633488.2A Pending CN115914027A (en) 2022-12-19 2022-12-19 Health check system in load balancing equipment

Country Status (1)

Country Link
CN (1) CN115914027A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116962247A (en) * 2023-08-01 2023-10-27 北京志凌海纳科技有限公司 Active health check method, device, equipment and medium in load balancing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116962247A (en) * 2023-08-01 2023-10-27 北京志凌海纳科技有限公司 Active health check method, device, equipment and medium in load balancing system
CN116962247B (en) * 2023-08-01 2024-02-09 北京志凌海纳科技有限公司 Active health check method, device, equipment and medium in load balancing system

Similar Documents

Publication Publication Date Title
CN109274707B (en) Load scheduling method and device
AU2009350895B2 (en) Cluster server in instant messaging system and method for communicating between clusters
US7805517B2 (en) System and method for load balancing a communications network
CN110908872B (en) Method and system for detecting server state
CN107124453B (en) Load balancing system for platform interconnection gateway stacking deployment and video calling method
CN111786804B (en) Link fault monitoring method and device
CN115914027A (en) Health check system in load balancing equipment
CN109769029B (en) Communication connection method based on electricity consumption information acquisition system and terminal equipment
CN112422684B (en) Target message processing method and device, storage medium and electronic device
CN113157440A (en) Self-adaptive load balancing and high availability guaranteeing method applied to mobile terminal
CN111935791A (en) Network switching judgment method, judgment system and equipment of shipborne satellite communication terminal
CN107645540A (en) The load-balancing method of web application systems
CN105207949B (en) A kind of TCP optimization methods and system, SP servers
CN111669285A (en) Network detection data processing method, system and storage medium
CN110768848B (en) Method and device for switching main server and standby server
CN106488416B (en) Industry short message sending method and device
CN112671813A (en) Server determination method, device, equipment and storage medium
CN111555965B (en) Message pushing method and system suitable for iOS client
CN112866394A (en) Load balancing method, device, system, computer equipment and storage medium
WO2024032094A1 (en) Instant messaging system and method
CN104378230A (en) System and method for improving stability of Telnet server
CN107846470B (en) Method and system for guiding flow
CN113766363B (en) Fault monitoring method and device and computing equipment
CN101355512B (en) Data transmission system, method and transmission control server
CN109889545B (en) Data communication method and device

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