CN117435444A - Detection method, detection device, electronic equipment, storage medium and request response method - Google Patents

Detection method, detection device, electronic equipment, storage medium and request response method Download PDF

Info

Publication number
CN117435444A
CN117435444A CN202310869766.2A CN202310869766A CN117435444A CN 117435444 A CN117435444 A CN 117435444A CN 202310869766 A CN202310869766 A CN 202310869766A CN 117435444 A CN117435444 A CN 117435444A
Authority
CN
China
Prior art keywords
server
load balancing
operation state
data
detection result
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
CN202310869766.2A
Other languages
Chinese (zh)
Inventor
李譞
高铭剑
王立帅
贾紫倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310869766.2A priority Critical patent/CN117435444A/en
Publication of CN117435444A publication Critical patent/CN117435444A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3433Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment for load management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure provides a detection method, a detection device, an electronic device, a storage medium and a request response method, which can be applied to the technical fields of computers, intelligent operation and maintenance and financial science and technology. The method comprises the following steps: generating an operation state detection result of the server according to the operation state data in response to receiving the operation state data and the health degree data from the server, wherein the operation state detection result represents the probability that the operation state of the server is normal, and the health degree data represents the probability that the server is in an available state; and generating a server detection result of the server according to the running state detection result and the health degree data.

Description

Detection method, detection device, electronic equipment, storage medium and request response method
Technical Field
The present disclosure relates to the field of computer technology, the field of intelligent operation and maintenance technology, and the field of financial technology, and in particular, to a detection method, a detection device, an electronic device, a storage medium, and a request response method.
Background
Load Balancing (LB) technology is mainly applied to high-concurrency and high-traffic network environments. The LB technology may distribute the requests for access to multiple servers to maximize resource utilization and optimize application performance.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: the detection of the server in the related art easily causes a performance degradation of the server, thereby causing the server to fail to provide the service normally.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a detection method, apparatus, electronic device, storage medium, request response method, and program product.
According to a first aspect of the present disclosure, there is provided a detection method applied to a first load balancing device, including:
generating an operation state detection result of the server according to the operation state data in response to receiving the operation state data and the health degree data from the server, wherein the operation state detection result represents the probability that the operation state of the server is normal, and the health degree data represents the probability that the server is in an available state; and
and generating a server detection result of the server according to the running state detection result and the health degree data.
According to an embodiment of the present disclosure, the above detection method further includes:
acquiring system type information of the server by executing a timing detection task corresponding to the server;
Determining a target detection template matched with the system type information from a detection template set;
generating request information of target data according to the target detection template, wherein the target data comprises the running state data and the health degree data; and
and transmitting request information of the target data to the server.
According to an embodiment of the present disclosure, the generating the operation state detection result of the server according to the operation state data includes:
generating an operation state comparison result according to the operation state data and a preset operation state threshold value; and
and generating an operation state detection result of the server according to the operation state comparison result.
According to an embodiment of the present disclosure, the first load balancing device includes a plurality of first load balancing devices, and the detection method further includes:
and sending the server detection result to a second load balancing device in response to receiving a data request from the second load balancing device, wherein the second load balancing device is used for determining a target first load balancing device from a plurality of first load balancing devices according to the server detection results sent by the first load balancing devices.
According to an embodiment of the present disclosure, the server includes a plurality of servers, and the detection method further includes:
in response to receiving a traffic request from the second load balancing device, determining a target server from the plurality of servers according to the server detection results corresponding to the plurality of servers; and
and transmitting the flow request to the target server by using the target first load balancing equipment.
According to an embodiment of the present disclosure, the generating the server detection result of the server according to the operation state detection result and the health degree data includes:
and generating a server detection result of the server according to the running state detection result under the condition that the health degree data represent that the server is in an available state.
A second aspect of the present disclosure provides a request response method applied to a second load balancing device, including:
transmitting a data request for acquiring the server detection result to each of a plurality of first load balancing devices in response to receiving a traffic request from a terminal device;
receiving server detection results obtained according to the detection method and sent by the first load balancing devices respectively to obtain a plurality of server detection results; and
And determining a target first load balancing device from the plurality of first load balancing devices according to the detection results of the plurality of servers, wherein the target first load balancing device is used for processing the flow request.
A third aspect of the present disclosure provides a detection apparatus applied to a first load balancing device, including:
the first generation module is used for responding to the received operation state data and health degree data from the server and generating an operation state detection result of the server according to the operation state data, wherein the operation state detection result represents the probability that the operation state of the server is normal, and the health degree data represents the probability that the server is in an available state; and
and the second generation module is used for generating a server detection result of the server according to the running state detection result and the health degree data.
A fourth aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the detection method or the request response method described above.
The fifth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described detection method or the above-described request response method.
A sixth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described detection method or the above-described request response method.
According to the detection method, the device, the electronic equipment, the storage medium and the request response method, the running state detection result of the server is generated according to the running state data by responding to the received running state data and the health degree data from the server, wherein the running state detection result represents the probability that the running state of the server is normal, and the health degree data represents the probability that the server is available; and generating a server detection result of the server according to the running state detection result and the health degree data. The server can be determined whether to be available or not according to the health degree data, the operation state detection result of the server can be determined according to the received operation state data of the server, and the operation state of the server can be determined according to the operation state detection result and the health degree data, so that whether the server can normally provide service or not can be determined according to the operation state detection result and the server detection result determined by the health degree data, the operation of the server can be timely perceived, the flow can be reasonably distributed to the server, and the problem that the server cannot normally provide service due to the fact that the flow distribution is still carried out on the server with the performance problem when the server has the performance problem is avoided.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a detection method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a detection method according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flow chart of a request response method according to an embodiment of the disclosure;
fig. 4 schematically shows a block diagram of a detection device according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of a request response device according to an embodiment of the disclosure; and
fig. 6 schematically illustrates a block diagram of an electronic device adapted to implement a detection method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the related data (such as including but not limited to personal information of a user) are collected, stored, used, processed, transmitted, provided, disclosed, applied and the like, all conform to the regulations of related laws and regulations, necessary security measures are adopted, and the public welcome is not violated.
In the modern internet application environment, as the enterprise scale expands, more and more requests need to be processed by the servers of the enterprise, the enterprise will generally use LB technology to process the requests, so as to achieve maximization of resource utilization and optimization of application performance. However, load balancing within a single Data Center (DC) cannot meet the needs of the enterprise because all application systems are affected if the entire DC fails. Enterprises need to build multiple DCs in different geographic locations in view of factors such as improving user experience, improving service availability, expanding business, and the like. The access traffic of the application needs to be distributed among a plurality of DCs, and the global traffic is distributed to the available servers in the DCs evenly, so that the high availability and stability of the application system are realized.
Before distributing the traffic, the server health needs to be checked, but the health check only detects whether the server is available or whether the application can respond, and there is no consideration for the case where the application is available but the server's own performance is approaching the bottleneck. For a load balancing device, there may be some server performance problems, since it may still be connected, the load balancing device may still distribute traffic to the server until the performance of the server reaches the bottleneck, resulting in server state anomalies that affect the server processing data.
In view of this, an embodiment of the present disclosure provides a detection method, including: generating an operation state detection result of the server according to the operation state data in response to receiving the operation state data and the health degree data from the server, wherein the operation state detection result represents the probability that the operation state of the server is normal, and the health degree data represents the probability that the server is in an available state; and generating a server detection result of the server according to the running state detection result and the health degree data.
According to the embodiment of the disclosure, whether the server is available or not can be determined through the health degree data, the operation state detection result of the server can be determined through the received operation state data of the server, and whether the operation state of the server is normal or not can be determined according to the operation state detection result and the server detection result determined by the health degree data, so that the operation of the server can be timely perceived, the flow can be reasonably distributed to the server, and the problem that the server cannot normally provide service due to the fact that the flow distribution is still performed on the server with the performance problem when the server has the performance problem is avoided.
Fig. 1 schematically illustrates an application scenario diagram of a detection method according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a first load balancing device 101, a second load balancing device 102, a server 103, and a terminal device 104. The first load balancing device 101 is configured to receive a server detection result of the second load balancing device 102, and determine a target first load balancing device according to the server detection result. The second load balancing device 102 is used to detect the operational status and health of the server 103.
A user may interact with the server 103 via a network using the terminal device 104 to receive or send messages or the like. Various communication client applications may be installed on the terminal device 104, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, and the like (by way of example only).
The terminal device 104 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 103 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by the user using the terminal device 104. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the detection method provided by the embodiments of the present disclosure may be generally performed by the first load balancing apparatus 101. Accordingly, the detection apparatus provided in the embodiments of the present disclosure may be generally disposed in the first load balancing device 101. The request response method provided by the embodiments of the present disclosure may be generally performed by the second load balancing device 102. Accordingly, the request response device provided by the embodiments of the present disclosure may be generally disposed in the second load balancing apparatus 102.
It should be understood that the number of first load balancing devices, second load balancing devices, servers and terminal devices in fig. 1 is merely illustrative. There may be any number of first load balancing devices, second load balancing devices, servers and terminal devices, as desired for implementation.
Fig. 2 schematically illustrates a flow chart of a detection method according to an embodiment of the present disclosure.
As shown in fig. 2, the detection method of this embodiment is applied to a first load balancing apparatus, including operations S210 to S220.
In operation S210, in response to receiving the operation state data and the health data from the server, an operation state detection result of the server is generated according to the operation state data, wherein the operation state detection result characterizes a probability that the operation state of the server is normal, and the health data characterizes a probability that the server is an available state.
According to embodiments of the present disclosure, the health data may be data of whether a server is available.
According to the embodiment of the disclosure, the health data can be obtained through internet control message protocol (Internet Control Message Protocol, ICMP) detection, transmission control protocol (Transmission Control Protocol, TCP) detection and application protocol message detection.
According to an embodiment of the present disclosure, the operation state data may be data of an operation index related to the server, and the operation index may be a central processing unit (Central Processing Unit, CPU) usage rate, a memory usage rate, or the like.
According to the embodiment of the disclosure, the operation state data may be a numerical value, an operation state interval may be preset, and an operation state detection result of the server is generated according to the operation state interval matched with the operation state data. For example, 0 to 25% is the optimal operation state interval, 25 to 50% is the optimal operation state interval, 50 to 75% is the poor operation interval, 75 to 100% is the worst operation interval, and the operation state data is 40%, that is, the operation state detection result of the server indicates that the operation state of the server is the optimal operation state interval.
In operation S220, a server detection result of the server is generated according to the operation state detection result and the health degree data.
According to embodiments of the present disclosure, the server monitoring results may characterize the probability that the server is able to receive the data sent by the first load balancing device and process normally.
According to embodiments of the present disclosure, based on the operational status monitoring results and the health data,
according to the embodiment of the disclosure, whether the server is available or not can be determined through the health degree data, the operation state detection result of the server can be determined through the received operation state data of the server, and whether the operation state of the server is normal or not can be determined according to the operation state detection result and the server detection result determined by the health degree data, so that the operation of the server can be timely perceived, the flow can be reasonably distributed to the server, and the problem that the server cannot normally provide service due to the fact that the flow distribution is still performed on the server with the performance problem when the server has the performance problem is avoided.
According to an embodiment of the present disclosure, the detection method further includes: acquiring system type information of a server by executing a timing detection task corresponding to the server; determining a target detection template matched with the system type information from the detection template set; generating request information of target data according to the target detection template, wherein the target data comprises running state data and health degree data; and sending request information of the target data to the server.
According to an embodiment of the present disclosure, the timing detection task may be a preset task for acquiring target data. For example, it may be set to detect the server every 10 minutes.
According to embodiments of the present disclosure, the system type information of the server may be determined according to an operating system of the server. The operating system of the server may be at least one of a UNIX operating system, a Linux operating system, a Netware operating system, a Windows operating system, etc.
According to the embodiment of the disclosure, a plurality of detection templates may be included in the detection template set, each detection template corresponds to one operating system, and the detection template corresponding to the system type information may be matched from the detection template set according to the system type information of the server as a target detection template.
According to an embodiment of the present disclosure, request information of target data may be generated based on a simple network management protocol (Simple Network Management Protocol, SNMP) and transmitted to a server. SNMP can be used to remotely monitor, configure, manage network devices (e.g., routers, switches, servers, etc.). The SNMP is used for detecting the server, so that the functions of real-time monitoring, diagnosis, configuration, performance management and the like of the network equipment can be realized.
According to embodiments of the present disclosure, a network management system (Network Management System, NMS) module may be deployed in the first load balancing device, which may monitor, configure, manage the computer network through software. The NMS module may collect information of devices through network protocols (e.g., SNMP, netFlow, etc.) and store the information in a database. An administrator may use the NMS module to configure, monitor and troubleshoot devices in the network. The NMS module may include therein a management information base MIB (Management Information Base, MIB), which is a structured form of organizing network management information. MIB describes management objects (e.g., interfaces, routes, hosts, services, etc.) supported by one or more network devices and attributes of those management objects. The MIB organizes management information in a hierarchical manner with each management object having a unique identifier, OID (Object Identifier).
For example, when detecting the server, the first load balancing device may send an SNMP request to the server at regular time according to a regular detection task, and request the CPU, the memory, and the like to run state data that may reflect the performance capacity of the server. For example, SNMP requests with oid. 1.3.6.1.4.1.8072.1.3.2.4 are sent every 10 seconds to obtain the CPU real-time usage of the server. The first load balancing device performs an SNMP request on the server according to the OID corresponding to the target detection template.
According to the embodiment of the disclosure, the server can be detected in real time through the timing detection task, and the running state of the server can be timely obtained. The target detection template is used for generating the request information of the target data, so that the target data can be acquired from the server in a targeted manner, and the data acquisition efficiency is improved.
According to an embodiment of the present disclosure, generating an operation state detection result of a server according to operation state data includes: generating an operation state comparison result according to the operation state data and a preset operation state threshold value; and generating an operation state detection result of the server according to the operation state comparison result.
According to an embodiment of the present disclosure, the preset operation state threshold may be preset according to a performance parameter of the server. For example, the preset operating state threshold may be set to 80%.
According to the embodiment of the disclosure, the operation state data and the preset operation state threshold value can be compared, and an operation state comparison result is generated. For example, the operating state data characterizes the CPU usage of the server as 60%, the preset operating state threshold as 75%,
according to an embodiment of the present disclosure, the operation state data may include operation state sub-data corresponding to each of a plurality of operation indexes of the server, and each operation index may correspond to a preset operation state sub-threshold. The combination association conditions set among the operation indexes can be compared to generate an operation state comparison result. For example, the CPU utilization is 60%, and an operation state comparison result is generated from the operation state sub-comparison results of each of the plurality of operation indexes.
According to the embodiment of the disclosure, in the case that the operation state comparison result indicates that the operation state data is greater than the preset operation state threshold, the generated operation state detection result may indicate that the operation state of the server is unavailable. And in the case that the running state comparison result represents that the running state data is smaller than the preset running state threshold value, the generated running state detection result can represent that the running state of the server is available.
According to the embodiment of the disclosure, a state evaluation module may be deployed in the first load balancing device, and is configured to generate an operation state detection result.
According to the embodiment of the disclosure, whether the running state of the server is normal can be quickly determined by setting the preset running state threshold value to determine the detection result of the server.
According to an embodiment of the present disclosure, the first load balancing device includes a plurality of pieces, and the detection method further includes: and sending a server detection result to the second load balancing device in response to receiving the data request from the second load balancing device, wherein the second load balancing device is used for determining a target first load balancing device from the plurality of first load balancing devices according to the server detection results sent by the plurality of first load balancing devices.
According to an embodiment of the present disclosure, the second load balancing device may be a global load balancing (Global Server Load Balancing, GSLB) device.
According to an embodiment of the present disclosure, the data request may be a request for the second load balancing device to obtain a server detection result.
According to the embodiment of the disclosure, a query response module can be further deployed in the first load balancing device, and when a data request from the second load balancing device is received, a server detection result is sent by using the query response module. The first load balancing device can set a management port address or a service port address for uniformly providing query service to the outside, the second load balancing device sends a server detection result through the HTTP protocol by sending a data request of the HTTP protocol to the address.
According to the embodiment of the disclosure, when the server detection result is sent to the second load balancing device, the physical address information and the actual address information of the first load balancing device may be carried, the second load balancing device may determine the target first load balancing device from the plurality of first load balancing devices in combination with the server detection result, the physical address information and the actual address information, and the second load balancing device may determine the target first load balancing device from the first load balancing devices according to the server detection result. The physical address information of the first load balancing device may be domain name information of the first load balancing device, and the actual address information of the first load balancing device may be geographical location information of the first load balancing device.
According to the embodiment of the disclosure, the server detection result is sent to the second load balancing device, so that the second load balancing device can select the target even first load balancing device according to the server detection result, and therefore traffic requests are reasonably forwarded, and the situation that a large amount of traffic is forwarded to the same server to cause unavailability of the server is avoided.
According to an embodiment of the present disclosure, the server includes a plurality of servers, and the detection method further includes: in response to receiving the traffic request from the second load balancing device, determining a target server from the plurality of servers according to server detection results corresponding to the plurality of servers; and sending a flow request to the target server by using the target first load balancing equipment.
According to embodiments of the present disclosure, the traffic request may be from the client forwarded to the target first load balancing device via the second load balancing device.
According to the embodiment of the disclosure, the target first load balancing device may correspond to a plurality of servers, a target server may be selected from the plurality of servers according to server detection results of the plurality of servers, and the target server may be a server with a best running state. And then the target first load balancing equipment is utilized to send the flow request to the target server for processing.
According to an embodiment of the present disclosure, a global address management module, an HTTP detection module, and a global load assessment module may be deployed in the second load balancing device. The second load balancing device can perform domain name resolution on the flow request through the global address management module, and the corresponding first load balancing device is determined. And sending data requests to the plurality of first load balancing devices by using the HTTP detection module to obtain server detection results, and determining a target first detection module by using the global load evaluation module according to the server detection results.
Taking an application system including a second load balancing device, a data center DC1 and a data center DC2 as an example, the data center DC1 includes a Server1, a Server2 and a first load balancing device LB1, and the data center DC2 includes a Server3, a Server4 and a first load balancing device LB2. The address of the first load balancing device LB1 is IPA, the address IPB of the first load balancing device LB2 corresponds to the real server addresses IP1 and IP2, and the back end of the IPB corresponds to the real server addresses IP3 and IP4. The terminal device may access a certain application through a domain name DomainA, and the second load balancing device may parse the domain name DomainA, where a domain name parsing result is IPA or IPB. The first load balancing device LB1 may set the request access interface MIP1, and the first load balancing device LB2 may set the request access interface MIP2 ". The second load balancing device may make data requests to the request access interface MIP1 of the first load balancing device LB1 and the request access interface MIP2 of the first load balancing device LB2, respectively.
According to the embodiment of the disclosure, the target server is determined according to the server detection result, so that server resources can be reasonably allocated, and the resources of the server are utilized to the maximum extent.
According to an embodiment of the present disclosure, generating a server detection result of a server according to an operation state detection result and health degree data includes: and under the condition that the health data representation server is determined to be in an available state, generating a server detection result of the server according to the running state detection result.
According to the embodiment of the disclosure, the health degree data can be acquired first, and the running state detection result is acquired again when the health degree data represents that the server is in an available state, and the server detection result of the server is generated according to the running state detection result. Under the condition that the health degree data representing server is in an available state and the running state detection result representing server is in a good running state, the server detection result can represent that the server can normally receive and process data, and under the condition that the health degree data representing server is in an available state and the running state detection result representing server is in a poor running state, the server detection result can represent that the server can normally receive data but the processing efficiency is low.
According to an embodiment of the present disclosure, in a case where the health data characterizes that the server is in an unavailable state, i.e., the server cannot be connected, the running state detection result may not be acquired. And when the second load balancing device sends a data request, feeding back to the second load balancing device that the server is not available.
According to the embodiment of the disclosure, whether the server is available is determined according to the health degree data, so that server resource waste caused by running state detection under the condition that the health degree data representation server is unavailable is avoided.
Fig. 3 schematically illustrates a flow chart of a request response method according to an embodiment of the disclosure.
As shown in fig. 3, the request response method of this embodiment is applied to a second load balancing apparatus, including operations S310 to S330.
In operation S310, in response to receiving a traffic request from a terminal device, a data request for acquiring a server detection result is transmitted to each of a plurality of first load balancing devices.
In operation S320, server detection results obtained by the detection method according to the embodiment of the present disclosure, which are sent by each of the plurality of first load balancing devices, are received, and a plurality of server detection results are obtained.
In operation S330, a target first load balancing device is determined from the plurality of first load balancing devices according to the plurality of server detection results, wherein the target first load balancing device is configured to process the traffic request.
According to the embodiments of the present disclosure, operations S310 to S330 may refer to descriptions of other embodiments of the present disclosure, and are not described herein.
According to the embodiment of the disclosure, the resources of the server are reasonably planned through the first load balancing device and the second load balancing device, so that adverse effects caused by incapability of providing services due to server abnormality are avoided.
Based on the detection method, the disclosure also provides a detection device. The device will be described in detail below in connection with fig. 4.
Fig. 4 schematically shows a block diagram of a detection device according to an embodiment of the present disclosure.
As shown in fig. 4, the detection apparatus 400 of this embodiment includes a first generation module 410 and a second generation module 420.
The first generating module 410 is configured to generate, in response to receiving the operation state data and the health data from the server, an operation state detection result of the server according to the operation state data, where the operation state detection result indicates a probability that the operation state of the server is normal, and the health data indicates a probability that the server is in an available state. In an embodiment, the first generating module 410 may be used to perform the operation S210 described above, which is not described herein.
The second generating module 420 is configured to generate a server detection result of the server according to the operation state detection result and the health degree data. In an embodiment, the second generating module 420 may be used to perform the operation S220 described above, which is not described herein.
According to an embodiment of the present disclosure, the detection device further includes:
the acquisition module is used for acquiring the system type information of the server by executing the timing detection task corresponding to the server;
the first determining module is used for determining a target detection template matched with the system type information from the detection template set; and
the third generation module is used for generating request information of target data according to the target detection template, wherein the target data comprises running state data and health degree data;
and the first sending module is used for sending the request information of the target data to the server.
According to an embodiment of the present disclosure, a first generating module for generating an operation state detection result of a server according to operation state data includes:
the first generation unit is used for generating an operation state comparison result according to the operation state data and a preset operation state threshold value; and
and the second generating unit is used for generating an operation state detection result of the server according to the operation state comparison result.
According to an embodiment of the present disclosure, the first load balancing apparatus includes a plurality of, and the detecting device further includes:
the second sending module is used for responding to the data request received from the second load balancing equipment and sending a server detection result to the second load balancing equipment, wherein the second load balancing equipment is used for determining a target first load balancing equipment from the plurality of first load balancing equipment according to the server detection results sent by the plurality of first load balancing equipment.
According to an embodiment of the present disclosure, the server includes a plurality of, and the detecting device further includes:
the second determining module is used for determining a target server from the plurality of servers according to server detection results corresponding to the plurality of servers respectively in response to receiving the flow request from the second load balancing device; and
and the third sending module is used for sending the flow request to the target server by using the target first load balancing equipment.
According to an embodiment of the present disclosure, a second generating module for generating a server detection result of a server according to an operation state detection result and health data, includes:
and the third generating unit is used for generating a server detection result of the server according to the running state detection result under the condition that the health data representation server is determined to be in an available state.
Based on the request response method, the disclosure further provides a request response device. The device will be described in detail below in connection with fig. 5.
Fig. 5 schematically shows a block diagram of a request response device according to an embodiment of the present disclosure.
As shown in fig. 5, the request response device 500 of this embodiment includes a fourth transmitting module 510, an obtaining module 520, and a third determining module 530.
A fourth sending module 510, configured to send, to each of the plurality of first load balancing devices, a data request for obtaining a server detection result in response to receiving a traffic request from the terminal device. In an embodiment, the fourth sending module 510 may be configured to perform the operation S310 described above, which is not described herein.
The obtaining module 520 is configured to receive server detection results obtained by the detection method according to the embodiment of the present disclosure, which are sent by each of the plurality of first load balancing devices, and obtain a plurality of server detection results. In an embodiment, the obtaining module 520 may be configured to perform the operation S320 described above, which is not described herein.
And a third determining module 530, configured to determine a target first load balancing device from the plurality of first load balancing devices according to the detection results of the plurality of servers, where the target first load balancing device is configured to process the traffic request. In an embodiment, the third determining module 530 may be configured to perform the operation S330 described above, which is not described herein.
Any of the plurality of modules of the first generation module 410 and the second generation module 420 may be combined in one module to be implemented, or any of the plurality of modules may be split into a plurality of modules, according to embodiments of the present disclosure. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the first generation module 410 and the second generation module 420 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable way of integrating or packaging circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the first generation module 410 and the second generation module 420 may be at least partially implemented as computer program modules that, when executed, perform the corresponding functions.
Fig. 6 schematically illustrates a block diagram of an electronic device adapted to implement a detection method according to an embodiment of the disclosure.
As shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. The processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 601 may also include on-board memory for caching purposes. The processor 601 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. The processor 601 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 602 and/or the RAM 603. Note that the program may be stored in one or more memories other than the ROM 602 and the RAM 603. The processor 601 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 600 may also include an input/output (I/O) interface 605, the input/output (I/O) interface 605 also being connected to the bus 604. The electronic device 600 may also include one or more of the following components connected to an input/output (I/O) interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to an input/output (I/O) interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 602 and/or RAM 603 and/or one or more memories other than ROM 602 and RAM 603 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to implement the detection methods provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 601. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of signals over a network medium, and downloaded and installed via the communication section 609, and/or installed from the removable medium 611. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 601. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (11)

1. The detection method is applied to first load balancing equipment and comprises the following steps:
generating an operation state detection result of a server according to operation state data and health degree data received from the server, wherein the operation state detection result represents the probability that the operation state of the server is normal, and the health degree data represents the probability that the server is in an available state; and
And generating a server detection result of the server according to the running state detection result and the health degree data.
2. The method of claim 1, further comprising:
acquiring system type information of the server by executing a timing detection task corresponding to the server;
determining a target detection template matched with the system type information from a detection template set;
generating request information of target data according to the target detection template, wherein the target data comprises the running state data and the health degree data; and
and sending request information of the target data to the server.
3. The method of claim 1, wherein the generating the server operation state detection result from the operation state data comprises:
generating an operation state comparison result according to the operation state data and a preset operation state threshold value; and
and generating an operation state detection result of the server according to the operation state comparison result.
4. A method according to any one of claims 1 to 3, wherein the first load balancing device comprises a plurality, the method further comprising:
And sending the server detection result to a second load balancing device in response to receiving a data request from the second load balancing device, wherein the second load balancing device is used for determining a target first load balancing device from a plurality of first load balancing devices according to the server detection results sent by the first load balancing devices.
5. The method of claim 4, wherein the server comprises a plurality, the method further comprising:
in response to receiving a traffic request from the second load balancing device, determining a target server from the plurality of servers according to the server detection results corresponding to the plurality of servers; and
and sending the flow request to the target server by using the target first load balancing equipment.
6. A method according to any one of claims 1 to 3, wherein the generating a server detection result of the server from the operation state detection result and the health data comprises:
and under the condition that the health degree data represents that the server is in an available state, generating a server detection result of the server according to the running state detection result.
7. A request response method is applied to a second load balancing device, and comprises the following steps:
in response to receiving a traffic request from a terminal device, sending a data request for acquiring a detection result of the server to each of a plurality of first load balancing devices;
receiving server detection results obtained by the method according to any one of claims 1 to 6, which are sent by each of the plurality of first load balancing devices, so as to obtain a plurality of server detection results; and
and determining a target first load balancing device from the plurality of first load balancing devices according to the detection results of the plurality of servers, wherein the target first load balancing device is used for processing the flow request.
8. A detection apparatus for use with a first load balancing device, comprising:
the server comprises a first generation module, a second generation module and a third generation module, wherein the first generation module is used for responding to the received operation state data and health degree data from a server and generating an operation state detection result of the server according to the operation state data, wherein the operation state detection result represents the probability that the operation state of the server is normal, and the health degree data represents the probability that the server is in an available state; and
And the second generation module is used for generating a server detection result of the server according to the running state detection result and the health degree data.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6 or the method of claim 7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1 to 6 or the method of claim 7.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6 or the method according to claim 7.
CN202310869766.2A 2023-07-14 2023-07-14 Detection method, detection device, electronic equipment, storage medium and request response method Pending CN117435444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310869766.2A CN117435444A (en) 2023-07-14 2023-07-14 Detection method, detection device, electronic equipment, storage medium and request response method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310869766.2A CN117435444A (en) 2023-07-14 2023-07-14 Detection method, detection device, electronic equipment, storage medium and request response method

Publications (1)

Publication Number Publication Date
CN117435444A true CN117435444A (en) 2024-01-23

Family

ID=89550428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310869766.2A Pending CN117435444A (en) 2023-07-14 2023-07-14 Detection method, detection device, electronic equipment, storage medium and request response method

Country Status (1)

Country Link
CN (1) CN117435444A (en)

Similar Documents

Publication Publication Date Title
US10785131B2 (en) Method and system for synchronous and asynchronous monitoring
US6996500B2 (en) Method for communicating diagnostic data
US10097433B2 (en) Dynamic configuration of entity polling using network topology and entity status
US7523454B2 (en) Apparatus and method for routing a transaction to a partitioned server
US10333816B2 (en) Key network entity detection
US10027529B2 (en) Distribued system for self updating agents and analytics
EP2388703A1 (en) Techniques for evaluating and managing cloud networks
US11632320B2 (en) Centralized analytical monitoring of IP connected devices
US20180176088A1 (en) Virtualized network function monitoring
US20200327045A1 (en) Test System and Test Method
CN110659109A (en) Openstack cluster virtual machine monitoring system and method
CN111769997A (en) Method, server, device and computer readable medium for network monitoring
Safrianti et al. Real-time network device monitoring system with simple network management protocol (snmp) model
US9674061B2 (en) Management system, management apparatus and management method
CN114338684B (en) Energy management system and method
CN117435444A (en) Detection method, detection device, electronic equipment, storage medium and request response method
EP3306471B1 (en) Automatic server cluster discovery
CN108880920B (en) Cloud service management method and device and electronic equipment
CN112583951B (en) Application layer double-live method, device, equipment and storage medium
CN114356713A (en) Thread pool monitoring method and device, electronic equipment and storage medium
CN114844957B (en) Link message conversion method, device, equipment, storage medium and program product
US11755444B2 (en) Monitoring higher-level service health in a scalable way
CN113794719B (en) Network abnormal traffic analysis method and device based on elastic search technology and electronic equipment
US20240022627A1 (en) Domain name system based global server load balancing service
CN117194269A (en) Detection method, detection device, electronic equipment and computer medium

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