CN105429799B - Server backup method and device - Google Patents

Server backup method and device Download PDF

Info

Publication number
CN105429799B
CN105429799B CN201510862201.7A CN201510862201A CN105429799B CN 105429799 B CN105429799 B CN 105429799B CN 201510862201 A CN201510862201 A CN 201510862201A CN 105429799 B CN105429799 B CN 105429799B
Authority
CN
China
Prior art keywords
server
standby
primary
backup
break 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.)
Active
Application number
CN201510862201.7A
Other languages
Chinese (zh)
Other versions
CN105429799A (en
Inventor
周迪
赵子华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201510862201.7A priority Critical patent/CN105429799B/en
Publication of CN105429799A publication Critical patent/CN105429799A/en
Application granted granted Critical
Publication of CN105429799B publication Critical patent/CN105429799B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • H04L41/0661Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Abstract

The present invention provides server backup method and device, this method comprises: the heartbeat that standby usage server is established between multiple primary servers connects, obtain the configuration information of multiple primary servers by heartbeat connection, wherein role's software of multiple primary servers is set in standby usage server;When any one primary server in multiple primary servers breaks down, judge whether standby usage server meets backup condition according to the hardware asset information of the primary server to break down, if met, then run role's software of the primary server to break down, and according to the configuration information of the primary server to break down, the service of the primary server to break down is run.With the application of the invention, the role of standby server and primary server can be different, thus solve the problems, such as that standby server in the prior art and primary server role correspond the caused standby server wasting of resources, reduce the cost of system group network.

Description

Server backup method and device
Technical field
The present invention relates to field of video monitoring more particularly to a kind of server backup method and devices.
Background technique
In many systems, in video monitoring system, it may include a variety of role servers, such as VM (Video Management, video management) server, DM (Data Management, data management) server, MS (Media Switch, exchange of media) server, BM (Backup Management, backup management) server, TS (Transcode Service, transcoding) server, DA (Device Agent, proxy for equipment) server etc..Since server fail is difficult Exempt from, standby server all is provided with to server in General System, in this way when primary server breaks down, system can be fast Speed enables standby server to reduce influence of the failure to user.
In the prior art, the role of primary server and the role of standby server are one-to-one, i.e., if main service Device role is VM, then the role of the standby server of primary server is also VM.The shortcomings that prior art is if video monitoring system Networking of uniting includes a variety of role servers such as VM, DM, MS, BM, TS, then standby server is also in requisition for a variety of server angles Color leads to the standby server wasting of resources, increases the cost of system group network.
Summary of the invention
The present invention provides a kind of server backup method and device, to solve standby server in the prior art and main service The problem of standby server wasting of resources caused by device role corresponds.
According to a first aspect of the embodiments of the present invention, a kind of server backup method is provided, the method is applied to active and standby With server, which comprises
The heartbeat established between the multiple primary server connects, and obtains the multiple main clothes by heartbeat connection The configuration information of business device, wherein role's software of the multiple primary server is provided in the standby usage server;
When any one primary server in the multiple primary server breaks down, according to the main service broken down The hardware asset information of device judges whether the standby usage server meets backup condition;
If it is satisfied, then the role's software of primary server to break down described in operation, and broken down according to described The configuration information of primary server, the service of the primary server to break down described in operation.
According to a second aspect of the embodiments of the present invention, a kind of server backup method is provided, the method is applied to occur The primary server of failure, which comprises
According to fault message, judging whether to degenerate is standby server;
If so, obtaining the address information of any one standby server from the information list of standby server;
According to the address information, communication connection is established, between corresponding standby server the spare clothes are added Backup server cluster where business device, wherein the communication connection is TCP (Transmission Control Protocol, transmission control protocol) connection or UDP (User Datagram Protocol, User Datagram Protocol) connection.
According to a third aspect of the embodiments of the present invention, a kind of server backup device is provided, described device is applied to active and standby With server, described device includes:
Connection establishment unit, the heartbeat connection for establishing between the multiple primary server;
Acquiring unit, for obtaining the configuration information of the multiple primary server by heartbeat connection, wherein described Role's software of the multiple primary server is set in standby usage server;
Backup units, for when any one primary server in the multiple primary server breaks down, according to hair The hardware asset information of the primary server of raw failure judges whether the standby usage server meets backup condition, if it is satisfied, Role's software of the primary server then to break down described in operation, and confidence is matched according to the primary server to break down It ceases, the service of the primary server to break down described in operation.
According to a fourth aspect of the embodiments of the present invention, described device is applied to the primary server to break down, described device Include:
Judging unit is standby server for according to fault message, judging whether to degenerate;
Acquiring unit, for if so, obtaining any one standby server from the information list of standby server Address information;
Degeneration, for establishing communication connection, between corresponding standby server to add according to the address information Enter the backup server cluster where the standby server, wherein the communication connection is TCP connection or UDP connection.
Using the embodiment of the present invention, it is provided with role's software of multiple primary servers in standby usage server, and establishes Heartbeat between multiple primary servers is connect, and the configuration information of multiple primary servers is obtained by heartbeat connection;When multiple When any one primary server in primary server breaks down, sentenced according to the hardware asset information of the primary server to break down Whether the standby usage server that breaks meets backup condition, if it is satisfied, then the angle of the primary server to break down described in operation Color software, and according to the configuration information of the primary server to break down, the clothes of the primary server to break down described in operation Business.In addition, the primary server to break down can also be according to fault message, it is determined whether can degenerate for standby server, such as Backup server cluster can be then added for backing up in fruit.The role of multiple primary servers can be different in the embodiment of the present invention, The role of standby server and primary server can also be different, and thus solve standby server in the prior art and primary server The problem of standby server wasting of resources caused by role corresponds, and it is standby that the server to break down, which is also possible to degenerate, With server for reducing the cost of system group network the problem of backing up, further solve the standby server wasting of resources.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
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 architecture diagram of server backup device operation in one embodiment of the present invention;
Fig. 4 is the hardware environment architecture diagram of server backup device operation 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.
Specific embodiment
The role mentioned in present specification is defined with the function of server in systems, as that can have number in system According to management server, transcoding server, video management server, exchange of media server etc., transported in the server of every kind of role Row has corresponding role's software, according to configuration information and the corresponding function of role's software realization.Present specification is with video monitoring Technical solution of the present invention is described for system, but is not limited the scope of protection of the present invention with this, and the present invention program can also answer For in the other systems such as video on-demand system.It is the application scenarios schematic diagram of the embodiment of the present invention referring to Fig. 1:
In Fig. 1, video management server VM is connected to the primary servers such as MS, DM, BM, DA, and MS is connected to TS, and DM is connected to IP-SAN (IP Storage Area Network, storage area network) equipment, BM are also connected to IP-SAN equipment;Spare clothes It is engaged in including standby server 1, standby server 2, standby server 3 in device cluster, it is standby server 1, standby server 2, standby It can all be VM server with server 3, also may respectively be different role servers, it is standby server 1, standby server 2, standby With roles' softwares such as VM, MS, DM, BM, DA are arranged in server 3, standby server 1 is main standby server.Standby server 1 It establishes heartbeat between primary server to connect, when some primary server breaks down, standby server 1 can be provided according to hardware Source information judges whether the standby usage server meets backup condition, if it is satisfied, then the primary server that operation is broken down Role's software run the service of the primary server to break down and according to the configuration information of the primary server to break down.Example As the hardware resource consumption of DA server be mainly CPU (Central Processing Unit, central processing unit) consumption and it is interior Deposit resource consumption, and the hardware resource consumption of MS server is in addition to CPU consumption and memory source consumption, there are also network interface card consumption, because The hardware resource consumption of this DA server server lower with respect to the hardware resource consumption of MS server, if a failure occurs For DA server, and standby server 1 is VM server, since the hardware consumption of DA server is not above the hard of VM server Part consumption, therefore standby server 1 meets backup condition, can directly run role's software of DA server, and is serviced according to DA The configuration information of device runs the service of DA server.Wherein, server if a failure occurs is MS server, and MS is serviced The hardware resource consumption of device is higher with respect to VM server, therefore standby server 1 can disappear according to MS server hardware resource The difference of consumption determines and selects standby server 2 in backup server cluster, common by standby server 1 and standby server 2 Run the service of MS server.In addition, if also can be used, can also degenerate for other for the server that partial fault occurs The standby server of role, for backing up.Thus the present invention can solve standby server and primary server role one-to-one correspondence is led The problem of standby server wasting of resources of cause, and the primary server to break down can also degenerate for the spare clothes of other roles Business device, greatly reduces networking cost.
In present specification, the hardware resource of all kinds of role servers can obtain empirical value, various servers according to test The difference of the hardware resource of role can be showed in the form of weight, for example, if the hardware resource of a DM can support a VM's Hardware resource, but 2 hardware resource VM could can support a VM's to the hardware resource of a DM, the hardware resource of a TS Hardware resource, but 3 hardware resource VM could then can behave as 1VM=1/2DM=1/3TS to the hardware resource of a TS. When backup server cluster is added in standby server, the hardware asset information of oneself can be reported.
The present invention program is described in detail below by specific embodiment.
Referring to fig. 2, it is server backup method flow diagram in one embodiment of the present invention:
Step 201: backup server cluster is added in each standby server.
Separate unit standby server is added backup server cluster and can be added without any configuration, subsequent standby server It may specify the IP address of existing any one standby server in backup server cluster, spare clothes when backup server cluster Business device 2 can establish backup pool relationship with standby server 1 by communication connection.Standby server 1 and standby server 2 can bases Preset condition elects a standby usage server, such as can elect a standby usage server according to IP address size, if IP Location is then main standby server greatly.Certain standby server can also elect standby usage server, the application according to MAC Address size The content of preset condition is not limited.
When backup server cluster is added in standby server N (N is greater than 2), existing is specified in backup server cluster It anticipates the IP address of a standby server, such as standby server 2.
Standby server N, which attempts to establish with standby server 2, to be communicated to connect, but if standby server 2 is not standby usage The IP address of standby usage server can then be informed standby server N by server.
Standby server N and standby usage server establish communication connection.After establishing communication connection, standby server N can be with Standby usage server is compared according to preset condition, if standby server N meets preset condition, may replace standby usage clothes Business device upgrades to new standby usage server.Former standby usage server notifies the address information of new standby usage server spare Existing standby server in server cluster, so that existing standby server and new standby server establish communication link It connects.
Several standby servers can be added to backup server cluster by repeating the above process, and elect standby usage service Device.
After electing standby usage server, the address information of each standby server can be notified remaining by standby usage server The address information of standby server.
Wherein, role's software of various role servers is provided in each standby server.
Step 202: the heartbeat that standby usage server is established between multiple primary servers connects.
Step 203: standby usage server obtains the configuration information of multiple primary servers by heartbeat connection.
The configuration information of primary server can include: the current user list of primary server, the main service such as management equipment list The service of device operation.For example, configuration information may include the current user list of VM and management if primary server is VM server List of devices, the list of devices of management includes IPC (IP Camera, web camera), the NVR (Network for being registered to VM Video Recorder, network video recorder) equipment, DVR (Digital Video Recorder, hard disk video recorder), MS, The information such as DM, BM, DA.Other role servers also have the configuration information of oneself, in standby usage server and each main service Device is established heartbeat and is connected to, and each primary server can give the configuration information real-time synchronization of itself to standby usage server.
Step 204: standby usage server sends each main clothes by established communication connection, to other standby servers The configuration information of business device.
Step 205: when some primary server breaks down, standby usage server can be according to the primary server to break down Hardware asset information judge whether the standby usage server meets backup condition.
It is connect since standby usage server establishes heartbeat with each primary server, being verified by heartbeat can be detected generation The server of failure.Standby usage server detects the hardware asset information of itself, and according to the hard of the server to break down Part resource information judges that can standby usage server meet backup condition, if the hardware resource of standby usage server is not less than hair The primary server of raw failure, then meet backup condition, be otherwise unsatisfactory for.If it is satisfied, then step 206 is executed, if be unsatisfactory for Then follow the steps 207.
Step 206: role's software of the primary server to break down described in operation, and according to the main clothes to break down It is engaged in the configuration information of device, the service of the primary server to break down described in operation.
Role's software of the primary server of standby usage server fail, and according to the master to break down currently saved The configuration information of server runs corresponding service, completes the process that standby server upgrades to primary server.
Step 207: determining the number of units N for meeting the standby server of backup condition needs, and according to the standby server Number of units N, in backup server cluster select N-1 platform standby server, the generation is operated together by N platform standby server The service of the primary server of failure.
Standby usage server is according to itself hardware asset information, and the hardware asset information of server to break down It determines and needs how many standby servers that can meet backup condition, according to the number of units N of required standby server, in active service N-1 platform standby server is selected in device cluster, and the clothes of the primary server to break down are operated together by N platform standby server Business.For example, if standby usage server is VM server, and the server to break down is MS server, then can determine needs Two standby servers meet backup condition, and standby usage server can select a spare clothes in backup server cluster at this time Business device, and according to the configuration information of the MS server currently saved, what will be run is divided into two parts, on two standby servers It is separately operable MS role server software, and loads a configuration information, You Liangtai standby server backs up the master to break down Server.
Step 208: the communication connection between release and other standby servers, and discharge between other primary servers Heartbeat connection.
While standby usage server updating is primary server, the heartbeat connection between other primary servers is disconnected, and Also the communication connection between other standby servers is disconnected.
After disconnecting the communication connection between other standby servers, other standby servers can be according to the behaviour of step 201 Make election standby usage server, new standby usage server executes the operation of original standby usage server, establishes with primary server Heartbeat connection.
Step 209: it is standby server that the server to break down, which can judge whether to degenerate according to fault message,.
Certain hardware resources also can be used after some server fails, in this case can be true according to fault message Whether the server to break down surely can degenerate for standby server.For example, if the failure of MS server is single network interface card It breaks down, according to the fault message, MS server can not provide enough bandwidth and carry out resource forwarding, but its cpu resource It still can be used, MS server can be degenerated to the standby server of single VM role at this time.If so, thening follow the steps 210.
Step 210: if so, obtaining the address letter of any one standby server from the information list of standby server Breath.
Each main service is sent by the information list of standby server since standby usage server can be connected by heartbeat Device, therefore the information list of the standby server can be stored in the primary server to break down.
The primary server to break down can obtain the ground of each standby server from the information list of the standby server Location information.
Step 211: according to the address information, establish with the communication connection between corresponding standby server, to be added Backup server cluster where the standby server.
The process that standby server is added in the primary server to break down can refer to step 201, i.e., if address information pair The standby server answered is the standby usage server in backup server cluster, then establishes and communicate to connect with standby usage server Afterwards, it identifies the primary server to break down and backup server cluster is added;If the corresponding standby server of address information is not Standby usage server in backup server cluster, then the corresponding standby server of address information is to the primary server to break down The address information of standby usage server is sent, so that the primary server to break down establishes the communication between standby usage server Backup server cluster is added in connection.
The primary server to break down is added after the backup server cluster, pre- according to certain with standby usage server If condition is compared, primary server if a failure occurs meets preset condition, then the primary server to break down upgrades to Standby usage server in server cluster after upgrading to standby usage server, can be established between other standby servers Communication connection, and establish and other primary servers between heartbeat connect, and by heartbeat connection acquisition other main services The configuration information of device.
Embodiment as shown in connection with fig. 2, can it is found that be provided with role's software of multiple primary servers in standby usage server The heartbeat established between multiple primary servers connects, and the configuration information of multiple primary servers is obtained by heartbeat connection;When When any one primary server in multiple primary servers breaks down, believed according to the hardware resource of the primary server to break down Breath judges whether standby usage server meets backup condition, if it is satisfied, then the role for the primary server that operation is broken down is soft Part, and according to the configuration information of the primary server to break down, run the service of the primary server to break down.In addition, occurring The primary server of failure can also be according to fault message, it is determined whether can degenerate for standby server, if can if be added Backup server cluster is for backing up.The role of multiple primary servers can be different in the embodiment of the present invention, standby server and The role of primary server can also be different, and thus solves standby server in the prior art and primary server role corresponds The problem of caused standby server wasting of resources, and the server to break down is also possible to degenerate and be used for for standby server The problem of backing up, further solving the standby server wasting of resources, reduces the cost of system group network.
It is the hardware environment architecture diagram of server backup device operation in one embodiment of the present invention referring to Fig. 3:
The embodiment of server backup device of the present invention can be applied on standby usage server.Installation practice can lead to Software realization is crossed, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, as a logic Device in meaning is to be read computer program instructions corresponding in nonvolatile memory by the CPU of equipment where it Into memory, operation is formed.For hardware view, as shown in figure 3, for server backup in one embodiment of the present invention Device operation hardware environment architecture diagram, in addition to CPU shown in Fig. 3, memory, network interface and nonvolatile memory it Outside, the equipment in embodiment where device usually can also include other hardware.
Referring to fig. 4, it is the hardware environment architecture diagram of server backup device operation in one embodiment of the present invention:
The embodiment of server backup device of the present invention can be applied on the primary server to break down.Installation practice It can also be realized by way of hardware or software and hardware combining by software realization.Taking software implementation as an example, as one Device on a logical meaning is to be referred to computer program corresponding in nonvolatile memory by the CPU of equipment where it It enables and is read into memory what operation was formed.For hardware view, as shown in figure 4, to be serviced in one embodiment of the present invention The hardware environment architecture diagram of device back-up device operation, in addition to CPU shown in Fig. 4, memory, network interface and non-volatile is deposited Except reservoir, the equipment in embodiment where device usually can also include other hardware.
It is server backup device block diagram in one embodiment of the present invention referring to Fig. 5, which takes applied to standby usage Business device.
Described device includes: connection establishment unit 510, acquiring unit 520, backup units 530.
Wherein, connection establishment unit 510, the heartbeat connection for establishing between the multiple primary server;
Acquiring unit 520, for obtaining the configuration information of the multiple primary server by heartbeat connection, wherein Role's software of the multiple primary server is set in the standby usage server;
Backup units 530, for when any one primary server in the multiple primary server breaks down, according to The hardware asset information of the primary server to break down judges whether the standby usage server meets backup condition, if full Foot, then role's software of the primary server to break down described in operation, and according to the configuration of the primary server to break down Information, the service of the primary server to break down described in operation.
Optionally, the connection establishment unit 510, it may also be used for the transmission established between other standby servers controls Protocol communication connection.
Described device further include: transmission unit 540 (is not shown) in Fig. 5, for sending to other described standby servers The configuration information of the multiple primary server.Transmission unit 540, it may also be used for connected by the heartbeat, to the multiple master Server sends the information list of standby server, and the information list of the standby server includes the ground of all standby servers Location information.
Optionally, the backup units 530 comprise determining that subelement 531 (being not shown in Fig. 5), if being used for the master Standby server is unsatisfactory for backup condition, determines the number of units N for meeting the standby server of backup condition needs;Select subelement 532 (being not shown in Fig. 5) select N-1 platform standby for the number of units N according to the standby server in backup server cluster With server, the service of the primary server to break down is operated together by N platform standby server.
Described device further include: releasing unit 550 (is not shown) in Fig. 5, for discharging and other described standby servers Between communication connection, and discharge and other primary servers between heartbeat connect.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
It is server backup device block diagram in one embodiment of the present invention referring to Fig. 6.
Described device includes: judging unit 610, acquiring unit 620, degeneration 630.
Wherein, judging unit 610 are standby server for according to fault message, judging whether to degenerate;
Acquiring unit 620, for if so, obtaining any one standby server from the information list of standby server Address information;
Degeneration 630, for establishing and the communication link between corresponding standby server according to the address information It connects, the backup server cluster where the standby server is added.
Optionally, the degeneration 630 is specifically used for: if the corresponding standby server of the address information is described Standby usage server in backup server cluster after then establishing the communication connection with the standby usage server, identifies institute It states the primary server to break down and the standby server collection is added;If the corresponding standby server of the address information is not Standby usage server in the backup server cluster, then the corresponding standby server of the address information is former to the generation The primary server of barrier sends the address information of standby usage server, so that the primary server to break down is established and the master The backup server cluster is added in communication connection between standby server.
Optionally, the degeneration further include: upgrading subelement 640 (being not shown in Fig. 6) is used for and the standby usage Server is compared according to certain preset condition, if the primary server to break down meets the preset condition, The primary server to break down upgrades to the standby usage server in the server cluster.
The degeneration further include: bullet member 650 (being not shown in Fig. 6) is established in connection, spare with other for establishing Communication connection between server, and the heartbeat established between other primary servers connects;Subelement 660 is configured (in Fig. 6 It is not shown), it is also used to connect the configuration information for obtaining other primary servers by the heartbeat.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (18)

1. a kind of server backup method, which is characterized in that the method is applied to standby usage server, which comprises
The heartbeat established between the multiple primary server connects, and obtains the multiple primary server by heartbeat connection Configuration information, the configuration information of the primary server includes the information on services of primary server operation, wherein standby usage clothes Role's software of the multiple primary server is provided in business device, wherein different role software is for realizing server in system In different function, the different function includes at least video management, data management, exchange of media, backup management, transcoding or sets One of standby agency, operation has corresponding role's software in different server, according to configuration information and role's software realization Corresponding function;
When any one primary server in the multiple primary server breaks down, according to the primary server to break down Hardware asset information judges whether the own hardware resource information of the standby usage server meets backup condition;
If it is satisfied, then role's software of the primary server to break down described in operation, and according to the main clothes to break down It is engaged in the configuration information of device, the service of the primary server to break down described in operation.
2. the method according to claim 1, wherein the method also includes:
Establish the communication connection between other standby servers, wherein the communication connection is that transmission control protocol TCP connects Or User Datagram Protocol UDP connection;
The configuration information of the multiple primary server is sent to other described standby servers.
3. the method according to claim 1, wherein the method also includes:
If the standby usage server is unsatisfactory for backup condition, the number of units for meeting the standby server of backup condition needs is determined N, and according to the number of units N of the standby server, N-1 platform standby server is selected in backup server cluster, it is spare by N platform Server is operated together the service of the primary server to break down.
4. the method according to claim 1, wherein when any one main service in the multiple primary server After device breaks down, the method also includes:
Communication connection between release and other described standby servers, and discharge the heartbeat between other primary servers and connect It connects.
5. the method according to claim 1, wherein the method also includes:
It is connected by the heartbeat, the information list of standby server, the active service is sent to the multiple primary server The information list of device includes the address information of all standby servers.
6. a kind of server backup method, which is characterized in that the method is applied to the primary server to break down, the method Include:
According to fault message, judging whether to degenerate is standby server, wherein is degenerated for the condition of standby server are as follows: described The available hardware resource of the primary server to break down is able to satisfy the demand condition as other role services, wherein different Operation has corresponding role's software in server, described to match confidence according to configuration information and the corresponding function of role's software realization Breath includes the information on services of server operation, and the different function includes at least video management, data management, exchange of media, standby One of part management, transcoding or proxy for equipment;
If so, obtaining the address information of any one standby server from the information list of standby server;
According to the address information, establish with the communication connection between corresponding standby server, the active service is added Backup server cluster where device, wherein the communication connection is transmission control protocol TCP connection or User Datagram Protocol Discuss UDP connection.
7. according to the method described in claim 6, it is characterized in that, described according to the address information, establish with it is corresponding standby With the communication connection between server, the backup server cluster where the standby server is added, comprising:
If the corresponding standby server of the address information is the standby usage server in the backup server cluster, with After the standby usage server establishes the communication connection, the active service is added in the primary server to break down described in mark Device cluster;
If the corresponding standby server of the address information is not the standby usage server in the backup server cluster, The corresponding standby server of the address information is believed to the address that the primary server to break down sends standby usage server Breath is added described standby so that the primary server to break down establishes the communication connection between the standby usage server Use server cluster.
8. the method according to the description of claim 7 is characterized in that the spare clothes are added in the primary server to break down It is engaged in after device cluster, further includes: be compared with the standby usage server according to certain preset condition, if generation event The primary server of barrier meets the preset condition, then the primary server to break down upgrades in the server cluster Standby usage server.
9. according to the method described in claim 8, it is characterized in that, the primary server to break down upgrades to the service After standby usage server in device cluster, further includes:
The communication connection between other standby servers is established, and the heartbeat established between other primary servers connects, And the configuration information of other primary servers is obtained by heartbeat connection.
10. a kind of server backup device, which is characterized in that described device is applied to standby usage server, and described device includes:
Connection establishment unit, the heartbeat connection for establishing between the multiple primary server;
Acquiring unit, for obtaining the configuration information of the multiple primary server, the primary server by heartbeat connection Configuration information include primary server operation information on services, wherein be provided with the multiple master in the standby usage server Role's software of server, wherein different function of the different role software for realizing server in systems, the difference function One of video management, data management, exchange of media, backup management, transcoding or proxy for equipment, difference clothes can be included at least Operation has corresponding role's software in business device, according to configuration information and the corresponding function of role's software realization;
Backup units, for when any one primary server in the multiple primary server breaks down, according to occurring therefore The hardware asset information of the primary server of barrier judges whether the own hardware resource information of the standby usage server meets backup Condition, if it is satisfied, then role's software of the primary server to break down described in operation, and according to the main clothes to break down It is engaged in the configuration information of device, the service of the primary server to break down described in operation.
11. device according to claim 10, which is characterized in that described device further includes transmission unit:
The connection establishment unit is also used to the communication connection established between other standby servers, wherein the communication link It is connected in transmission control protocol TCP connection or User Datagram Protocol UDP connection;
The transmission unit, for sending the configuration information of the multiple primary server to other described standby servers.
12. device according to claim 10, which is characterized in that the backup units include:
It determines subelement, if being unsatisfactory for backup condition for the standby usage server, determines and meet backup condition needs The number of units N of standby server;
Subelement is selected, for the number of units N according to the standby server, selects N-1 platform spare in backup server cluster Server is operated together the service of the primary server to break down by N platform standby server.
13. device according to claim 10, which is characterized in that described device further include:
Releasing unit for discharging the communication connection between other described standby servers, and discharges and other main services Heartbeat connection between device.
14. device according to claim 11, which is characterized in that the transmission unit: being also used to connect by the heartbeat It connects, the information list of standby server is sent to the multiple primary server, the information list of the standby server includes institute There is the address information of standby server.
15. a kind of server backup device, which is characterized in that described device is applied to the primary server to break down, the dress It sets and includes:
Judging unit is standby server for according to fault message, judging whether to degenerate, wherein degenerate for standby server Condition are as follows: the available hardware resource of the primary server to break down is able to satisfy the demand item as other role services Part, wherein operation has corresponding role's software in different server, according to configuration information and the corresponding function of role's software realization Can, the configuration information includes the information on services of server operation, and the different function includes at least video management, data pipe One of reason, exchange of media, backup management, transcoding or proxy for equipment;
Acquiring unit, for if so, obtaining the address of any one standby server from the information list of standby server Information;
Degeneration, for according to the address information, establish with the communication connection between corresponding standby server, to be added Backup server cluster where the standby server, wherein it is described communication connection be transmission control protocol TCP connection or User Datagram Protocol UDP connection.
16. device according to claim 15, which is characterized in that the degeneration is specifically used for:
If the corresponding standby server of the address information is the standby usage server in the backup server cluster, with After the standby usage server establishes the communication connection, the active service is added in the primary server to break down described in mark Device cluster;
If the corresponding standby server of the address information is not the standby usage server in the backup server cluster, The corresponding standby server of the address information is believed to the address that the primary server to break down sends standby usage server Breath is added described standby so that the primary server to break down establishes the communication connection between the standby usage server Use server cluster.
17. device according to claim 16, which is characterized in that the degeneration further include: upgrading subelement is used for It is compared with the standby usage server according to certain preset condition, if described in the primary server satisfaction to break down Preset condition, then the primary server to break down upgrades to the standby usage server in the server cluster.
18. device according to claim 17, which is characterized in that the degeneration further include:
Subelement is established in connection, the communication connection for establishing between other standby servers, and is established and other main clothes Heartbeat connection between business device;
Subelement is configured, is also used to connect the configuration information for obtaining other primary servers by the heartbeat.
CN201510862201.7A 2015-11-30 2015-11-30 Server backup method and device Active CN105429799B (en)

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 CN105429799A (en) 2016-03-23
CN105429799B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
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
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
CN110830281B (en) * 2018-08-13 2022-06-14 浙江宇视科技有限公司 Hot standby method and system based on mesh network structure
CN111405216B (en) * 2019-10-25 2022-06-28 杭州海康威视***技术有限公司 Configuration method, device and equipment and storage medium
CN112954264B (en) * 2019-12-10 2023-04-18 浙江宇视科技有限公司 Platform backup protection method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309167A (en) * 2008-06-27 2008-11-19 华中科技大学 Disaster allowable system and method based on cluster backup
CN103346903A (en) * 2013-06-20 2013-10-09 北京捷成世纪科技股份有限公司 Dual-machine backup method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
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
CN102291262B (en) * 2011-09-01 2018-03-23 中兴通讯股份有限公司 The method, apparatus and system of a kind of disaster tolerance

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309167A (en) * 2008-06-27 2008-11-19 华中科技大学 Disaster allowable system and method based on cluster backup
CN103346903A (en) * 2013-06-20 2013-10-09 北京捷成世纪科技股份有限公司 Dual-machine backup method and device

Also Published As

Publication number Publication date
CN105429799A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
CN105429799B (en) Server backup method and device
US7225356B2 (en) System for managing operational failure occurrences in processing devices
WO2017000260A1 (en) Method and apparatus for switching vnf
WO2017050254A1 (en) Hot backup method, device and system
CN103944746A (en) Hot standby method and device
CN101094237A (en) Method for sharing in load among net elements in IP multimedia sub system
WO2016082443A1 (en) Cluster arbitration method and multi-cluster coordination system
CN107276839B (en) Self-monitoring method and system of cloud platform
CN105471610B (en) Method and device for protecting HQoS (high-quality QoS) by using multiple board cards
CN104038376A (en) Method and device for managing real servers and LVS clustering system
CN107105049B (en) Data migration method and device
CN102891833B (en) Network disaster tolerance method and system
CN108989476A (en) A kind of address distribution method and device
CN110971662A (en) Two-node high-availability implementation method and device based on Ceph
CN100563263C (en) In network storage service, realize the method and system of system high-available
US7519855B2 (en) Method and system for distributing data processing units in a communication network
CN104041090B (en) Session restoration methods, equipment and system
CN107579850B (en) Wired and wireless hybrid networking method based on SDN control for cloud data center
CN103931138A (en) Scalable distributed multicluster device management server architecture and method of operation thereof
CN113326100A (en) Cluster management method, device and equipment and computer storage medium
CN104994327A (en) MCU abnormity processing method and system for video conference
CN111817953A (en) Method and device for electing master equipment based on Virtual Router Redundancy Protocol (VRRP)
WO2016177098A1 (en) Conference backup method and device
KR101883671B1 (en) Method and management server for dtitributing node
CN106899659B (en) Distributed system and management method and management device thereof

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