CN105429799A - Server backup method and device - Google Patents
Server backup method and device Download PDFInfo
- Publication number
- CN105429799A CN105429799A CN201510862201.7A CN201510862201A CN105429799A CN 105429799 A CN105429799 A CN 105429799A CN 201510862201 A CN201510862201 A CN 201510862201A CN 105429799 A CN105429799 A CN 105429799A
- Authority
- CN
- China
- Prior art keywords
- server
- standby
- master
- backup
- broken down
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
- H04L41/0661—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Hardware Redundancy (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a server backup method and device. The method comprises the following steps: establishing a heartbeat connection with a plurality of main servers by a main standby server, and obtaining the configuration information of the plurality of main servers through the heartbeat connection, wherein role software of the plurality of main servers is arranged in the main standby server; and when any main server among the plurality of main servers has failure, judging whether the main standby server satisfies a backup condition according to the hardware resource information of the main server having the failure, if so, operating the role software of the main server having the failure, and operating the services of the main server having the failure according to the configuration information of the main server having the failure. By adopting the server backup method and device provided by the invention, the roles of the standby server and the main servers can be different, so that the problem that the roles of the standby server and the main servers in the prior art are in one-to-one correspondence to cause resource waste of the standby server is solved, and the system networking cost is reduced.
Description
Technical field
The present invention relates to field of video monitoring, particularly relate to a kind of server backup method and device.
Background technology
In a lot of system, as in video monitoring system, many services device role can be comprised, as VM (VideoManagement, video management) server, DM (DataManagement, data management) server, MS (MediaSwitch, exchange of media) server, BM (BackupManagement, backup management) server, TS (TranscodeService, transcoding) server, DA (DeviceAgent, proxy for equipment) server etc.Because server fail is unavoidable, all standby server to Servers installed in General System, like this when master server breaks down, system can enable standby server fast to reduce the impact of fault on user.
In prior art, the role of master server and the role of standby server are one to one, if namely master server role is VM, then the role of the standby server of master server is also VM.The shortcoming of prior art is if video monitoring system networking comprises the many services device roles such as VM, DM, MS, BM, TS, and so standby server is also in requisition for many services device role, causes the standby server wasting of resources, adds the cost of system group network.
Summary of the invention
The invention provides a kind of server backup method and device, to solve the problem of the standby server wasting of resources that standby server and master server role one_to_one corresponding cause in prior art.
According to the first aspect of the embodiment of the present invention, provide a kind of server backup method, described method is applied to standby usage server, and described method comprises:
Set up and be connected with the heartbeat between described multiple master server, connected the configuration information obtaining described multiple master server by described heartbeat, wherein, in described standby usage server, be provided with role's software of described multiple master server;
When any one master server in described multiple master server breaks down, judge whether described standby usage server meets backup condition according to the hardware asset information of the master server broken down;
If met, then the role's software of master server broken down described in running, and according to the configuration information of the described master server broken down, the service of the master server broken down described in operation.
According to the second aspect of the embodiment of the present invention, provide a kind of server backup method, described method is applied to the master server broken down, and described method comprises:
According to fault message, judge whether to deteriorate to standby server;
If so, from the information list of standby server, obtain the address information of any one standby server;
According to described address information, and establish a communications link between corresponding standby server, to add the backup server cluster at described standby server place, wherein, described communication connection is TCP (TransmissionControlProtocol, transmission control protocol) connect or UDP (UserDatagramProtocol, User Datagram Protoco (UDP)) connection.
According to the third aspect of the embodiment of the present invention, provide a kind of server backup device, described application of installation is in standby usage server, and described device comprises:
Connection establishment unit, is connected for the heartbeat of setting up between described multiple master server;
Acquiring unit, for being connected the configuration information obtaining described multiple master server by described heartbeat, wherein, arranges role's software of described multiple master server in described standby usage server;
Backup units, for when any one master server in described multiple master server breaks down, judge whether described standby usage server meets backup condition according to the hardware asset information of the master server broken down, if met, role's software of the master server broken down described in then running, and according to the configuration information of the described master server broken down, the service of the master server broken down described in operation.
According to the fourth aspect of the embodiment of the present invention, described application of installation is in the master server broken down, and described device comprises:
Judging unit, for according to fault message, judges whether to deteriorate to standby server;
Acquiring unit, for if obtain the address information of any one standby server from the information list of standby server;
Degeneration, for according to described address information, and establishes a communications link between corresponding standby server, and to add the backup server cluster at described standby server place, wherein, described communication connection is that TCP connects or UDP connects.
The application embodiment of the present invention, is provided with role's software of multiple master server in standby usage server, and foundation is connected with the heartbeat between multiple master server, is connected the configuration information obtaining multiple master server by this heartbeat; When any one master server in multiple master server breaks down, judge whether described standby usage server meets backup condition according to the hardware asset information of the master server broken down, if met, role's software of the master server broken down described in then running, and according to the configuration information of the described master server broken down, the service of the master server broken down described in operation.In addition, the master server broken down can also, according to fault message, determine whether to deteriorate to standby server, if can, add backup server cluster for backup.In the embodiment of the present invention, the role of multiple master server can be different, the role of standby server and master server also can be different, solve the problem of the standby server wasting of resources that standby server and master server role one_to_one corresponding cause in prior art thus, and the server broken down also may deteriorate to standby server for backup, solve the problem of the standby server wasting of resources further, reduce the cost of system group network.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the application scenarios schematic diagram of the embodiment of the present invention;
Fig. 2 is server backup method flow diagram in one embodiment of the present invention;
Fig. 3 is the hardware environment Organization Chart of server backup plant running in one embodiment of the present invention;
Fig. 4 is the hardware environment Organization Chart of server backup plant running in one embodiment of the present invention;
Fig. 5 is server backup device block diagram in one embodiment of the present invention;
Fig. 6 is server backup device block diagram in one embodiment of the present invention.
Embodiment
The role mentioned in present specification defines with server function in systems in which, as data management server, transcoding server, video management server, exchange of media server etc. can be had in system, run in the server of often kind of role and have corresponding role's software, according to configuration information and the corresponding function of role's software simulating.Present specification describes technical solution of the present invention for video monitoring system, but does not limit protection scope of the present invention with this, and the present invention program also can be applicable in the other systems such as video on-demand system.See Fig. 1, the application scenarios schematic diagram for the embodiment of the present invention:
In Fig. 1, video management server VM is connected to the master servers such as MS, DM, BM, DA, and MS is connected to TS, and DM is connected to IP-SAN (IPStorageAreaNetwork, storage area network) equipment, and BM is also connected to IP-SAN equipment; Backup server cluster comprises standby server 1, standby server 2, standby server 3, standby server 1, standby server 2, standby server 3 can be all VM server, also different role servers can be respectively, arrange role's softwares such as VM, MS, DM, BM, DA in standby server 1, standby server 2, standby server 3, standby server 1 is standby usage server.Standby server 1 with establish heartbeat between master server and be connected, when certain master server breaks down, according to hardware asset information, standby server 1 can judge whether described standby usage server meets backup condition, if met, then run role's software of the master server broken down, and according to the configuration information of the master server broken down, run the service of the master server broken down.Such as the hardware resource consumption of DA server is mainly CPU (CentralProcessingUnit, central processing unit) consume and memory source consumption, and the hardware resource consumption of MS server is except CPU consumption and memory source consumption, also has network interface card consumption, therefore the hardware resource consumption of DA server is lower relative to the hardware resource consumption of MS server, if the server broken down is DA server, and standby server 1 is VM server, because the hardware consumption of DA server is not higher than the hardware consumption of VM server, therefore standby server 1 meets backup condition, directly can run role's software of DA server, and according to the configuration information of DA server, run the service of DA server.Wherein, if the server broken down is MS server, and the hardware resource consumption of MS server is higher relative to VM server, therefore standby server 1 can according to the difference with MS server hardware resource consumption, determine in backup server cluster, select standby server 2, jointly run the service of MS server by standby server 1 and standby server 2.In addition, for the server of generating portion fault, if also can use, also can deteriorate to the standby server of other roles, for backup.The present invention can solve the problem of the standby server wasting of resources that standby server and master server role one_to_one corresponding cause thus, and the master server broken down also can deteriorate to the standby server of other roles, greatly reduces networking cost.
In present specification, the hardware resource of all kinds of role server can draw empirical value according to test, the difference of the hardware resource of various role server can show with the form of weight, if the hardware resource of a such as DM can support the hardware resource of a VM, but the hardware resource VM of 2 could support the hardware resource of a DM, the hardware resource of a TS can support the hardware resource of a VM, but the hardware resource VM of 3 could support the hardware resource of a TS, then 1VM=1/2DM=1/3TS can be shown as.When standby server adds backup server cluster, the hardware asset information of oneself can be reported.
Below by specific embodiment, the present invention program is described in detail.
See Fig. 2, be server backup method flow diagram in one embodiment of the present invention:
Step 201: each standby server adds backup server cluster.
Separate unit standby server adds backup server cluster can not carry out any configuration, can specify the IP address of existing any standby server in backup server cluster when follow-up standby server adds backup server cluster, standby server 2 sets up backup pool relation by communication connection and standby server 1.Standby server 1 and standby server 2 according to pre-conditioned, can elect a standby usage server, as elected a standby usage server according to IP address size, if IP address greatly, are standby usage server.Certain standby server also can according to MAC Address size election standby usage server, and the application does not limit pre-conditioned content.
When standby server N (N is greater than 2) adds backup server cluster, specify the IP address of existing any standby server in backup server cluster, such as standby server 2.
Standby server N attempts to establish a communications link with standby server 2, if but standby server 2 is not standby usage server, then standby server N can be informed in the IP address of standby usage server.
Standby server N and standby usage server establish a communications link.After establishing a communications link, standby server N can compare according to pre-conditioned with standby usage server, if standby server N meets pre-conditioned, then can replace standby usage server updating is new standby usage server.The address information of new standby usage server is notified existing standby server in backup server cluster, to make existing standby server and new standby server establish a communications link by former standby usage server.
Repeat said process and can add some standby servers to backup server cluster, and elect standby usage server.
After electing standby usage server, the address information of each standby server can be notified the address information of all the other standby servers by standby usage server.
Wherein, role's software of various role server is provided with in each standby server.
Step 202: standby usage server is set up and is connected with the heartbeat between multiple master server.
Step 203: standby usage server connects the configuration information obtaining multiple master server by heartbeat.
The service that the master servers such as the configuration information of master server can comprise: the user list that master server is current, management equipment list run.Such as, if master server is VM server, configuration information can comprise the list of devices of the current user list of VM and management, the list of devices of management comprises the IPC (IPCamera being registered to VM, web camera), NVR (NetworkVideoRecorder, network video recorder) equipment, DVR (DigitalVideoRecorder, DVR), the information such as MS, DM, BM, DA.Other role servers also have oneself configuration information, and set up heartbeat at standby usage server and each master server and be connected to, each master server can by the configuration information real-time synchronization of self to standby usage server.
Step 204: standby usage server, by the communication connection of having set up, sends the configuration information of each master server to other standby servers.
Step 205: when certain master server breaks down, according to the hardware asset information of the master server broken down, standby usage server can judge whether described standby usage server meets backup condition.
Be connected because standby usage server establishes heartbeat with each master server, can detect by heartbeat checking the server broken down.The hardware asset information of standby usage server detection self, and judge that can standby usage server meet backup condition according to the hardware asset information of the server broken down, if the hardware resource of standby usage server is not less than the master server broken down, then meet backup condition, otherwise do not meet.If met, then perform step 206, if do not met, perform step 207.
Step 206: role's software of the master server broken down described in operation, and according to the configuration information of the described master server broken down, the service of the master server broken down described in operation.
Role's software of the master server of standby usage server fail, and run corresponding service according to the configuration information of the master server broken down of current preservation, complete the process that standby server upgrades to master server.
Step 207: the number of units N determining the standby server of satisfied backup condition needs, and according to the number of units N of described standby server, N-1 platform standby server is selected, the service of the master server broken down described in N platform standby server runs jointly in backup server cluster.
Standby usage server is according to the hardware asset information of self, and can the hardware asset information of the server broken down be determined to need how many standby servers meet backup condition, according to the number of units N of required standby server, N-1 platform standby server is selected, the service of the master server broken down described in N platform standby server runs jointly in backup server cluster.Such as, if standby usage server is VM server, and the server broken down is MS server, then can determine that needs two standby servers meet backup condition, now standby usage server can select a standby server in backup server cluster, and the configuration information of MS server according to current preservation, that will run is divided into two parts, two standby servers run MS role server software respectively, and load a configuration information, the master server broken down is backed up by two standby servers.
Step 208: the communication connection between release and other standby servers, and release is connected with the heartbeat between other master servers.
While standby usage server updating is master server, the heartbeat disconnected between other master servers connects, and also disconnects the communication connection between other standby servers.
After disconnecting the communication connection between other standby servers, other standby servers can according to the operation election standby usage server of step 201, and new standby usage server performs the operation of original standby usage server, sets up heartbeat be connected with master server.
Step 209: the server broken down can judge whether to deteriorate to standby server according to fault message.
After some server fail, some hardware resource also can use, and can determine whether the server broken down can deteriorate to standby server in this case according to fault message.Such as, break down if the fault of MS server is single network interface card, according to this fault message, MS server cannot provide enough bandwidth to carry out resource forwarding, but its cpu resource still can be used, now MS server can be degenerated to the standby server of single VM role.If so, then step 210 is performed.
Step 210: if obtain the address information of any one standby server from the information list of standby server.
Because the information list of standby server is sent to each master server by heartbeat connection by standby usage server, the information list of this standby server in the master server therefore broken down, can be stored.
The master server broken down can obtain the address information of each standby server from the information list of this standby server.
Step 211: according to described address information, sets up the communication connection between corresponding standby server, to add the backup server cluster at described standby server place.
The master server broken down adds the process of standby server can refer step 201, if the standby server that namely address information is corresponding is the standby usage server in backup server cluster, after then establishing a communications link with standby usage server, identify the master server broken down and add backup server cluster; If standby server corresponding to address information is not the standby usage server in backup server cluster, the standby server that then address information is corresponding sends the address information of standby usage server to the master server broken down, to make the master server that breaks down set up communication connection between standby usage server, add backup server cluster.
After the master server broken down adds described backup server cluster, pre-conditionedly to compare according to certain with standby usage server, if the master server broken down meets pre-conditioned, the master server then broken down upgrades to the standby usage server in server cluster, after upgrading to standby usage server, the communication connection between other standby servers can be set up, and set up and be connected with the heartbeat between other master servers, and connected the configuration information obtaining other master servers by heartbeat.
Embodiment shown in composition graphs 2 is known, is provided with role's software of multiple master server in standby usage server, and the heartbeat can set up between multiple master server is connected, and is connected the configuration information obtaining multiple master server by this heartbeat; When any one master server in multiple master server breaks down, judge whether standby usage server meets backup condition according to the hardware asset information of the master server broken down, if met, then run role's software of the master server broken down, and according to the configuration information of the master server broken down, run the service of the master server broken down.In addition, the master server broken down can also, according to fault message, determine whether to deteriorate to standby server, if can, add backup server cluster for backup.In the embodiment of the present invention, the role of multiple master server can be different, the role of standby server and master server also can be different, solve the problem of the standby server wasting of resources that standby server and master server role one_to_one corresponding cause in prior art thus, and the server broken down also may deteriorate to standby server for backup, solve the problem of the standby server wasting of resources further, reduce the cost of system group network.
See Fig. 3, the hardware environment Organization Chart for server backup plant running in one embodiment of the present invention:
The embodiment of server backup device of the present invention can be applied on standby usage server.Device embodiment can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.For software simulating, as the device on a logical meaning, be by the CPU of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.Say from hardware view; as shown in Figure 3; for the hardware environment Organization Chart of server backup plant running in one embodiment of the present invention; except the CPU shown in Fig. 3, internal memory, network interface and nonvolatile memory, in embodiment, the equipment at device place can also comprise other hardware usually.
See Fig. 4, the hardware environment Organization Chart for server backup plant running in one embodiment of the present invention:
The embodiment of server backup device of the present invention can be applied on the master server that breaks down.Device embodiment can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.For software simulating, as the device on a logical meaning, be by the CPU of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.Say from hardware view; as shown in Figure 4; for the hardware environment Organization Chart of server backup plant running in one embodiment of the present invention; except the CPU shown in Fig. 4, internal memory, network interface and nonvolatile memory, in embodiment, the equipment at device place can also comprise other hardware usually.
See Fig. 5, be server backup device block diagram in one embodiment of the present invention, this application of installation is in standby usage server.
Described device comprises: connection establishment unit 510, acquiring unit 520, backup units 530.
Wherein, connection establishment unit 510, is connected for the heartbeat of setting up between described multiple master server;
Acquiring unit 520, for being connected the configuration information obtaining described multiple master server by described heartbeat, wherein, arranges role's software of described multiple master server in described standby usage server;
Backup units 530, for when any one master server in described multiple master server breaks down, judge whether described standby usage server meets backup condition according to the hardware asset information of the master server broken down, if met, role's software of the master server broken down described in then running, and according to the configuration information of the described master server broken down, the service of the master server broken down described in operation.
Optionally, described connection establishment unit 510, also can be used for the transmission control protocol set up between other standby servers and communicates to connect.
Described device also comprises: transmitting element 540 (not shown in Fig. 5), for sending the configuration information of described multiple master server to other standby servers described.Transmitting element 540, also can be used for being connected by described heartbeat, and send the information list of standby server to described multiple master server, the information list of described standby server comprises the address information of all standby servers.
Optionally, described backup units 530 comprises: determine subelement 531 (not shown in Fig. 5), if do not meet backup condition for described standby usage server, determines the number of units N of the standby server of satisfied backup condition needs; Chooser unit 532 (not shown in Fig. 5), for the number of units N according to described standby server, selects N-1 platform standby server in backup server cluster, the service of the master server broken down described in N platform standby server runs jointly.
Described device also comprises: releasing unit 550 (not shown in Fig. 5), and for discharging the communication connection between other standby servers described, and release is connected with the heartbeat between other master servers.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
See Fig. 6, it is server backup device block diagram in one embodiment of the present invention.
Described device comprises: judging unit 610, acquiring unit 620, degeneration 630.
Wherein, judging unit 610, for according to fault message, judges whether to deteriorate to standby server;
Acquiring unit 620, for if obtain the address information of any one standby server from the information list of standby server;
Degeneration 630, for according to described address information, sets up the communication connection between corresponding standby server, to add the backup server cluster at described standby server place.
Optionally, described degeneration 630 specifically for: if standby server corresponding to described address information is the standby usage server in described backup server cluster, after then setting up described communication connection with described standby usage server, the master server broken down described in mark adds described standby server collection; If standby server corresponding to described address information is not the standby usage server in described backup server cluster, the standby server that then described address information is corresponding sends the address information of standby usage server to the described master server broken down, set up the communication connection between described standby usage server with the master server broken down described in making, add described backup server cluster.
Optionally, described degeneration also comprises: upgrading subelement 640 (not shown in Fig. 6), for pre-conditionedly comparing according to certain with described standby usage server, if described in the master server that breaks down meet described pre-conditioned, then the master server broken down described in upgrades to the standby usage server in described server cluster.
Described degeneration also comprises: connection establishment bullet unit 650 (not shown in Fig. 6), and for setting up the communication connection between other standby servers, and foundation is connected with the heartbeat between other master servers; Configuration subelement 660 (not shown in Fig. 6), also for being connected the configuration information obtaining other master servers described by described heartbeat.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the present invention or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.
Claims (18)
1. a server backup method, is characterized in that, described method is applied to standby usage server, and described method comprises:
Set up and be connected with the heartbeat between described multiple master server, connected the configuration information obtaining described multiple master server by described heartbeat, wherein, in described standby usage server, be provided with role's software of described multiple master server;
When any one master server in described multiple master server breaks down, judge whether described standby usage server meets backup condition according to the hardware asset information of the master server broken down;
If met, then the role's software of master server broken down described in running, and according to the configuration information of the described master server broken down, the service of the master server broken down described in operation.
2. method according to claim 1, is characterized in that, described method also comprises:
Set up the communication connection between other standby servers, wherein, described communication connection is that transmission control protocol TCP connects or User Datagram Protoco (UDP) UDP connects;
The configuration information of described multiple master server is sent to other standby servers described.
3. method according to claim 1, is characterized in that, described method also comprises:
If described standby usage server does not meet backup condition, determine the number of units N of the standby server of satisfied backup condition needs, and according to the number of units N of described standby server, N-1 platform standby server is selected, the service of the master server broken down described in N platform standby server runs jointly in backup server cluster.
4. method according to claim 1, is characterized in that, after any one master server in described multiple master server breaks down, described method also comprises:
Communication connection between release and other standby servers described, and release is connected with the heartbeat between other master servers.
5. method according to claim 1, is characterized in that, described method also comprises:
Connected by described heartbeat, send the information list of standby server to described multiple master server, the information list of described standby server comprises the address information of all standby servers.
6. a server backup method, is characterized in that, described method is applied to the master server broken down, and described method comprises:
According to fault message, judge whether to deteriorate to standby server;
If so, from the information list of standby server, obtain the address information of any one standby server;
According to described address information, set up the communication connection between corresponding standby server, to add the backup server cluster at described standby server place, wherein, described communication connection is that transmission control protocol TCP connects or User Datagram Protoco (UDP) UDP connects.
7. method according to claim 6, is characterized in that, described according to described address information, sets up the communication connection between corresponding standby server, to add the backup server cluster at described standby server place, comprising:
If standby server corresponding to described address information is the standby usage server in described backup server cluster, then, after setting up described communication connection with described standby usage server, the master server broken down described in mark adds described backup server cluster;
If standby server corresponding to described address information is not the standby usage server in described backup server cluster, the standby server that then described address information is corresponding sends the address information of standby usage server to the described master server broken down, set up the communication connection between described standby usage server with the master server broken down described in making, add described backup server cluster.
8. method according to claim 7, it is characterized in that, after the described master server broken down adds described backup server cluster, also comprise: pre-conditionedly to compare according to certain with described standby usage server, if described in the master server that breaks down meet described pre-conditioned, then the master server broken down described in upgrades to the standby usage server in described server cluster.
9. method according to claim 8, is characterized in that, described in after the master server that breaks down upgrades to the standby usage server in described server cluster, also comprise:
Set up the communication connection between other standby servers, and foundation is connected with the heartbeat between other master servers, and is connected the configuration information obtaining other master servers described by described heartbeat.
10. a server backup device, is characterized in that, described application of installation is in standby usage server, and described device comprises:
Connection establishment unit, is connected for the heartbeat of setting up between described multiple master server;
Acquiring unit, for being connected the configuration information obtaining described multiple master server by described heartbeat, wherein, is provided with role's software of described multiple master server in described standby usage server;
Backup units, for when any one master server in described multiple master server breaks down, judge whether described standby usage server meets backup condition according to the hardware asset information of the master server broken down, if met, role's software of the master server broken down described in then running, and according to the configuration information of the described master server broken down, the service of the master server broken down described in operation.
11. devices according to claim 10, is characterized in that, described device also comprises transmitting element:
Described connection establishment unit, also for setting up the communication connection between other standby servers, wherein, described communication connection is that transmission control protocol TCP connects or User Datagram Protoco (UDP) UDP connects;
Described transmitting element, for sending the configuration information of described multiple master server to other standby servers described.
12. devices according to claim 10, is characterized in that, described backup units comprises:
Determine subelement, if do not meet backup condition for described standby usage server, determine the number of units N of the standby server of satisfied backup condition needs;
Chooser unit, for the number of units N according to described standby server, selects N-1 platform standby server in backup server cluster, the service of the master server broken down described in N platform standby server runs jointly.
13. devices according to claim 10, is characterized in that, described device also comprises:
Releasing unit, for discharging the communication connection between other standby servers described, and release is connected with the heartbeat between other master servers.
14. devices according to claim 11, it is characterized in that, described transmitting element: also for being connected by described heartbeat, send the information list of standby server to described multiple master server, the information list of described standby server comprises the address information of all standby servers.
15. 1 kinds of server backup devices, is characterized in that, described application of installation is in the master server broken down, and described device comprises:
Judging unit, for according to fault message, judges whether to deteriorate to standby server;
Acquiring unit, for if obtain the address information of any one standby server from the information list of standby server;
Degeneration, for according to described address information, set up the communication connection between corresponding standby server, to add the backup server cluster at described standby server place, wherein, described communication connection is that transmission control protocol TCP connects or User Datagram Protoco (UDP) UDP connects.
16. devices according to claim 15, is characterized in that, described degeneration specifically for:
If standby server corresponding to described address information is the standby usage server in described backup server cluster, then, after setting up described communication connection with described standby usage server, the master server broken down described in mark adds described backup server cluster;
If standby server corresponding to described address information is not the standby usage server in described backup server cluster, the standby server that then described address information is corresponding sends the address information of standby usage server to the described master server broken down, set up the communication connection between described standby usage server with the master server broken down described in making, add described backup server cluster.
17. devices according to claim 16, it is characterized in that, described degeneration also comprises: upgrading subelement, for pre-conditionedly comparing according to certain with described standby usage server, if described in the master server that breaks down meet described pre-conditioned, then the master server broken down described in upgrades to the standby usage server in described server cluster.
18. devices according to claim 17, is characterized in that, described degeneration also comprises:
Connection establishment subelement, for setting up the communication connection between other standby servers, and foundation is connected with the heartbeat between other master servers;
Configuration subelement, also for being connected the configuration information obtaining other master servers described by described heartbeat.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510862201.7A CN105429799B (en) | 2015-11-30 | 2015-11-30 | Server backup method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510862201.7A CN105429799B (en) | 2015-11-30 | 2015-11-30 | Server backup method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105429799A true CN105429799A (en) | 2016-03-23 |
CN105429799B CN105429799B (en) | 2019-06-11 |
Family
ID=55507750
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510862201.7A Active CN105429799B (en) | 2015-11-30 | 2015-11-30 | Server backup method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105429799B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105915637A (en) * | 2016-06-07 | 2016-08-31 | 厦门纳网科技股份有限公司 | Remote automatic standby and awakening method based on storage system server |
CN106656592A (en) * | 2016-12-19 | 2017-05-10 | 贵州白山云科技有限公司 | Service management method and device based on role configuration |
CN106648966A (en) * | 2016-10-14 | 2017-05-10 | 郑州云海信息技术有限公司 | Metadata backup method and system for storage server |
CN107241295A (en) * | 2016-03-28 | 2017-10-10 | 阿里巴巴集团控股有限公司 | Encryption management method and device, control cluster |
CN109218349A (en) * | 2017-06-29 | 2019-01-15 | 北京微影时代科技有限公司 | A kind of method and device of management server cluster |
CN110830281A (en) * | 2018-08-13 | 2020-02-21 | 浙江宇视科技有限公司 | Hot standby method and system based on mesh network structure |
CN111405216A (en) * | 2019-10-25 | 2020-07-10 | 杭州海康威视系统技术有限公司 | Configuration method, device and equipment and storage medium |
CN112954264A (en) * | 2019-12-10 | 2021-06-11 | 浙江宇视科技有限公司 | Platform backup protection method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080198740A1 (en) * | 2007-02-20 | 2008-08-21 | Inventec Corporation | Service take-over system of multi-host system and method therefor |
CN101309167A (en) * | 2008-06-27 | 2008-11-19 | 华中科技大学 | Disaster allowable system and method based on cluster backup |
CN102291262A (en) * | 2011-09-01 | 2011-12-21 | 中兴通讯股份有限公司 | Disaster recovery method, device and system |
CN103346903A (en) * | 2013-06-20 | 2013-10-09 | 北京捷成世纪科技股份有限公司 | Dual-machine backup method and device |
-
2015
- 2015-11-30 CN CN201510862201.7A patent/CN105429799B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080198740A1 (en) * | 2007-02-20 | 2008-08-21 | Inventec Corporation | Service take-over system of multi-host system and method therefor |
CN101309167A (en) * | 2008-06-27 | 2008-11-19 | 华中科技大学 | Disaster allowable system and method based on cluster backup |
CN102291262A (en) * | 2011-09-01 | 2011-12-21 | 中兴通讯股份有限公司 | Disaster recovery method, device and system |
CN103346903A (en) * | 2013-06-20 | 2013-10-09 | 北京捷成世纪科技股份有限公司 | Dual-machine backup method and device |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107241295A (en) * | 2016-03-28 | 2017-10-10 | 阿里巴巴集团控股有限公司 | Encryption management method and device, control cluster |
CN105915637A (en) * | 2016-06-07 | 2016-08-31 | 厦门纳网科技股份有限公司 | Remote automatic standby and awakening method based on storage system server |
CN106648966A (en) * | 2016-10-14 | 2017-05-10 | 郑州云海信息技术有限公司 | Metadata backup method and system for storage server |
CN106656592A (en) * | 2016-12-19 | 2017-05-10 | 贵州白山云科技有限公司 | Service management method and device based on role configuration |
CN106656592B (en) * | 2016-12-19 | 2020-02-18 | 贵州白山云科技股份有限公司 | Service management method and device based on role configuration |
CN109218349A (en) * | 2017-06-29 | 2019-01-15 | 北京微影时代科技有限公司 | A kind of method and device of management server cluster |
CN110830281A (en) * | 2018-08-13 | 2020-02-21 | 浙江宇视科技有限公司 | Hot standby method and system based on mesh network structure |
CN110830281B (en) * | 2018-08-13 | 2022-06-14 | 浙江宇视科技有限公司 | Hot standby method and system based on mesh network structure |
CN111405216A (en) * | 2019-10-25 | 2020-07-10 | 杭州海康威视系统技术有限公司 | Configuration method, device and equipment and storage medium |
CN111405216B (en) * | 2019-10-25 | 2022-06-28 | 杭州海康威视系统技术有限公司 | Configuration method, device and equipment and storage medium |
CN112954264A (en) * | 2019-12-10 | 2021-06-11 | 浙江宇视科技有限公司 | Platform backup protection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105429799B (en) | 2019-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105429799A (en) | Server backup method and device | |
CN108259629B (en) | Virtual internet protocol address switching method and device | |
CN112073265B (en) | Internet of things monitoring method and system based on distributed edge computing | |
CN107357571B (en) | Maintenance method and system for equipment component program | |
PH12015500177B1 (en) | Computer information system and dynamic disaster recovery method therefor | |
CN109960634B (en) | Application program monitoring method, device and system | |
US9900385B2 (en) | Connection management device, communication system, connection management method, and computer program product | |
CN104038376A (en) | Method and device for managing real servers and LVS clustering system | |
CN106911648B (en) | Environment isolation method and equipment | |
CN107276839B (en) | Self-monitoring method and system of cloud platform | |
CN105580316A (en) | Apparatus and method for monitoring network performance | |
CN112653577A (en) | Network element management method, device and storage medium | |
CN104065508A (en) | Application service health examination method, device and system | |
CN104158707A (en) | Method and device of detecting and processing brain split in cluster | |
CN112311896B (en) | Health examination method, device, equipment and computer readable storage medium | |
CN113726556B (en) | Edge internet of things proxy node operation and maintenance method, system, storage medium and computing equipment | |
CN103312593B (en) | A kind of message distributing system and method | |
CN107613023B (en) | Equipment connection method and device | |
KR102494744B1 (en) | Cloud server, system including thereof, method for supporting service continuity | |
CN112788089A (en) | Network communication control method of multi-edge cloud, edge operation device and system | |
CN100563263C (en) | In network storage service, realize the method and system of system high-available | |
CN111385134B (en) | Access device dynamic migration method and device access platform | |
CN116886497A (en) | Service grid business centralized proxy switching method and processing system based on DPU | |
CN103220189A (en) | Multi-active detection (MAD) backup method and equipment | |
CN113489149B (en) | Power grid monitoring system service master node selection method based on real-time state sensing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |