CN111064618A - Method, device, equipment and storage medium for realizing high availability of server - Google Patents

Method, device, equipment and storage medium for realizing high availability of server Download PDF

Info

Publication number
CN111064618A
CN111064618A CN201911327888.9A CN201911327888A CN111064618A CN 111064618 A CN111064618 A CN 111064618A CN 201911327888 A CN201911327888 A CN 201911327888A CN 111064618 A CN111064618 A CN 111064618A
Authority
CN
China
Prior art keywords
server
main server
current working
standby
main
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911327888.9A
Other languages
Chinese (zh)
Other versions
CN111064618B (en
Inventor
梁钢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Teamsun Technology Co ltd
Original Assignee
Beijing Teamsun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Teamsun Technology Co ltd filed Critical Beijing Teamsun Technology Co ltd
Priority to CN201911327888.9A priority Critical patent/CN111064618B/en
Publication of CN111064618A publication Critical patent/CN111064618A/en
Application granted granted Critical
Publication of CN111064618B publication Critical patent/CN111064618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for realizing high availability of a server. The method comprises the following steps: under the condition that the abnormality of the main server is detected, inquiring and updating a target resource table of the main server; adjusting the current working state of the standby server to be an occupied state; and under the condition of receiving a resource request instruction sent by the main server, feeding back the current working state of the standby server to the main server so that the main server adjusts the current working state of the standby server to be an available state. According to the embodiment of the invention, through the adjustment of the current working states of the main server and the standby server, after the main server is abnormal and recovered, whether the service can be taken over or not is determined according to the current working state of the standby server, so that the condition of resource contention of the main server and the standby server is avoided, and the high availability of the server is realized simply and easily at low cost.

Description

Method, device, equipment and storage medium for realizing high availability of server
Technical Field
The embodiment of the invention relates to computer technology, in particular to a method, a device, equipment and a storage medium for realizing high availability of a server.
Background
The existing method for realizing high availability of the server mainly adopts the construction of a dual-server High Availability (HA) architecture, that is, 2 servers are adopted to share storage (such as a disk array), the 2 servers are divided into a main server (Active), a Standby server (Standby), a main server and a Standby server, a local area public network is adopted to provide services, and local area private networks are adopted to mutually transmit Heartbeat information (Heartbeat). Generally speaking, the standby server determines whether the main server is normal or not through heartbeat information, and takes over the service to provide the service to the outside if the main server is found to be abnormal.
In the prior art, if the main server is abnormal, the standby server takes over the service and provides the service to the outside. However, when the standby server takes over the service, if the main server does not release the storage resource or only fails for a short time when the standby server detects the heartbeat information, the standby server and the main server contend later, and in case of serious conditions, the dual-server contends and considers that the other side has died, thereby causing the whole service to be paralyzed.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a device and a storage medium for realizing high availability of a server, which realizes high availability of the server simply and at low cost.
In an embodiment, an embodiment of the present invention provides a method for implementing high availability of a server, which is applied to a standby server, and includes:
under the condition that the abnormality of the main server is detected, inquiring and updating a target resource table of the main server;
adjusting the current working state of the standby server to be an occupied state;
and under the condition of receiving a resource request instruction sent by a main server, feeding back the current working state of a standby server to the main server so as to enable the main server to adjust the current working state to be an available state.
In an embodiment, an embodiment of the present invention further provides a device for implementing high availability of a server, which is applied to a standby server, and includes:
the updating module is used for inquiring and updating the target resource table of the updating module under the condition that the abnormality of the main server is detected;
the first adjusting module is used for adjusting the current working state of the standby server to an occupied state;
and the feedback module is used for feeding back the current working state of the standby server to the main server under the condition of receiving the resource request instruction sent by the main server so as to enable the main server to adjust the current working state to be an available state.
In an embodiment, an embodiment of the present invention further provides an apparatus, including: a memory, and one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the server high availability implementation method of the first aspect.
In an embodiment, a computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, implements the server-high-availability implementation method according to the first aspect.
The method comprises the steps of inquiring and updating a target resource table of the main server under the condition that the main server is detected to be abnormal; adjusting the current working state of the standby server to be an occupied state; and under the condition of receiving a resource request instruction sent by the main server, feeding back the current working state of the standby server to the main server so as to enable the main server to adjust the current working state to be an available state. According to the embodiment of the invention, through the adjustment of the current working states of the main server and the standby server, after the main server is abnormal and recovered, whether the service can be taken over or not is determined according to the current working state of the standby server, so that the condition of resource contention of the main server and the standby server is avoided, and the high availability of the server is realized simply and easily at low cost.
Drawings
FIG. 1 is a flow chart of a method for implementing high availability of a server according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an interaction between a primary server and a standby server according to an embodiment of the present invention;
FIG. 3 is a block diagram of a high-availability implementation apparatus for a server according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a server high availability implementation method provided by an embodiment of the present invention, which is applicable to a situation where a primary server and a standby server contend for resources, and the method may be performed by a server high availability implementation apparatus, where the method may be implemented by hardware and/or software, and may be generally integrated in a device. Wherein the device may be a standby server.
As shown in fig. 1, the method specifically includes the following steps:
s110, under the condition that the abnormality of the main server is detected, the target resource table of the main server is inquired and updated.
In the embodiment, the exception of the primary server may be understood as that no response information fed back by the primary server is received after the standby server sends the heartbeat information to the primary server. In the embodiment, after the standby server sends the heartbeat information to the main server, there are two cases that the response information fed back by the main server is not received: firstly, when the standby server detects heartbeat information, the main server breaks down briefly and recovers later; secondly, when the standby server takes over the service, the main server does not release the storage resource.
In the embodiment, the target resource table refers to the resource table of the standby server itself. In the target resource table, resource items are stored so that the standby server performs allocation planning on resources. In the embodiment, when the main server is detected to be abnormal, the standby server inquires the target resource table of the standby server and updates the target resource table of the standby server to take over the service and provide the service to the outside.
And S120, adjusting the current working state of the standby server to be an occupied state.
In an embodiment, the current working states of the primary server and the standby server can be divided into two cases, namely an occupied state and an available state. In the embodiment, when the current working state is the occupied state, the storage resources in the target resource tables of the main server and the standby server are indicated, and the service is taken over; and in the case that the current working state is the available state, indicating that the resources are not stored in the target resource tables of the main server and the standby server and the service is not taken over.
In the embodiment, when the abnormality of the main server is detected, the standby server queries and updates the target resource table of the standby server and takes over the related services managed by the main server. Meanwhile, the standby server adjusts the current working state of the standby server from an available state to an occupied state so as to indicate that the standby server is processing the related service.
And S130, under the condition of receiving the resource request instruction sent by the main server, feeding back the current working state of the standby server to the main server so that the main server adjusts the current working state of the standby server to be an available state.
In an embodiment, the resource request instruction may be understood as an instruction to obtain related resource information in a target resource table of the standby server. In an embodiment, in the case that the primary server is abnormal and recovers, the primary server sends a resource request instruction to the standby server to synchronize the related resource information in the target resource table of the standby server. In the actual operation process, since the primary server is just abnormal and just recovered, the primary server may be unstable, and at this time, the standby server only feeds back the current working state of the standby server to the primary server, instead of synchronizing the resource information in the target resource table to the primary server. After the main server receives the current working state of the standby server, the main server adjusts the current working state of the main server to be an available state, and enters a to-be-repaired mode to wait for related technical personnel to repair the main server so as to determine the reason of the abnormality of the main server.
According to the technical scheme in the embodiment, through adjustment of the current working states of the main server and the standby server, after the main server is abnormal and recovers, whether the main server can take over the service or not is determined according to the current working state of the standby server, so that the condition of resource contention of the main server and the standby server is avoided, high availability of the server is simply and easily realized at low cost, online uninterrupted or rarely interrupted, and the purpose of continuous service of the server is achieved.
In one embodiment, the method for detecting the abnormality of the main server includes: sending heartbeat information to a main server; and in a first preset time, response information corresponding to the heartbeat information fed back by the main server is not received, and the main server is determined to be abnormal.
In an embodiment, a local area private network is used to communicate heartbeat information between the primary server and the backup server to determine whether the primary server is abnormal. Specifically, the standby server sends heartbeat information to the main server at regular time, and if the main server feeds back response information, the main server is indicated to be in a normal working state, namely, no abnormality occurs; on the contrary, if the standby server does not receive the response information corresponding to the heartbeat information fed back by the main server within the first preset time, it is determined that the main server is abnormal. The first preset time is determined by negotiating according to a gateway protocol between the primary server and the backup server, which is not limited herein.
Fig. 2 is a schematic diagram of interaction between a primary server and a standby server according to an embodiment of the present invention. As shown in fig. 2, the primary server 210 and the standby server 220 negotiate with each other through a gateway protocol. Between the primary server 210 and the standby server 220, the related resource information in the target resource table is synchronized through the private lan, and the external service is provided through the lan.
In one embodiment, the number of primary servers and backup servers is not limited. For example, two main servers and two standby servers can be used for providing services to the outside, and adjustment can be performed according to actual conditions.
In an embodiment, in a case of receiving a resource request instruction sent by a primary server, after feeding back a current working state of a standby server to the primary server, the method further includes: sending heartbeat information to the main server at intervals of second preset time; under the condition of receiving response information fed back by the main server, synchronizing the resource information in the target resource table to the main server; and adjusting the current working state of the standby server to be an available state.
In the embodiment, when the standby server receives the resource request instruction sent by the main server, after the standby server feeds back the current working state of the standby server to the main server, the main server adjusts the current working state of the main server to be an available state, and enters a to-be-repaired mode. After the standby server feeds back the current working state of the standby server to the main server, heartbeat information is sent to the main server at intervals of second preset time to detect whether the main server is in a state of completing maintenance or not, if the standby server receives response information fed back by the main server within the first preset time, the standby server indicates that the main server is completed maintenance and can work normally, and in order to guarantee the processing rate of service, relevant resource information in a target resource table of the standby server can be synchronized to the main server to enable the main server to take over the service, and the current working state of the standby server is adjusted to be an available state from an occupied state.
In one embodiment, the current working states of the main server and the standby server are represented in a binary signaling manner.
In an embodiment, under the condition that the binary signaling is a first numerical value, the current working states of the main server and the standby server are occupied states; and under the condition that the binary signaling is a second value, the current working states of the main server and the standby server are available states. In the embodiment, the current operating states of the main server and the standby server are represented by means of binary signaling, which can be understood that the current operating states of the main server and the standby server can only be two cases. In this embodiment, when the binary signaling is a first value, the current working states of the main server and the standby server are occupied states, for example, the first value may be 1; correspondingly, when the second value is 0, that is, the binary signaling is 0, the current working states of the main server and the standby server are available.
In an embodiment, when the abnormality of the primary server does not occur, the target resource tables of the primary server and the standby server are consistent, the current working state of the primary server is an occupied state, and the current working state of the standby server is an available state. In an embodiment, binary signaling for the primary and standby servers is initialized, i.e., 0 indicates an available state and 1 indicates an occupied state. Under the condition that the main server is in a normal state, the target resource table of the main server is consistent with the target resource table of the standby server, the binary signaling corresponding to the main server is 1, and the binary signaling corresponding to the standby server is 0.
And under the condition that the standby server finds that the main server is abnormal through the heartbeat information, inquiring a target resource table of the standby server and updating the target resource table so as to take over the related service of the main server. Under the condition that the main server is recovered, the main server needs to inquire a target resource table of the standby server, and if the standby server is processing related services, the standby server does not take over the services, so that the condition that the main server and the standby server compete for resources is avoided.
In an embodiment, when a resource request instruction sent by a main server is received, the current working state of a standby server is fed back to the main server, so that the main server releases storage resources.
In the embodiment, when the standby server receives a resource request instruction sent by the main server, the standby server feeds back the current working state of the standby server to the main server, so that the main server knows that the standby server is processing related services, and if the main server does not release the storage resource when an exception occurs, the main server knows that the standby server is processing related services, and the main server needs to release the storage resource, so as to avoid resource contention between the main server and the standby server.
Fig. 3 is a block diagram of a server high-availability implementation apparatus provided by an embodiment of the present invention, which is suitable for a situation where a primary server and a standby server contend for resources, and which may be implemented by hardware/software and may be generally integrated in a device. As shown in fig. 3, the apparatus includes: an update module 310, a first adjustment module 320, and a feedback module 330.
The updating module 310 is configured to query and update a target resource table of the updating module when it is detected that the main server is abnormal;
a first adjusting module 320, configured to adjust a current working state of the standby server to an occupied state;
the feedback module 330 is configured to feed back the current working state of the standby server to the main server when receiving the resource request instruction sent by the main server, so that the main server adjusts the current working state of the standby server to an available state.
According to the technical scheme of the embodiment, through adjustment of the current working states of the main server and the standby server, after the main server is abnormal and recovers, whether the service can be taken over or not is determined according to the current working state of the standby server, so that the condition of resource contention of the main server and the standby server is avoided, and high availability of the server is realized simply and at low cost.
In one embodiment, the method for detecting the abnormality of the main server includes: sending heartbeat information to a main server; and in a first preset time, response information corresponding to the heartbeat information fed back by the main server is not received, and the main server is determined to be abnormal.
In one embodiment, the apparatus for implementing high availability of a server further includes:
the sending module is used for sending heartbeat information to the main server at intervals of second preset time after the current working state of the standby server is fed back to the main server under the condition of receiving a resource request instruction sent by the main server;
the synchronization module is used for synchronizing the resource information in the target resource table to the main server under the condition of receiving the response information fed back by the main server;
and the second adjusting module is used for adjusting the current working state of the standby server to be an available state.
In one embodiment, the current working states of the main server and the standby server are represented in a binary signaling manner.
In an embodiment, under the condition that the binary signaling is a first numerical value, the current working states of the main server and the standby server are occupied states;
and under the condition that the binary signaling is a second value, the current working states of the main server and the standby server are available states.
In an embodiment, when the abnormality of the primary server does not occur, the target resource tables of the primary server and the standby server are consistent, the current working state of the primary server is an occupied state, and the current working state of the standby server is an available state.
In an embodiment, when a resource request instruction sent by a main server is received, the current working state of a standby server is fed back to the main server, so that the main server releases storage resources.
The server highly-available implementation device can execute the server highly-available implementation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 4 is a schematic diagram of a hardware structure of an apparatus according to an embodiment of the present invention. As shown in fig. 4, an apparatus provided in an embodiment of the present invention includes: a memory 410, and one or more processors 420. The number of the processors 420 in the device may be one or more, one processor 420 is taken as an example in fig. 4, the processor 420 and the memory 410 in the device may be connected by a bus or in other manners, and the connection by the bus is taken as an example in fig. 4. Wherein the device may be a standby server.
The memory 410 of the apparatus is used as a computer-readable storage medium for storing one or more programs, which may be software programs, computer-executable programs, and modules, and are corresponding to program instructions/modules of the server high-availability implementation method provided by the embodiment of the present invention (for example, modules in the server high-availability implementation apparatus shown in fig. 3, which include an updating module, a first adjusting module, and a feedback module). The processor 410 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the memory 410, namely, implements the server high-available implementation method in the above-described method embodiments.
The memory 410 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a device configured in the device, and the like. Further, the memory 410 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 410 may further include memory located remotely from processor 420, which may be connected to configured ones of the devices over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
In one embodiment, a computer device is provided, comprising a memory 410 and a processor 420, the memory 410 storing a computer program, the processor 420 implementing the following steps when executing the computer program:
under the condition that the abnormality of the main server is detected, inquiring and updating a target resource table of the main server; adjusting the current working state of the standby server to be an occupied state; and under the condition of receiving a resource request instruction sent by the main server, feeding back the current working state of the standby server to the main server so that the main server adjusts the current working state of the standby server to be an available state.
The device can execute the high-availability realization method of the server provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a high availability implementation method for a server provided in an embodiment of the present invention, where the method includes: under the condition that the abnormality of the main server is detected, inquiring and updating a target resource table of the main server; adjusting the current working state of the standby server to be an occupied state; and under the condition of receiving a resource request instruction sent by the main server, feeding back the current working state of the standby server to the main server so that the main server adjusts the current working state of the standby server to be an available state.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for realizing high availability of a server is applied to a standby server and comprises the following steps:
under the condition that the abnormality of the main server is detected, inquiring and updating a target resource table of the main server;
adjusting the current working state of the standby server to be an occupied state;
and under the condition of receiving a resource request instruction sent by the main server, feeding back the current working state of the standby server to the main server so that the main server adjusts the current working state of the main server to be an available state.
2. The method of claim 1, wherein the detecting the abnormality of the primary server comprises:
sending heartbeat information to the main server;
and in a first preset time, if response information corresponding to the heartbeat information fed back by the main server is not received, determining that the main server is abnormal.
3. The method according to claim 1, wherein, in case of receiving the resource request instruction sent by the primary server, after feeding back the current working status of the standby server itself to the primary server, the method further comprises:
sending heartbeat information to the main server at intervals of second preset time;
under the condition that response information fed back by the main server is received, synchronizing resource information in the target resource table to the main server;
and adjusting the current working state of the standby server to be an available state.
4. The method according to any one of claims 1-3, wherein the current operating status of the primary server and the standby server is represented by means of binary signaling.
5. The method of claim 4, wherein in the case that the binary signaling is a first value, the current working status of the primary server and the standby server is an occupied status;
and under the condition that the binary signaling is a second numerical value, the current working states of the main server and the standby server are available states.
6. The method according to claim 1, wherein in a case that no abnormality occurs in the primary server, the target resource tables of the primary server and the standby server are consistent, and the current working status of the primary server is an occupied status and the current working status of the standby server is an available status.
7. The method according to claim 1, wherein, in case of receiving a resource request instruction sent by a primary server, feeding back the current working state of a standby server to the primary server to enable the primary server to release storage resources.
8. A device for realizing high availability of a server is applied to a standby server and comprises the following components:
the updating module is used for inquiring and updating the target resource table of the updating module under the condition that the abnormality of the main server is detected;
the first adjusting module is used for adjusting the current working state of the standby server to an occupied state;
and the feedback module is used for feeding back the current working state of the standby server to the main server under the condition of receiving the resource request instruction sent by the main server, so that the main server adjusts the current working state of the main server into an available state.
9. An apparatus, comprising: a memory, and one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the server high availability implementation method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a server-high-availability implementation method according to any one of claims 1 to 7.
CN201911327888.9A 2019-12-20 2019-12-20 Method, device, equipment and storage medium for realizing high availability of server Active CN111064618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911327888.9A CN111064618B (en) 2019-12-20 2019-12-20 Method, device, equipment and storage medium for realizing high availability of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911327888.9A CN111064618B (en) 2019-12-20 2019-12-20 Method, device, equipment and storage medium for realizing high availability of server

Publications (2)

Publication Number Publication Date
CN111064618A true CN111064618A (en) 2020-04-24
CN111064618B CN111064618B (en) 2023-02-03

Family

ID=70300692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911327888.9A Active CN111064618B (en) 2019-12-20 2019-12-20 Method, device, equipment and storage medium for realizing high availability of server

Country Status (1)

Country Link
CN (1) CN111064618B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626165A (en) * 2021-07-30 2021-11-09 北京达佳互联信息技术有限公司 Method, device and system for managing packing queue

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1476178A (en) * 2003-07-08 2004-02-18 大唐移动通信设备有限公司 Device and method for realizing high availability in communication system
CN1851657A (en) * 2005-07-21 2006-10-25 上海华为技术有限公司 Dual-machine back-up realizing method and system
CN1968266A (en) * 2006-06-05 2007-05-23 华为技术有限公司 Resource management system and method for media resource server
CN103346903A (en) * 2013-06-20 2013-10-09 北京捷成世纪科技股份有限公司 Dual-machine backup method and device
CN106656791A (en) * 2015-10-30 2017-05-10 华为技术有限公司 Device state switching method, device and system
CN109188895A (en) * 2018-09-13 2019-01-11 杭州和利时自动化有限公司 A kind of servo-control system based on Redundancy Design
US20190140908A1 (en) * 2018-12-27 2019-05-09 Intel Corporation Device discovery using heartbeat signals
CN110022228A (en) * 2019-03-08 2019-07-16 视联动力信息技术股份有限公司 Server switching method, device, system and readable storage medium storing program for executing
CN110347536A (en) * 2019-08-15 2019-10-18 深圳市万连通讯技术有限公司 A kind of 485 bus system of double hosts and working host fault redundance guard method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1476178A (en) * 2003-07-08 2004-02-18 大唐移动通信设备有限公司 Device and method for realizing high availability in communication system
CN1851657A (en) * 2005-07-21 2006-10-25 上海华为技术有限公司 Dual-machine back-up realizing method and system
CN1968266A (en) * 2006-06-05 2007-05-23 华为技术有限公司 Resource management system and method for media resource server
CN103346903A (en) * 2013-06-20 2013-10-09 北京捷成世纪科技股份有限公司 Dual-machine backup method and device
CN106656791A (en) * 2015-10-30 2017-05-10 华为技术有限公司 Device state switching method, device and system
CN109188895A (en) * 2018-09-13 2019-01-11 杭州和利时自动化有限公司 A kind of servo-control system based on Redundancy Design
US20190140908A1 (en) * 2018-12-27 2019-05-09 Intel Corporation Device discovery using heartbeat signals
CN110022228A (en) * 2019-03-08 2019-07-16 视联动力信息技术股份有限公司 Server switching method, device, system and readable storage medium storing program for executing
CN110347536A (en) * 2019-08-15 2019-10-18 深圳市万连通讯技术有限公司 A kind of 485 bus system of double hosts and working host fault redundance guard method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626165A (en) * 2021-07-30 2021-11-09 北京达佳互联信息技术有限公司 Method, device and system for managing packing queue

Also Published As

Publication number Publication date
CN111064618B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
EP3490224B1 (en) Data synchronization method and system
CN109951331B (en) Method, device and computing cluster for sending information
US10341792B1 (en) System for distributing audio output using multiple devices
US10069942B2 (en) Method and apparatus for changing configurations
CN104092718A (en) Distributed system and configuration information updating method in distributed system
US10819641B2 (en) Highly available servers
US9846624B2 (en) Fast single-master failover
KR102142233B1 (en) Methods, systems and devices for managing primary and secondary databases
CN113162848B (en) Method, device, gateway and medium for realizing block chain gateway
US10802896B2 (en) Rest gateway for messaging
CN110932876B (en) Communication system, method and device
CN111064618B (en) Method, device, equipment and storage medium for realizing high availability of server
WO2013037314A1 (en) System and method for use in data processing center disaster backup
WO2013097363A1 (en) Method and system for scheduling data sharing device
CN110324384B (en) Data pushing method and device
CN110659184B (en) Health state checking method, device and system
CN110290196B (en) Content distribution method and device
EP3232646B1 (en) Apparatus for relaying data transmission in scada system
CN110063050B (en) Service scheduling method and system
US20090106781A1 (en) Remote call handling methods and systems
US20230146880A1 (en) Management system and management method
CN113391759B (en) Communication method and equipment
WO2017032212A1 (en) Data stream processing method and apparatus
CN116074187A (en) Main-standby link switching method and device, electronic equipment and storage medium
US20120072545A1 (en) Remote maintenance and monitoring service framework for heterogeneous device and system

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