CN101043385A - System and method for detecting service healthiness - Google Patents

System and method for detecting service healthiness Download PDF

Info

Publication number
CN101043385A
CN101043385A CN200610061152.8A CN200610061152A CN101043385A CN 101043385 A CN101043385 A CN 101043385A CN 200610061152 A CN200610061152 A CN 200610061152A CN 101043385 A CN101043385 A CN 101043385A
Authority
CN
China
Prior art keywords
host
service
inquiry
state
query
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200610061152.8A
Other languages
Chinese (zh)
Other versions
CN100461719C (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.)
Li Wenlu
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100611528A priority Critical patent/CN100461719C/en
Priority to PCT/CN2007/001588 priority patent/WO2007147318A1/en
Publication of CN101043385A publication Critical patent/CN101043385A/en
Application granted granted Critical
Publication of CN100461719C publication Critical patent/CN100461719C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The related detection system for service health level comprises: at least one host, and a proposed device connected with the host for detecting its health level. The relative detection method comprises: in query-respond procedure, the proposed device initiates a query request for health level, and the host responds the request; in the register-notify procedure, the proposed device registers service in the host, the latter responds the register; in the register-query procedure, the proposed device registers service in the host, and the latter responds the service state, and the proposed device also queries the service and host state.

Description

Service health degree detection system and method
Technical Field
The present invention relates to a communication network service health degree detection technology, and in particular, to a service health degree detection system and method.
Background
With the development of IP technology, the popularization of broadband, and the exponential growth of network users, the network traffic on the Internet is rapidly expanding, and various Internet services are increasing. In order to solve the above problem, a group of servers is usually used to provide services to users, and provide a single interface to the outside (i.e. the group of servers only provides one IP address to the outside for service).
Referring to fig. 1, fig. 1 is a solution to the above problem in the prior art, and a server load balancing device is used to detect the health of a server: the RS1 to RS7 are a group of servers that ultimately provide services, the server load balancing device is disposed in front of the group of servers, the server load balancing device has a group of virtual servers VS1 to VS3, each virtual server corresponds to a certain service class, such as service classes 1 to 3 in the figure, after a user service request reaches an operator service network, the service request is transmitted to the server load balancing device first, the server load balancing device distributes the service request to different virtual servers according to the class of the user service request, and the virtual servers forward the service request to corresponding background servers for processing. In this process, in order to ensure that the service achieves the effect satisfactory to the user, the server load balancing device needs to check the health of the background server to avoid distributing the user request to the device which cannot provide the service.
By health is meant the state of the relevant application service or host resource on the server, wherein,
the host resource health status includes: CPU utilization rate, memory utilization rate, service bandwidth occupancy rate, other key resources, such as process number, thread number, socket resource number, etc
The application service health status includes: the number of key resources affecting the response of the user, the concurrent processing capability, the number of currently consumed resources, resources including socket, application available thread, counter, background connection, memory, hard disk and the like, and all places where bottlenecks may exist;
generally, a server failure state is represented by a link failure, a host failure, and an application failure (also referred to as a service failure), and correspondingly, when the server failure is recovered, there are three other states, namely, a link recovery state, a host recovery state, and an application (service) recovery state, and how to detect these states to ensure reliability of the service has become a problem generally concerned by communication service operators.
The currently known methods for detecting the health of the server include the following methods:
in the first technical scheme, server health degree inspection is performed by using an Ethernet OAM technology.
OAM refers to Operation, Administration, and Maintenance (Maintenance), and the functions of the technology include: monitoring the performance, generating maintenance information, and evaluating the stability of the network according to the information; detecting network faults by a regular query method to generate various maintenance and alarm information; the normal operation of the network is ensured by scheduling or switching to other entities and bypassing the failed entity; the fault information is communicated to a management entity.
Ethernet OAM provides two-layer end-to-end monitoring and detection, and can detect the link state of server connection through two-layer switching equipment. However, the technology can only detect the link state, cannot detect the state of the server host, and has great dependence on peripheral equipment, which is not beneficial to application.
In the second technical scheme of the prior art, a ping method is used for monitoring degree check.
The monitoring degree check by using the ping method is a common server detection method, and the realization method is very simple: and sending ping messages to each appointed IP address by adopting a timer on the equipment at regular intervals, detecting whether a response exists, if so, indicating that the server is healthy, and otherwise, indicating that the server has failed.
Although the method has the advantages of simple implementation method, good technical expansibility and the like, the method can be shielded by a host, meanwhile, frequent pings are easily identified as attack messages, related ping services need to be started on the preposed equipment, IP addresses need to be configured on the security router and the host, and the method can conflict with a monitoring network.
In the third prior art, health degree examination is performed by using an arp (address resolution protocol) method.
The inspection of the monitoring degree by the arp method is a common method, and the method is implemented as follows: the method comprises the steps of periodically sending an arp message to each appointed IP address by adopting a timer on equipment for carrying out address request, detecting an arp response message, if the arp response message has a response, indicating that a server is healthy, and otherwise indicating that the server is invalid.
The method has the advantages of simple implementation method, small attacked risk and the like. But the method can only be applied to two-layer network networking and has poor expansibility; only host state detection can be provided, and service state detection cannot be provided; may conflict with the monitoring network.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method for detecting service health, which is used to implement comprehensive health detection for a server, so as to improve reliability of service processing and increase user satisfaction.
Another objective of the present invention is to provide a service health detection system, which is used to implement comprehensive health detection for a server, so as to improve reliability of service processing and increase user satisfaction.
In order to achieve the above object, the present invention is realized by:
the invention discloses a service health degree detection system, which comprises a preposed device and a plurality of host computers, wherein the preposed device comprises a plurality of host computers
A host for providing a service to a user;
and the front-end equipment is used for acquiring the service state and the host state of the host, judging the health degree of the host according to the acquired state and distributing service to the host.
The front-end equipment is respectively connected with the host computers and carries out health degree detection on the host computers.
The front-end device further comprises a query end used for initiating a query request to the host computer.
The query request includes a service status query request and a host status query request.
The query side of the front-end device further comprises a query client and a query agent, wherein,
the query client is used for obtaining the host state and the service state of the host;
and the query agent is used for transmitting the query request initiated by the query client and packaging and analyzing the information of the query client.
The host further comprises a query agent and a service responder, wherein,
the query agent is used for initiating, responding and forwarding a service state or host state query request from the front-end equipment, and forwarding the host state and the service state of the host to the front-end equipment;
and the service response end is used for providing service for the user and responding to the service state inquiry request initiated by the inquiry agent.
The host further comprises a storage module for storing the host state and the service state of the host.
The invention also provides a service health degree detection method, which comprises the following steps:
A. the preposed equipment sends a health degree query request to the host computer;
B. the host computer acquires corresponding health degree information according to the type of the query request;
C. the host sends a health query response to the front-end device.
The step B further comprises the following steps:
b1, the host inquiry agent judges the type of the inquiry request, if the type of the inquiry request is the instant service state, the step B2 is executed; if the query request type is the cached service state or the host state, executing step B3;
b2, the inquiry agency sends an instant service state inquiry request to the service response terminal, and the service response terminal feeds back corresponding service state information to the inquiry agency;
b3, the inquiry proxy reads the service state of the local cache or inquires the host state to obtain the corresponding service state or host state information.
And the step B2 further includes determining that the service has failed if the query broker does not receive the instant service status information of the service responder under the set condition.
Step B3 further includes confirming that the local cache mechanism is invalid if the query agent cannot read the service status of the local cache under the set condition.
The step C in the method further comprises the following steps: the host inquiry agent sends health degree response information to the front equipment inquiry end, wherein the health degree response information comprises an instant service state, a cache mechanism state or a host state of the host.
The invention also discloses a second service health degree detection method, which comprises the following steps:
D. the preposed equipment inquiry end carries out local inquiry registration;
E. the prepositive equipment carries out inquiry service registration to the host computer;
F. and the host sends the registered service health degree information to the front-end equipment.
The step E further comprises the following steps:
e1, the front device inquiry end sends inquiry registration request to the host inquiry agent;
e2, the host inquiry agent judges the type of inquiry registration, if it is the service state inquiry, the step E3 is executed; if the query is a host status query, go to step E4;
e3, the host inquiry agent sends a service state inquiry registration request to the host service response end, and the service response end correspondingly inquires and registers the service state;
e4, host inquiry agent completes the host status inquiry registration.
The step F further comprises the following steps:
f1, the front-end device judges whether the query service on the host computer is registered successfully;
f2, the front-end device judges the health degree of the host computer inquiry agent;
and F3, if the inquiry service registration is successful and the inquiry agent health degree of the host is good, the host reports the service state and the host state acquired by the registration service to the front-end device.
The invention also discloses a third service health degree detection method, which comprises the following steps:
G. the preposed equipment inquiry end carries out local inquiry registration;
H. the prepositive equipment carries out inquiry service registration to the host computer;
I. the host computer sends registered service health degree information to the front-end equipment;
J. the front-end device actively initiates service state query or host state query to the host.
The step H further comprises the following steps:
h1, the front device inquiry end sends inquiry registration request to the host inquiry agent;
h2, the host inquiry agent judges the type of inquiry registration, if it is the service state inquiry, the step E3 is executed; if the query is a host status query, go to step E4;
h3, the host inquiry agent sends a service state inquiry registration request to the host service response end, and the service response end correspondingly inquires and registers the service state;
h4, host inquiry agent completes the inquiry registration of host state.
The step I further comprises the following steps:
i1, the front-end device judges whether the query service on the host computer is registered successfully;
i2, the front-end equipment judges the health degree of the host computer inquiry agent;
and I3, if the inquiry service registration is successful and the inquiry agent health degree of the host is good, the host reports the service state and the host state acquired by the registration service to the front-end device.
The step J further comprises the following steps:
j1, the front-end device sends a health degree query request to the host computer;
j2, the host computer obtains corresponding health degree information according to the type of the query request;
j3, the host sends a health query response to the front-facing device.
The step of the host computer obtaining the corresponding health degree information according to the type of the query request further comprises: the host inquiry agent judges whether the inquiry request of the front-end equipment is registered; if the query request is registered, the host queries the function called back and registered by the proxy to acquire service state or host state information; if the query request is not registered and the query request is in the instant service state, the host query agent sends a request for querying the instant service state to a host service response end; if the query request is not registered and the query request is the cached service state or the host state, the host querying agent obtains the cached service state or the host state.
In short, the invention provides a system capable of comprehensively checking the health degree of related services on a host computer, and also provides three service health degree detection methods, and the comprehensive health degree check of the related services can be realized by combining the three methods. The invention obtains the exact state of the related service by checking the related resource items, provides a sufficient basis for the selection of the background host for the front-end device and the distribution of the service, and particularly provides a complete health degree checking method and a scheme for the service which only receives and does not transmit, thereby achieving the effects of improving the reliability of business processing and increasing the satisfaction degree of users.
Drawings
FIG. 1 is a schematic diagram of a system for detecting server health using a server load balancing device in the prior art;
FIG. 2 is a schematic diagram of a service health detection system according to an embodiment of the present invention;
FIG. 3 is a flow chart of a query-response health detection method in an embodiment of the present invention;
FIG. 4 is a flowchart of a registration-notification health detection method according to an embodiment of the present invention;
fig. 5 is a flowchart of a registration-query health detection method according to an embodiment of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
The service health degree detection system provided by the invention comprises the user equipment, the operator service network and the operator service equipment, wherein after the service request of the user equipment is transmitted to the operator service network, the preposed equipment in the operator service equipment carries out service health degree check on the host computer and distributes the service to the host computer with good health degree. Through the system, the host state and the service state of the host can be detected without omission, the preposed equipment is ensured not to distribute the user service request to the host which can not provide the service when the service is distributed, meanwhile, the service health degree detection with different frequencies can be realized between the preposed equipment and the host, and the purposes of improving the detection efficiency and saving the system resources are achieved.
The service health degree detection method provided by the invention is characterized in that the preposed equipment comprising the inquiry end initiates a health degree inquiry request to the host comprising the inquiry agent and the service response end, inquires the host state and the service state of the host, and the host sends the service state and the host state response to the preposed equipment. By the method, the host state and the service state of the host can be detected without omission, the preposed equipment is ensured not to distribute the user request to the host which can not provide the service when the service is distributed, and meanwhile, the service health degree detection with different frequencies can be realized between the preposed equipment and the host, so that the aims of improving the detection efficiency and saving the system resources are fulfilled. The embodiment of the invention provides three specific implementation methods: query-response methods, registration-notification methods, and registration-query methods.
The host state, i.e. the host health state, in the above method and system includes: the state of key resources such as CPU utilization rate, memory utilization rate, service bandwidth occupancy rate, process number, thread number, socket resource number and the like; the service state, i.e., the service health state, includes: concurrent processing capacity, the number of currently consumed resources, the number of socket resources, application available threads, counters, background connections, the state of other application table entry resources such as a memory, a hard disk, the number of sessions, the number of nat addresses and the like.
Referring to fig. 2, a schematic diagram of the service health detection system of the present invention is shown. The system includes a user, an operator service network, and an operator service device. The operator service equipment comprises a front-end device and a host. The front-end device is used for detecting the service health degree of the host. The prepositive equipment is provided with an inquiry end;
the query end is a general name of a query client and a query agent on the front-end equipment and is used for initiating a query request to the host computer;
the query client, which may also be referred to as a query request initiator, refers to a specific application on a front-end device that needs to obtain a server state;
the inquiry agent works on the front equipment and is used for transmitting an inquiry request initiated by an inquiry client and providing encapsulation and analysis services for the information of the inquiry client.
The host is used for providing services for users, and the host is provided with a query agent, a service response end and a storage module. Wherein,
the inquiry agent works on the host machine, is used for initiating, responding and forwarding an inquiry request from the front equipment, can realize inquiry of an iterative method through the inquiry agent, namely a response end for service health degree check is simultaneously an inquiry end for another service health degree inquiry, and can provide the host machine state of the response end;
the service response end, the application service on the host computer to be queried, needs to feed back the health of the relevant service.
And the storage module is used for caching the service state and the host state.
In the system shown in fig. 2, a user initiates a service request to an operator service network, the operator service network sends the request to a front-end device after receiving the service request of the user, the front-end device detects host states and service states of a group of connected host computers through an inquiry end or reads host states and service states of a host computer stored on the host computer, and then distributes the service request to the host computer with good health according to a predetermined rule.
Meanwhile, it should be noted that the user referred to in the system is not a person or an organization in a general sense, but includes all mechanisms for initiating a service request to an operator, and may be a person or some intermediate device or terminal. The operator referred to in the present system is not only an operator in a general sense, but also includes all individuals, organizations, intermediate devices, terminals, and the like that provide a certain application.
In addition, the query side of the front-end device proposed in the system comprises a query client and a query agent, and the host comprises the query agent and a service response side, but the concept of the invention is not limited to this, and any action of recombining or dividing the functions is within the concept of the invention.
The first service health degree detection method disclosed by the invention is based on a query-response method. The front-end equipment sends a health degree query request to the host, and the host sends a health degree query response to the front-end equipment. The specific implementation method comprises three operations: the method comprises the steps that the front-end equipment inquires the instant service state on the host, the service state cached on the host and the state of the host. Therefore, service health degree query with different frequencies can be realized between the preposed equipment and the host, namely, the query agent on the query end-host can perform query and response with high frequency, and the host-service performs query and response with low frequency. This will be described with reference to the accompanying drawings.
Fig. 3 shows a flowchart of a health detection method based on a query-response method in an embodiment of the present invention, which includes the following steps:
301. the method comprises the steps that a front-end equipment inquiry end initiates a health degree inquiry request to a host inquiry agent, and the inquiry can be an instant service state or a host state or a service state or a host state cached on a host according to a specific condition;
302. after receiving the health degree query request, the host query agent judges the type of the request, and if the query request is an instant service state, executes step 303; if the request is for the service state or the host state cached on the host, go to step 306;
303. the host inquiry agent initiates an inquiry request for inquiring the instant service state to a host service response end;
304. the host server response end feeds back the instant service state to the host inquiry agent;
305. after receiving the instant service state information of the service response end in step 304, the host inquiry agent forwards the information to the front equipment inquiry end;
306. after receiving a health query request for querying the service state and the host state of the local cache or the instant host state, the host query agent reads the service state or the host state of the local cache from the storage module or acquires the instant host state;
307. the host query agent sends the cached service state or host state obtained in step 306 to the front-end device query side.
By the method, service state inquiry with different frequencies can be realized, service or host resources with higher performance requirements can be inquired at any time, service or host resources with not higher performance requirements can be cached on a storage module of the host at a certain period, and when the inquiry is needed, the stored information can be read. For the cached host state or service state, it may be specified that as long as the obtained cached service state or host state is healthy, it may be determined that the service or host resource is healthily available.
The invention discloses another service health degree detection method based on a registration-notification method. Firstly, the prepositive device registers the service to be inquired on the host, and after the registration is finished, the host inquiry agent periodically sends the registered service state information to the prepositive device. Thus, the front-end device does not need to make frequent host service status queries as long as the host query agent is healthy. The method comprises the steps of service registration, agent health inquiry, host state inquiry and the like. As will be described in detail below.
Fig. 4 is a flowchart of a service health degree detection method based on a registration-notification method in an embodiment of the present invention, which specifically includes the steps of:
401. the front-end equipment inquiry end completes local inquiry service registration, the setting is to inquire the local health degree of the front-end equipment, and the inquiry content also comprises a service state and a host state;
402. the preposed equipment inquiry end inquires an agent request to a host for carrying out inquiry service registration;
403. after receiving the query service registration request, the host query agent determines the type of the service requiring query registration, and if the service is to be registered, executes step 404; if the service state or the host state cached on the host is to be registered, execute step 407;
404. the host inquiry agent requests the host service response end to perform instant service state inquiry registration;
405. after receiving the registration request, the host service response end completes the instant service state inquiry registration and feeds back the instant service state to the host inquiry agent according to the registration condition;
406. the host inquiry agent notifies the front-end equipment inquiry end of the instant service state acquired in the step 405;
407. host inquiry agent inquires service state and host state of local buffer;
408. the host inquiry agent notifies the cache service state or the host state acquired in step 407 to the front-end device inquiry terminal according to the registration condition.
In the above process, the following may be further included:
the method comprises the steps that after the front-end equipment requests a host to inquire service registration, a message for inquiring whether the inquiry service registration is successful or not is sent to an inquiry agent of the host, if the inquiry service registration is successful, the front-end equipment inquiry end does not perform other operations, and if the inquiry service registration is failed, the inquiry service registration request can be initiated again;
the front-end equipment inquiry end sends an agent health inquiry request to the host inquiry agent, if the front-end equipment receives the inquiry response of the host inquiry agent, the host inquiry agent is considered to be healthy, otherwise, the host inquiry agent is judged to be invalid, and further the host is judged to be invalid.
It should be noted that, in the method, the host may be configured to send the state of the registered service or the host state to the front-end device according to a certain time period as described above, or the host may be configured to send the state change information to the front-end device only when the host state changes or the registered service state changes. The method specifically comprises the following steps:
when the host state of the host computer changes, the host computer query agent sends a host state change message to the preposed equipment query end, and the preposed equipment query end sends a state change response to the host computer query agent after receiving the state change message;
when the service state of the host changes, the service response end of the host sends a service state change message to the preposed equipment inquiry end, and the preposed equipment inquiry end sends a state change response to the service response end of the host after receiving the state change message.
The invention also discloses a service health degree detection method based on the registration-query method. In the present method, the service registration method involved is exactly the same as the registration method in the registration-notification method described above. The difference is that in the method, the pre-device not only passively waits for the host to send the registered service state or the host state, but also can set a certain condition, and when the set condition is met or a temporary requirement occurs, the pre-device actively queries the host state and the service state of the host. The method will be specifically described below.
Fig. 5 is a flowchart illustrating a service health degree detection method based on a registration-query method in an embodiment of the present invention, which specifically includes:
501. the front-end equipment inquiry end completes local inquiry service registration, the setting is to inquire the local health degree of the front-end equipment, and the inquiry content also comprises a service state and a host state;
502. the preposed equipment inquiry end inquires an agent request to a host for carrying out inquiry service registration;
503. after receiving the query service registration request, the host query agent determines the type of the service requiring query registration, and if the service is to be registered, executes step 504; if the service state or the host state cached on the host computer is to be registered, execute step 507;
504. the host inquiry agent requests the host service response end to perform instant service state inquiry registration;
505. after receiving the registration request, the host service response end completes the instant service state inquiry registration and feeds back the instant service state to the host inquiry agent according to the registration condition;
506. the host inquiry agent notifies the front-end equipment inquiry end of the instant service state acquired in the step 505;
507. host inquiry agent inquires service state and host state of local buffer;
508. the host inquiry agent notifies the cache service state or the host state acquired in step 507 to the front-end device inquiry terminal according to the registration condition.
The above steps are used to conventionally obtain the registered service state and host state, and when the preset condition exceeds the set condition during registration, the prepositive device still does not receive the notification information of the host or generates a specific query requirement, the scheme can also realize the following steps:
509. the preposed equipment inquiry end sends a health degree inquiry request to a host inquiry agent, and if the health degree inquiry request cannot receive the response of the host inquiry agent after a period of time, the host is judged to be invalid;
510. the host querying agent determines whether the requested querying service is registered, and if the requested querying service is registered, step 511 is executed; if the service is not registered and the query request is in an instant service state, go to step 513; if the service is not registered and the query request is a service state or a host state cached on the host, go to step 516;
511. the host computer inquiry agent calls the registered function to obtain the corresponding service or host computer state;
512. the host inquiry agent sends the service state information acquired in the step 511 to the front equipment inquiry end;
513. the host inquiry agent requests the host service response end to inquire the instant service state;
514. the host service response end feeds back the service state query request in the step 513 to the host query agent;
515. the host inquiry agent sends the service state inquiry response acquired in the step 514 to the front equipment inquiry end;
516. the host inquires the service state or host state of the local cache by the agent;
517. the host querying agent sends the service status or host status query response acquired in step 516 to the front-end device querying side.
From the above steps, it can be seen that the present method is an improvement of the aforementioned query-response method and registration-notification method. Unlike the query-response method described above, the active query in the method is based on a condition, which can be set arbitrarily as required.
The query end of the prepositive equipment provided by the method of the invention can be divided into a query client end and a query agent according to needs, the query agent and the service response end on the host computer in the method of the invention can also be combined into a functional module, and any action of recombining or dividing the functions of the invention is within the concept of the invention.
In summary, the service health degree detection system provided by the invention can reliably realize the query of the host state and the service state of the host, ensure that the preposed equipment does not distribute the user service request to the host which can not provide the service when distributing the service, and simultaneously realize the service health degree detection with different frequencies on the preposed equipment and the connected host according to different state requirements, thereby achieving the purposes of improving the detection efficiency and saving system resources.
The service health degree detection method provided by the invention can be applied to any network technology or any host technology, can be borne in any two-layer, three-layer, four-layer or application layer protocol, and can also obtain related services by a Remote Procedure Call (RPC) method; the front-end device can be regarded as a large virtual host to carry out iterative query.
The above-mentioned embodiments are merely illustrative of the present invention, and should not be construed as limiting the scope of the present invention, and any changes or substitutions that can be easily made by those skilled in the art within the technical scope of the present invention should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (20)

1. The service health degree detection system is characterized by comprising a preposed device and a plurality of host computers, wherein
A host for providing a service to a user;
and the front-end equipment is used for acquiring the service state and the host state of the host, judging the health degree of the host according to the acquired state and distributing service to the host.
2. The system of claim 1, wherein the head end device is connected to the plurality of host hosts and performs health check on the host hosts.
3. The system of claim 2, wherein the front-end device further comprises a query peer for initiating a query request to the host.
4. The system of claim 3, wherein the query request comprises a service status query request and a host status query request.
5. The system of claim 3, wherein the query peer further comprises a query client and a query broker, wherein,
the query client is used for obtaining the host state and the service state of the host;
and the query agent is used for transmitting the query request initiated by the query client and packaging and analyzing the information of the query client.
6. The system of claim 2, wherein the host further comprises a query agent and a service responder, wherein,
the query agent is used for initiating, responding and forwarding a service state or host state query request from the front-end equipment, and forwarding the host state and the service state of the host to the front-end equipment;
and the service response end is used for providing service for the user and responding to the service state inquiry request initiated by the inquiry agent.
7. The system of claim 6, wherein the host further comprises a storage module for storing a host state and a service state of the host.
8. A service health detection method, comprising:
A. the preposed equipment sends a health degree query request to the host computer;
B. the host computer acquires corresponding health degree information according to the type of the query request;
C. the host sends a health query response to the front-end device.
9. The method of claim 8, wherein step B further comprises:
b1, the host inquiry agent judges the type of the inquiry request, if the type of the inquiry request is the instant service state, the step B2 is executed; if the query request type is the cached service state or the host state, executing step B3;
b2, the inquiry agency sends an instant service state inquiry request to the service response terminal, and the service response terminal feeds back corresponding service state information to the inquiry agency;
b3, the inquiry proxy reads the service state of the local cache or inquires the host state to obtain the corresponding service state or host state information.
10. The method of claim 9, wherein the step B2 further comprises determining that the service has failed if the query broker does not receive the instant service status information of the service responder under the set conditions.
11. The method as claimed in claim 9, wherein the step B3 further comprises confirming that the local caching mechanism is disabled if the query agent cannot read the service status of the local cache under the set condition.
12. The method of claim 8, wherein step C further comprises: the host inquiry agent sends health degree response information to the front equipment inquiry end, wherein the health degree response information comprises an instant service state, a cache mechanism state or a host state of the host.
13. A service health detection method, comprising:
D. the preposed equipment inquiry end carries out local inquiry registration;
E. the prepositive equipment carries out inquiry service registration to the host computer;
F. and the host sends the registered service health degree information to the front-end equipment.
14. The method of claim 13, wherein step E further comprises:
e1, the front device inquiry end sends inquiry registration request to the host inquiry agent;
e2, the host inquiry agent judges the type of inquiry registration, if it is the service state inquiry, the step E3 is executed; if the query is a host status query, go to step E4;
e3, the host inquiry agent sends a service state inquiry registration request to the host service response end, and the service response end correspondingly inquires and registers the service state;
e4, host inquiry agent completes the host status inquiry registration.
15. The method of claim 13, wherein step F further comprises:
f1, the front-end device judges whether the query service on the host computer is registered successfully;
f2, the front-end device judges the health degree of the host computer inquiry agent;
and F3, if the inquiry service registration is successful and the inquiry agent health degree of the host is good, the host reports the service state and the host state acquired by the registration service to the front-end device.
16. A service health detection method, comprising:
G. the preposed equipment inquiry end carries out local inquiry registration;
H. the prepositive equipment carries out inquiry service registration to the host computer;
I. the host computer sends registered service health degree information to the front-end equipment;
J. the front-end device actively initiates service state query or host state query to the host.
17. The method of claim 16, wherein step H further comprises:
h1, the front device inquiry end sends inquiry registration request to the host inquiry agent;
h2, the host inquiry agent judges the type of inquiry registration, if it is the service state inquiry, the step E3 is executed; if the query is a host status query, go to step E4;
h3, the host inquiry agent sends a service state inquiry registration request to the host service response end, and the service response end correspondingly inquires and registers the service state;
h4, host inquiry agent completes the inquiry registration of host state.
18. The method of claim 16, wherein step I further comprises:
i1, the front-end device judges whether the query service on the host computer is registered successfully;
i2, the front-end equipment judges the health degree of the host computer inquiry agent;
and I3, if the inquiry service registration is successful and the inquiry agent health degree of the host is good, the host reports the service state and the host state acquired by the registration service to the front-end device.
19. The method of claim 16, wherein step J further comprises the steps of:
j1, the front-end device sends a health degree query request to the host computer;
j2, the host computer obtains corresponding health degree information according to the type of the query request;
j3, the host sends a health query response to the front-facing device.
20. The method according to claim 19, wherein the step of the host obtaining the corresponding health information according to the type of the query request includes:
the host inquiry agent judges whether the inquiry request of the front-end equipment is registered;
if the query request is registered, the host queries the function called back and registered by the proxy to acquire service state or host state information;
if the query request is not registered and the query request is in the instant service state, the host query agent sends a request for querying the instant service state to a host service response end;
if the query request is not registered and the query request is the cached service state or the host state, the host querying agent obtains the cached service state or the host state.
CNB2006100611528A 2006-06-15 2006-06-15 System and method for detecting service healthiness Expired - Fee Related CN100461719C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNB2006100611528A CN100461719C (en) 2006-06-15 2006-06-15 System and method for detecting service healthiness
PCT/CN2007/001588 WO2007147318A1 (en) 2006-06-15 2007-05-16 Service health level detection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100611528A CN100461719C (en) 2006-06-15 2006-06-15 System and method for detecting service healthiness

Publications (2)

Publication Number Publication Date
CN101043385A true CN101043385A (en) 2007-09-26
CN100461719C CN100461719C (en) 2009-02-11

Family

ID=38808613

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100611528A Expired - Fee Related CN100461719C (en) 2006-06-15 2006-06-15 System and method for detecting service healthiness

Country Status (2)

Country Link
CN (1) CN100461719C (en)
WO (1) WO2007147318A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938401A (en) * 2009-06-30 2011-01-05 华为技术有限公司 Method and device for distributing group flow
CN103546504A (en) * 2012-07-11 2014-01-29 华耀(中国)科技有限公司 Application-layer-isolation based load-balancing device virtualization system and method
CN105872118A (en) * 2015-11-25 2016-08-17 乐视云计算有限公司 Detection method and device of node servers in DNS (Domain Name System) network
CN106341401A (en) * 2016-08-31 2017-01-18 新疆信息产业有限责任公司 Communication terminal detection service system and method
CN106385334A (en) * 2016-09-20 2017-02-08 携程旅游信息技术(上海)有限公司 Call-center system and abnormality detection and self-recovery method therefor
CN109561073A (en) * 2018-10-30 2019-04-02 视联动力信息技术股份有限公司 A kind of transparent transmission system and method based on view networking
CN112887185A (en) * 2019-11-29 2021-06-01 华为技术有限公司 Communication method and device of overlay network
CN113127201A (en) * 2021-04-23 2021-07-16 中国工商银行股份有限公司 Fault application server isolation method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6183457B2 (en) 2013-06-05 2017-08-23 トヨタ自動車株式会社 Rare earth magnet and manufacturing method thereof
CN111404893B (en) * 2020-03-06 2021-12-21 深信服科技股份有限公司 Host classification method, device, equipment and computer storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE350829T1 (en) * 1999-06-10 2007-01-15 Alcatel Internetworking Inc SYSTEM AND METHOD FOR UNIFORM RULES MANAGEMENT WITH INTEGRATED RULES CONVERTER
US7567504B2 (en) * 2003-06-30 2009-07-28 Microsoft Corporation Network load balancing with traffic routing
US7636917B2 (en) * 2003-06-30 2009-12-22 Microsoft Corporation Network load balancing with host status information
CN1275157C (en) * 2004-03-04 2006-09-13 华中科技大学 Open network computing platform based on improved linux virtual server structure
US8627149B2 (en) * 2004-08-30 2014-01-07 International Business Machines Corporation Techniques for health monitoring and control of application servers

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938401A (en) * 2009-06-30 2011-01-05 华为技术有限公司 Method and device for distributing group flow
CN103546504A (en) * 2012-07-11 2014-01-29 华耀(中国)科技有限公司 Application-layer-isolation based load-balancing device virtualization system and method
CN105872118A (en) * 2015-11-25 2016-08-17 乐视云计算有限公司 Detection method and device of node servers in DNS (Domain Name System) network
CN106341401A (en) * 2016-08-31 2017-01-18 新疆信息产业有限责任公司 Communication terminal detection service system and method
CN106385334A (en) * 2016-09-20 2017-02-08 携程旅游信息技术(上海)有限公司 Call-center system and abnormality detection and self-recovery method therefor
CN106385334B (en) * 2016-09-20 2019-06-18 携程旅游信息技术(上海)有限公司 Call center system and its abnormality detection and self-recovery method
CN109561073A (en) * 2018-10-30 2019-04-02 视联动力信息技术股份有限公司 A kind of transparent transmission system and method based on view networking
CN112887185A (en) * 2019-11-29 2021-06-01 华为技术有限公司 Communication method and device of overlay network
CN112887185B (en) * 2019-11-29 2024-03-15 华为云计算技术有限公司 Communication method and device of overlay network
CN113127201A (en) * 2021-04-23 2021-07-16 中国工商银行股份有限公司 Fault application server isolation method and device, electronic equipment and storage medium
CN113127201B (en) * 2021-04-23 2024-08-02 中国工商银行股份有限公司 Fault application server isolation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN100461719C (en) 2009-02-11
WO2007147318A1 (en) 2007-12-27

Similar Documents

Publication Publication Date Title
CN101043385A (en) System and method for detecting service healthiness
US11134134B2 (en) Routing for origin-facing points of presence
CN111615066B (en) Distributed micro-service registration and calling method based on broadcast
CN1455550A (en) Network apparatus management system and its control method
CN110855633A (en) Method, device and system for protecting distributed denial of service (DDOS) attack
CN101035031A (en) Method and device for detecting the number of the shared access host
CN101051980A (en) File data distributing method and relative device
CN1909507A (en) Method and system for message transfer
CN1770735A (en) Method and system for transmitting and receiving data using multicasting
CN102769603A (en) Method, system and apparatus for data transmission
WO2018090677A1 (en) Processing method, device and system for nf component abnormality
CN1816011A (en) Data transfer apparatus and multicast system and program
CN101030946A (en) Method and system for realizing data service
CN1878118A (en) System for realizing data communication and its method
CN1856163A (en) Communication system with dialog board controller and its command transmitting method
CN1788475A (en) Network attack combating method, network attack combating device and network attack combating program
US9781033B2 (en) Providing requested content in an overlay information centric networking (O-ICN) architecture
CN1711715A (en) Determining a path through a managed network
WO2021232849A1 (en) Communication method, apparatus and system
CN1835515A (en) Method and device of going repeating in configuration procedue of dynamic host address
CN101043387A (en) Remote mirror-image realization process, remote monitoring aids and system for realizing remote mirror-image
CN101047880A (en) Message transmission method and system
CN1905566A (en) Method and system for implementing system high-usability in network storage service
US10321355B2 (en) Access node, mobility management network element, and paging message processing method
CN1863202A (en) Method for improving load balance apparatus and servicer processing performance

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170815

Address after: 519031, Guangdong, Zhuhai province Hengqin financial industry service base building No. 5 2-I

Patentee after: The International Intellectual Property Trading Center Co. Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180205

Address after: No. 178, Jiang Zhuang village, Bao Dian Town, Ningjin County, Dezhou, Shandong

Patentee after: Li Wenlu

Address before: 519031, Guangdong, Zhuhai province Hengqin financial industry service base building No. 5 2-I

Patentee before: The International Intellectual Property Trading Center Co. Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090211

Termination date: 20180615