[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112311896A - Health examination method, device, equipment and computer readable storage medium - Google Patents

Health examination method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112311896A
CN112311896A CN202011279730.1A CN202011279730A CN112311896A CN 112311896 A CN112311896 A CN 112311896A CN 202011279730 A CN202011279730 A CN 202011279730A CN 112311896 A CN112311896 A CN 112311896A
Authority
CN
China
Prior art keywords
health check
equipment
health
load balancing
main
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.)
Granted
Application number
CN202011279730.1A
Other languages
Chinese (zh)
Other versions
CN112311896B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202011279730.1A priority Critical patent/CN112311896B/en
Publication of CN112311896A publication Critical patent/CN112311896A/en
Application granted granted Critical
Publication of CN112311896B publication Critical patent/CN112311896B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a health examination method, which comprises the following steps: the load balancing device synchronizes the health examination policy to each health examination device, and the load balancing device also selects one health examination device from the health examination devices as a main health examination device, and then the main health examination device can perform health examination on each back-end server according to the health examination policy. Therefore, the health check is performed by the external health check equipment, the health check is not performed by the load balancing equipment any more, the scheduling performance of the load balancing equipment is enhanced, the equipment resources of the load balancing equipment are saved, the influence on the function of the load balancing equipment due to the health check function is avoided, and the performance of the load balancer is improved.

Description

Health examination method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a health check method, apparatus, device, and computer-readable storage medium.
Background
With the continuous development of network technology, the network flow is larger and larger, a single server cannot meet the requirements of users on high concurrency, high new construction and high processing speed, and meanwhile, the cost performance of hardware upgrading of the server is too low.
In order to increase the service processing capacity and the service processing speed, a server load balancing technology is developed. The load balancing equipment has the functions of detecting the running state of the real servers and reasonably scheduling the flow of the client to one or more real servers according to the running state of the servers, so that the running state of the servers can be accurately judged, and the load balancing equipment has important significance in flow scheduling.
At present, the technical solutions for detecting the operating state of a server include the following two types:
one solution is to use an Internet Packet explorer (Packet Internet Groper, ping for short) to periodically ping a server through an Internet Control Message Protocol (ICMP) to detect whether a network is reachable, which has the defect that if the network has no problem but the service has a problem, the network cannot be detected. Another scheme is to access a server application at regular time, and if the server application is an application based on a hypertext Transfer Protocol (HTTP), health check can be performed by establishing a Transmission Control Protocol (TCP) connection, or an HTTP request can be sent to a web server, and availability of a service or a server can be detected by detecting whether access is normal.
In the above scheme, the load balancer may need to perform health status on hundreds of servers, even thousands of servers, and the load balancer is very stressed and can bear heavy burden, especially for performing health check on encrypted servers, such as HTTPS servers, because encryption and decryption are performed, performance consumption is huge. If the health check detection request is sent to thousands of servers at regular intervals and the responses of the servers are processed in time, a large amount of resources of the server to which the load balancer belongs are occupied, and meanwhile, the load balancer needs to process a request scheduling forwarding message and perform a large amount of health check at the same time, the performance of the load balancer is affected, and the scheduling effect is further affected.
Disclosure of Invention
In view of the above, the present application provides a health check method, apparatus, device and computer readable storage medium, which can effectively improve the performance of a load balancer.
Specifically, the method is realized through the following technical scheme:
a health check method is applied to a health check system, and the health check system comprises a load balancing device and at least two health check devices connected with the load balancing device; the execution subject of the method is the load balancing device, and the method comprises the following steps:
synchronizing a health check policy to the at least two health check devices;
and selecting one health check device from the at least two health check devices as a main health check device, wherein the main health check device is used for carrying out health check on at least one back-end server according to the health check strategy.
A health check method is applied to a health check system, and the health check system comprises a load balancing device and at least two health check devices connected with the load balancing device; the load balancing equipment selects one health check equipment from the at least two health check equipments as a main health check equipment; the execution subject of the method is the master health check device, the method comprising:
receiving a health check strategy sent by the load balancing equipment;
and performing health check on at least one back-end server according to the health check strategy.
An electronic device, comprising: a processor, a memory;
the memory for storing a computer program;
the processor is used for executing the health check method by calling the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the above-mentioned health check method.
According to the technical scheme, the load balancing device synchronizes the health examination strategies to all the health examination devices, and the load balancing device can select one health examination device from all the health examination devices to serve as a main health examination device, and then the main health examination device can conduct health examination on all the back-end servers according to the health examination strategies. Therefore, the health check is performed by the external health check equipment, the health check is not performed by the load balancing equipment any more, the scheduling performance of the load balancing equipment is enhanced, the equipment resources of the load balancing equipment are saved, the influence on the function of the load balancing equipment due to the health check function is avoided, and the performance of the load balancer is improved.
Drawings
FIG. 1 is a schematic flow chart of a health check method shown in the present application;
FIG. 2 is a schematic view of a health check system shown in the present application;
FIG. 3 is a schematic flow chart of another health check method shown in the present application;
FIG. 4 is a schematic diagram of the health check device shown in the present application;
FIG. 5 is a schematic diagram of another embodiment of the health check device shown in the present application;
fig. 6 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Before describing the embodiments of the present application, the following terms of art to which the embodiments of the present application relate, including load balancing and health checking, will be described first.
1. Load balancing
Load Balance (LB) is a clustering technique for servers or network devices. Load balancing distributes specific services (such as network services, network traffic and the like) to a plurality of servers or network devices, thereby improving service processing capacity and ensuring high availability of the services. The server load balancing is divided into four-layer server load balancing and seven-layer load balancing according to the message layers processed by the LB equipment: processing an IP header of an Internet Protocol (IP) packet by four layers without analyzing more than four layers of loads (L4 server LB) of the message; the seven layers process to a message payload portion, such as a hypertext Transfer Protocol (HTTP), a Real Time Streaming Protocol (RTSP), a Session Initiation Protocol (SIP) header, and sometimes a message content portion (L7 server LB).
2. Health examination
The load balance judges the service availability of the server through health check, and the health check mechanism improves the overall service availability and avoids the influence of server abnormity on the overall service. After the health check function is started, when a certain server is checked to be abnormal, the load balance can automatically distribute a new request to other servers with normal health check; and when the server returns to normal operation, the load balancing can automatically return the server to the load balancing service.
Generally, a load balancing device generally includes a control plane and a data forwarding plane, the control plane is responsible for configuration management, reporting, health check, and the like, the data forwarding plane is responsible for message transmission and reception, four-layer load balancing, seven-layer load balancing, load scheduling, and the like, and all functions of the data forwarding plane are completed on one device. Even for the frame device, the frame device is divided into a main control board and a service board, the main control board mainly processes a load control board, because the general performance of the main control board is weaker, health check is performed on a large number of servers, the pressure is very high, and the performance is difficult to be satisfied, and especially when the back-end server is a Secure Socket Layer (SSL) server, because encryption and decryption are involved, the performance consumption is especially high, and the performance and stability of the load balancing device are seriously affected.
Therefore, the embodiment of the present application provides a health check method, and in particular, a method for performing health check on a large number of servers, which can detect the operating condition of a backend server in real time, thereby reducing the burden of the existing load balancer, improving the real-time performance and accuracy of health monitoring results, and further improving the performance of the load balancer.
According to the embodiment of the application, the health check module of the load balancer is separated and deployed on an independent health check device, and the health check device can be an independent server. The health check equipment and the load balance equipment can communicate through a restful interface or other types of available interfaces, the health check equipment can select server hardware according to the number, functions and the like of the back-end servers which need to be detected, decoupling of the load balance equipment and the back-end servers in the aspect of health check is achieved, and linear expansion of health check performance is achieved.
The following describes the health examination method provided in the embodiments of the present application in detail.
Referring to fig. 1, a schematic flow chart of a health check method provided in an embodiment of the present application is applied to a health check system, where the health check system includes a load balancing device and at least two health check devices connected to the load balancing device. Specifically, for each health check device, the health check device may be a server, and a health check platform is deployed on the server, so that the load balancing device may perform health check on a large number of backend servers by using at least two external health check platforms; in addition, in order to realize the communication between the load balancing device and the health check device, the IP address and port of each health check device can be configured on the load balancing device.
It should be noted that, generally speaking, the embodiment of the present application needs at least two health check devices, and when a problem occurs in a certain health check device, another health check device may be selected to continue health check, so as to avoid the situation that health check cannot be performed.
The steps of the health check method shown in fig. 1, whose execution subject is a load balancing device, will be described below with reference to the schematic diagram of the health check system shown in fig. 2, and the method includes the following steps:
s101: the health check policy is synchronized to at least two health check devices.
In this embodiment of the present application, a health check policy may be configured on the load balancing device, and then the load balancing device synchronizes the health check policy to each external health check device. The embodiment of the present application does not limit the used synchronous interface, such as a restful interface.
In fig. 2, the load balancing device may include an external health examination platform configuration module, a heartbeat module, and a health examination switching module, and the load balancing device may complete a policy configuration function for each health examination device by using the external health examination platform configuration module (i.e., S101).
In addition, after receiving the health check policy configured by the load balancing device, each health check device may store configuration content in a corresponding database, where the policy content may include health check configurations such as an IP and a port of a server to be detected, a detection mode and a detection period of the server, and a health check enabling switch.
In fig. 2, the health check device includes a configuration receiving module, a heartbeat module, and a health check module, and the health check policy synchronized by the load balancing device may be received by the configuration receiving module.
S102: and selecting one health check device from the at least two health check devices as a main health check device, wherein the main health check device is used for carrying out health check on the at least one back-end server according to a health check strategy.
In this embodiment, the load balancing device may select one of the health check devices (i.e., select an external health check platform) as a main health check device, and the main health check device is a device in a normal operating state. The main health check equipment can perform health check on each back-end server needing health check according to the health check strategy, and other health check equipment except the main health check equipment only needs to store the configured health check strategy, and the health check on the back-end server is not needed temporarily.
In fig. 2, the primary health check device may be selected by an external health check platform configuration module of the load balancing device.
When the load balancing device authorizes a certain health check device as a main health check device, the main health check device can turn on the health detection switch to start health check, and at the moment, the main health check device informs the background health check process to perform health check.
In fig. 2, the health check module of the main health check device may perform health check on each backend server according to the health check policy.
Further, the health check method provided by the embodiment of the application may further include the following steps a1-a 2:
step A1: and determining whether the main health check equipment is abnormal equipment or not by monitoring the working state of the main health check equipment.
In order to ensure that health examination is performed on each back-end server, real-time state monitoring needs to be performed on the current main health examination device to ensure that the main health examination device can perform health detection normally, and if a problem occurs in the current main health examination device, another health examination device can be replaced to serve as the main health examination device to continue health examination.
In an implementation manner of the embodiment of the present application, step a1 may specifically include: monitoring the working state of the main health check equipment by establishing a long connection heartbeat with the main health check equipment; and if the state information fed back by the main health check equipment is not received within the preset time length, determining that the main health check equipment is abnormal equipment.
In this implementation manner, a long connection heartbeat channel is established between the load balancing device and each external health check device, the status of each health check device is monitored according to a preset time interval (e.g., every 1 second), and each health check device needs to report its own status information to the load balancing device according to the preset time interval (every 1 second). For the main health check device, if the main health check device does not report the status information after a preset time (for example, 5 seconds) is exceeded, the load balancing device considers that the main health check device has a problem, that is, the main health check device is considered to be an abnormal device
Step A2: and if the main health check equipment is determined to be abnormal equipment, selecting one normal equipment from at least two health check equipments to replace the main health check equipment.
When the load balancing device considers that the current main health check device is an abnormal device, the load balancing device selects a normal health check device from the rest health check devices as a new main health check device, and sends a switching message to the new main health check device through the heartbeat connection channel to inform the new health check device to start health detection on each back-end server.
In fig. 2, the heartbeat-related functions may be performed by the heartbeat modules of the load balancing device and the health check device; in addition, the health check switching module of the load balancing device can replace the current abnormal main health check device and select a new main health check device.
Further, in the health check method provided in the embodiment of the present application, the method may further include: and if the abnormal equipment (namely the main health check equipment with the problem) returns to be normal, sending a first notice to the abnormal equipment, wherein the first notice is used for informing the abnormal equipment to close the health check function.
Specifically, the load balancing device needs to detect the states of all health check devices, and if a health check device with a problem returns to normal again, that is, the abnormal device returns to normal again, a first notification needs to be sent to the abnormal device to notify the abnormal device to turn off the health detection function, so that an external health check device is always maintained to perform health detection.
Further, in the health check method provided in the embodiment of the present application, the method may further include: and if the at least two health check devices are abnormal devices, the load balancing device performs health check on the at least one back-end server according to a health check strategy.
Specifically, a health check policy (which may be configured by an external health check platform configuration module shown in fig. 2) needs to be configured for the load balancing device in advance, and when a normal health check device exists, the health check device is adopted to perform health check, and the load balancing device is not required to perform health check; on the contrary, when all the health check devices have problems, the health check can be performed by switching to the load balancing device (the health check switching module shown in fig. 2 may perform switching), that is, the load balancing device performs health check on all the backend servers, but the load balancing device continuously detects each health check device, and if a normal health check device is found, the health check device is switched to a certain normal health check device to perform health check (the health check switching module shown in fig. 2 may perform switching).
It should be noted that, the embodiment of the present application does not limit the health check manner, and any existing or future health check manner may be adopted to check the backend server. In addition, regarding "health check on at least one backend server", it is usually necessary to perform health check on all backend servers, but if there is a certain need, health check may be performed on only some backend servers.
Referring to fig. 3, a schematic flow chart of another health check method provided in the embodiment of the present application is applied to a health check system, where the health check system includes a load balancing device and at least two health check devices connected to the load balancing device; in addition, the load balancing device may select one health check device from the at least two health check devices as a main health check device.
The execution subject of the method is a master health check device, the method comprising the steps of:
s301: receiving a health check strategy sent by load balancing equipment;
s302: and performing health check on at least one back-end server according to the health check strategy.
Further, in the health check method provided in the embodiment of the present application, the method may further include: sending the state information of the main health check equipment to the load balancing equipment according to a preset time interval; the load balancing device is used for determining that the main health check device is abnormal when the state information fed back by the main health check device is not received within the preset time length, and selecting one normal device from the at least two health check devices to replace the main health check device.
It should be noted that the health check methods shown in fig. 1 and fig. 3 respectively use the load balancing device and the main health check device as execution main bodies, and therefore, for specific description of each step of fig. 3, reference may be made to relevant contents of the above-mentioned embodiment of fig. 1, and details are not repeated here.
Further, in the health check method provided in the embodiment of the present application, the method may further include: and sending the result of the health check of the back-end server to the load balancing equipment.
Specifically, the master health check device may send the health check result for each backend server to the load balancing device at preset time intervals, for example, through a restful interface (which may be performed by the health check module shown in fig. 2). After receiving the health check result sent by the main health check device, the load balancing device may update the server health list by using the health check result to instruct the server load balancing module of the load balancing device to forward the data packet.
Therefore, the health examination module of the load balancing equipment can be separated, the function of the health examination module is realized by the external health examination equipment, the decoupling of the load balancing equipment and the rear-end server in the aspect of health examination is realized, and the linear expansion of the health examination performance is realized. The load balancing equipment and the external health check equipment respectively play their own roles, so that the scheduling performance of the load balancing equipment is enhanced, the equipment resources of the load balancing equipment are saved, and the influence on the function of the load balancing equipment due to the health check function is avoided.
In the health check method provided by the application, the load balancing device synchronizes the health check policy to each health check device, and the load balancing device further selects one health check device from the health check devices as a main health check device, and then the main health check device can perform health check on each backend server according to the health check policy. Therefore, in the embodiment of the application, the health check is performed by the external health check equipment, and the health check is not performed by the load balancing equipment any more, so that the scheduling performance of the load balancing equipment is enhanced, the equipment resources of the load balancing equipment are saved, the influence on the function of the load balancing equipment due to the health check function is avoided, and the performance of the load balancing equipment is improved.
Referring to fig. 4, a schematic composition diagram of a health check apparatus provided in an embodiment of the present application is a health check apparatus, where the health check apparatus is applied to a load balancing device, and the load balancing device is connected to at least two health check devices, and the apparatus includes:
a policy synchronization unit 410 for synchronizing the health check policy to the at least two health check devices;
a device selecting unit 420, configured to select one health check device from the at least two health check devices as a main health check device, where the main health check device is configured to perform health check on at least one backend server according to the health check policy.
In an implementation manner of the embodiment of the present application, the apparatus further includes:
the abnormality detection unit is used for monitoring the working state of the main health check equipment and determining whether the main health check equipment is abnormal equipment or not;
and the equipment replacing unit is used for selecting one normal equipment from the at least two health check equipments to replace the main health check equipment if the main health check equipment is determined to be abnormal equipment.
In an implementation manner of the embodiment of the present application, the abnormality detecting unit is specifically configured to:
monitoring the working state of the main health check equipment by establishing a long connection heartbeat with the main health check equipment;
and if the state information fed back by the main health check equipment is not received within the preset time, determining that the main health check equipment is abnormal equipment.
In an implementation manner of the embodiment of the present application, the apparatus further includes:
and the notification sending unit is used for sending a first notification to the abnormal equipment if the abnormal equipment returns to normal, wherein the first notification is used for notifying the abnormal equipment to close the health check function.
In an implementation manner of the embodiment of the present application, the apparatus further includes:
and the health check unit is used for performing health check on at least one back-end server by the load balancing equipment according to the health check strategy if the at least two health check equipment are abnormal equipment.
Referring to fig. 5, a schematic composition diagram of another health check apparatus provided in an embodiment of the present application, where the apparatus is applied to a main health check device, and the main health check device is a health check device selected from at least two health check devices by a load balancing device, and the apparatus includes:
a policy receiving unit 510, configured to receive a health check policy sent by the load balancing device;
a health check unit 520, configured to perform a health check on at least one backend server according to the health check policy.
In an implementation manner of the embodiment of the present application, the apparatus further includes:
an information sending unit, configured to send, to the load balancing device, state information of the main health check device according to a preset time interval; the load balancing device is used for determining that the main health checking device is abnormal when the state information fed back by the main health checking device is not received within a preset time length, and selecting one normal device from the at least two health checking devices to replace the main health checking device.
In an implementation manner of the embodiment of the present application, the apparatus further includes:
and the result sending unit is used for sending the result of the health check of the back-end server to the load balancing equipment.
In the respective modules shown in fig. 2, each module may be a functional module of a unit shown in fig. 4 and 5 based on the function of the module.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
An embodiment of the present application further provides an electronic device, a schematic structural diagram of the electronic device is shown in fig. 6, where the electronic device 6000 includes at least one processor 6001, a memory 6002, and a bus 6003, and the at least one processor 6001 is electrically connected to the memory 6002; memory 6002 is configured to store at least one computer executable instruction that processor 6001 is configured to execute in order to perform the steps of any of the health check methods as provided by any of the embodiments or any of the alternative embodiments of the present application.
Further, the processor 6001 may be an FPGA (Field-Programmable Gate Array) or other device with logic processing capability, such as an MCU (micro controller Unit) or a CPU (Central processing Unit).
By applying the embodiment of the application, the health examination is carried out by the external health examination equipment, and the health examination is not carried out by the load balancing equipment any more, so that the scheduling performance of the load balancing equipment is enhanced, the equipment resource of the load balancing equipment is saved, the influence on the function of the load balancing equipment due to the health examination function is avoided, and the performance of the load balancing equipment is improved.
The present application further provides another computer-readable storage medium, which stores a computer program for implementing the steps of any one of the health check methods provided in any one of the embodiments or any one of the alternative embodiments of the present application when the computer program is executed by a processor.
The computer-readable storage medium provided by the embodiments of the present application includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random Access memories), EPROMs (Erasable Programmable Read-Only memories), EEPROMs (Electrically Erasable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a readable storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer).
By applying the embodiment of the application, the health examination is carried out by the external health examination equipment, and the health examination is not carried out by the load balancing equipment any more, so that the scheduling performance of the load balancing equipment is enhanced, the equipment resource of the load balancing equipment is saved, the influence on the function of the load balancing equipment due to the health examination function is avoided, and the performance of the load balancing equipment is improved.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (12)

1. A health check method is applied to a health check system, and the health check system comprises a load balancing device and at least two health check devices connected with the load balancing device; the execution subject of the method is the load balancing device, and the method comprises the following steps:
synchronizing a health check policy to the at least two health check devices;
and selecting one health check device from the at least two health check devices as a main health check device, wherein the main health check device is used for carrying out health check on at least one back-end server according to the health check strategy.
2. The method of claim 1, further comprising:
determining whether the main health check equipment is abnormal equipment or not by monitoring the working state of the main health check equipment;
and if the main health check equipment is determined to be abnormal equipment, selecting one normal equipment from the at least two health check equipments to replace the main health check equipment.
3. The method of claim 2, wherein determining whether the primary health check device is an abnormal device by monitoring an operating state of the primary health check device comprises:
monitoring the working state of the main health check equipment by establishing a long connection heartbeat with the main health check equipment;
and if the state information fed back by the main health check equipment is not received within the preset time, determining that the main health check equipment is abnormal equipment.
4. The method of claim 2, further comprising:
and if the abnormal equipment returns to normal, sending a first notice to the abnormal equipment, wherein the first notice is used for informing the abnormal equipment to close the health check function.
5. The method according to any one of claims 1-4, further comprising:
and if the at least two health check devices are abnormal devices, the load balancing device carries out health check on the at least one back-end server according to the health check strategy.
6. A health check method is applied to a health check system, and the health check system comprises a load balancing device and at least two health check devices connected with the load balancing device; the load balancing equipment selects one health check equipment from the at least two health check equipments as a main health check equipment; the execution subject of the method is the master health check device, the method comprising:
receiving a health check strategy sent by the load balancing equipment;
and performing health check on at least one back-end server according to the health check strategy.
7. The method of claim 6, further comprising:
sending the state information of the main health check equipment to the load balancing equipment according to a preset time interval;
the load balancing device is used for determining that the main health checking device is abnormal when the state information fed back by the main health checking device is not received within a preset time length, and selecting one normal device from the at least two health checking devices to replace the main health checking device.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
and sending the result of the health check of the back-end server to the load balancing equipment.
9. A health examination apparatus, wherein the apparatus is applied to a load balancing device, the load balancing device is connected with at least two health examination devices, the apparatus comprises:
a policy synchronization unit for synchronizing the health check policy to the at least two health check devices;
and the equipment selection unit is used for selecting one health check equipment from the at least two health check equipments as a main health check equipment, wherein the main health check equipment is used for carrying out health check on at least one back-end server according to the health check strategy.
10. A health-check apparatus applied to a main health-check device which is one health-check device selected from at least two health-check devices by a load-balancing device, the apparatus comprising:
the strategy receiving unit is used for receiving the health check strategy sent by the load balancing equipment;
and the health check unit is used for carrying out health check on at least one back-end server according to the health check strategy.
11. An electronic device, comprising: a processor, a memory;
the memory for storing a computer program;
the processor is configured to execute the health check method of any one of claims 1-5 or 6-8 by calling the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the health check method of any one of claims 1-5 or 6-8.
CN202011279730.1A 2020-11-16 2020-11-16 Health examination method, device, equipment and computer readable storage medium Active CN112311896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011279730.1A CN112311896B (en) 2020-11-16 2020-11-16 Health examination method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011279730.1A CN112311896B (en) 2020-11-16 2020-11-16 Health examination method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112311896A true CN112311896A (en) 2021-02-02
CN112311896B CN112311896B (en) 2023-03-24

Family

ID=74334693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011279730.1A Active CN112311896B (en) 2020-11-16 2020-11-16 Health examination method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112311896B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590024A (en) * 2021-06-18 2021-11-02 济南浪潮数据技术有限公司 Health inspection method, device and terminal of distributed storage system
CN113923397A (en) * 2021-09-28 2022-01-11 北京字跳网络技术有限公司 Method and device for detecting state of conference room equipment, electronic equipment and storage medium
CN115277191A (en) * 2022-07-27 2022-11-01 中国工商银行股份有限公司 Health check method and device for background server
CN115914027A (en) * 2022-12-19 2023-04-04 上海弘积信息科技有限公司 Health check system in load balancing equipment
CN115914027B (en) * 2022-12-19 2024-11-15 上海弘积信息科技有限公司 Health check system in load balancing equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394224A (en) * 2014-11-28 2015-03-04 无锡华云数据技术服务有限公司 Load balance system
CN106656617A (en) * 2016-12-29 2017-05-10 杭州迪普科技股份有限公司 Master-slave switching method and device
US20170208122A1 (en) * 2016-01-18 2017-07-20 Canon Kabushiki Kaisha Server system, method for controlling server system, and storage medium
US9871712B1 (en) * 2013-04-16 2018-01-16 Amazon Technologies, Inc. Health checking in a distributed load balancer
CN108449282A (en) * 2018-05-29 2018-08-24 华为技术有限公司 A kind of load-balancing method and its device
CN109788012A (en) * 2017-11-14 2019-05-21 阿里巴巴集团控股有限公司 A kind of health examination method and device, health examination control method and controller
CN110177028A (en) * 2019-05-30 2019-08-27 北京字节跳动网络技术有限公司 Distributed health examination method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9871712B1 (en) * 2013-04-16 2018-01-16 Amazon Technologies, Inc. Health checking in a distributed load balancer
CN104394224A (en) * 2014-11-28 2015-03-04 无锡华云数据技术服务有限公司 Load balance system
US20170208122A1 (en) * 2016-01-18 2017-07-20 Canon Kabushiki Kaisha Server system, method for controlling server system, and storage medium
CN106656617A (en) * 2016-12-29 2017-05-10 杭州迪普科技股份有限公司 Master-slave switching method and device
CN109788012A (en) * 2017-11-14 2019-05-21 阿里巴巴集团控股有限公司 A kind of health examination method and device, health examination control method and controller
CN108449282A (en) * 2018-05-29 2018-08-24 华为技术有限公司 A kind of load-balancing method and its device
CN110177028A (en) * 2019-05-30 2019-08-27 北京字节跳动网络技术有限公司 Distributed health examination method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590024A (en) * 2021-06-18 2021-11-02 济南浪潮数据技术有限公司 Health inspection method, device and terminal of distributed storage system
CN113590024B (en) * 2021-06-18 2023-12-22 济南浪潮数据技术有限公司 Health inspection method, device and terminal of distributed storage system
CN113923397A (en) * 2021-09-28 2022-01-11 北京字跳网络技术有限公司 Method and device for detecting state of conference room equipment, electronic equipment and storage medium
CN113923397B (en) * 2021-09-28 2023-12-19 北京字跳网络技术有限公司 Conference room equipment state detection method and device, electronic equipment and storage medium
CN115277191A (en) * 2022-07-27 2022-11-01 中国工商银行股份有限公司 Health check method and device for background server
CN115914027A (en) * 2022-12-19 2023-04-04 上海弘积信息科技有限公司 Health check system in load balancing equipment
CN115914027B (en) * 2022-12-19 2024-11-15 上海弘积信息科技有限公司 Health check system in load balancing equipment

Also Published As

Publication number Publication date
CN112311896B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN112311896B (en) Health examination method, device, equipment and computer readable storage medium
CN109274707B (en) Load scheduling method and device
CN102164116B (en) Method, system and corresponding device for balancing load
CN109167702A (en) A kind of distributed test method and device based on load balancing
US8260930B2 (en) Systems, methods and computer readable media for reporting availability status of resources associated with a network
US20130262681A1 (en) Apparatus and method for providing service availability to a user via selection of data centers for the user
CN106911648B (en) Environment isolation method and equipment
CN112351083B (en) Service processing method and network service system
CN112217843B (en) Service unit switching method, system and equipment
CN112350952B (en) Controller distribution method and network service system
CN105429799A (en) Server backup method and device
CN107682442B (en) Web connection method and device
CN111385134B (en) Access device dynamic migration method and device access platform
CN106658559B (en) A kind of Mobile QoS keeping method based on context-prediction
CN107634871B (en) Connectivity test method, device and system
US20150381498A1 (en) Network system and its load distribution method
CN115280288A (en) Server system and method of managing server system
EP3593516B1 (en) Method and control node for managing cloud resources in a communications network
US11057478B2 (en) Hybrid cluster architecture for reverse proxies
WO2016206433A1 (en) Method and apparatus for balancing server load
CN107872822A (en) The bearing method and bogey of a kind of business
CN106453118B (en) Flow control method and flow control system
CN105007143A (en) Call preservation and recovery method and system
CN109697126B (en) Data processing method and device for server
CN106603334B (en) A kind of IP address monitoring 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
GR01 Patent grant
GR01 Patent grant