CN114938377B - Back-end server management method and device, readable medium and electronic equipment - Google Patents
Back-end server management method and device, readable medium and electronic equipment Download PDFInfo
- Publication number
- CN114938377B CN114938377B CN202210418100.0A CN202210418100A CN114938377B CN 114938377 B CN114938377 B CN 114938377B CN 202210418100 A CN202210418100 A CN 202210418100A CN 114938377 B CN114938377 B CN 114938377B
- Authority
- CN
- China
- Prior art keywords
- server
- end server
- health
- reference index
- monitoring parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims description 35
- 230000036541 health Effects 0.000 claims abstract description 121
- 238000012544 monitoring process Methods 0.000 claims abstract description 99
- 230000003862 health status Effects 0.000 claims abstract description 64
- 238000000034 method Methods 0.000 claims abstract description 20
- 230000004044 response Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 8
- 238000000605 extraction Methods 0.000 claims description 4
- 238000001514 detection method Methods 0.000 abstract description 30
- 230000002159 abnormal effect Effects 0.000 abstract description 12
- 238000004088 simulation Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 11
- 238000002679 ablation Methods 0.000 description 6
- 230000009471 action Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 6
- 230000005856 abnormality Effects 0.000 description 5
- 230000006399 behavior Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 239000000523 sample Substances 0.000 description 4
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1029—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1031—Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Debugging And Monitoring (AREA)
- Computer And Data Communications (AREA)
Abstract
An object of an embodiment of the present disclosure is to provide a method and an apparatus for managing a backend server, an electronic device, and a computer readable storage medium, which relate to the technical field of load balancing, where the method for managing a backend server includes: receiving a first monitoring parameter sent by a load balancing server, wherein the first monitoring parameter comprises one or more server health status indexes; monitoring health status indexes of all servers in the back-end server; determining the health condition of the back-end server according to the health state indexes of the servers; and when the health condition of the back-end server is determined to be not in accordance with a preset condition, sending an extirpation request to the load balancing server so as to extirpate the back-end server. The method and the device can shorten the removal time of the abnormal server and improve the accuracy of simulation detection.
Description
Technical Field
The disclosure relates to the technical field of load balancing, and in particular relates to a back-end server management method, a device, electronic equipment and a computer readable storage medium.
Background
Under the high-flow and high-availability service scene, clients often deploy load balancing products, and the load balancing products can regularly detect the health condition of each back-end server.
In the prior art, load balancing checks the availability of a back-end server by periodically sending detection messages, and under the condition that the back-end server is abnormal in service, a plurality of detection periods need to be waited to remove the abnormal back-end server.
However, in the above technical solution, a plurality of periodic detection is required to be abnormal to confirm the back-end service abnormality, and the back-end service abnormality is easily affected by the external environment, so that there is a certain room for improvement in the removal time of the abnormal server and the accuracy of the simulation detection.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of an embodiment of the present disclosure is to provide a backend server management method, a backend server management apparatus, an electronic device, and a computer-readable storage medium, so as to shorten the removal time of an abnormal server and improve the accuracy of analog detection at least to some extent.
According to one aspect of the present disclosure, there is provided a backend server management method applied to a backend server, including:
Receiving a first monitoring parameter sent by a load balancing server, wherein the first monitoring parameter comprises one or more server health status indexes;
Monitoring health status indexes of all servers in the back-end server;
determining the health condition of the back-end server according to the health state indexes of the servers;
When the health condition of the back-end server is determined to be not in accordance with a preset condition, sending an extirpation request to the load balancing server so as to extirpation the back-end server;
determining a service port of a back-end server matched with the first monitoring parameter, and receiving the first monitoring parameter through the service port;
Monitoring the service port and acquiring the health state index through the service port;
the health state indexes of the servers comprise actual index values and reference index values corresponding to the health states; wherein the reference index value comprises a reference index range;
when the actual index value is in the reference index range, determining that the back-end server is healthy; and/or
And when the actual index value is not in the reference index range, determining that the back-end server is unhealthy.
According to one aspect of the present disclosure, a backend server management method is provided, which is applied to a load balancing server; comprising the following steps:
sending a first monitoring parameter to a back-end server so as to monitor the health status index of each server in the back-end server and determine the health condition of the back-end server according to the health status index of each server;
when an extirpation request sent by a back-end server is received, wherein the health condition of the back-end server does not accord with a preset condition, extirpation is carried out on the back-end server;
the load balancing server comprises a health check service and acquires corresponding health check data in the health check service;
sending a first monitoring parameter to a back-end server according to the health check data;
When a first response operation of a user is received, adjusting the first monitoring parameter; the first responsive operation includes modifying the health check data; and/or
Deleting the first monitoring parameters when receiving a second response operation of the user; the second responsive operation includes shutting down the health check service.
According to an aspect of the present disclosure, there is provided a backend server management apparatus applied to a backend server, including:
The receiving module is used for receiving a first monitoring parameter sent by the load balancing server, wherein the first monitoring parameter comprises one or more server health state indexes and corresponding reference index values;
the monitoring module is used for monitoring the actual index value of the health state index of each server in the back-end server;
the server state determining module is used for determining the health condition of the back-end server according to the actual index value and the reference index value of each server health state index;
And the request sending module is used for sending an extirpation request to the load balancing server when the health condition of the back-end server is determined not to meet the preset condition, so as to extirpation the back-end server.
According to an aspect of the present disclosure, there is provided a backend server management apparatus applied to a load balancing server, including:
The sending module is used for sending a first monitoring parameter to the back-end server, wherein the first monitoring parameter comprises one or more server health status indexes so as to monitor the health status indexes of the servers in the back-end server and determine the health condition of the back-end server according to the health status indexes of the servers;
The removing module is used for removing the back-end server when the removing request sent by the back-end server is received and the health condition of the back-end server does not accord with the preset condition.
According to one aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of any of the above via execution of the executable instructions.
According to one aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above.
Exemplary embodiments of the present disclosure may have some or all of the following advantages:
In the back-end server management method provided by the exemplary embodiment of the present disclosure, a first monitoring parameter sent by a load balancing server may be received, where the first monitoring parameter includes one or more server health status indicators; monitoring health status indexes of all servers in the back-end server; determining the health condition of the back-end server according to the health state indexes of the servers; and when the health condition of the back-end server is determined to be not in accordance with a preset condition, sending an extirpation request to the load balancing server so as to extirpate the back-end server. On one hand, the back-end server detects the deployed service abnormality and immediately informs the load balance to remove the back-end server, the detection of the back-end server on the self service can more truly reflect the service availability, and meanwhile, the detection period does not need to be waited, so that the removal time of the abnormal server is shortened; on the other hand, the detection mode of the back-end server to the self service is not influenced by external factors, such as the influence of network stability, so that the detection error of service availability is reduced, and the accuracy of the simulation detection is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 illustrates a schematic diagram of an exemplary system architecture of a backend server management device to which embodiments of the present disclosure may be applied;
FIG. 2 schematically illustrates a flow diagram of a backend server management method according to one embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of receiving a first monitored parameter in one embodiment according to the present disclosure;
FIG. 4 schematically illustrates a flow diagram of requesting removal of a backend server in accordance with one embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow chart of transmitting a first monitored parameter in one embodiment according to the present disclosure;
FIG. 6 schematically illustrates a backend server management method presentation in accordance with one embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a backend server apparatus in one embodiment in accordance with the present disclosure;
FIG. 8 schematically illustrates a block diagram of a backend server apparatus in one embodiment according to the present disclosure;
Fig. 9 schematically illustrates a structural schematic diagram of a computer system suitable for use in implementing the electronic device of the embodiments of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 illustrates a schematic diagram of a system architecture of an exemplary application environment in which a back-end server management method and apparatus of embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of the terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others. The terminal devices 101, 102, 103 may be various electronic devices with display screens including, but not limited to, desktop computers, portable computers, smart phones, tablet computers, and the like. It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, the server 105 may be a server cluster formed by a plurality of servers.
The method for managing a backend server provided in the embodiments of the present disclosure may be executed on the server 105, and accordingly, the backend server management device is generally disposed in the server 105. The backend server management method provided in the embodiment of the present disclosure may also be executed by the terminal devices 101, 102, 103, and accordingly, the backend server management apparatus may also be provided in the terminal devices 101, 102, 103, which is not particularly limited in the present exemplary embodiment.
For example, in one exemplary embodiment, the server 105 may receive a first monitoring parameter sent by the load balancing server, the first monitoring parameter including one or more server health indicators; monitoring health status indexes of all servers in the back-end server; determining the health condition of the back-end server according to the health state indexes of the servers; when the health condition of the back-end server is determined to be not in accordance with a preset condition, sending an extirpation request to the load balancing server so as to extirpation the back-end server; the above application scenario is only for example, and the present exemplary embodiment is not limited thereto.
The implementation details of the technical scheme of the embodiment of the invention are described in detail below:
Fig. 2 schematically shows a flowchart of a backend server management method according to one embodiment of the present invention, which is applicable to the electronic device described in the foregoing embodiments. Referring to fig. 2, the back-end server management method at least includes steps S210 to S240, and is described in detail as follows:
Step S210, receiving a first monitoring parameter sent by a load balancing server, wherein the first monitoring parameter comprises one or more server health status indexes;
step S220, monitoring the health status index of each server in the backend server;
Step S230, determining the health condition of the back-end server according to the health status index of each server;
And step S240, when the health condition of the back-end server is determined to be not in accordance with a preset condition, sending an extirpation request to the load balancing server so as to extirpation the back-end server.
In the back-end server management method provided by the example embodiment, on one hand, the back-end server detects the deployed service abnormality and immediately notifies the load balancing to remove itself, and the detection of the back-end server to the self service can more truly reflect the service availability without waiting for a detection period, so that the removal time of the abnormal server is shortened; on the other hand, the detection mode of the back-end server to the self service is not influenced by external factors, such as the influence of network stability, so that the detection error of service availability is reduced, and the accuracy of the simulation detection is improved.
In another embodiment, the above steps are described in more detail below.
In step S210, a first monitoring parameter sent by a load balancing server is received, where the first monitoring parameter includes one or more server health status indicators; the first monitoring parameter may be used to monitor the health condition of the back-end server, for example, the first monitoring parameter may be port data, in this embodiment, the first monitoring parameter may also be a monitoring script, for example, the back-end server may monitor, according to a configuration parameter in the first monitoring script, an available state of a specified service, for example, by using one or more server health status indicators in the first monitoring script and corresponding reference index values, to determine the health condition of the back-end server, where the server health status indicator may include an actual measurement of a server health phenomenon, to reflect the health condition of the server from a certain aspect or a certain side, for example, the server health status indicator may refer to a server health performance indicator, or may refer to a server health technical indicator, and in this embodiment, the health status indicator of the server may also be reflected by reference index values, that is, may be understood as representing the health status indicator of the server in the form of a parameter value; the reference index value may be a standard for measuring whether the server is in a health state, and the reference index value may also have a reference index range, for example, in this embodiment, if the current index value of the server is in the reference index value range of the corresponding server, the server is determined to be healthy, and it may be understood that the reference index value is an index value corresponding to a health state index of the backend server, in this embodiment, the first script parameter sent by the load balancing server may be one or more health state indexes of the server and a reference index value corresponding to one or more health state indexes of the server, which is not limited in this embodiment.
In another embodiment of the present application, the health indicator may also include determining that the server meets the health indicator requirement if the back-end server can correctly respond to the detection behavior, for example, sending a detection behavior through health check, and determining that the corresponding back-end server is healthy if the back-end server makes a correct response; wherein the reply of the backend server may include information regarding the probing behavior, such as: a tcp (Transmission Control Protocol ) connection is initiated, and the connection can be normally established, so that the detection back-end server is considered to be normal; or initiate an http (Hyper Text Transfer Protocol ) request, and when the back-end server can answer normally, consider that the back-end server is normal, which is not limited in this embodiment.
For example, in this embodiment, referring to fig. 3, the first monitoring parameter may be sent to the backend server through the following steps S310 to S320:
In step S310, determining a service port of the backend server matched with the first monitoring parameter; the back-end server may include a plurality of service ports, and by determining information of the service ports matched with the first monitoring parameter, the information of the service ports may be used to compare various index values of the back-end server, where the information of the service ports may include health status index information of the back-end server, for example, an actual index value and a reference index value of the health status index of the back-end server, for example, in this embodiment, the service ports may compare the actual index value and the reference index value of each health status index of the servers, and the service ports may further receive the first monitoring parameter; in another embodiment of the present application, the service port may receive a probe action sent by the health check, and may also make a correct response to the probe action through the service port, and may determine the health condition of the back-end server according to information received by the service port, for example, may initiate a tcp connection, and may determine that the back-end server is normal if the connection is normally established according to the tcp connection, and may also initiate an http request, and may receive the http request through the service port, and may determine that the back-end server is normal if the back-end server is normally answered, which is not limited in the embodiment of the present application.
In step S320, the first monitoring parameter is received through the service port; for example, in this embodiment, the service port may receive one or more server health status indicators and corresponding reference indicator values, which is not limited in this embodiment.
In step S220, monitoring health status indicators of each of the servers in the backend server; the server health status indicator may include an actual indicator value under the health status of the server, in this embodiment, the status of the back-end server may be determined by monitoring an actual indicator value and a reference indicator value of each health status indicator of the back-end server, where the actual indicator value may refer to an indicator value corresponding to the health status indicator of the back-end server in a real-time status, the actual indicator value may be used to measure the service status of the current back-end server of the server, for example, the service status of the current back-end server may be determined by comparing the reference indicator value and the actual indicator value of the health indicator value of the back-end server, and in this embodiment, the actual indicator value of the health status indicator may be obtained by monitoring a service port of the back-end server and according to the service port information.
In step S230, determining the health condition of the backend server according to the health status index of each server; the health condition of the backend server may be determined according to the actual index value and the reference index value of each server health status index, for example, the health condition of the backend server may be determined according to the difference between the actual index value and the reference index value of each server health status index, or according to whether the actual index value reaches the range of the reference index value, for example, in this embodiment, the reference index value may include the range of the reference index; the reference index range is a standard for measuring whether the server is healthy, for example, when the actual index value is within the reference index range, the health of the back-end server is determined; and/or if the actual index value is not in the reference index range, determining that the back-end server is unhealthy.
In another embodiment of the present application, the server health status indicator may further include sending a probe action through health check, if the backend server can correctly answer the probe action, determining that the server is in a health status, for example, a tcp connection may be initiated, and if the connection can be normally established, the backend server is considered to be normal, which is not limited in the present application.
In step S240, when it is determined that the health condition of the backend server does not meet the preset condition, an ablation request is sent to the load balancing server, so as to ablate the backend server, where the preset condition may be that a preset number of actual index values do not reach the corresponding reference index value standard, for example, the preset number may be two actual index values, that is, when more than two actual index values do not reach the standard, the ablation request is sent to the load balancing server, or when a preset index value does not reach the corresponding reference index value, the ablation request may be sent to the load balancing server, for example, in this embodiment, the method may further include ablating the backend server whose actual index value is not within the reference index range, for example, when the actual index value of the backend server is not within the reference index range, the backend server sends the ablation request to the load balancing server, which is not limited in this embodiment.
In this embodiment, another backend server management method is also provided, which is applied to the load balancing server, and referring to fig. 4, the backend exception server is removed through the following steps S410 to S420:
In step S410, a first monitoring parameter is sent to a backend server, so as to monitor health status indexes of each server in the backend server and determine health conditions of the backend server according to the health status indexes of each server; the first monitoring parameter may be used to monitor health of the backend server, where the first monitoring parameter may include one or more server health status indicators, for example, in this embodiment, the first monitoring parameter may be a first monitoring script, and the first monitoring script is sent to the backend server through the load balancing server, and the health of the server is determined through the first monitoring script; the first monitoring parameter may also be a detection behavior sent by the health check of the load balancing server, and the health condition of the server is determined according to whether the back-end server can correctly respond to the detection behavior, which is not limited in this embodiment.
In this embodiment, referring also to fig. 5, the first monitoring parameters are sent to the backend server through steps S510 to S520:
in step S510, the load balancing server includes a health check service, and acquires health check data corresponding to the health check service; the health check service may send a detection action, if the back-end server makes a correct response, it is determined that the state of the back-end server is normal, for example, the health check service may initiate a tcp connection, if the connection can be established normally, it is considered that the detection back-end server is normal, or may initiate an http request, if the back-end server can respond normally, it is considered that the back-end server is normal; the health check service may also be configured to send a detection message to the backend server, and determine the health condition of the backend server according to the detection message, where in this embodiment, the health check service may also send the first monitoring parameter, and the health check service may also send one or more server health status indicators and corresponding reference indicator values, to determine the health status of the server, and in this embodiment, the health status is not limited to this.
In step S520, a first monitoring parameter is sent to a backend server according to the health check data; the health check service may send a first monitoring parameter to detect health condition of the back-end server, for example, in this embodiment, the first monitoring parameter may be sent by the health check service, and the health state of the back-end server is monitored according to the first monitoring parameter.
In step S420, when an ablation request sent by a back-end server is received, the health condition of the back-end server does not meet a preset condition, the back-end server is removed; the preset condition may be a preset time, for example, the back-end server that fails to receive the first monitoring parameter sent by the load balancing is removed, in this embodiment, removing the back-end server that does not have an actual index value within the reference index range may be further included, for example, when the actual index value of the back-end server is not within the reference index range, the back-end server sends a removal request to the load balancing server, and the load balancing server removes the back-end server, in another embodiment of the present application, determining the back-end server that fails to respond to the first monitoring parameter correctly may also be included as an abnormal server, and removing the abnormal server, for example, a tcp connection may be initiated, and if the connection cannot be established normally, detecting that the back-end server is abnormal and removing it may be considered, and the embodiment is not limited thereto.
Based on the foregoing technical solutions of the foregoing embodiments, in one embodiment of the present invention, the first monitoring parameter may be adjusted by receiving a first response operation of a user, where the first response operation includes modifying the health check data, and the first monitoring parameter may be deleted by receiving a second response operation of the user, where the second response operation includes turning off the health check service.
In summary, in the method for managing a backend server provided by the exemplary embodiments of the present disclosure, a first monitoring parameter sent by a load balancing server may be received, where the first monitoring parameter includes one or more server health status indicators; monitoring health status indexes of all servers in the back-end server; determining the health condition of the back-end server according to the health state indexes of the servers; and when the health condition of the back-end server is determined to be not in accordance with a preset condition, sending an extirpation request to the load balancing server so as to extirpate the back-end server. On one hand, the back-end server detects the deployed service abnormality and immediately informs the load balance to remove the back-end server, the detection of the back-end server on the self service can more truly reflect the service availability, and meanwhile, the detection period does not need to be waited, so that the removal time of the abnormal server is shortened; on the other hand, the detection mode of the back-end server to the self service is not influenced by external factors, such as the influence of network stability, and the detection error of service availability is reduced, so that the accuracy of the simulation detection is improved.
In another embodiment of the present solution, the backend server management method described above may be further described with reference to fig. 6: in step S603, a health check request may be sent to the backend server 602 according to the load balancing server 601, where a certain time interval exists when the health check request is continuously sent, where the health check request includes sending a first monitoring parameter, where the first monitoring parameter includes one or more server health status indicators and corresponding reference indicator values, and the load balancing server 601 may monitor actual indicator values of the health status indicators of the servers in the backend server 602; in step S604, a server deployment service exception is determined according to the actual index value and the reference index value of each server health status index, in step S605, a service exception request of the server deployment is sent to the load balancing server 601, and the exception server is removed by the load balancing server 601.
Fig. 7 schematically shows a block diagram of a backend server management apparatus according to one embodiment of the present invention.
Referring to fig. 7, a back-end server management apparatus 700 according to an embodiment of the present invention includes a receiving module 710, a monitoring module 720, a determining server status module 730, and a request transmitting module 740.
The receiving module 710 is configured to receive a first monitoring parameter sent by the load balancing server, where the first monitoring parameter includes one or more server health status indicators;
The monitoring module 720 is configured to monitor health status indicators of each of the servers in the backend server;
a server state determining module 730, configured to determine a health condition of the backend server according to each server health state index;
and the request sending module 740 is configured to send an ablation request to the load balancing server when it is determined that the health condition of the backend server does not meet the preset condition, so as to ablate the backend server.
In an exemplary embodiment of the present disclosure, the receiving module 710 includes:
a receiving unit: determining a service port of a back-end server matched with the first monitoring parameter, and receiving the first monitoring parameter through the service port;
monitoring unit: and monitoring the service port and acquiring the health state index based on the service port.
In an exemplary embodiment of the present disclosure, the determining server state module 730 includes:
determining a server state unit: the health state indexes of the servers comprise actual index values and reference index values corresponding to the health states; the reference index value comprises a reference index range, and when the actual index value is within the reference index range, the health of the back-end server is determined; and/or
And when the actual index value is not in the reference index range, determining that the back-end server is unhealthy.
Fig. 8 schematically shows a block diagram of a back-end server management apparatus according to another embodiment of the present invention.
Referring to fig. 8, a backend server management apparatus 800 according to one embodiment of the present invention includes a transmission module 810 and an extraction module 820.
The sending module 810 is configured to send a first monitoring parameter to a backend server, where the first monitoring parameter includes one or more server health status indicators, so as to monitor each server health status indicator in the backend server, and determine a health condition of the backend server according to each server health status indicator;
and the removal module 820 is configured to remove the back-end server when a removal request sent by the back-end server when the health condition of the back-end server does not meet a preset condition is received.
In an exemplary embodiment of the present disclosure, the transmitting module 810 includes:
A transmitting unit: the load balancing server comprises health examination, acquires health examination data corresponding to the health examination, and sends first monitoring parameters to the rear-end server according to the health examination data.
And an adjustment parameter unit: when a first response operation of a user is received, adjusting the first monitoring parameter; the first responsive operation includes modifying the health check data; and/or
Deleting the first monitoring parameters when receiving a second response operation of the user; the second responsive operation includes closing the health check.
Fig. 9 shows a schematic diagram of a computer system suitable for use in implementing embodiments of the present disclosure.
It should be noted that, the computer system 900 of the electronic device shown in fig. 9 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present disclosure.
As shown in fig. 9, the computer system 900 includes a Central Processing Unit (CPU) 901, which can execute various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. In the RAM903, various programs and data required for system operation are also stored. The CPU 901, ROM 902, and RAM903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
The following components are connected to the I/O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output portion 907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 908 including a hard disk or the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 910 so that a computer program read out therefrom is installed into the storage section 908 as needed.
In particular, according to embodiments of the present disclosure, the processes described below with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909 and/or installed from the removable medium 911. When being executed by a Central Processing Unit (CPU) 901, performs the various functions defined in the method and apparatus of the present application. In some embodiments, computer system 900 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present invention may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a touch terminal, or a network device, etc.) to perform the method according to the embodiments of the present invention.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. The scope of the application is limited only by the appended claims.
Claims (11)
1. A back-end server management method is applied to a back-end server; characterized in that the method comprises:
Receiving a first monitoring parameter sent by a load balancing server, wherein the first monitoring parameter comprises one or more server health status indexes;
Monitoring health status indexes of all servers in the back-end server;
determining the health condition of the back-end server according to the health state indexes of the servers, wherein the health state indexes of the servers comprise actual index values and reference index values corresponding to the health states, and the reference index values comprise a reference index range;
and when the health condition of the back-end server is determined to be not in accordance with a preset condition, sending an extirpation request to the load balancing server so as to extirpation the back-end server, wherein the preset condition means that the preset number of actual index values do not reach the corresponding reference index value standard.
2. The back-end server management method of claim 1, wherein the receiving the first monitoring parameter sent by the load balancing server comprises:
And determining a service port of the back-end server matched with the first monitoring parameter, and receiving the first monitoring parameter through the service port.
3. The back-end server management method of claim 2, wherein the receiving the first monitoring parameter through the service port comprises:
and monitoring the service port and acquiring the health state index through the service port.
4. The method for backend server management according to claim 1, wherein,
When the actual index value is in the reference index range, determining that the back-end server is healthy; and/or
And when the actual index value is not in the reference index range, determining that the back-end server is unhealthy.
5. A back-end server management method is applied to a load balancing server; characterized in that the method comprises:
Sending a first monitoring parameter to a back-end server so as to monitor health status indexes of servers in the back-end server and determine health conditions of the back-end server according to the health status indexes of the servers, wherein the health status indexes of the servers comprise actual index values and reference index values corresponding to the health status, and the reference index values comprise a reference index range;
When an extraction request sent by a back-end server is received, wherein the health condition of the back-end server does not meet the preset condition, the back-end server is extracted, and the preset condition means that the preset number of actual index values do not reach the corresponding reference index value standard.
6. The back-end server management method of claim 5, wherein the sending the first monitoring parameter to the back-end server comprises:
The load balancing server comprises a health check service and acquires health check data corresponding to the health check service;
And sending a first monitoring parameter to a back-end server according to the health check data.
7. The back-end server management method of claim 6, wherein the method further comprises:
When a first response operation of a user is received, adjusting the first monitoring parameter; the first responsive operation includes modifying the health check data; and/or
Deleting the first monitoring parameters when receiving a second response operation of the user; the second responsive operation includes shutting down the health check service.
8. A back-end server management device is applied to a back-end server; characterized by comprising the following steps:
the receiving module is used for receiving a first monitoring parameter sent by the load balancing server, wherein the first monitoring parameter comprises one or more server health status indexes;
the monitoring module is used for monitoring the health state indexes of the servers in the back-end server;
The server state determining module is used for determining the health condition of the back-end server according to the health state indexes of the servers, wherein the health state indexes of the servers comprise actual index values and reference index values corresponding to the health states, and the reference index values comprise a reference index range;
And the request sending module is used for sending an extirpation request to the load balancing server when the health condition of the back-end server is determined not to meet the preset condition, so as to extirpation the back-end server, wherein the preset condition means that the preset number of actual index values do not reach the corresponding reference index value standard.
9. A back-end server management device is applied to a load balancing server; characterized by comprising the following steps:
The system comprises a sending module, a receiving module and a judging module, wherein the sending module is used for sending a first monitoring parameter to a back-end server, the first monitoring parameter comprises one or more server health status indexes so as to monitor the health status indexes of the servers in the back-end server and determine the health condition of the back-end server according to the health status indexes of the servers, wherein the health status indexes of the servers comprise actual index values and reference index values corresponding to the health status, and the reference index values comprise a reference index range;
The extraction module is used for extracting the back-end server when an extraction request sent by the back-end server when the health condition of the back-end server does not meet the preset condition is received, wherein the preset condition means that the preset number of actual index values do not reach the corresponding reference index value standard.
10. A computer readable medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any one of claims 1 to 7.
11. An electronic device, comprising:
A processor; and
A memory for storing executable instructions of the processor;
Wherein the processor is configured to perform the method of any of claims 1-7 via execution of the executable instructions.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210418100.0A CN114938377B (en) | 2022-04-20 | 2022-04-20 | Back-end server management method and device, readable medium and electronic equipment |
PCT/CN2023/074304 WO2023202182A1 (en) | 2022-04-20 | 2023-02-02 | Back-end server management method and apparatus, readable medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210418100.0A CN114938377B (en) | 2022-04-20 | 2022-04-20 | Back-end server management method and device, readable medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114938377A CN114938377A (en) | 2022-08-23 |
CN114938377B true CN114938377B (en) | 2024-05-17 |
Family
ID=82862825
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210418100.0A Active CN114938377B (en) | 2022-04-20 | 2022-04-20 | Back-end server management method and device, readable medium and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114938377B (en) |
WO (1) | WO2023202182A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114938377B (en) * | 2022-04-20 | 2024-05-17 | 京东科技信息技术有限公司 | Back-end server management method and device, readable medium and electronic equipment |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7313735B1 (en) * | 2004-04-30 | 2007-12-25 | Sun Microsystems, Inc. | In-line server health checking |
CN106797405A (en) * | 2016-12-14 | 2017-05-31 | 华为技术有限公司 | Distributed load equalizing system, health examination method and service node |
CN110177028A (en) * | 2019-05-30 | 2019-08-27 | 北京字节跳动网络技术有限公司 | Distributed health examination method and device |
CN110311988A (en) * | 2019-07-30 | 2019-10-08 | 中国工商银行股份有限公司 | Health examination method, load-balancing method and the device of back-end server |
US10505818B1 (en) * | 2015-05-05 | 2019-12-10 | F5 Networks. Inc. | Methods for analyzing and load balancing based on server health and devices thereof |
CN110581855A (en) * | 2019-09-12 | 2019-12-17 | 中国工商银行股份有限公司 | Application control method and device, electronic equipment and computer readable storage medium |
CN111556125A (en) * | 2020-04-24 | 2020-08-18 | 北京奇艺世纪科技有限公司 | Access request distribution method, load balancing equipment and electronic equipment |
CN111813625A (en) * | 2020-06-30 | 2020-10-23 | 中国工商银行股份有限公司 | Health check method and device for distributed server cluster |
CN112738238A (en) * | 2020-12-29 | 2021-04-30 | 北京天融信网络安全技术有限公司 | Method, device and system for health check in load balancing |
CN112882895A (en) * | 2021-02-22 | 2021-06-01 | 中国工商银行股份有限公司 | Health examination method, device, computer system and readable storage medium |
CN113051143A (en) * | 2019-12-27 | 2021-06-29 | 中国移动通信集团湖南有限公司 | Detection method, device, equipment and storage medium for service load balancing server |
CN113824768A (en) * | 2021-08-23 | 2021-12-21 | 北京天融信网络安全技术有限公司 | Health check method and device in load balancing system and flow forwarding method |
CN114172829A (en) * | 2022-02-10 | 2022-03-11 | 统信软件技术有限公司 | Server health monitoring method and system and computing equipment |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8239535B2 (en) * | 2005-06-06 | 2012-08-07 | Adobe Systems Incorporated | Network architecture with load balancing, fault tolerance and distributed querying |
CN106302595B (en) * | 2015-06-02 | 2020-03-17 | 阿里巴巴集团控股有限公司 | Method and equipment for carrying out health check on server |
JP6639245B2 (en) * | 2016-01-18 | 2020-02-05 | キヤノン株式会社 | Server system, method and program for controlling server system. |
CN110602169B (en) * | 2019-08-13 | 2022-11-29 | 未鲲(上海)科技服务有限公司 | Service calling method and device, computer equipment and storage medium |
CN110912779A (en) * | 2019-12-05 | 2020-03-24 | 苏州浪潮智能科技有限公司 | Cluster host health detection method, system, equipment and readable storage medium |
CN113127201A (en) * | 2021-04-23 | 2021-07-16 | 中国工商银行股份有限公司 | Fault application server isolation method and device, electronic equipment and storage medium |
CN114938377B (en) * | 2022-04-20 | 2024-05-17 | 京东科技信息技术有限公司 | Back-end server management method and device, readable medium and electronic equipment |
-
2022
- 2022-04-20 CN CN202210418100.0A patent/CN114938377B/en active Active
-
2023
- 2023-02-02 WO PCT/CN2023/074304 patent/WO2023202182A1/en unknown
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7313735B1 (en) * | 2004-04-30 | 2007-12-25 | Sun Microsystems, Inc. | In-line server health checking |
US10505818B1 (en) * | 2015-05-05 | 2019-12-10 | F5 Networks. Inc. | Methods for analyzing and load balancing based on server health and devices thereof |
CN106797405A (en) * | 2016-12-14 | 2017-05-31 | 华为技术有限公司 | Distributed load equalizing system, health examination method and service node |
CN110177028A (en) * | 2019-05-30 | 2019-08-27 | 北京字节跳动网络技术有限公司 | Distributed health examination method and device |
CN110311988A (en) * | 2019-07-30 | 2019-10-08 | 中国工商银行股份有限公司 | Health examination method, load-balancing method and the device of back-end server |
CN110581855A (en) * | 2019-09-12 | 2019-12-17 | 中国工商银行股份有限公司 | Application control method and device, electronic equipment and computer readable storage medium |
CN113051143A (en) * | 2019-12-27 | 2021-06-29 | 中国移动通信集团湖南有限公司 | Detection method, device, equipment and storage medium for service load balancing server |
CN111556125A (en) * | 2020-04-24 | 2020-08-18 | 北京奇艺世纪科技有限公司 | Access request distribution method, load balancing equipment and electronic equipment |
CN111813625A (en) * | 2020-06-30 | 2020-10-23 | 中国工商银行股份有限公司 | Health check method and device for distributed server cluster |
CN112738238A (en) * | 2020-12-29 | 2021-04-30 | 北京天融信网络安全技术有限公司 | Method, device and system for health check in load balancing |
CN112882895A (en) * | 2021-02-22 | 2021-06-01 | 中国工商银行股份有限公司 | Health examination method, device, computer system and readable storage medium |
CN113824768A (en) * | 2021-08-23 | 2021-12-21 | 北京天融信网络安全技术有限公司 | Health check method and device in load balancing system and flow forwarding method |
CN114172829A (en) * | 2022-02-10 | 2022-03-11 | 统信软件技术有限公司 | Server health monitoring method and system and computing equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2023202182A1 (en) | 2023-10-26 |
CN114938377A (en) | 2022-08-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112162878B (en) | Database fault discovery method and device, electronic equipment and storage medium | |
CN110674009B (en) | Application server performance monitoring method and device, storage medium and electronic equipment | |
CN110175278B (en) | Detection method and device for web crawler | |
EP3575975A1 (en) | Method and apparatus for operating smart network interface card | |
JP6542096B2 (en) | Failure diagnosis system | |
CN113438106B (en) | Content distribution network processing method and device and electronic equipment | |
CN114938377B (en) | Back-end server management method and device, readable medium and electronic equipment | |
CN114064208A (en) | Method and device for detecting application service state, electronic equipment and storage medium | |
CN112732499A (en) | Test method and device based on micro-service architecture and computer system | |
CN113037589A (en) | Pressure testing method and device of gateway equipment, testing platform and storage medium | |
CN112887355B (en) | Service processing method and device for abnormal server | |
CN112583617B (en) | Fault determination method, server, control terminal and storage medium | |
CN112395194B (en) | Method and device for accessing test platform | |
CN113849356A (en) | Equipment testing method and device, electronic equipment and storage medium | |
CN111767178B (en) | Physical machine performance test method and device | |
CN109039813B (en) | Method, system and equipment for detecting internet access | |
CN114095394A (en) | Network node fault detection method and device, electronic equipment and storage medium | |
CN112199281A (en) | Data processing method and device, terminal equipment and readable storage medium | |
CN113986603B (en) | Method and device for determining page loading abnormity reason and storage medium | |
US10986014B2 (en) | Monitoring system and non-transitory computer-readable recording medium storing monitoring program | |
US20200387436A1 (en) | Failure detection system and non-transitory computer-readable recording medium storing failure detection program | |
US20240129202A1 (en) | Analysis device, analysis system, analysis method, and analysis program | |
CN115686911A (en) | Server-side self-checking method and device, electronic equipment and storage medium | |
CN115794365A (en) | Database cluster access method, device, equipment and storage medium | |
CN117692327A (en) | Gray scale issuing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |