CN116795601A - Dual-computer hot backup method, system, device, computer equipment and storage medium - Google Patents
Dual-computer hot backup method, system, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN116795601A CN116795601A CN202310851128.8A CN202310851128A CN116795601A CN 116795601 A CN116795601 A CN 116795601A CN 202310851128 A CN202310851128 A CN 202310851128A CN 116795601 A CN116795601 A CN 116795601A
- Authority
- CN
- China
- Prior art keywords
- server
- backup
- main
- data
- main server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000006855 networking Effects 0.000 claims abstract description 59
- 238000001514 detection method Methods 0.000 claims abstract description 48
- 230000005540 biological transmission Effects 0.000 claims abstract description 26
- 230000002159 abnormal effect Effects 0.000 claims abstract description 14
- 230000001360 synchronised effect Effects 0.000 claims abstract description 7
- 230000009977 dual effect Effects 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 15
- 238000011084 recovery Methods 0.000 claims description 11
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000010076 replication Effects 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 3
- 230000002776 aggregation Effects 0.000 description 2
- 238000004220 aggregation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Hardware Redundancy (AREA)
Abstract
The application relates to the technical field of Internet and discloses a dual-computer hot backup method, a system, a device, computer equipment and a storage medium, wherein the method comprises the steps that a networking pairing module is matched with a backup server to establish a pairing relationship; the data transmission module carries out synchronous processing on the main data of the main server and the backup data of the backup server; and switching the work task to the backup server under the condition that the fault detection module detects that the main server is in an abnormal state. Through the mode, after the backup server corresponding to the main server is determined through the networking pairing module, the data of the main server and the backup server are synchronously processed, so that the alternative server can bear the working task of the main server at any time when the main server fails, the working task is switched to the alternative server through the failure detection module, and the reliability of the heat engine backup of the main server and the standby server in the Internet field is improved.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a dual-computer hot backup method, system, device, computer equipment, and storage medium.
Background
The dual hot standby system is a commonly used high availability solution for ensuring that when a primary server fails, it can quickly and seamlessly switch to the standby server, thereby achieving continuity and reliability of the system. The system realizes rapid fault recovery through mechanisms such as real-time data replication, fault detection, fault switching and the like.
Common dual hot standby techniques include hardware-based dual hot standby techniques, operating system-based dual hot standby techniques, virtualization-based dual hot standby techniques, container-based dual hot standby techniques, and storage-based dual hot standby techniques. The hardware-based dual-machine hot backup system realizes data replication and fault switching by using special hardware equipment, and provides high reliability and fault tolerance; dual hot-standby is implemented based on operating system level backup and failover. The main backup servers are communicated in real time through a heartbeat detection mechanism, and are automatically switched to the backup servers when the main servers fail; the virtualization-based scheme adopts a virtualization platform to realize the creation and management of a main backup virtual machine, and provides high availability through real-time data replication and failover; the container-based backup scheme is to realize the management of main and standby containers by adopting a containerization technology, and realize dual-machine hot backup by copying data and switching faults among the containers; the dual-machine hot backup system based on storage uses a shared disk or disk array to synchronize data on the main and standby servers. Under normal conditions, the primary server writes data to the shared storage area, and when the primary server fails, the backup server accesses the same shared storage area, thereby obtaining the same data. Therefore, how to improve the reliability of the hot engine backup of the primary server and the backup server in the internet field is a technical problem to be solved.
Disclosure of Invention
The application provides a dual-computer hot backup method, a system, a device, computer equipment and a storage medium, which are used for improving the reliability of the hot engine backup of a main server and a standby server in the field of Internet.
In a first aspect, the present application provides a dual-machine hot standby method, the method comprising:
the networking pairing module is used for matching a backup server according to a main server, networking pairing is carried out on the main server and the backup server, and a pairing relation is established;
based on the pairing relation, the data transmission module carries out synchronous processing on the main data of the main server and the backup data of the backup server;
and under the condition that the fault detection module detects that the working state of the main server is an abnormal state, switching a working task to the backup server based on the pairing relation so as to realize hot backup of the main server and the backup server.
Further, the networking pairing module matches the backup server according to the main server, performs networking pairing on the main server and the backup server, and establishes a pairing relationship, including:
under the condition that the working state of the main server is a normal state, the networking pairing module determines candidate servers matched with the main server through broadcasting;
under the condition that the candidate server and the main server do not have an authentication relationship, establishing the authentication relationship between the candidate server and the main server by a preset authentication mode;
and under the condition that the candidate server and the main server have the authentication relationship, the networking pairing module determines the candidate server as the backup server and performs networking pairing to establish the pairing relationship.
Further, when the fault detection module detects that the working state of the main server is an abnormal state, after switching the working task to the backup server based on the pairing relationship to realize the hot backup of the main server and the backup server, the method further includes:
and under the condition that the fault detection module detects that the working state of the main server is a normal state, switching the working task to the main server.
In a second aspect, the application also provides a dual-machine hot backup system, which comprises a networking pairing module, a data transmission module and a fault detection module;
the networking pairing module is used for searching a backup server paired with the main server and authenticating the backup server;
the data transmission module is used for synchronizing the main data of the main server and the backup data of the backup server, carrying out encryption operation and decryption operation on the main data and the backup data, and determining a target link for synchronizing the main data and the backup data;
the fault detection module is used for detecting the working state of the main server and controlling the working task to be switched between the main server and the backup server according to the working state of the main server.
Further, the networking pairing module comprises a server discovery unit and a server authentication unit;
the server discovery unit is used for searching candidate servers matched with the main server within a preset range;
the server authentication unit is used for determining a candidate server which has an authentication relation with the main server from the candidate servers as the backup server.
Further, the data transmission module comprises a data encryption and decryption unit and a link management unit;
the data encryption and decryption unit is used for performing encryption and decryption operations on the main data and the backup data;
the link management unit is configured to determine the target link for synchronizing the primary data with the backup data.
Further, the fault detection module comprises a heartbeat management unit, a fault detection and recovery unit and a main-standby switching unit;
the heartbeat management unit is used for maintaining heartbeat signals between the main server and the backup server;
the fault detection and recovery unit is used for detecting the working state of the main server;
and the main-standby switching unit is used for switching the working task to the main server or the backup server.
In a third aspect, the present application also provides a dual hot standby device, where the dual hot standby device includes:
the pairing module is used for matching the backup server according to the main server, networking pairing is carried out on the main server and the backup server, and a pairing relation is established;
the data synchronization module is used for performing synchronization processing on the main data of the main server and the backup data of the backup server based on the pairing relation;
and the primary-backup switching module is used for switching the working task to the backup server based on the pairing relation under the condition that the fault detection module detects that the working state of the primary server is an abnormal state so as to realize the hot backup of the primary server and the backup server.
In a fourth aspect, the present application also provides a computer device comprising a memory and a processor; the memory is used for storing a computer program; the processor is configured to execute the computer program and implement the dual hot standby method as described above when executing the computer program.
In a fifth aspect, the present application also provides a computer readable storage medium storing a computer program, which when executed by a processor causes the processor to implement a dual hot standby method as described above.
The application discloses a dual-computer hot backup method, a system, a device, computer equipment and a storage medium, wherein the method comprises the steps that a networking pairing module matches a backup server according to a main server, networking pairing is carried out on the main server and the backup server, and a pairing relation is established; based on the pairing relation, the data transmission module carries out synchronous processing on the main data of the main server and the backup data of the backup server; and under the condition that the fault detection module detects that the working state of the main server is an abnormal state, switching a working task to the backup server based on the pairing relation so as to realize hot backup of the main server and the backup server. Through the mode, after the backup server corresponding to the main server is determined through the networking pairing module, the data of the main server and the backup server are synchronously processed, so that the alternative server can bear the working task of the main server at any time when the main server fails, the working task is switched to the alternative server through the failure detection module, and the reliability of the heat engine backup of the main server and the standby server in the Internet field is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a dual hot standby method according to a first embodiment of the present application;
FIG. 2 is a schematic flow chart of a dual-machine hot standby method according to a second embodiment of the present application;
FIG. 3 provides a schematic block diagram of a dual hot standby system in accordance with an embodiment of the present application;
FIG. 4 is a schematic block diagram of a dual hot standby device according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a dual-computer hot backup method, a system, a device, computer equipment and a storage medium. The dual-machine hot backup method can be applied to the servers, after the backup servers corresponding to the main servers are determined through the networking pairing module, the data of the two servers are synchronously processed, so that the alternative servers can bear the working tasks of the main servers at any time when the main servers fail, the working tasks are switched to the alternative servers through the failure detection module, and the reliability of the hot engine backup of the main servers and the alternative servers in the Internet field is improved. The server may be an independent server or a server cluster.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of a dual-machine hot backup method according to a first embodiment of the present application. The dual-machine hot backup method can be applied to the servers, and is used for synchronously processing the data of the backup servers corresponding to the main server after the networking pairing module determines the backup servers, so that the alternative servers can bear the working tasks of the main server at any time when the main server fails, and the fault detection module switches the working tasks to the alternative servers, thereby improving the reliability of the hot engine backup of the main server and the alternative server in the Internet field.
As shown in fig. 1, the dual hot standby method specifically includes steps S10 to S30.
Step S10, the networking pairing module matches a backup server according to a main server, performs networking pairing on the main server and the backup server, and establishes a pairing relationship;
step S20, based on the pairing relation, the data transmission module synchronizes the main data of the main server with the backup data of the backup server;
and step S30, switching a work task to the backup server based on the pairing relation to realize hot backup of the main server and the backup server under the condition that the fault detection module detects that the working state of the main server is an abnormal state.
In a specific embodiment, the existing dual-machine hot backup main process comprises the steps of main-standby server deployment, data synchronization, heartbeat detection, fault sensing, fault switching and fault recovery. Except for the hardware-based dual-machine hot standby technology, the data synchronization process of the rest technologies basically adopts Ethernet and optical fiber communication to carry out data replication synchronization. Under the condition of higher data synchronization load, the requirement on network communication quality is higher; meanwhile, a main server and a standby server are required to be configured in the dual-computer hot backup system, and the configuration method is complex.
The main flow of this embodiment can be described as: when one main server uses the dual-machine hot backup system, backup servers around meeting the performance requirement can be automatically found; after a user selects one backup server, a trusted authentication relationship is established between the primary and backup servers after mutual authentication by one device. The optimal communication link is automatically selected between the main server and the backup server for data backup through the distributed soft bus communication capability; when the failure occurs, the backup server can be automatically switched to operate after the failure of the main server is detected through a heartbeat mechanism, and the main server is replaced to operate. And after the main server is recovered to be normal, executing the main-standby switching operation, and recovering to the running state of the main server.
The embodiment discloses a dual-computer hot backup method, a system, a device, computer equipment and a storage medium, wherein the method comprises the steps that a networking pairing module matches a backup server according to a main server, networking pairing is carried out on the main server and the backup server, and a pairing relation is established; based on the pairing relation, the data transmission module carries out synchronous processing on the main data of the main server and the backup data of the backup server; and under the condition that the fault detection module detects that the working state of the main server is an abnormal state, switching a working task to the backup server based on the pairing relation so as to realize hot backup of the main server and the backup server. Through the mode, after the backup server corresponding to the main server is determined through the networking pairing module, the data of the main server and the backup server are synchronously processed, so that the alternative server can bear the working task of the main server at any time when the main server fails, the working task is switched to the alternative server through the failure detection module, and the reliability of the heat engine backup of the main server and the standby server in the Internet field is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of a dual-machine hot backup method according to a second embodiment of the present application. The dual-machine hot backup method can be applied to the servers, and is used for synchronously processing the data of the backup servers corresponding to the main server after the networking pairing module determines the backup servers, so that the alternative servers can bear the working tasks of the main server at any time when the main server fails, and the fault detection module switches the working tasks to the alternative servers, thereby improving the reliability of the hot engine backup of the main server and the alternative server in the Internet field.
Based on the embodiment shown in fig. 1, in this embodiment, as shown in fig. 2, step S10 includes steps S101 to S103.
Step S101, under the condition that the working state of the main server is a normal state, the networking pairing module determines candidate servers matched with the main server through broadcasting;
step S102, under the condition that the candidate server and the main server do not have authentication relation, establishing the authentication relation between the candidate server and the main server through a preset authentication mode;
step S103, in the case that the candidate server and the main server have the authentication relationship, the networking pairing module determines the candidate server as the backup server and performs networking pairing to establish the pairing relationship.
Specifically, when the dual-host hot standby system in the host is started, the backup servers meeting the requirements around are automatically found. After a backup server is started, the main server automatically discovers the backup servers, and if the servers are in a trusted authentication relationship, the main backup operation is automatically completed; if the trusted authentication relationship is not established, the user can establish the trusted authentication relationship with the backup server through software; after the trusted relationship is established, data communication is to be established between the main server and the standby server, and an optimal path is automatically selected between the main server and the standby server for transmission by virtue of the communication capability of the soft bus; if multiple physical links exist between the primary server and the secondary server, the data transmission is performed by using the multi-link aggregation capability.
The embodiment discloses a dual-computer hot backup method, a system, a device, computer equipment and a storage medium, wherein the method comprises the steps that under the condition that the working state of a main server is a normal state, a networking pairing module determines candidate servers matched with the main server through broadcasting; under the condition that the candidate server and the main server do not have an authentication relationship, establishing the authentication relationship between the candidate server and the main server by a preset authentication mode; the networking pairing module determines the candidate server as the backup server and performs networking pairing to establish the pairing relationship under the condition that the candidate server and the main server have the authentication relationship; based on the pairing relation, the data transmission module carries out synchronous processing on the main data of the main server and the backup data of the backup server; and under the condition that the fault detection module detects that the working state of the main server is an abnormal state, switching a working task to the backup server based on the pairing relation so as to realize hot backup of the main server and the backup server. Through the mode, after the backup server corresponding to the main server is determined through the networking pairing module, the data of the main server and the backup server are synchronously processed, so that the alternative server can bear the working task of the main server at any time when the main server fails, the working task is switched to the alternative server through the failure detection module, and the reliability of the heat engine backup of the main server and the standby server in the Internet field is improved.
Based on the embodiment shown in fig. 1, in this embodiment, step S30 further includes:
and under the condition that the fault detection module detects that the working state of the main server is a normal state, switching the working task to the main server.
Referring to fig. 3, fig. 3 is a schematic block diagram of a dual hot standby system for executing the dual hot standby method according to an embodiment of the present application. The dual-machine hot backup system can be configured on a server.
As shown in fig. 3, the dual-machine hot backup system includes a networking pairing module, a data transmission module and a fault detection module;
the networking pairing module is used for searching a backup server paired with the main server and authenticating the backup server;
the data transmission module is used for synchronizing the main data of the main server and the backup data of the backup server, carrying out encryption operation and decryption operation on the main data and the backup data, and determining a target link for synchronizing the main data and the backup data;
the fault detection module is used for detecting the working state of the main server and controlling the working task to be switched between the main server and the backup server according to the working state of the main server.
Specifically, the dual-machine hot backup system mainly comprises a networking pairing module, a data transmission module and a heartbeat and fault detection recovery module. The networking pairing module is mainly responsible for backup server discovery and server authentication, wherein the server discovery is mainly used for discovering equipment which can be used as a backup server in the communication range of a main server, and the server authentication is used for constructing a trusted relationship between the main server and the backup server. And a master server and a slave server with a trusted authentication relationship can automatically construct a data channel to perform data synchronization. After the trusted authentication relationship is released, all data in the backup server can be automatically cleared, so that data leakage is avoided. The data transmission module mainly has the functions of improving transmission performance under high load condition, encrypting and decrypting data and link management, wherein the link management function is that an optimal link can be automatically selected from a plurality of links for transmission, and the optimal link can be selected for aggregation transmission by using multiple links. The heartbeat and fault detection recovery module is mainly responsible for heartbeat maintenance, fault detection and switching between the main server and the standby server, and can rapidly switch to the standby server when the main server fails, so that the continuity of network service is ensured.
Based on the dual-computer hot backup system shown in fig. 3, the networking pairing module comprises a server discovery unit and a server authentication unit;
the server discovery unit is used for searching candidate servers matched with the main server within a preset range;
the server authentication unit is used for determining a candidate server which has an authentication relation with the main server from the candidate servers as the backup server.
Based on the dual-computer hot backup system shown in fig. 3, the data transmission module comprises a data encryption and decryption unit and a link management unit;
the data encryption and decryption unit is used for performing encryption and decryption operations on the main data and the backup data;
the link management unit is configured to determine the target link for synchronizing the primary data with the backup data.
Based on the dual-computer hot backup system shown in fig. 3, the fault detection module comprises a heartbeat management unit, a fault detection and recovery unit and a main-standby switching unit;
the heartbeat management unit is used for maintaining heartbeat signals between the main server and the backup server;
the fault detection and recovery unit is used for detecting the working state of the main server;
and the main-standby switching unit is used for switching the working task to the main server or the backup server.
Referring to fig. 4, fig. 4 is a schematic block diagram of a dual hot standby device for executing the dual hot standby method according to an embodiment of the application. The dual-machine hot backup device can be configured on a server.
As shown in fig. 4, the dual hot standby apparatus 400 includes:
the pairing module 410 is configured to match a backup server according to a primary server by using the networking pairing module, and perform networking pairing on the primary server and the backup server to establish a pairing relationship;
the data synchronization module 420 is configured to synchronize, based on the pairing relationship, the main data of the main server with the backup data of the backup server by using the data transmission module;
and the primary-backup switching module 430 is configured to switch, based on the pairing relationship, a work task to the backup server to implement hot backup of the primary server and the backup server when the failure detection module detects that the working state of the primary server is an abnormal state.
Further, the pairing module 410 includes:
the candidate server determining unit is used for determining a candidate server matched with the main server through broadcasting under the condition that the working state of the main server is a normal state;
the authentication unit is used for establishing the authentication relationship between the candidate server and the main server through a preset authentication mode under the condition that the authentication relationship between the candidate server and the main server does not exist;
and the networking pairing unit is used for determining the candidate server as the backup server and carrying out networking pairing to establish the pairing relationship under the condition that the candidate server and the main server have the authentication relationship.
Further, the dual-machine hot backup device further comprises:
and the recovery module is used for switching the work task to the main server under the condition that the fault detection module detects that the working state of the main server is a normal state.
It should be noted that, for convenience and brevity of description, the specific working process of the apparatus and each module described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 5.
Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device may be a server.
With reference to FIG. 5, the computer device includes a processor, memory, and a network interface connected by a system bus, where the memory may include a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause the processor to perform any one of a number of dual hot standby methods.
The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
The internal memory provides an environment for the execution of a computer program in a non-volatile storage medium that, when executed by a processor, causes the processor to perform any one of a dual hot standby method.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in one embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
the networking pairing module is used for matching a backup server according to a main server, networking pairing is carried out on the main server and the backup server, and a pairing relation is established;
based on the pairing relation, the data transmission module carries out synchronous processing on the main data of the main server and the backup data of the backup server;
and under the condition that the fault detection module detects that the working state of the main server is an abnormal state, switching a working task to the backup server based on the pairing relation so as to realize hot backup of the main server and the backup server.
In one embodiment, the networking pairing module matches a backup server according to a main server, performs networking pairing on the main server and the backup server, and establishes a pairing relationship for realizing:
under the condition that the working state of the main server is a normal state, the networking pairing module determines candidate servers matched with the main server through broadcasting;
under the condition that the candidate server and the main server do not have an authentication relationship, establishing the authentication relationship between the candidate server and the main server by a preset authentication mode;
and under the condition that the candidate server and the main server have the authentication relationship, the networking pairing module determines the candidate server as the backup server and performs networking pairing to establish the pairing relationship.
In one embodiment, when the fault detection module detects that the working state of the primary server is an abnormal state, after switching the working task to the backup server based on the pairing relationship to implement hot backup of the primary server and the backup server, the method is further used for implementing:
and under the condition that the fault detection module detects that the working state of the main server is a normal state, switching the working task to the main server.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program comprises program instructions, and the processor executes the program instructions to realize any double-machine hot backup method provided by the embodiment of the application.
The computer readable storage medium may be an internal storage unit of the computer device according to the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, which are provided on the computer device.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (10)
1. The double-machine hot backup method is characterized by being applied to a double-machine hot backup system, wherein the double-machine hot backup system comprises a networking pairing module, a data transmission module and a fault detection module, and comprises the following steps:
the networking pairing module is used for matching a backup server according to a main server, networking pairing is carried out on the main server and the backup server, and a pairing relation is established;
based on the pairing relation, the data transmission module carries out synchronous processing on the main data of the main server and the backup data of the backup server;
and under the condition that the fault detection module detects that the working state of the main server is an abnormal state, switching a working task to the backup server based on the pairing relation so as to realize hot backup of the main server and the backup server.
2. The dual-machine hot backup method according to claim 1, wherein the networking pairing module matches a backup server according to a main server, performs networking pairing on the main server and the backup server, and establishes a pairing relationship, and includes:
under the condition that the working state of the main server is a normal state, the networking pairing module determines candidate servers matched with the main server through broadcasting;
under the condition that the candidate server and the main server do not have an authentication relationship, establishing the authentication relationship between the candidate server and the main server by a preset authentication mode;
and under the condition that the candidate server and the main server have the authentication relationship, the networking pairing module determines the candidate server as the backup server and performs networking pairing to establish the pairing relationship.
3. The dual-engine hot standby method according to claim 1, wherein when the failure detection module detects that the working state of the primary server is an abnormal state, switching the working task to the backup server based on the pairing relationship to achieve hot standby between the primary server and the backup server, further comprises:
and under the condition that the fault detection module detects that the working state of the main server is a normal state, switching the working task to the main server.
4. The double-machine hot backup system is characterized by comprising a networking pairing module, a data transmission module and a fault detection module;
the networking pairing module is used for searching a backup server paired with the main server and authenticating the backup server;
the data transmission module is used for synchronizing the main data of the main server and the backup data of the backup server, carrying out encryption operation and decryption operation on the main data and the backup data, and determining a target link for synchronizing the main data and the backup data;
the fault detection module is used for detecting the working state of the main server and controlling the working task to be switched between the main server and the backup server according to the working state of the main server.
5. The dual hot standby system according to claim 4, wherein the networking pairing module comprises a server discovery unit and a server authentication unit;
the server discovery unit is used for searching candidate servers matched with the main server within a preset range;
the server authentication unit is used for determining a candidate server which has an authentication relation with the main server from the candidate servers as the backup server.
6. The dual-engine hot standby system according to claim 4, wherein the data transmission module comprises a data encryption and decryption unit and a link management unit;
the data encryption and decryption unit is used for performing encryption and decryption operations on the main data and the backup data;
the link management unit is configured to determine the target link for synchronizing the primary data with the backup data.
7. The dual-machine hot standby system according to claim 4, wherein the fault detection module comprises a heartbeat management unit, a fault detection and recovery unit and a primary-standby switching unit;
the heartbeat management unit is used for maintaining heartbeat signals between the main server and the backup server;
the fault detection and recovery unit is used for detecting the working state of the main server;
and the main-standby switching unit is used for switching the working task to the main server or the backup server.
8. A dual hot standby apparatus, comprising:
the pairing module is used for matching the backup server according to the main server, networking pairing is carried out on the main server and the backup server, and a pairing relation is established;
the data synchronization module is used for performing synchronization processing on the main data of the main server and the backup data of the backup server based on the pairing relation;
and the primary-backup switching module is used for switching the working task to the backup server based on the pairing relation under the condition that the fault detection module detects that the working state of the primary server is an abnormal state so as to realize the hot backup of the primary server and the backup server.
9. A computer device, the computer device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor being configured to execute the computer program and to implement the dual hot standby method according to any one of claims 1 to 3 when the computer program is executed.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the dual hot standby method according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310851128.8A CN116795601A (en) | 2023-07-11 | 2023-07-11 | Dual-computer hot backup method, system, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310851128.8A CN116795601A (en) | 2023-07-11 | 2023-07-11 | Dual-computer hot backup method, system, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116795601A true CN116795601A (en) | 2023-09-22 |
Family
ID=88040183
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310851128.8A Pending CN116795601A (en) | 2023-07-11 | 2023-07-11 | Dual-computer hot backup method, system, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116795601A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117424680A (en) * | 2023-12-19 | 2024-01-19 | 深圳鼎信通达股份有限公司 | Dual-computer hot standby switching circuit, control method and system thereof and storage medium |
-
2023
- 2023-07-11 CN CN202310851128.8A patent/CN116795601A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117424680A (en) * | 2023-12-19 | 2024-01-19 | 深圳鼎信通达股份有限公司 | Dual-computer hot standby switching circuit, control method and system thereof and storage medium |
CN117424680B (en) * | 2023-12-19 | 2024-03-15 | 深圳鼎信通达股份有限公司 | Dual-computer hot standby switching circuit, control method and system thereof and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106331098B (en) | Server cluster system | |
US20190394266A1 (en) | Cluster storage system, data management control method, and non-transitory computer readable medium | |
WO2019085875A1 (en) | Configuration modification method for storage cluster, storage cluster and computer system | |
CN109828868B (en) | Data storage method, device, management equipment and double-active data storage system | |
US8015431B2 (en) | Cluster system and failover method for cluster system | |
US7519856B2 (en) | Fault tolerant system and controller, operation method, and operation program used in the fault tolerant system | |
EP4083786A1 (en) | Cloud operating system management method and apparatus, server, management system, and medium | |
US9189316B2 (en) | Managing failover in clustered systems, after determining that a node has authority to make a decision on behalf of a sub-cluster | |
US9020894B2 (en) | Service version modification of a high-availability system | |
JP2004046599A (en) | Fault tolerant computer system, its resynchronization method, and resynchronization program | |
CN101645915B (en) | Disk array host channel daughter card, on-line switching system and switching method thereof | |
CN112948063B (en) | Cloud platform creation method and device, cloud platform and cloud platform implementation system | |
JP3887130B2 (en) | High availability computer system and data backup method in the same system | |
JP2008107896A (en) | Physical resource control management system, physical resource control management method and physical resource control management program | |
CN110784331A (en) | Consensus process recovery method and related nodes | |
CN116795601A (en) | Dual-computer hot backup method, system, device, computer equipment and storage medium | |
US20130061086A1 (en) | Fault-tolerant system, server, and fault-tolerating method | |
WO2021169311A1 (en) | Redundant computer-based redundant network ip intelligent switching method and system | |
CN111585835B (en) | Control method and device for out-of-band management system and storage medium | |
CN105119754A (en) | System and method for performing virtual master-to-slave shift to keep TCP connection | |
WO2015196692A1 (en) | Cloud computing system and processing method and apparatus for cloud computing system | |
JP5707409B2 (en) | calculator | |
CN108984602B (en) | Database control method and database system | |
JP2004094433A (en) | Fault tolerant computer, its disk management mechanism and disk management program | |
CN116193481A (en) | 5G core network processing method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |