Server management method, system, apparatus, and electronic device

By monitoring the operational status of the second server from the first server and automatically managing the connection path, the problem of low efficiency in manually restoring the connection between the abnormal data center and the user end is solved, and automated connection management and timely switching of service requests are realized.

CN116760750BActive Publication Date: 2025-12-26INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310840803.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-10
Publication Date
2025-12-26
Estimated Expiration
2043-07-10

AI Technical Summary

Technical Problem

Existing technologies that require manual restoration of the connection between the abnormal data center and the user terminal are inefficient and cannot promptly ascertain the status of the abnormal data center, resulting in untimely connection restoration.

Method used

The first server monitors the operating status of the second server, and in case of an anomaly, disconnects the connection path between the probe server and the second server. When normal operation is restored, the connection is re-established. The status of the second server is automatically monitored using normally closed connection paths, thus achieving automatic connection management.

Benefits of technology

It has achieved automated connection management, improved the efficiency of the connection between abnormal data centers and user terminals, and ensured that service requests can be switched to normal data centers for processing in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116760750B_ABST
    Figure CN116760750B_ABST
Patent Text Reader

Abstract

The application discloses a server management method, system and device and electronic equipment. It relates to the field of communication. The method comprises the following steps: monitoring the running state of a first server through a first connection path, and determining whether the first server is abnormal, wherein the first server is used for monitoring the running state of a second server, and the running state of the first server is set to be consistent with the running state of the second server; in the case that the first server is abnormal, cutting off a second connection path between a detection server and the second server, wherein the first server and the second server have an association relationship; monitoring the running state of the first server through the first connection path, and in the case that the first server returns to normal, restoring the second connection path between the detection server and the second server. Through the application, the problem of low efficiency of the method of manually restoring the connection between the abnormal data center and the user end in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication, in particular to a server management method, system, device and electronic equipment. BACKGROUND

[0002] With the increasing amount of data of financial institutions, the number of data centers is also increasing, thereby completing the storage and processing of data. At present, multiple data center parks use BGP (Border Gateway Protocol) dynamic routing to access the Internet, and the BGP protocol needs each data center to announce IP addresses to the Internet. The announced IP addresses are usually the service addresses of the backend load balancing, so that the dynamic routing can dynamically select the IP address of the data center that processes the business according to the state of each data center, and then send the business information to the corresponding data center.

[0003] In some special scenarios, BGP Anycast technology (BGP propagation) needs to be used, that is, a technology for using BGP to realize a state in which multiple points share an IP to provide services, for example, the IP addresses of data center A and data center B are the same. At this time, in the case of an abnormal data center, since the IP addresses of data center A and data center B are the same, it is necessary to cut off the connection between the abnormal data center and the user end, so as to ensure that the business information sent by the user end will not be sent to the abnormal data center.

[0004] However, in the above abnormal situation, since the connection between the abnormal data center and the user end has been cut off, the server cannot know whether the abnormal data center has recovered to normal, so as to not be able to use the recovered abnormal data center in time. At present, when the server can know the state of the abnormal data center in time, the artificial notification and artificial recovery connection mode are still used for recovery, thereby consuming manpower to perform the above operation.

[0005] In view of the low efficiency of the method of artificially recovering the connection between the abnormal data center and the user end in the related art, there is no effective solution at present. SUMMARY

[0006] The present application provides a server management method, system, device and electronic equipment to solve the problem of low efficiency of the method of artificially recovering the connection between the abnormal data center and the user end in the related art.

[0007] According to an aspect of the present application, a server management method is provided. The method comprises: monitoring a running state of a first server through a first connection path, and determining whether the first server is abnormal, wherein the first server is configured to monitor a running state of a second server, and set its own running state as a running state consistent with the second server, and the second server is configured to process a service request sent by a user terminal; in the case that the first server is abnormal, cutting off a second connection path between a detection server and the second server, wherein the first server and the second server have an association relationship; monitoring the running state of the first server through the first connection path, and in the case that the first server returns to normal, restoring the second connection path between the detection server and the second server.

[0008] Optionally, after cutting off the second connection path between the detection server and the second server, the method further comprises: after the detection server receives the service request sent by the user terminal, sending feedback information to the user terminal, wherein the feedback information is configured to instruct the user terminal to reselect the second server to process the service request.

[0009] Optionally, a route of the first connection path between the detection server and the first server is configured as a static route, a route of the second connection path between the detection server and the second server is configured as a static route, and a route of a third connection path between the detection server and the user terminal is configured as a dynamic route.

[0010] Optionally, the method further comprises: in the case that the detection server monitors that the running state of the first server changes, sending an identifier and a running state of the second server to the user terminal, wherein the user terminal identifies the second server according to the identifier, and determines whether the second server is abnormal according to the running state.

[0011] Optionally, the user terminal filters M second servers indicated by a target IP address according to the running state and the identifier of the second server, obtains N second servers, and sends the service request to any one of the N second servers through a preset path, wherein an IP address of each second server is the same, the target IP address is an access address input by the user on the user terminal, the preset path is composed of the second connection path and the third connection path, the third connection path is between the detection server and the user terminal, M and N are positive integers, and M is greater than or equal to N.

[0012] Optionally, in the case that a plurality of detection servers are included, the second connection path is generated by: determining distances between the second server and each detection server, determining a target detection server to which a minimum distance belongs as a target detection server connected to the second server, and connecting the target detection server and the second server to obtain the second connection path.

[0013] Optionally, the IP address of the first server is different from the IP address of the second server.

[0014] According to another aspect of the present application, a server management system is provided. The system comprises: a first server, associated with a second server, configured to monitor an operation state of the second server and set an operation state of itself to be consistent with the operation state of the second server; the second server, configured to process a service request sent by a user terminal; a detection server, connected with the first server and the second server, and configured to cut off a second connection path between the detection server and the second server in case of an abnormality of the first server, and restore the second connection path between the detection server and the second server in case of a recovery of the first server; and the user terminal, connected with the detection server, configured to send the service request to the second server through the detection server.

[0015] According to another aspect of the present application, a server management apparatus is provided. The apparatus comprises: a monitoring unit, configured to monitor an operation state of a first server through a first connection path, and determine whether the first server is abnormal, wherein the first server is configured to monitor an operation state of a second server and set an operation state of itself to be consistent with the operation state of the second server, and the second server is configured to process a service request sent by a user terminal; a cutting unit, configured to cut off a second connection path between a detection server and the second server in case of an abnormality of the first server, wherein the first server is associated with the second server; and a restoring unit, configured to monitor the operation state of the first server through the first connection path, and restore the second connection path between the detection server and the second server in case of a recovery of the first server.

[0016] According to another aspect of the present application, a computer storage medium is also provided, configured to store a program, wherein the program is configured to control a device where the computer storage medium is located to execute a server management method.

[0017] According to another aspect of the present application, an electronic device is also provided, comprising one or more processors and a memory; the memory is configured to store computer readable instructions, and the processor is configured to execute the computer readable instructions, wherein the computer readable instructions are configured to execute a server management method.

[0018] By the present application, the following steps are adopted: monitoring the running state of the first server through the first connection path, and determining whether the first server is abnormal, wherein the first server is used to monitor the running state of the second server, and sets its own running state as the running state consistent with the second server, and the second server is used to process the service request sent by the user end; in the case that the first server is abnormal, cutting off the second connection path between the detection server and the second server, wherein the first server and the second server have an association relationship; monitoring the running state of the first server through the first connection path, and in the case that the first server recovers to normal, restoring the second connection path between the detection server and the second server. The method of the related art that needs to manually restore the connection between the abnormal data center and the user end is low in efficiency. By setting the normally closed connection path between the first server and the detection server, and monitoring the running state of the second server through the first server, the running state of the second server can be indirectly determined through the normally closed first connection path, so that the connection or disconnection state between the detection server and the second server can be determined according to the running state of the second server, and the effect of automatically determining the running state of the second server through the detection server is achieved. BRIEF DESCRIPTION OF DRAWINGS

[0019] The accompanying drawings, which form a part of the present application, are intended to provide further understanding of the present application, and are used to interpret the present application together with its description. The present application is illustrated by the accompanying drawings in which:

[0020] Figure 1 is a flow chart of a server management system according to an embodiment of the present application;

[0021] Figure 2 is a flow chart of a server management method according to an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of a server management device according to an embodiment of the present application;

[0023] Figure 4 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] It should be noted that the embodiments and features in the present application can be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0025] In order to enable personnel in the technical field to better understand the scheme of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor should be within the scope of protection of the present application.

[0026] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.

[0027] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, analyzed data, etc.) involved in the present disclosure are all information and data authorized by the user or authorized by all parties. For example, an interface is provided between the system and the relevant user or institution. Before obtaining the relevant information, the interface needs to send a request to the aforementioned user or institution, and after receiving the consent information fed back by the aforementioned user or institution, the relevant information is obtained.

[0028] It should be noted that the server management method, system, device and electronic equipment determined by the present disclosure can be used in the field of communication, and can also be used in any field other than the field of communication. The application field of the server management method, system, device and electronic equipment determined by the present disclosure is not limited.

[0029] For the convenience of description, the following describes some nouns or terms related to the embodiments of the present application:

[0030] Routing: the direction of the traffic path established from one network device to another network device, addressed through a routing table.

[0031] BGP: Border Gateway Protocol, a routing protocol for autonomous systems.

[0032] NQA: Network Quality Analyzer, a real-time network performance detection and statistics technology.

[0033] In the present embodiment, Figure 1 is a flowchart of a server management system provided according to an embodiment of the present application, as Figure 1 shown, an optional server management system is taken as an execution subject to execute the aforementioned server management method, and the traffic distribution system at least includes: a first server 101, a second server 102, a detection server 103, and a user terminal 104.

[0034] The first server 101 is associated with the second server 102, and is configured to monitor the running state of the second server 102, and set the running state of itself to be consistent with the running state of the second server 102.

[0035] The second server 102 is configured to process a service request sent by the user terminal 104.

[0036] The detection server 103 is connected with the first server 101 and the second server 102, and in the case that the first server 101 is abnormal, the detection server 103 is configured to cut off a second connection path between the detection server 103 and the second server 102, and in the case that the first server 101 is normal, the detection server 103 is configured to restore the second connection path between the detection server 103 and the second server 102.

[0037] It should be noted that the detection server 103 is connected with the first server 101 through a first connection path, and the first connection path is used to detect the running state of the first server 101, so the first connection path is a constant route, i.e., a normally closed state.

[0038] It should be added that the detection server 103 is configured to send the identifier and the running state of the second server 102 to the user terminal 104 in real time, so that the user terminal 104 can identify the information of the second server 102 through the identifier, for example, can determine that the second server 102 is set in A city through the identifier, and thus determine whether the second server 102 is abnormal according to the identifier and the running state.

[0039] The user terminal 104 is connected with the detection server 103, and is configured to send a service request to the second server 102 through the detection server 103.

[0040] According to the embodiments of the present application, a server management method is provided.

[0041] Figure 2 is a flowchart of a server management method provided according to an embodiment of the present application. As Figure 2 shown, the method includes the following steps:

[0042] Step S201, the running state of the first server is monitored through the first connection path, and it is judged whether the first server is abnormal, wherein the first server is used to monitor the running state of the second server, and the running state of the first server is set to be consistent with the running state of the second server, and the second server is used to process the service request sent by the user terminal.

[0043] Specifically, the second server is used to process the service request sent by the user terminal, that is, the server deployed in the data center park, and the first server is a server established in the same running state as the second server through various ways, for example, the first server monitors the running state of the second server in real time and keeps consistent with the running state of the second server, but the first server does not participate in any data processing, and the function is only to monitor the running state of the second server.

[0044] Further, since the running state of the first server is completely the same as that of the second server, the running state of the second server can be indirectly determined by monitoring the running state of the first server.

[0045] Step S202, in the case that the first server is abnormal, the second connection path between the detection server and the second server is cut off, wherein the first server and the second server have an association relationship.

[0046] It should be noted that the detection server can be configured by using NQA technology, and the detection server is set in the transmission line between the user terminal and the second server, which is used to feedback the running state of the second server to the user terminal, and the second connection path between the detection server and the second server is cut off, so that in the case that the first server is detected to be abnormal, it is indicated that the second server is also abnormal. Since the IP addresses of the multiple second servers connected with the user terminal are the same when the BGP Anycast technology is used, in order to ensure that the server cannot be connected with the abnormal second server, the connection between the user terminal and the second server can only be cut off by cutting off the second connection path between the detection server and the second server, so that the user terminal cannot access the second server, and the user terminal can only access other second servers connected with the user terminal.

[0047] Step S203, the running state of the first server is monitored through the first connection path, and in the case that the first server is recovered, the second connection path between the detection server and the second server is recovered.

[0048] Specifically, in a case that the running state of the first server is detected to change to normal, the second server is also restored to normal, at this time, the detection server restores the second connection path between the second server and the detection server after determining the running state of the second server, so that the user end can restore the access to the second server, and further, the effect that the running state of the second server is automatically determined through the normally closed connection path between the first server and the detection server, and the second connection path between the second server and the detection server is controlled according to the running state is achieved.

[0049] The server management method provided by the embodiment of the present application monitors the running state of the first server through the first connection path, and determines whether the first server is abnormal, wherein the first server is used to monitor the running state of the second server, and sets the running state of itself to be consistent with the running state of the second server, and the second server is used to process the service request sent by the user end; in a case that the first server is abnormal, the second connection path between the detection server and the second server is cut off, wherein the first server and the second server have an association relationship; the running state of the first server is monitored through the first connection path, and in a case that the first server is restored to normal, the second connection path between the detection server and the second server is restored. The problem that the efficiency of the method that the abnormal data center and the user end are manually restored to be connected in the related art is low is solved. The normally closed connection path between the first server and the detection server is set, and the running state of the second server is monitored by the first server, so that the running state of the second server can be indirectly determined through the normally closed first connection path, so that the connection or disconnection state between the detection server and the second server can be determined according to the running state of the second server, and further, the effect that the running state of the second server is automatically determined by the detection server is achieved.

[0050] Optionally, in the server management method provided by the embodiment of the present application, after the second connection path between the detection server and the second server is cut off, the method further includes: after the detection server receives the service request sent by the user end, feedback information is sent to the user end, wherein the feedback information is used to instruct the user end to reselect the second server to process the service request.

[0051] Specifically, after the second connection path between the detection server and the second server is cut off, if the user end can still send the service request to the second server with abnormal running state due to some reasons, at this time, the detection server receives the service request, and sends the feedback information to the user end, so as to inform the user end that the normal access is failed and needs to be retried, so that the user end can select other normal second servers to send the service request when the service request is re-sent, so as to ensure the normal processing of the service request.

[0052] Optionally, in the server management method provided by the embodiment of the present application, the route configuration of the first connection path between the detection server and the first server is static route, the route configuration of the second connection path between the detection server and the second server is static route, and the route configuration of the third connection path between the detection server and the user end is dynamic route.

[0053] Specifically, since the user end needs to perform load balancing operation among multiple second servers, the dynamic route mode needs to be used for route configuration between the user end and the detection server, so as to ensure that the user end can normally perform load balancing operation.

[0054] Further, in order to ensure the stability of the connection path, the route configurations of the connection paths between the detection server and the first server and between the detection server and the second server need to be static route, and then the two end servers can be fixed by static route, i.e. manual setting, so as to ensure the accuracy of the received state information.

[0055] It should be noted that, due to the above reasons, when the detection server is set, the detection server can be set at the junction of the dynamic route and the static route, so as to ensure that the detection server is set at the optimal position.

[0056] Optionally, in the server management method provided by the embodiment of the present application, the method further includes: in the case that the detection server monitors that the running state of the first server changes, sending the identification and the running state of the second server to the user end, wherein the user end identifies the second server according to the identification and determines whether the second server is abnormal according to the running state.

[0057] Specifically, in order to enable the user end to know the running state of the second server, the detection server needs to send the running state of the second server to the user end when the running state of the second server changes, but since the IP addresses of the second servers are the same, the second servers cannot be distinguished by IP address, therefore, the identification of the second server needs to be sent at the same time when the running state of the second server is sent, so that the user end can identify the second server corresponding to the running state through the identification, thereby ensuring the accuracy of the service request sent by the user end.

[0058] Optionally, in the server management method provided in the embodiments of the present application, the user end filters the M second servers indicated by the target IP address according to the running state and the identifier of the second servers, obtains N second servers, and sends the service request to any one of the N second servers through a preset path, wherein the IP address of each second server is the same, the target IP address is an access address input by the user on the user end, the preset path is composed of a second connection path and a third connection path, the third connection path is located between the detection server and the user end, and M and N are positive integers, and M is greater than or equal to N.

[0059] Specifically, when the user end sends a service request, the second server with a normal running state is determined according to the identifier and the running state corresponding to the identifier, and any one of the second servers with a normal running state is selected to send the service request, so that the service request can be received and processed by the second server with a normal running state.

[0060] It should be noted that although the user cannot identify the number and server information of the second servers under the same IP, the user end can identify the running state and the identifier, and mark the abnormal second servers, so as not to send the service request to the abnormal second servers. Even if the service request is sent to the abnormal second server, the second connection path between the detection server and the second server is cut off, so that the service request cannot be successfully sent, and the service request can be accurately executed.

[0061] Optionally, in the server management method provided in the embodiments of the present application, in the case of containing multiple detection servers, the second connection path is generated by the following method: determining the distance between the second server and each detection server, determining the detection server with the minimum distance as the target detection server connected with the second server, and connecting the target detection server with the second server to obtain the second connection path.

[0062] Specifically, since the user end is connected with multiple second servers, when the detection server is equipped for each second server, the detection server is equipped by using the nearest configuration method, that is, the second server is connected with the nearest detection server, so as to improve the detection accuracy of the detection server.

[0063] Optionally, in the server management method provided in the embodiments of the present application, the IP address of the first server is different from the IP address of the second server.

[0064] Specifically, since the IP of the plurality of second servers are same, in order to ensure the stability of the connection between the detection server and the first server, and the user end will not access to the first server by mistake, therefore, it is needed to ensure that the IP address of the first server and the second server are different, and then the effect of improving the stability of the connection between the detection server and the first server is achieved, at the same time, the user end will not access to the first server when accessing the IP of the second server.

[0065] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from here.

[0066] The embodiment of the present application also provides a server management device, and it should be noted that the server management device of the embodiment of the present application can be used to execute the server management method provided by the embodiment of the present application. The server management device provided by the embodiment of the present application is introduced as follows.

[0067] Figure 3 is a schematic diagram of the server management device provided by the embodiment of the present application. As shown in the figure, the device includes a monitoring unit 31, a cutting unit 32 and a recovery unit 33. Figure 3

[0068] The monitoring unit 31 is configured to monitor the running state of the first server through the first connection path, and determine whether the first server is abnormal, wherein the first server is configured to monitor the running state of the second server, and set the running state of itself to be consistent with the running state of the second server, and the second server is configured to process the service request sent by the user end.

[0069] The cutting unit 32 is configured to cut the second connection path between the detection server and the second server in the case that the first server is abnormal, wherein the first server and the second server have an association relationship.

[0070] The recovery unit 33 is configured to monitor the running state of the first server through the first connection path, and recover the second connection path between the detection server and the second server in the case that the first server is normal.

[0071] ​The server management apparatus provided in the embodiments of the present application, the monitoring unit 31 monitors the running state of the first server through the first connection path, and judges whether the first server is abnormal, wherein the first server is used to monitor the running state of the second server, and sets the running state of itself to be consistent with the running state of the second server, and the second server is used to process the service request sent by the user terminal; the cutting unit 32 cuts the second connection path between the detection server and the second server in the case that the first server is abnormal, wherein the first server and the second server have an association relationship; the recovery unit 33 monitors the running state of the first server through the first connection path, and recovers the second connection path between the detection server and the second server in the case that the first server is normal. The problem of low efficiency of the method of manually recovering the connection between the abnormal data center and the user terminal in the related art is solved. The normally closed connection path between the first server and the detection server is set, and the running state of the second server is monitored through the first server, so that the running state of the second server can be indirectly determined through the normally closed first connection path, and the connection or disconnection state between the detection server and the second server can be determined according to the running state of the second server, and the effect of automatically determining the running state of the second server through the detection server is achieved.

[0072] Optionally, in the server management apparatus provided in the embodiments of the present application, after the second connection path between the detection server and the second server is cut, the apparatus further comprises: a first sending unit, configured to send feedback information to the user terminal after the detection server receives the service request sent by the user terminal, wherein the feedback information is used to instruct the user terminal to reselect the second server to process the service request.

[0073] Optionally, in the server management apparatus provided in the embodiments of the present application, the route of the first connection path between the detection server and the first server is configured as a static route, the route of the second connection path between the detection server and the second server is configured as a static route, and the route of the third connection path between the detection server and the user terminal is configured as a dynamic route.

[0074] Optionally, in the server management apparatus provided in the embodiments of the present application, the method further comprises: a second sending unit, configured to send the identification and the running state of the second server to the user terminal in the case that the detection server monitors that the running state of the first server changes, wherein the user terminal identifies the second server according to the identification, and determines whether the second server is abnormal according to the running state.

[0075] Optionally, in the server management apparatus provided by the embodiment of the present application, the user end filters the M second servers indicated by the target IP address according to the running state and the identity of the second servers, and obtains N second servers, and sends the service request to any one of the N second servers through a preset path, wherein the IP address of each second server is the same, the target IP address is an access address input by the user on the user end, the preset path is composed of a second connection path and a third connection path, the third connection path is located between the detection server and the user end, and M and N are positive integers, and M is greater than or equal to N.

[0076] Optionally, in the server management apparatus provided by the embodiment of the present application, in the case of containing multiple detection servers, the second connection path is generated by the following way: a determination unit is configured to determine the distance between the second server and each detection server, and determine the detection server to which the minimum distance belongs as a target detection server connected with the second server, and connect the target detection server with the second server to obtain the second connection path.

[0077] Optionally, in the server management apparatus provided by the embodiment of the present application, the IP address of the first server is different from the IP address of the second server.

[0078] The server management apparatus includes a processor and a memory, and the monitoring unit 31, the cutting unit 32 and the recovery unit 33 are all stored in the memory as program units, and the corresponding functions are realized by the processor executing the program units stored in the memory.

[0079] The processor includes a core, and the core retrieves the corresponding program units from the memory. The core can be one or more, and the efficiency of the method of artificially restoring the connection between the abnormal data center and the user end in the related art is improved by adjusting the core parameters.

[0080] The memory can include a non-permanent memory in a computer readable medium, a random access memory (RAM) and / or a non-volatile memory such as a read-only memory (ROM) or a flash memory (flash RAM), and the memory includes at least one memory chip.

[0081] The embodiment of the present application provides a computer readable storage medium, which stores a program, and the program is executed by a processor to realize the server management method.

[0082] The embodiment of the present application provides a processor, which is used for running a program, and the program is executed to perform the server management method.

[0083] As Figure 4As shown, the embodiment of the present application provides an electronic device, the electronic device 40 comprises a processor, a memory and a program stored in the memory and executable on the processor, when the processor executes the program, the following steps are implemented: monitoring a running state of a first server through a first connection path, and judging whether the first server exists an exception, wherein the first server is used for monitoring a running state of a second server, and setting a running state of the first server as a consistent running state of the second server, the second server is used for processing a service request sent by a user end; in the case that the first server exists the exception, cutting off a second connection path between the detection server and the second server, wherein the first server and the second server exist an association relationship; monitoring the running state of the first server through the first connection path, and in the case that the first server recovers to normal, restoring the second connection path between the detection server and the second server. The device in the present application can be a server, a PC, a PAD, a mobile phone and the like.

[0084] The present application further provides a computer program product, when executed on a data processing device, is adapted to execute a program which is initialized with the following method steps: monitoring a running state of a first server through a first connection path, and judging whether the first server exists an exception, wherein the first server is used for monitoring a running state of a second server, and setting a running state of the first server as a consistent running state of the second server, the second server is used for processing a service request sent by a user end; in the case that the first server exists the exception, cutting off a second connection path between the detection server and the second server, wherein the first server and the second server exist an association relationship; monitoring the running state of the first server through the first connection path, and in the case that the first server recovers to normal, restoring the second connection path between the detection server and the second server.

[0085] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system or a computer program product. Therefore, the present application can adopt a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present application can adopt a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.

[0086] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps in the flowchart block or blocks

[0087] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps in the flowchart block or blocks

[0088] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 means for functionally implementing the steps in the flowchart block or blocks

[0089] In one typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0090] The memory can include non-persistent memory and / or volatile memory, such as a random access memory (RAM) including a cache area for the temporary storage of data. The memory can also include non-volatile memory, such as read only memory (ROM), electrically programmable read only memory (EPROM), or electrically erasable programmable read only memory (EEPROM), for the storage of software that is read during runtime. The memory is an example of computer readable media.

[0091] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can implement information storage by any method or technology. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.

[0092] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusions, so that a process, method, article or apparatus that includes a list of elements does not only include those elements, but also includes other elements not explicitly listed, or further includes elements inherent in such a process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0093] The above only is an embodiment of the present application, and is not used to limit the present application. For those skilled in the art, the present application can have various changes and variations. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of claims of the present application.

Claims

1. A server management method characterized by comprising: The application is applied to a detection server, and comprises: monitoring a running state of a first server through a first connection path, and judging whether the first server is abnormal, wherein the first server is used for monitoring a running state of a second server, and setting a running state of itself as a running state consistent with the second server, and the second server is used for processing a service request sent by a user terminal; in a case where the first server is abnormal, cutting off a second connection path between the detection server and the second server, wherein the first server and the second server have an association relationship; monitoring the running state of the first server through the first connection path, and in a case where the first server is normal, restoring the second connection path between the detection server and the second server.

2. The method of claim 1, wherein, After cutting off the second connection path between the detection server and the second server, the method further comprises: after the detection server receives the service request sent by the user terminal, sending feedback information to the user terminal, wherein the feedback information is used for instructing the user terminal to select the second server to process the service request.

3. The method of claim 1, wherein, The first connection path between the detection server and the first server is configured as a static route, the second connection path between the detection server and the second server is configured as a static route, and the third connection path between the detection server and the user terminal is configured as a dynamic route.

4. The method of claim 1, wherein, The method further comprises: in a case where the detection server monitors that the running state of the first server changes, sending an identifier of the second server and the running state to the user terminal, wherein the user terminal identifies the second server according to the identifier, and determines whether the second server is abnormal according to the running state.

5. The method of claim 4, wherein, The user terminal screens M second servers indicated by a target IP address according to the running state of the second server and the identifier, obtains N second servers, and sends the service request to any one of the N second servers through a preset path, wherein the IP address of each second server is the same, the target IP address is an access address input by a user on the user terminal, the preset path is composed of the second connection path and a third connection path, the third connection path is located between the detection server and the user terminal, M and N are positive integers, and M is greater than or equal to N.

6. The method of claim 1, wherein, In a case where a plurality of detection servers are included, the second connection path is generated by the following manner: determining distances between the second server and each detection server, determining a detection server corresponding to a minimum distance as a target detection server connected by the second server, and connecting the target detection server and the second server to obtain the second connection path.

7. The method of claim 1, wherein, The IP address of the first server is different from the IP address of the second server.

8. A server management system characterized by comprising: The application comprises: The first server is associated with the second server, and is configured to monitor a running state of the second server and set a running state of the first server to be consistent with the running state of the second server. The second server is configured to process a service request sent by a user terminal. The detection server is connected with the first server and the second server, and is configured to cut off a second connection path between the detection server and the second server in a case where the first server is abnormal, and restore the second connection path between the detection server and the second server in a case where the first server is normal. The user terminal is connected with the detection server, and is configured to send the service request to the second server through the detection server.

9. A server management apparatus characterized by comprising: The application is applied to a detection server, and comprises: A monitoring unit is configured to monitor a running state of a first server through a first connection path, and determine whether the first server is abnormal, wherein the first server is configured to monitor a running state of a second server and set a running state of the first server to be consistent with the running state of the second server, and the second server is configured to process a service request sent by a user terminal. A cutting unit is configured to cut off a second connection path between the detection server and the second server in a case where the first server is abnormal, wherein the first server is associated with the second server. A restoring unit is configured to monitor the running state of the first server through the first connection path, and restore the second connection path between the detection server and the second server in a case where the first server is normal.

10. An electronic device, comprising: The application comprises one or more processors and a memory, and the memory is configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the server management method in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Detection method of downtime server and high-availability recovery method and device of database

    CN114443341A

  • Method and device for monitoring operation of server

    CN114816945A