CN112187575A - Method and device for monitoring health state of server - Google Patents

Method and device for monitoring health state of server Download PDF

Info

Publication number
CN112187575A
CN112187575A CN202011027472.8A CN202011027472A CN112187575A CN 112187575 A CN112187575 A CN 112187575A CN 202011027472 A CN202011027472 A CN 202011027472A CN 112187575 A CN112187575 A CN 112187575A
Authority
CN
China
Prior art keywords
server
health
determining
state
characteristic parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011027472.8A
Other languages
Chinese (zh)
Inventor
张阔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202011027472.8A priority Critical patent/CN112187575A/en
Publication of CN112187575A publication Critical patent/CN112187575A/en
Pending legal-status Critical Current

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
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The application discloses a method and a device for monitoring the health state of a server, wherein the method comprises the following steps: judging whether the connection with the server can be successfully established or not; after the connection with the server is successfully established, acquiring a plurality of health characteristic parameters of the server; and determining the health state of the server according to a plurality of health characteristic parameters of the server. According to the method, after the connection with the server is successfully established, the current real health state of the server is determined based on the acquired server health characteristic parameters, and the accuracy of the server health state monitoring method is improved.

Description

Method and device for monitoring health state of server
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for monitoring a health status of a server.
Background
With the increasing scale of the internet, in order to meet the demands of more network users, in a network, a plurality of servers are often arranged to coordinate and process the same service together to improve the system redundancy, and meanwhile, network devices are additionally arranged to manage the servers such as the allocation of service requests. The health degree of the server represents the capability of the server to process the service request of the user terminal and provide corresponding service, and when the additional network equipment aims at balancing load and distributes the service request of the user terminal to each server, whether the server is in a healthy state is generally taken as a reference condition for distributing the service request.
Currently, in the related art, when monitoring the health state of a server, whether the server can be successfully connected with the server is taken as a judgment basis, and if the connection is successful, the server is judged to be in the health state and can normally work. This method of monitoring the health of the server is not accurate.
Disclosure of Invention
The application provides a method and a device for monitoring the health state of a server. The current real health state of the server can be judged, and the service request from the user terminal can be more accurately forwarded to the server, so that the actual experience of the network user is improved.
According to a first aspect of embodiments of the present application, a method for monitoring a health status of a server is provided, including:
judging whether the connection with the server can be successfully established or not;
after the connection with the server is successfully established, acquiring a plurality of health characteristic parameters of the server;
and determining the health state of the server according to a plurality of health characteristic parameters of the server.
According to a second aspect of the embodiments of the present application, there is provided a server health status monitoring device, including a connection determination unit, a feature acquisition unit, and a status determination unit:
a connection judging unit for judging whether the connection with the server can be successfully established;
the system comprises a characteristic acquisition unit, a characteristic analysis unit and a characteristic analysis unit, wherein the characteristic acquisition unit is used for acquiring a plurality of health characteristic parameters of a server after the server is successfully connected;
and the state determining unit is used for determining the health state of the server according to the health characteristic parameters of the server.
According to the technical scheme, whether the network equipment can be successfully connected with the server is used as a prerequisite, a plurality of health characteristic parameters of the server are obtained after the network equipment is successfully connected with the server, the health characteristic parameters can reflect the real state of the server, and the scheme for finally determining the health state of the server according to the health characteristic parameters considers the influence of various problems such as server performance and link congestion on the health state of the server, so that the accuracy of the server health state monitoring method is improved, the basis for distributing service requests to the server is more reliable, and the actual experience of network users is improved.
Drawings
FIG. 1 is a diagram of a networking architecture according to an embodiment of the present application;
fig. 2 is a flowchart of a method for monitoring a health status of a server according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of an embodiment of obtaining health feature parameters of a server according to the present disclosure;
FIG. 4 is a flow chart of an embodiment of determining a health status of a server according to a plurality of health characteristic parameters of the server in the solution of the present application;
fig. 5 is a hardware structure diagram of a network device where a server health status monitoring apparatus provided in the present application is located;
fig. 6 is a block diagram of a server health status monitoring apparatus according to an embodiment of the present disclosure.
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.
Referring to fig. 1, a networking architecture diagram according to an embodiment of the present application is shown.
In a network, a server cluster is often deployed for network services, and the servers in the cluster may be FTP (File Transfer Protocol) servers, HTTP (Hypertext Transfer Protocol) servers, and the like.
Meanwhile, in order to manage a plurality of servers in the cluster, a network device is additionally arranged, and the additionally arranged network device is responsible for receiving the service request from the user terminal and then distributing the service request of the user terminal to the managed server according to a certain distribution rule.
The network device performing server management is generally called a Load Balancer (LB), and when a service request is allocated to a server, it is often determined whether the server is in a healthy state as a criterion for whether the service request is allocated. The quality of the health state of the server reflects the level of the service capability of the server for providing the service, and the load balancing equipment can periodically monitor the health state of the servers in the cluster so as to judge whether each server node can continuously provide the service at present.
Under the networking architecture shown in fig. 1, a method for monitoring the health status of a server provided in the present application is first described, and the method is applied to a load balancing device, referring to fig. 2, where the method includes the following steps:
step 202, determine whether the connection can be successfully established with the server.
According to the scheme of the embodiment of the application, the monitoring of the health state of the server is based on the condition that whether the connection with the server can be successfully established or not, the connection with the server is established in a mode that the server is logged in by using a user name and a password which are registered in the server in advance, if the login is successful, the connection with the server is determined to be successful, and the step 204 is continuously executed.
And when the server cannot be logged in, determining that the connection with the server cannot be successfully established, determining that the server is in an unhealthy state, and not executing subsequent steps.
And step 204, after the connection with the server is successfully established, acquiring a plurality of health characteristic parameters of the server.
The health characteristic parameters of the server can reflect the self performance of the server, the congestion of a link and other conditions, and can reflect the real health state of the server. After the condition of successfully establishing connection with the server is met, the health characteristic parameters of the server can be obtained. In the embodiment of the present application, the health characteristic parameter of the server and the obtaining method thereof are not limited.
Step 206, determining the health status of the server according to the health characteristic parameters of the server.
The load balancing device may determine the actual health status of the server based on the health characteristic parameters of the server obtained in step 204.
In the scheme of the embodiment of the application, the load balancing device can periodically monitor the health state of each server managed by the load balancing device, and after a service request of a user terminal arrives, the load balancing device distributes the service request to each server according to the health state of each server determined by the period closest to the current time; the load balancing device can also monitor the health state of each server in the background after the service request arrives, and distribute the service request according to the health state of each server determined by the monitoring.
The method for distributing the service requests by the load balancing device according to the health states of the servers is not limited, and the method includes distributing the service requests of a plurality of user terminals to one server with the best health state, and distributing the service requests to a plurality of servers in the health state one by one.
The method for monitoring the health state of the server provided by the application takes whether the load balancing equipment can successfully establish connection with the server as a prerequisite condition, and acquires a plurality of health characteristic parameters of the server after the connection with the server is successfully established; the method comprises the steps of determining the health state of the server according to a plurality of health characteristic parameters of the server, determining the health characteristic parameters according to the health state of the server, relating to the self performance of the server, the congestion state of a link and the like, reflecting the real health state of the server, improving the accuracy of the server health state monitoring method, and improving the actual experience of network users due to the fact that the load balancing equipment distributes the service requests of the user terminals to the server more reliably.
In order to make those skilled in the art better understand the technical solution in the present application, the following step 204 and step 206 in the method shown in fig. 2 are further described in detail with reference to the accompanying drawings, and the embodiments described later are only a part of embodiments of the present application, but not all embodiments.
In the following description, an FTP server is taken as an example, and the FTP server is based on an FTP protocol, and the FTP protocol is carried on a tcp (transmission Control protocol) protocol. The FTP server is used for providing file storage and access service on the Internet, the FTP server stores file resources, the user terminal obtains the file resources stored on the FTP server through a resource downloading request, and the load balancing device manages the FTP server cluster.
Fig. 3 is a flowchart illustrating an embodiment of acquiring a plurality of health feature parameters of a server after a connection is successfully established with the server in step 204 according to the present disclosure, and includes the following steps:
step 2040, a plurality of resource download requests are initiated to the server at the same time.
Step 2042, recording the number of resource downloading requests correctly responded by the server as the first health characteristic parameter of the server.
The FTP server to be monitored for the health state is stored with a plurality of detection resources in advance, and after the FTP server is determined to be successfully connected with the FTP server, the health characteristic parameters of the FTP server can be acquired by downloading the detection resources. The present application does not specifically limit the type and number of the sounding resources.
In one example, several probe resources dedicated to health status monitoring may be pre-stored in the FTP server.
In another example, several user file resources stored in the FTP server can also be used as the probe resource, which is not particularly limited in this application.
For example, 3 probe resources are preset on the FTP server to be monitored, and after the connection with the FTP server is successfully established, the load balancing device can simultaneously initiate downloading requests for the 3 probe resources to the server, so that the number range of the resource downloading requests that the FTP server can correctly respond to is 0 to 3, and obviously, the health state of the FTP server when correctly responding to 3 resource downloading requests is better than the health state of the FTP server when correctly responding to 1 resource downloading request.
And the load balancing equipment can record the quantity of the resource downloading requests correctly responded by the FTP server and takes the quantity as a first health characteristic parameter of the FTP server.
Step 2044, after the resource download is completed, determining the average consumed time of the resource download as the second health characteristic parameter of the server.
After a resource downloading request is initiated to 3 detection resources on an FTP server to be monitored simultaneously, assuming that the FTP server correctly responds to the downloading requests of the detection resources 1 and the detection resources 2, then the two detection resources start to be transmitted between the FTP server and the load balancing equipment until the downloading is completed, wherein the time consumed for completing the downloading of the detection resources 1 is 8 seconds, the time consumed for completing the downloading of the detection resources 2 is 6 seconds, the average time consumed for downloading the resources is determined to be 7 seconds, and the average time consumed for completing the downloading of the resources is stored as a second health characteristic parameter of the FTP server.
Step 2046, in the resource downloading process, the size of the TCP sliding window is extracted.
Step 2048, determining a third health characteristic parameter of the server according to the size of the TCP sliding window.
The FTP protocol is carried on the TCP protocol, and a TCP sliding window mechanism is used in the data transmission of the two parties according to the TCP protocol rule. The TCP sliding window mechanism is to dynamically adjust the size of a data window according to the link congestion status, the size of a buffer area of the two communicating parties when performing TCP communication, so as to control the flow rate during data transmission.
When the load balancing equipment downloads the detection resources from the FTP server, the size of a TCP sliding window in the data interaction process of the two parties is extracted, and the larger the TCP sliding window is, the better the health state of the FTP server is.
The operation of extracting the size of the TCP sliding window may be performed periodically, or may be performed at a plurality of time points in the interactive process, or may randomly extract the size of one TCP sliding window in the interactive process, which is not limited in the embodiment of the present application.
And when the detection resource is downloaded, determining a third health characteristic parameter of the FTP server according to the size of one or more TCP sliding windows extracted in the detection resource transmission process.
In one example, the load balancing device extracts a plurality of TCP sliding window sizes, the average of which may be taken as the third health characteristic parameter of the FTP server.
In another example, the load balancing device extracts a TCP sliding window size at a certain time point during the transmission of the probe resource, and may use the extracted TCP sliding window size as the third health characteristic parameter of the FTP server.
The first, second, and third health characteristic parameters and the acquiring method thereof described in the embodiments of the present application are only typical server health characteristic parameters to explain the specific implementation of the method of the present application, and other health characteristic parameters and acquiring methods thereof capable of reflecting the true state of the server are applied to the scheme described in the present application, and are also within the protection scope of the present application.
Fig. 4 is a flowchart of an embodiment of determining a health status of a server according to a plurality of health characteristic parameters of the server in step 206 in the present technical solution, and includes the following steps:
step 2062, determining the health value of the server according to the health characteristic parameters of the server.
After acquiring a plurality of health characteristic parameters of the server, in order to accurately judge the current health state of the server, the health value of the server can be determined based on the health characteristic parameters of the server according to the stored rules, and the health value of the server can directly represent the health state of the server.
The rule for determining the health value of the server in the embodiment of the present application includes a weighted summation of the health characteristic parameters or their inverses, wherein, in order to equalize the influence of each health characteristic parameter on the health value, the respective weights of the health characteristic parameters may be determined based on a normalization principle.
Taking the first, second, and third health characteristic parameters obtained in the FTP server health status monitoring shown in fig. 3 as examples:
the first health characteristic parameter is the number of concurrent resource downloading requests correctly responded by the FTP server, and is a natural number. The first health characteristic parameter is often positively correlated with the health status of the FTP server, and the weight 1 of the first health characteristic parameter may be set to 1. In performing the weighted calculation of the server health value, the product of the first health characteristic parameter and the weight 1 may be calculated.
The second health characteristic parameter is the average elapsed time to complete the resource download. Generally, the size of the value is affected by the size of the resource and the transmission rate in seconds, for example, the transmission of the html file in the HTTP server generally needs several hundred milliseconds, and in the embodiment of the present application, the time consumed for downloading the resource stored in the FTP server is about 10 seconds, which is common. The second health characteristic parameter is often inversely related to the health status of the FTP server, and the weight 2 of the second health characteristic parameter may be set to 10. In performing the weighted calculation of the server health value, the product of the inverse of the second health characteristic parameter and the weight 2 may be calculated.
The third health characteristic parameter is the average window size of a TCP sliding window in the resource transmission process, and is a natural number less than or equal to 65535. The third health characteristic parameter tends to be positively correlated with the FTP server health status, and the weight 3 of the third health characteristic parameter may be set to 1/10000. In performing the weighted calculation of the server health value, the product of the third health characteristic parameter and the weight 3 may be calculated.
Thereby, the health value of the FTP server is determined as:
first health characteristic parameter + 10/second health characteristic parameter + third health characteristic parameter/10000
In one monitoring of the health state of the FTP server, assuming that the first health characteristic parameter of the FTP server is 2, the second health characteristic parameter is 10, and the third health characteristic parameter is 34000, it may be determined that the health value of the FTP server at this time is 6.4.
Step 2064, comparing the health value of the server with a preset server health threshold, determining that the server is in a healthy state when the health value of the server is greater than or equal to the server health threshold, and determining that the server is in an unhealthy state when the health value of the server is less than the server health threshold.
Taking the networking architecture shown in fig. 1 as an example, there are one load balancing device, 3 user terminals and 3 FTP servers in the networking. In the primary monitoring of the load balancing device on the health state of each server in the FTP server cluster, the preset server health threshold value is 8.4, and the monitoring process and the monitoring result are as follows:
and the FTP server 1 cannot be successfully connected, subsequent steps are not executed, and the FTP server 1 is determined to be in an unhealthy state.
After the connection with the FTP server 2 is successfully established, the first health characteristic parameter of the FTP server 2 is obtained to be 2, the second health characteristic parameter of the FTP server is obtained to be 8, the third health characteristic parameter of the FTP server is obtained to be 30012, the health value of the FTP server 2 is 6.1262, and the health value is smaller than the health threshold value of 8.4, and the FTP server 2 is determined to be in a non-health state.
After the FTP server 3 is successfully connected, the first health characteristic parameter is 3, the second health characteristic parameter is 4, the third health characteristic parameter is 64635, the health value of the FTP server 3 is 11.9635 and is larger than the health threshold value 8.4, and the FTP server 3 is determined to be in a non-health state.
At this time, after receiving a resource downloading request from the user terminal, the load balancing device allocates the resource downloading request to the only FTP server 3 currently in the healthy state according to the monitoring result of the healthy state of the FTP server, and the FTP server 3 receives the request and then normally responds to the request, processes the resource downloading request, responds and feeds back the response to the user terminal, thereby completing the whole interactive process.
In the embodiment of the present application, the server health threshold determination process includes calculating a health value of a server after determining that the server is in a healthy state of normal operation, and storing the health value as the server health threshold to be used as a criterion for subsequent comparison and judgment.
Further, the health threshold of the server may also be dynamically changed after initial setting, for example, the load balancing device may periodically monitor the health state of each server, and after sorting the health values of each server obtained in the present period, a median value may be taken as the health threshold used in monitoring the health state of each server in the next period, so as to periodically update the health threshold of the server.
Based on the present application, other embodiments for determining the health status of the server after obtaining the server health characteristic parameter are also within the scope of the present application. For example, after determining the server health value, the method for determining the server health status is not limited to be determined by comparing with a preset server health threshold, in another embodiment, the health threshold may not be set, after the load balancing device periodically obtains the server health values, the server health values are sorted according to size, and server nodes ranked in the top 10% or other proportion of all servers are determined as being in a health status, and the specific proportion is not limited.
Corresponding to the embodiment of the monitoring method for the health state of the server, the application also provides an embodiment of a monitoring device for the health state of the server.
The embodiment of the monitoring device for the health state of the server provided by the application can be applied to network equipment for managing the server cluster. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the network device where the software implementation is located as a logical means. From a hardware aspect, as shown in fig. 5, the present application is a hardware structure diagram of a network device where a monitoring apparatus for monitoring a health state of a server is located, where the network device where the apparatus is located in the embodiment may further include other hardware according to an actual function of the network device, in addition to the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 5, and details of this are not repeated.
Referring to fig. 6, a block diagram of a server health status monitoring apparatus provided in an embodiment of the present application is shown, where the monitoring apparatus includes a connection determining unit 610, a feature obtaining unit 620, and a status determining unit 630:
the connection determining unit 610 is configured to determine whether a connection can be successfully established with the server.
A feature obtaining unit 620, configured to obtain a plurality of health feature parameters of the server after a connection is successfully established with the server.
A state determining unit 630, configured to determine a health state of the server according to a plurality of health feature parameters of the server.
Optionally, the connection determining unit 610 is further configured to determine that the server is in an unhealthy state when the connection cannot be successfully established with the server.
Optionally, the feature obtaining unit 620, after successfully establishing a connection with the server, is specifically configured to, when obtaining a plurality of health feature parameters of the server:
simultaneously initiating a plurality of resource downloading requests to the server;
and recording the quantity of resource downloading requests correctly responded by the server as a first health characteristic parameter of the server.
Further, after the resource downloading is completed, the average consumed time of the resource downloading is determined and used as a second health characteristic parameter of the server.
Further, in the resource downloading process, the size of a TCP sliding window is extracted, and a third health characteristic parameter of the server is determined according to the size of the TCP sliding window.
Optionally, when determining the health status of the server according to the plurality of health characteristic parameters of the server, the status determining unit 630 is specifically configured to:
determining a health value of the server according to a plurality of health characteristic parameters of the server;
comparing the health value of the server with a preset server health threshold value, determining that the server is in a healthy state when the health value of the server is greater than or equal to the server health threshold value,
determining that the server is in an unhealthy state when the health value of the server is less than the server health threshold.
Further, the monitoring apparatus further includes a request allocating unit 640, configured to allocate a service request to the server according to the health status of the server.
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.
Embodiments of the subject matter and the functional operations described in this specification can be implemented in: digital electronic circuitry, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions, encoded on a tangible, non-transitory program carrier for execution by, or to control the operation of, data processing apparatus. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode and transmit information to suitable receiver apparatus for execution by the data processing apparatus. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).
Computers suitable for executing computer programs include, for example, general and/or special purpose microprocessors, or any other type of central processing unit. Generally, a central processing unit will receive instructions and data from a read-only memory and/or a random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks. However, a computer does not necessarily have such a device. Moreover, a computer may be embedded in another device, e.g., a mobile telephone, a Personal Digital Assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device such as a Universal Serial Bus (USB) flash drive, to name a few.
Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., an internal hard disk or a removable disk), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. In other instances, features described in connection with one embodiment may be implemented as discrete components or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Further, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
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 (10)

1. A method for monitoring the health status of a server, the method comprising:
judging whether the connection with the server can be successfully established or not;
after the connection with the server is successfully established, acquiring a plurality of health characteristic parameters of the server;
and determining the health state of the server according to a plurality of health characteristic parameters of the server.
2. The method of claim 1, further comprising:
when the connection with the server cannot be successfully established, determining that the server is in an unhealthy state.
3. The method of claim 1, wherein the obtaining health characteristic parameters of the server comprises:
simultaneously initiating a plurality of resource downloading requests to the server;
and recording the quantity of resource downloading requests correctly responded by the server as a first health characteristic parameter of the server.
4. The method of claim 3, wherein the obtaining health characteristic parameters of the server further comprises:
and after the resource downloading is finished, determining the average time consumption of the resource downloading as a second health characteristic parameter of the server.
5. The method of claim 3, wherein the obtaining the health characteristic parameter of the server comprises:
extracting the size of a TCP sliding window in the resource downloading process;
and determining a third health characteristic parameter of the server according to the size of the TCP sliding window.
6. The method of claim 1, wherein determining the health status of the server according to a number of health characteristic parameters of the server comprises:
determining a health value of the server according to a plurality of health characteristic parameters of the server;
comparing the health value of the server with a preset server health threshold value,
determining that the server is in a healthy state when the health value of the server is greater than or equal to the server health threshold,
determining that the server is in an unhealthy state when the health value of the server is less than the server health threshold.
7. The method of claim 6, wherein the determining of the server health threshold comprises:
after determining that a server is in a healthy state, calculating a health value of the server as the health threshold.
8. The method of claim 1, further comprising:
and distributing a service request to the server according to the health state of the server.
9. The device for monitoring the health state of the server is characterized by comprising a connection judging unit, a feature acquiring unit and a state determining unit:
the connection judging unit is used for judging whether the connection with the server can be successfully established or not;
the characteristic acquisition unit is used for acquiring a plurality of health characteristic parameters of the server after the server is successfully connected with the server;
the state determining unit is used for determining the health state of the server according to a plurality of health characteristic parameters of the server.
10. The apparatus according to claim 9, wherein the state determination unit is specifically configured to:
determining a health value of the server according to a plurality of health characteristic parameters of the server;
comparing the health value of the server with a preset server health threshold value,
determining that the server is in a healthy state when the health value of the server is greater than or equal to the server health threshold,
determining that the server is in an unhealthy state when the health value of the server is less than the server health threshold.
CN202011027472.8A 2020-09-25 2020-09-25 Method and device for monitoring health state of server Pending CN112187575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011027472.8A CN112187575A (en) 2020-09-25 2020-09-25 Method and device for monitoring health state of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011027472.8A CN112187575A (en) 2020-09-25 2020-09-25 Method and device for monitoring health state of server

Publications (1)

Publication Number Publication Date
CN112187575A true CN112187575A (en) 2021-01-05

Family

ID=73944953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011027472.8A Pending CN112187575A (en) 2020-09-25 2020-09-25 Method and device for monitoring health state of server

Country Status (1)

Country Link
CN (1) CN112187575A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882868A (en) * 2021-03-17 2021-06-01 四川奥诚科技有限责任公司 VoLTE health monitoring method and device, electronic equipment and storage medium
CN113328885A (en) * 2021-05-27 2021-08-31 中国工商银行股份有限公司 Network health degree evaluation method, device, electronic equipment, medium and program product
CN114500278A (en) * 2021-12-30 2022-05-13 武汉思普崚技术有限公司 Method and device for upgrading feature library through proxy server
CN116366657A (en) * 2023-05-31 2023-06-30 天翼云科技有限公司 Data request scheduling method and system of cache server
CN112882868B (en) * 2021-03-17 2024-05-03 四川奥诚科技有限责任公司 VoLTE health monitoring method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1400535A (en) * 2001-07-26 2003-03-05 华为技术有限公司 System for raising speed of response of server in application layer exchange and its method
CN102147761A (en) * 2010-02-10 2011-08-10 英业达股份有限公司 Method for detecting health status of server system
CN102546292A (en) * 2011-12-16 2012-07-04 深信服网络科技(深圳)有限公司 Method and device for detecting healthy status of server application
CN103617110A (en) * 2013-11-11 2014-03-05 国家电网公司 Server device condition maintenance system
CN104065508A (en) * 2014-06-23 2014-09-24 浪潮(北京)电子信息产业有限公司 Application service health examination method, device and system
CN105939201A (en) * 2015-07-13 2016-09-14 杭州迪普科技有限公司 Method and device for checking state of server
US20190199790A1 (en) * 2017-12-22 2019-06-27 A10 Networks, Inc. Managing health status of network devices in a distributed global server load balancing system
CN110351311A (en) * 2018-04-02 2019-10-18 亿度慧达教育科技(北京)有限公司 Load-balancing method and computer storage medium
CN110381043A (en) * 2019-07-08 2019-10-25 杭州迪普科技股份有限公司 Server health detecting method, device, electronic equipment based on SSL
US10505818B1 (en) * 2015-05-05 2019-12-10 F5 Networks. Inc. Methods for analyzing and load balancing based on server health and devices thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1400535A (en) * 2001-07-26 2003-03-05 华为技术有限公司 System for raising speed of response of server in application layer exchange and its method
CN102147761A (en) * 2010-02-10 2011-08-10 英业达股份有限公司 Method for detecting health status of server system
CN102546292A (en) * 2011-12-16 2012-07-04 深信服网络科技(深圳)有限公司 Method and device for detecting healthy status of server application
CN103617110A (en) * 2013-11-11 2014-03-05 国家电网公司 Server device condition maintenance system
CN104065508A (en) * 2014-06-23 2014-09-24 浪潮(北京)电子信息产业有限公司 Application service health examination method, device and system
US10505818B1 (en) * 2015-05-05 2019-12-10 F5 Networks. Inc. Methods for analyzing and load balancing based on server health and devices thereof
CN105939201A (en) * 2015-07-13 2016-09-14 杭州迪普科技有限公司 Method and device for checking state of server
US20190199790A1 (en) * 2017-12-22 2019-06-27 A10 Networks, Inc. Managing health status of network devices in a distributed global server load balancing system
CN110351311A (en) * 2018-04-02 2019-10-18 亿度慧达教育科技(北京)有限公司 Load-balancing method and computer storage medium
CN110381043A (en) * 2019-07-08 2019-10-25 杭州迪普科技股份有限公司 Server health detecting method, device, electronic equipment based on SSL

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882868A (en) * 2021-03-17 2021-06-01 四川奥诚科技有限责任公司 VoLTE health monitoring method and device, electronic equipment and storage medium
CN112882868B (en) * 2021-03-17 2024-05-03 四川奥诚科技有限责任公司 VoLTE health monitoring method and device, electronic equipment and storage medium
CN113328885A (en) * 2021-05-27 2021-08-31 中国工商银行股份有限公司 Network health degree evaluation method, device, electronic equipment, medium and program product
CN113328885B (en) * 2021-05-27 2022-09-27 中国工商银行股份有限公司 Network health degree evaluation method, device, electronic equipment, medium and program product
CN114500278A (en) * 2021-12-30 2022-05-13 武汉思普崚技术有限公司 Method and device for upgrading feature library through proxy server
CN114500278B (en) * 2021-12-30 2024-04-09 武汉思普崚技术有限公司 Method and device for upgrading feature library through proxy server
CN116366657A (en) * 2023-05-31 2023-06-30 天翼云科技有限公司 Data request scheduling method and system of cache server

Similar Documents

Publication Publication Date Title
CN112187575A (en) Method and device for monitoring health state of server
CN109167812B (en) Method for evaluating service quality and determining adjustment strategy, server and storage medium
CN108075934B (en) Network quality monitoring method, device and system
CN101815033B (en) Method, device and system for load balancing
US20180159920A1 (en) Server load balancing method, apparatus, and server device
CN110795203B (en) Resource scheduling method, device, system and computing equipment
JP2005521359A (en) Method, system and computer program for measuring network operating characteristics of software applications
CN106817314B (en) Big data acquisition method, device and system
CN107979539B (en) Message processing method and device
CN111162934A (en) Business service test method and device, storage medium and electronic device
US10931548B1 (en) Collecting health monitoring data pertaining to an application from a selected set of service engines
CN107634850B (en) A kind of application state acquisition methods and its equipment, storage medium, server
CN110417910B (en) Notification message sending method, device, server and storage medium
CN112035260B (en) Service request processing method, device, computer equipment and storage medium
CN108985048B (en) Simulator identification method and related device
CN109510878A (en) A kind of long connection session keeping method and device
CN108763251B (en) Personalized recommendation method and device for nuclear product and electronic equipment
CN111860568B (en) Method and device for balanced distribution of data samples and storage medium
CN112749009A (en) Server scheduling method and device
CN111431730A (en) Service processing method, system, computer equipment and readable medium
CN108156024A (en) One kind is based on distributed website availability detection method, system and storage medium
CN104992060A (en) User age estimation method and apparatus
CN114172910B (en) Method, device, equipment and medium for dynamically allocating load based on memory management
CN111190801A (en) Recommendation system testing method and device and electronic equipment
CN111625375B (en) Account reservation method and device, storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210105