CN107070742B - Service server health state checking method and system - Google Patents

Service server health state checking method and system Download PDF

Info

Publication number
CN107070742B
CN107070742B CN201710150369.4A CN201710150369A CN107070742B CN 107070742 B CN107070742 B CN 107070742B CN 201710150369 A CN201710150369 A CN 201710150369A CN 107070742 B CN107070742 B CN 107070742B
Authority
CN
China
Prior art keywords
detection
service server
detection result
health
health state
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
CN201710150369.4A
Other languages
Chinese (zh)
Other versions
CN107070742A (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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201710150369.4A priority Critical patent/CN107070742B/en
Publication of CN107070742A publication Critical patent/CN107070742A/en
Application granted granted Critical
Publication of CN107070742B publication Critical patent/CN107070742B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Abstract

The invention provides a method and a system for checking the health state of a service server, wherein the method comprises the following steps: carrying out health detection on a target service server by using main detection equipment, and obtaining a first detection result; if the first detection result meets the re-inspection condition, re-inspecting the target service server by using the standby detection equipment to obtain a second detection result; and determining the current health state of the target service server according to the first detection result and the second detection result. In a health detection period, after the main detection device completes the health detection of the target service server, if the first detection result meets the re-detection condition, the standby detection device performs the health detection on the target service server again at the moment, and the current health state of the target service server is determined by combining the health detection results of two times, so that the accuracy of the determined health state of the service server can be improved.

Description

Service server health state checking method and system
Technical Field
The invention relates to the technical field of internet communication, in particular to a method and a system for checking the health state of a service server.
Background
At present, with the rapid development of the internet and computer technology, more and more network service providers are dedicated to providing convenient social or enterprise services for the public through the internet, the implementation basis for providing the network services is a network service platform and data resources, and each network service provider aims to ensure the availability of a service server for providing web services to the outside, so that the quality, timeliness and stability of the service services to the outside are improved, and further the user experience and satisfaction are improved. Therefore, generally speaking, a health check system is used to perform health check on each service server to obtain health status information of each service server, and then service requests are distributed to healthy service servers according to the health status information of each service server, thereby ensuring the availability of the service servers providing web services to the outside.
Currently, related technologies provide a method for checking a health status of a service server, where the method mainly includes: in a health detection period, a Nginx machine (load balancing equipment) respectively performs health detection on a designated service server once, then determines the health state information of the corresponding service server according to the detection result, and in the service request distribution process, distributes the service request to the healthy service servers according to the health state information of each service server, and simultaneously stops distributing the service request to the service servers with abnormal current health states, thereby ensuring the availability of the service servers providing web services to the outside.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the related art: in the related art, the health state information of each service server is directly determined according to the detection result of one Nginx machine, and the problem of low accuracy of the health detection result exists, so that the health state misjudgment rate of the service server is high.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and a system for checking a health status of a service server, so as to improve accuracy of determining the health status of the service server.
In a first aspect, an embodiment of the present invention provides a method for checking a health status of a service server, where the method includes:
carrying out health detection on a target service server by using main detection equipment, and obtaining a first detection result;
if the first detection result meets the re-inspection condition, re-inspecting the target service server by using standby detection equipment to obtain a second detection result;
and determining the current health state of the target service server according to the first detection result and the second detection result.
In a second aspect, an embodiment of the present invention further provides a system for checking a health status of a service server, where the system includes: the health state detection device comprises at least one piece of main detection equipment, at least one piece of standby detection equipment and a health state determination device, wherein the main detection equipment is connected with the standby detection equipment;
the main detection device is used for carrying out health detection on the target service server and obtaining a first detection result;
the standby detection equipment is used for rechecking the target service server to obtain a second detection result if the first detection result meets the rechecking condition;
and the health state determining device is used for determining the current health state of the target service server according to the first detection result and the second detection result.
In a third aspect, the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the method in the first aspect.
In the method and system for checking health status of a service server provided by the embodiment of the invention, the method comprises the following steps: carrying out health detection on a target service server by using main detection equipment, and obtaining a first detection result; if the first detection result meets the re-inspection condition, re-inspecting the target service server by using the standby detection equipment to obtain a second detection result; and determining the current health state of the target service server according to the first detection result and the second detection result. In a health detection period, after the main detection device completes the health detection of the target service server, if the first detection result meets the re-detection condition, the standby detection device performs the health detection on the target service server again at the moment, and the current health state of the target service server is determined by combining the health detection results of two times, so that the accuracy of the determined health state of the service server can be improved, and the service request distribution device can be ensured to accurately distribute the service request to the healthy service server.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flow chart illustrating a method for checking a health status of a service server according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram illustrating a health status checking system of a service server according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of another business server health status checking system provided by an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of a service request distribution system 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 only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
In consideration of the fact that the health state information of each service server in the related art is directly determined according to the detection result of one Nginx machine, the accuracy of the health detection result is low, and the health state information misjudgment rate of the service server is high. Based on this, embodiments of the present invention provide a method and a system for checking a health status of a service server, which are described below by embodiments.
As shown in fig. 1, an embodiment of the present invention provides a method for checking a health status of a service server, where the method includes steps S102 to S106, which are specifically as follows:
step S102: the method comprises the steps that a main detection device is used for carrying out health detection on a target service server, and a first detection result is obtained, wherein the target service server is a service server to be detected;
step S104: if the first detection result meets the re-inspection condition, re-inspecting the target service server by using standby detection equipment to obtain a second detection result;
step S106: and determining the current health state of the target service server according to the first detection result and the second detection result.
In the embodiment provided by the invention, in a health detection period, after the main detection device completes the health detection of the target service server, if the first detection result meets the re-detection condition, the standby detection device performs the health detection on the target service server again at the moment, and the current health state of the target service server is determined by combining the two health detection results, so that the accuracy of the determined health state of the service server can be improved, and the service request distribution device can be ensured to accurately distribute the service request to the healthy service server.
The execution main body for determining whether the first detection result meets the re-inspection condition may be a main detection device, a standby detection device, or an independent re-inspection determination device, and specifically includes:
(1) if the main detection device determines whether the first detection result meets the re-detection condition, after the main detection device obtains the first detection result, the main detection device judges whether the first detection result meets the re-detection condition, if so, the main detection device sends a re-detection instruction to a standby detection device, and when the standby detection device receives the re-detection instruction, the standby detection device performs re-detection on a corresponding target service server to obtain a second detection result;
(2) if the standby detection equipment determines whether the first detection result meets the re-detection condition, the main detection equipment sends the first detection result to the standby detection equipment after obtaining the first detection result, the standby detection equipment judges whether the first detection result meets the re-detection condition, and if so, the corresponding target service server is re-detected to obtain a second detection result;
(3) if the single re-inspection determining device determines whether the first detection result meets the re-inspection condition, the main detection device sends the first detection result to the re-inspection determining device after obtaining the first detection result, the re-inspection determining device judges whether the first detection result meets the re-inspection condition, if so, a re-inspection instruction is sent to a standby detection device, and the standby detection device performs re-inspection on a corresponding target service server when receiving the re-inspection instruction to obtain a second detection result;
in the embodiment provided by the invention, the detection task of the main detection device is considered to be heavy, and the main detection device should focus on the health detection of the target service server, so that whether the first detection result meets the re-detection condition is preferably determined by the standby detection device, and the information processing amount of the main detection device can be reduced.
Whether the first detection result meets the re-inspection condition can be judged in the following two ways:
the first mode is as follows: if the first detection result is determined to be inconsistent with the preset condition, it is determined that the first detection result meets the re-inspection condition, specifically, when the first detection result is inconsistent with the preset condition, it is determined that the target service server is abnormal, at this time, it is required to confirm whether the target service server is abnormal by the standby detection device, and therefore, it is determined that the first detection result meets the re-inspection condition, so that the standby detection device performs the re-inspection on the target service server.
The second mode is as follows: if the first detection result is judged to be inconsistent with the latest health state of the target service server, determining that the first detection result meets the re-inspection condition, wherein the health status of the target service server can be uniformly stored in the sharing device, the latest health status of the target service server is obtained from the sharing device, the latest health status is the health status of the target service server determined in the previous health detection period, specifically, when the first detection result is inconsistent with the last health status of the target service server, it cannot be determined whether the health detection result of the main detection device is correct, the standby detection device needs to verify whether the health detection result of the main detection device is correct, therefore, the first detection result is determined to meet the re-inspection condition, so that the standby detection equipment performs re-inspection on the target service server.
Compared with a mode of directly performing health detection twice on a target service server by two detection devices, in the embodiment provided by the invention, a mode of determining the health state while detecting is adopted, namely after the main detection device completes the health detection, whether the detection result meets the re-detection condition is determined, and only under the condition that the detection result meets the re-detection condition, the standby detection device performs re-detection on the target service server, so that the accuracy of the determined health state of the service server can be improved, and the workload of the service server for matching with the health detection can be reduced.
The step of determining the current health state of the target service server according to the first detection result and the second detection result specifically includes:
if the second detection result is consistent with the first detection result, determining the second detection result as the current health state of the target service server;
and if the second detection result is inconsistent with the first detection result, determining the latest health state of the target service server as the current health state.
However, it is considered that when the first detection result is inconsistent with the second detection result, it cannot be determined whether the detection result of the primary detection device is accurate or the detection result of the standby detection device is accurate, and since the detection period is relatively short, the probability that the health state of the target service server changes in a short time is relatively low, so that the health state of the target service server is kept unchanged.
Further, in order to enable the service request distribution device to quickly acquire the latest health status of all the service servers, so as to accurately distribute the service request to the healthy service servers, the method further includes:
and updating the shared and stored health state of the target business server according to the current health state of the target business server.
Preferably, the health states of the target service servers are uniformly stored in the sharing device, after each health detection period, the sharing device updates the health state of the corresponding target service server which is stored in a sharing mode according to the determined current health state of each target service server, so that the service request distribution device can rapidly acquire the latest health state of all the service servers from the sharing device, and the service request is accurately distributed to the healthy service servers;
correspondingly, in order to ensure that the service request is distributed to the healthy service servers, after the service request distribution equipment receives the service request, the health state of each service server is obtained from the sharing equipment, and the health states of all the service servers are stored in the sharing equipment;
and the service request distribution equipment distributes the service request to the healthy service servers according to the health state of each service server.
Considering that a plurality of main detection devices need to be equipped to perform health detection on the service servers under the condition that the number of the service servers is large, based on this, the method further includes:
the method comprises the steps that each main detection device is utilized to receive respective detection tasks, target service servers needing to be detected between every two main detection devices are not repeated, and the detection tasks can comprise identification of the target service servers and can also comprise the latest health state of each target service server;
in the embodiment provided by the invention, each main detection device adopts a non-cross detection mode, simultaneously uniformly stores the health state of each target service server in the sharing device, updates the health state of the target service server in the sharing device according to the current health state of the target service server in real time, and ensures that the latest health state information of all service servers is stored in the sharing device, thereby improving the health detection efficiency, reducing the detection tasks of the main detection device, reducing the workload of the service servers for matching with the health detection, and facilitating the service request distribution device to quickly acquire the latest health state of all service servers from the sharing device, thereby accurately distributing the service request to the healthy service servers.
Specifically, in view of the situation that the sharing device may make an error when modifying the health status of the target service server, so as to cause the health status information of the target service server to be incorrect, based on this, the step of updating the health status of the target service server, which is stored in a shared manner, according to the current health status of the target service server includes:
and if the current health state of the target business server is determined to be inconsistent with the latest health state of the target business server, updating the shared and stored health state of the target business server.
In the embodiment provided by the invention, the sharing device modifies the latest health state of the target service server to update the health state of the target service server only when the current health state of the target service server is determined to be inconsistent with the latest health state of the target service server, so that the latest health state information of all service servers can be stored in the sharing device, and the condition that the health state of the target service server is wrong due to possible errors of the sharing device when the health state of the target service server is not required to be modified can be avoided.
Further, considering that there may be a situation that the first detection result is low in accuracy due to the fact that the main detection device itself is abnormal and normal health detection cannot be performed on the target service server, and further the first detection result meets the re-detection condition, based on this, the method further includes:
if the first detection result meets the re-inspection condition, performing health detection on the main detection equipment by using the standby detection equipment to obtain a third detection result;
determining the current health state of the main detection equipment according to the third detection result;
in the embodiment provided by the invention, when the first detection result meets the re-detection condition, the standby detection equipment not only performs re-detection on the target service server, but also performs health detection on the main detection equipment, so that the health state of the main detection equipment is monitored, and whether the first detection result is inaccurate due to the abnormality of the main detection equipment is determined.
Further, in order to improve the accuracy of the determined health status of the main detection device, based on this, the method further includes, after performing health detection on the main detection device by using the standby detection device and obtaining a third detection result: if the third detection result meets the re-detection condition, another standby detection device is used for re-detecting the main detection device to obtain a fourth detection result, wherein the process of determining whether the third detection result meets the re-detection condition is similar to the process of determining whether the first detection result meets the re-detection condition, and the process is not repeated herein;
correspondingly, determining the current health state of the main detection device according to the third detection result includes: determining the current health state of the main detection device according to a third detection result and a fourth detection result, wherein the current health state checking process of the main detection device is similar to the current health state checking process of the target service server, and is not described herein again;
further, in order to enable the detection task distribution device to quickly acquire the latest health status of all the main detection devices, so as to accurately distribute the detection tasks to the healthy main detection devices, the method further includes:
and updating the shared and stored health state of the main detection device according to the current health state of the main detection device, wherein the health state updating process of the main detection device is similar to the health state updating process of the target service server, and details are not repeated here.
Preferably, the health states of the main detection devices are uniformly stored in the sharing device, and after each health detection period, the sharing device updates the health state of the corresponding main detection device which is stored in a sharing mode according to the determined current health state of each main detection device, so that the detection task distribution device can rapidly acquire the latest health state of all the main detection devices from the sharing device, and therefore the detection tasks are accurately distributed to the healthy main detection devices;
correspondingly, in order to ensure that the detection task is distributed to healthy detection devices, the method further comprises the following steps:
after receiving the detection request, acquiring the health state of each main detection device from the sharing device, and storing the health state of all the main detection devices in the sharing device;
and allocating the detection tasks to the healthy main detection equipment according to the health state of each main detection equipment.
In the embodiment provided by the invention, the health states of the main detection devices are uniformly stored in the sharing device, the health state of the main detection device in the sharing device is updated in real time according to the current health state of the main detection device, the latest health state information of all the main detection devices is ensured to be stored in the sharing device, and the detection task distribution device can rapidly acquire the latest health states of all the main detection devices from the sharing device, so that the detection tasks are ensured to be distributed to the healthy main detection devices, the main detection devices can carry out normal health detection on the service server, and the condition that the standby detection devices are used for carrying out rechecking on the service server is reduced.
In the method for checking the health state of the service server, in a health detection period, after the main detection device completes the health detection of the target service server, if the first detection result meets the re-detection condition, the standby detection device carries out the health detection on the target service server again, and the current health state of the target service server is determined by combining the two health detection results, so that the accuracy of the determined health state of the service server can be improved, and the service request distribution device can be ensured to accurately distribute the service request to the healthy service server.
Corresponding to the method in fig. 1, an embodiment of the present invention further provides a system for checking health status of a service server, as shown in fig. 2, where the system includes: at least one main detection device 202, at least one standby detection device 204, and a health status determination apparatus 206, wherein the main detection device 202 is connected to the standby detection device 204;
the main detection device 202 is configured to perform health detection on the target service server and obtain a first detection result;
the standby detection device 204 is configured to perform a recheck on the target service server to obtain a second detection result if it is determined that the first detection result meets a recheck condition;
the health status determining device 206 is configured to determine a current health status of the target service server according to the first detection result and the second detection result.
In the embodiment provided by the present invention, in a health detection period, after the main detection device 202 completes the health detection of the target service server, if it is determined that the first detection result satisfies the re-detection condition, the standby detection device 204 performs the health detection again on the target service server, and determines the current health state of the target service server by combining the two health detection results, so that the accuracy of the determined health state of the service server can be improved, thereby ensuring that the service request distribution device can accurately distribute the service request to the healthy service server.
Further, whether the first detection result meets the re-inspection condition may be determined in the following two ways, based on which the system further includes:
and the first re-inspection determining device is used for determining that the first detection result meets the re-inspection condition if the first detection result is judged to be inconsistent with the preset condition.
Further, the above system further comprises:
and a second rechecking determining device, configured to determine that the first detection result satisfies a rechecking condition if it is determined that the first detection result is inconsistent with the latest health status of the target service server.
Compared with a mode of directly performing health detection twice on a target service server by two detection devices, in the embodiment provided by the invention, a mode of determining the health state while detecting is adopted, namely after the main detection device 202 completes the health detection, whether the detection result meets the re-detection condition is determined, and only under the condition that the detection result meets the re-detection condition, the standby detection device 204 performs re-detection on the target service server, so that the accuracy of the determined health state of the service server can be improved, and the workload of the service server for matching with the health detection can be reduced.
Specifically, the health status determining device 206 is specifically configured to:
if the second detection result is consistent with the first detection result, determining the second detection result as the current health state of the target service server;
and if the second detection result is inconsistent with the first detection result, determining the latest health state of the target service server as the current health state.
Further, considering that there may be a situation that the first detection result is low in accuracy and further the first detection result meets the re-inspection condition due to the fact that the main detection device 202 itself is abnormal and normal health detection cannot be performed on the target service server, based on this, the standby detection device 204 is further configured to perform health detection on the main detection device 202 to obtain a third detection result if it is determined that the first detection result meets the re-inspection condition;
the health status determining device 206 is further configured to determine a current health status of the main detecting apparatus 202 according to the third detecting result;
in the embodiment provided by the present invention, when it is determined that the first detection result meets the re-inspection condition, the standby detection device 204 performs re-inspection on the target service server, and the standby detection device 204 performs health detection on the main detection device 202, so as to monitor the health status of the main detection device 202, and determine whether the first detection result is inaccurate due to the abnormality of the main detection device 202.
Further, in order to enable the service request distribution device to quickly acquire the latest health status of all the service servers, thereby accurately distributing the service request to the healthy service servers, and in order to enable the detection task distribution device to quickly acquire the latest health status of all the main detection devices 202, thereby accurately distributing the detection task to the healthy main detection devices 202, as shown in fig. 3, the system further includes: the sharing device 208 preferably stores the health status of each target service server in the sharing device 208, and stores the health status of each main detection device 202 in the sharing device 208;
specifically, (1) the sharing device 208 is configured to update the health status of each target service server according to the current health status of the target service server;
(2) when it is determined that the first detection result meets the re-inspection condition, not only the standby detection device 204 performs re-inspection on the target service server, but also the standby detection device 204 performs health detection on the main detection device 202, at this time, the sharing device 208 is further configured to update the health state of the main detection device 202, which is stored in a shared manner, according to the current health state of each main detection device 202.
In consideration of the situation that the sharing device 208 may make an error when modifying the health status of the target service server, so as to cause the health status information of the target service server to be an error, based on this, the sharing device 208 is specifically configured to:
if the current health state of the target business server is determined to be inconsistent with the latest health state of the target business server, updating the shared and stored health state of the target business server;
similarly, when it is determined that the first detection result satisfies the re-detection condition, not only the standby detection device 204 performs re-detection on the target service server, but also the standby detection device 204 performs health detection on the main detection device 202, and at this time, if it is determined that the current health state of the main detection device 202 is not consistent with the latest health state of the main detection device 202, the health state of the main detection device 202, which is stored in a shared manner, is updated.
In the embodiment provided by the present invention, only when it is determined that the current health state of the target service server is inconsistent with the latest health state of the target service server, the sharing device 208 modifies the latest health state of the target service server to update the health state of the target service server, so that it is not only ensured that the latest health state information of all service servers is stored in the sharing device 208, but also when the health state of the target service server does not need to be modified, a situation that the health state of the target service server is incorrect due to a possible error of the sharing device 208 when the health state is modified can be avoided, and similarly, the health state updating process of the main detection device 202 is similar to the health state updating process of the target service server.
Further, in order to ensure distribution of detection tasks to healthy detection devices, the system further comprises, based on this: the detection task distribution device is used for acquiring the health state of each main detection device 202 from the shared device after receiving the detection request; detection tasks are assigned to healthy primary detection devices 202 based on the health status of each primary detection device 202.
In the embodiment provided by the present invention, the health status of each primary detection device 202 is uniformly stored in the sharing device 208, and the health status of the primary detection device 202 in the sharing device 208 is updated in real time according to the current health status of the primary detection device 202, so as to ensure that the shared device 208 stores the latest health status information of all the primary detection devices 202, which is convenient for the detection task distribution device to quickly obtain the latest health status of all the primary detection devices 202 from the sharing device 208, thereby ensuring that the detection task is distributed to the healthy primary detection device 202, ensuring that the primary detection device 202 can perform normal health detection on the service server, and reducing the situation that the standby detection device 204 performs re-detection on the service server.
In the health status checking system for the service server provided by the invention, in a health detection period, after the main detection device 202 completes the health detection of the target service server, if the first detection result meets the re-detection condition, the standby detection device 204 performs the health detection again on the target service server, and the current health status of the target service server is determined by combining the two health detection results, so that the accuracy of the determined health status of the service server can be improved, and the service request distribution device can be ensured to accurately distribute the service request to the healthy service server.
As shown in fig. 4, an embodiment of the present invention further provides a service request distribution system, where the system includes: the service server health status checking system 20, the service request distribution device 30, and a plurality of service servers; the service server health status checking system 20 includes: at least one primary detection device 202, at least one backup detection device 204, a health status determination apparatus 206, and a shared device 208;
the sharing device 208 is connected to the health status determining apparatus 206 and the service request distributing device 30 respectively;
the main detection device 202 is configured to perform health detection on the target service server and obtain a first detection result;
the standby detection device 204 is configured to perform a recheck on the target service server to obtain a second detection result if it is determined that the first detection result meets a recheck condition;
the health status determining device 206 is configured to determine a current health status of the target service server according to the first detection result and the second detection result;
the sharing device 208 is configured to update the shared and stored health status of the target service server according to the current health status of the target service server;
the service request distribution device 30 is configured to obtain the health status of each service server from the shared storage after receiving the service request, where the health status of all the service servers is stored in the shared device 208; and distributing the service request to the healthy service servers according to the health state of each service server.
In the service request distribution system provided in the embodiment of the present invention, the health status of each target service server is uniformly stored in the sharing device 208, and the health status of the target service server in the sharing device 208 is updated in real time according to the current health status of the target service server, so as to ensure that the latest health status information of all service servers is stored in the sharing device 208, and thus, the service request distribution device 30 can quickly obtain the latest health status of all service servers from the sharing device 208, and thus accurately distribute a service request to a healthy service server.
Corresponding to the method in fig. 1, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for checking the health status of the service server is performed.
Specifically, the storage medium can be a general-purpose storage medium, such as a mobile disk, a hard disk, and the like, and when a computer program on the storage medium is executed, the method for checking the health status of the service server can be executed, so that the problem that the health detection result of each service server in the related art is low in accuracy, which results in a high misjudgment rate of health status information of the service server is solved, the accuracy of the determined health status of the service server is further improved, and the service request distribution device 30 can be ensured to accurately distribute the service request to the healthy service server.
The various means provided by the embodiments of the present invention may be specific hardware on the device or software or firmware installed on the device, etc. The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided by the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the present invention in its spirit and scope. Are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. A method for checking health status of a service server, the method comprising:
carrying out health detection on a target service server by using main detection equipment, and obtaining a first detection result;
if the first detection result meets the re-inspection condition, re-inspecting the target service server by using standby detection equipment to obtain a second detection result, and performing health detection on the main detection equipment by using the standby detection equipment to obtain a third detection result;
and determining the current health state of the target service server according to the first detection result and the second detection result, and determining the current health state of the main detection equipment according to the third detection result.
2. The method of claim 1, further comprising:
and if the first detection result is judged to be inconsistent with the preset condition, determining that the first detection result meets the re-inspection condition.
3. The method of claim 1, further comprising:
and if the first detection result is judged to be inconsistent with the latest health state of the target service server, determining that the first detection result meets the re-inspection condition.
4. The method of claim 1, further comprising:
and updating the health state of the main detection equipment in shared storage according to the current health state of the main detection equipment.
5. The method of claim 1, wherein the step of determining the current health status of the target service server according to the first detection result and the second detection result comprises:
if the second detection result is consistent with the first detection result, determining the second detection result as the current health state of the target service server;
and if the second detection result is inconsistent with the first detection result, determining the latest health state of the target service server as the current health state.
6. The method of claim 1, further comprising:
and updating the shared and stored health state of the target business server according to the current health state of the target business server.
7. The method according to claim 6, wherein the step of updating the health status of the target service server in the shared storage according to the current health status of the target service server comprises:
and if the current health state of the target business server is determined to be inconsistent with the latest health state of the target business server, updating the shared and stored health state of the target business server.
8. The method of claim 1, further comprising:
after receiving a detection request, acquiring the health state of each main detection device from a sharing device;
and allocating detection tasks to healthy main detection equipment according to the health state of each main detection equipment.
9. A business server health status checking system, the system comprising: the health state detection device comprises at least one piece of main detection equipment, at least one piece of standby detection equipment and a health state determination device, wherein the main detection equipment is connected with the standby detection equipment;
the main detection device is used for carrying out health detection on the target service server and obtaining a first detection result;
the standby detection equipment is used for performing rechecking on the target service server to obtain a second detection result and performing health detection on the main detection equipment by using the standby detection equipment to obtain a third detection result if the first detection result meets the rechecking condition;
the health status determining device is configured to determine a current health status of the target service server according to the first detection result and the second detection result, and determine a current health status of the main detection device according to the third detection result.
10. The system of claim 9, further comprising: a sharing device;
and the sharing equipment is used for updating the health state of the target business server in shared storage according to the current health state of the target business server.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the preceding claims 1 to 8.
CN201710150369.4A 2017-03-14 2017-03-14 Service server health state checking method and system Active CN107070742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710150369.4A CN107070742B (en) 2017-03-14 2017-03-14 Service server health state checking method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710150369.4A CN107070742B (en) 2017-03-14 2017-03-14 Service server health state checking method and system

Publications (2)

Publication Number Publication Date
CN107070742A CN107070742A (en) 2017-08-18
CN107070742B true CN107070742B (en) 2020-05-08

Family

ID=59621959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710150369.4A Active CN107070742B (en) 2017-03-14 2017-03-14 Service server health state checking method and system

Country Status (1)

Country Link
CN (1) CN107070742B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172829B (en) * 2022-02-10 2022-08-12 统信软件技术有限公司 Server health monitoring method and system and computing equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101776673A (en) * 2010-01-05 2010-07-14 中色(宁夏)东方集团有限公司 Parameter detection method and device
CN204537200U (en) * 2015-03-24 2015-08-05 河北农业大学 A kind of automatic several rechecking devices
CN106302595A (en) * 2015-06-02 2017-01-04 阿里巴巴集团控股有限公司 A kind of method and apparatus that server is carried out physical examination

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100317810B1 (en) * 1998-12-31 2001-12-22 서평원 Reframer and loss of frame check apparatus for digital hierarchy signal
CN102773878B (en) * 2012-07-24 2014-11-05 格兰达技术(深圳)有限公司 Detection method for fully-automatic IC (chip) tape and detection equipment thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101776673A (en) * 2010-01-05 2010-07-14 中色(宁夏)东方集团有限公司 Parameter detection method and device
CN204537200U (en) * 2015-03-24 2015-08-05 河北农业大学 A kind of automatic several rechecking devices
CN106302595A (en) * 2015-06-02 2017-01-04 阿里巴巴集团控股有限公司 A kind of method and apparatus that server is carried out physical examination

Also Published As

Publication number Publication date
CN107070742A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
US9727448B1 (en) Method and system for software application testing recommendations
US9087156B2 (en) Application version release management
US8225131B2 (en) Monitoring service endpoints
US11381451B2 (en) Methods, systems, and computer readable mediums for selecting and configuring a computing system to support a replicated application
EP3239840A1 (en) Fault information provision server and fault information provision method
CN108880897A (en) Acceptance method, device, computer equipment and the storage medium of server
CN110708212A (en) Method and device for tracking call link in distributed system
US20160006640A1 (en) Management computer, allocation management method, and non-transitory computer readable storage medium
CN110413312B (en) Method, device and equipment for managing application program and storage medium
US9880883B2 (en) Virtual resource control system determining new allocation of resources at a hub
US20190007282A1 (en) Quality assessment and decision recommendation for continous deployment of cloud infrastructure components
CN107070742B (en) Service server health state checking method and system
CN108280024B (en) Flow distribution strategy testing method and device and electronic equipment
US11030024B2 (en) Assigning a severity level to a computing service using tenant telemetry data
CN109324914B (en) Service calling method, service calling device and central server
US10067778B2 (en) Management system, recording medium and method for managing virtual machines
GB2582509A (en) Error handling
CN115167896A (en) Method and device for updating software version, storage medium and electronic equipment
CN113132431B (en) Service monitoring method, service monitoring device, electronic device, and medium
CN107203915B (en) Data storage method and device
US9336536B1 (en) Pre-generating blank application instances to improve response time
CN114493561A (en) Information interaction mode replacement method, device, equipment and storage medium
CN113760874A (en) Data quality detection method and device, electronic equipment and storage medium
US20160292606A1 (en) Optimal allocation of hardware inventory procurements
CN110837454A (en) Interface monitoring processing method and server

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