CN104468221B - Server failure hot change-over method, device and system - Google Patents

Server failure hot change-over method, device and system Download PDF

Info

Publication number
CN104468221B
CN104468221B CN201410773931.5A CN201410773931A CN104468221B CN 104468221 B CN104468221 B CN 104468221B CN 201410773931 A CN201410773931 A CN 201410773931A CN 104468221 B CN104468221 B CN 104468221B
Authority
CN
China
Prior art keywords
data server
server
control command
address
data
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
CN201410773931.5A
Other languages
Chinese (zh)
Other versions
CN104468221A (en
Inventor
张同欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410773931.5A priority Critical patent/CN104468221B/en
Publication of CN104468221A publication Critical patent/CN104468221A/en
Application granted granted Critical
Publication of CN104468221B publication Critical patent/CN104468221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of server failure hot change-over method, device and system.Wherein, which includes:Detect the operating status of the first data server, wherein the first data server has the first IP address;Judge whether the first data server breaks down according to operating status;And if it is judged that the operation of the first data server is broken down, then the first control command is sent to the second data server, wherein, first control command is for notifying the second data server to be run using the first IP address, second data server is the server for having identical function with the first data server and being stored with identical data, and the second data server is run after receiving the first control command with the first IP address.Through the invention, it solves the problems, such as in the related technology since data server failure causes application server to provide service without normal direction client.

Description

Server failure hot change-over method, device and system
Technical field
The present invention relates to server fields, in particular to a kind of server failure hot change-over method, device and are System.
Background technology
Application server to client in providing service process, it will usually data server is connected to, from data service Data are obtained in device and are handled.If data server breaks down, application server can not be normally to client Service is provided.Currently, when breaking down for data server, it usually needs artificial taken again to application after manually excluding Business device provides data connection, and during this, application server then provides service without normal direction client, to cause in service It is disconnected.
For in the prior art since data server failure causes application server to provide service without normal direction client Problem, currently no effective solution has been proposed.
Invention content
The main purpose of the present invention is to provide a kind of server failure hot change-over method, device and system, existing to solve There is the problem of causing application server to provide service without normal direction client due to data server failure in technology.
To achieve the goals above, it is fervent to provide a kind of server failure for one side according to the ... of the embodiment of the present invention Change method.Server failure hot change-over method according to the present invention may include:The operating status of the first data server is detected, Wherein, above-mentioned first data server has the first IP address;Judge above-mentioned first data server according to above-mentioned operating status Whether break down;And if it is judged that the operation of above-mentioned first data server is broken down, then to the second data server Send the first control command, wherein above-mentioned first control command is for notifying above-mentioned second data server to use above-mentioned first IP address is run, and above-mentioned second data server is to have identical function with above-mentioned first data server and be stored with identical number According to server, above-mentioned second data server received and run with above-mentioned first IP address after above-mentioned first control command.
Further, the operating status of the first data server of detection may include:Connect to above-mentioned first data server Supervention send detectable signal, wherein after above-mentioned first data server receives above-mentioned detectable signal in the case of normal operation Returning response signal;Judge whether to receive the response signal that above-mentioned first data server returns, obtains judging result, according to Above-mentioned operating status judges whether above-mentioned first data server breaks down:According in the judgement of above-mentioned judging result State whether the first data server breaks down, wherein if above-mentioned judge that not receiving above-mentioned first data server returns The response signal returned, it is determined that above-mentioned first data server operation is broken down.
Further, above-mentioned second data server has the second IP address, is received in above-mentioned second data server After being run with above-mentioned first IP address after above-mentioned first control command, above-mentioned server failure hot change-over method can also wrap It includes:Continue to detect the operating status of above-mentioned first data server;Judge above-mentioned first data service according to above-mentioned operating status Whether device restores normal;If it is judged that above-mentioned first data server restores normal, then sent out to above-mentioned second data server It send the second control command and sends third control command to above-mentioned first data server, wherein above-mentioned second control command is used In notifying above-mentioned second data server to be run using above-mentioned second IP address, above-mentioned third control command is for notifying above-mentioned the One data server is run using above-mentioned first IP address.
To achieve the goals above, other side according to the ... of the embodiment of the present invention additionally provides a kind of server failure Hot change-over method.Server failure hot change-over method according to the present invention can also include:Second data server receives first Control command, wherein above-mentioned first control command is that application server is detecting the operation failure of the first data server In the case of to the second data server send control command, above-mentioned first data server have the first IP address, it is above-mentioned First control command is for notifying above-mentioned second data server to be run using above-mentioned first IP address, above-mentioned second data service Device has identical function with above-mentioned first data server and is stored with identical data;And above-mentioned second data server receives It is run with above-mentioned first IP address after to above-mentioned first control command.
Further, above-mentioned second data server has the second IP address, is received in above-mentioned second data server After being run with above-mentioned first IP address after above-mentioned first control command, above-mentioned server failure hot change-over method can also wrap It includes:Above-mentioned second data server receives the second control command, and above-mentioned second control command is that above application server detects The control command that above-mentioned first data server is sent in the case of restoring normal to above-mentioned second data server, above-mentioned second Control command is for notifying above-mentioned second data server to be run using above-mentioned second IP address;And above-mentioned second data service Device is run after receiving above-mentioned second control command with above-mentioned second IP address.
To achieve the goals above, it is fervent to provide a kind of server failure for another aspect according to the ... of the embodiment of the present invention Changing device.The fervent changing device of server failure according to the present invention may include:Detection unit, for detecting the first data service The operating status of device, wherein above-mentioned first data server has the first IP address;Judging unit, for according to above-mentioned operation Whether above-mentioned first data server of condition adjudgement breaks down;And transmission unit, it is used for if it is judged that above-mentioned first number It runs and breaks down according to server, then send the first control command to the second data server, wherein above-mentioned first control command For notifying above-mentioned second data server to be run using above-mentioned first IP address, above-mentioned second data server is and above-mentioned the One data server has identical function and is stored with the server of identical data, and above-mentioned second data server receives above-mentioned It is run with above-mentioned first IP address after first control command.
Further, above-mentioned detection unit may include:Sending module, for continuously being sent out to above-mentioned first data server Send detectable signal, wherein above-mentioned first data server returns after receiving above-mentioned detectable signal in the case of normal operation Response signal;First judgment module, the response signal returned for judging whether to receive above-mentioned first data server, obtains Judging result, above-mentioned judging unit may include:Second judgment module, for judging above-mentioned first number according to above-mentioned judging result Whether break down according to server, wherein if above-mentioned judge not receive the response that above-mentioned first data server returns Signal, it is determined that above-mentioned first data server operation is broken down.
Further, above-mentioned second data server has the second IP address, wherein above-mentioned detection unit is additionally operable to upper It states after the second data server received and run with above-mentioned first IP address after above-mentioned first control command, continues to detect above-mentioned The operating status of first data server;Above-mentioned judging unit is additionally operable to judge above-mentioned first data clothes according to above-mentioned operating status Whether business device restores normal;Above-mentioned transmission unit is additionally operable to if it is judged that above-mentioned first data server restores normal, then to Above-mentioned second data server sends the second control command and sends third control command to above-mentioned first data server, In, above-mentioned second control command is for notifying above-mentioned second data server to be run using above-mentioned second IP address, above-mentioned third Control command is for notifying above-mentioned first data server to be run using above-mentioned first IP address.
To achieve the goals above, another aspect according to the ... of the embodiment of the present invention additionally provides a kind of server failure heat Switching device.The fervent changing device of server failure according to the present invention may include:First receiving unit, for so that the second number The first control command is received according to server, wherein above-mentioned first control command is that application server is detecting the first data clothes The control command that business device operation is sent in the case of breaking down to the second data server, above-mentioned first data server have First IP address, above-mentioned first control command for notify above-mentioned second data server using above-mentioned first IP address operation, Above-mentioned first control command is for notifying above-mentioned second data server to be run using above-mentioned first IP address, above-mentioned second data Server has identical function with above-mentioned first data server and is stored with identical data;And running unit, for making Above-mentioned second data server is run after receiving above-mentioned first control command with above-mentioned first IP address.
Further, above-mentioned second data server has the second IP address, and the above-mentioned fervent changing device of server failure is also May include:Second receiving unit, for after above-mentioned second data server receives above-mentioned first control command with above-mentioned After the operation of first IP address so that above-mentioned second data server receives the second control command, and above-mentioned second control command is Above application server detects to send out to above-mentioned second data server in the case of above-mentioned first data server restores normal The control command sent, above-mentioned second control command is for notifying above-mentioned second data server to be transported using above-mentioned second IP address Row;And second running unit, more than making above-mentioned second data server after receiving above-mentioned second control command State the operation of the second IP address.
To achieve the goals above, it is fervent to provide a kind of server failure for another aspect according to the ... of the embodiment of the present invention Change system.Server failure hot swapping system according to the present invention may include:Application server, the first data server and Two data servers, above-mentioned second data server are to have identical function with above-mentioned first data server and be stored with identical The server of data, above-mentioned first data server have the first IP address, wherein above application server is above-mentioned for detecting The operating status of first data server judges whether above-mentioned first data server breaks down according to above-mentioned operating status, If it is judged that above-mentioned first data server operation is broken down, then the first control command is sent to the second data server, Wherein, above-mentioned first control command is for notifying above-mentioned second data server to be run using above-mentioned first IP address;Above-mentioned Two data servers are used to run with above-mentioned first IP address after receiving above-mentioned first control command.
According to inventive embodiments, by the operating status for detecting the first data server, wherein the first data service utensil There is the first IP address;Judge whether the first data server breaks down according to operating status;And if it is judged that the first number It runs and breaks down according to server, then send the first control command to the second data server, wherein the first control command is used for The second data server is notified to be run using the first IP address, the second data server is with the first data server with identical Function and the server for being stored with identical data, the second data server are transported after receiving the first control command with the first IP address Row solves in the prior art since data server failure causes application server to provide asking for service without normal direction client Topic, has reached when data server breaks down, and application server can provide the effect of service to client.
Description of the drawings
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of server failure hot change-over method according to a first embodiment of the present invention;
Fig. 2 is the flow chart of server failure hot change-over method according to a second embodiment of the present invention;
Fig. 3 is the schematic diagram of the fervent changing device of server failure according to a first embodiment of the present invention;
Fig. 4 is the schematic diagram of the fervent changing device of server failure according to a second embodiment of the present invention;And
Fig. 5 is the schematic diagram of server failure hot swapping system according to the ... of the embodiment of the present invention.
Specific implementation mode
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein.In addition, term " comprising " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit Process, method, system, product or equipment those of are not necessarily limited to clearly to list step or unit, but may include without clear It is listing to Chu or for these processes, method, product or equipment intrinsic other steps or unit.
Embodiment 1
An embodiment of the present invention provides a kind of server failure hot change-over methods.
Fig. 1 is the flow chart of server failure hot change-over method according to a first embodiment of the present invention.As shown in Figure 1, should Method may include that steps are as follows:
Step S102 detects the operating status of the first data server, wherein the first data server is with the first IP Location.
Step S104 judges whether the first data server breaks down according to operating status.
Step S106 is then sent to the second data server if it is judged that the operation of the first data server is broken down First control command, wherein the first control command is for notifying the second data server to be run using the first IP address, the second number It is the server that there is identical function with the first data server and be stored with identical data, the second data server according to server It is run with the first IP address after receiving the first control command.
Application server to client in providing service process, it will usually data server is connected to, from data service Data are obtained in device and are handled.In the embodiment of the present invention, data clothes are provided from the first data server to application server Business.The operating status for detecting the first data server can be the operating status that application server detects the first data server, Application server judges whether its operation breaks down according to the operating status of the data server, if it is judged that the first number It runs and breaks down and operation suspension according to server, then the application server sends the first control life to the second data server It enables, which makes second server use the first IP address of first server, is carried out at data instead of first server Reason.In this way, when the first data server breaks down, if avoiding the first data server operation suspension, application clothes Business device, which is interrupted to client, provides service;Simultaneously as the second data server replaces first server to carry out identical data Processing, the application server can continue normal operation in the case where not interrupting to offering customers service.In addition, in the second clothes Device be engaged in when first server being replaced to carry out data processing, if first server restoring running is normal, application server can be with The first server is called to continue data processing.
If data server breaks down, application server normally can not provide service to client, in order to keep away Exempt from the above situation occur, implements by the way that at least two data servers are arranged in the present invention, wherein based on the first data server Server, the second data server are the standby server of the first data server, when first data server breaks down When, the first data server is switched to the second data server, number is provided to application server using the second data server According to service.
According to embodiments of the present invention, due to when the first data server breaks down, application server is to the second data Server sends the first control command, and the second data server has identical function with the first data server and is stored with identical Data so that the second data server is run using the first IP address of the first data server, therefore second server replaces First server carries out data processing, has reached when data server breaks down, application server can be to client The effect of service is provided.
Preferably, in embodiments of the present invention, the operating status of the first data server of detection may include:To the first number Detectable signal is continuously transmitted according to server, wherein the first data server receives detectable signal in the case of normal operation Returning response signal afterwards;Judge whether to receive the response signal that the first data server returns, obtains judging result.According to fortune Whether the first data server of row condition adjudgement, which breaks down, may include:Judge that the first data server is according to judging result No failure.Wherein, if it is judged that not receiving the response signal of the first data server return, it is determined that the first data Server operation is broken down.The first data server normal operation is determined if receiving response signal.Due in order to protect It demonstrate,proves application server and normally and incessantly provides service to client, therefore application server wants the first data of examinations to take It is engaged in the operating status of device, wherein detection method can be:Application server continuously transmits detection letter to the first data server Number, returning response signal is to application service after the first data server receives the detectable signal in the case of normal operation Device, the first data server in the case that run it is abnormal can not returning response signal to application server.In this way, application clothes Business device can by the first data server whether returning response signal come judge the first data server operating status whether Normally.
Specifically, monitor component can be set in the application server, which is used for the first data server And/or second data server according to certain frequency send above-mentioned detectable signal;In the first data server and/or the second data Heartbeat component is set in server, which is used to receive the detectable signal that above-mentioned monitor component is sent, and to monitoring group Part returns to above-mentioned response signal.Wherein, a detectable signal is sent and response signal returns to form a heartbeat.If monitoring group After part monitors the heartbeat stopping (not receiving response signal) of the first data server, the second data server is notified to use First IP address of the first data server continues to run with.If monitor component monitors the heartbeating recovery of the first data server Afterwards, the second data server is notified to be run using the second IP address.
According to embodiments of the present invention, due to continuously transmitting detectable signal to the first data server by application server, Judge whether the first data server receives the signal, therefore can judge whether first server goes out according to judging result Existing failure in this way, application server can find that first server breaks down in time, and makes switching server and carries out data The reaction of processing.
Preferably, in embodiments of the present invention, the second data server has the second IP address, in the second data server It receives after being run with the first IP address after the first control command, server failure hot change-over method can also include:Continue Detect the operating status of the first data server.Judge whether the first data server restores normal according to operating status.If Judge that the first data server restores normal, then send the second control command to the second data server and is taken to the first data Business device sends third control command, wherein the second control command is for notifying the second data server that the second IP address is used to transport Row, third control command is for notifying the first data server to be run using the first IP address.
When the first data server breaks down, application server sends the first control life to the second data server, The control command makes the second data server be run using the first IP address of the first data server.In the second data service During device is run, application server continues to detect the operating status of the first data server.If detecting the first data service The failure of device is excluded, then application server sends the second control command to the second data server, which makes the Two data servers restore to run using the second IP address, meanwhile, application server sends third control to the first data server System order, the control command make the first data server resume operation using the first IP address.
According to embodiments of the present invention, since application server is after the failure of the first data server is excluded so that the Two data servers are continued to run with using the second IP address, and it is extensive so that the first data server is continuing with the first IP address Multiple operation, therefore reached when data server breaks down, application server can provide the effect of service to client.
Embodiment 2
The embodiment of the present invention additionally provides a kind of server failure hot change-over method.
Fig. 2 is the flow chart of server failure hot change-over method according to a second embodiment of the present invention.As shown in Fig. 2, should Method may include:
Step S202, the second data server receive the first control command.Wherein, the first control command is application server The control command sent to the second data server in the case where detecting that the operation of the first data server is broken down, first Data server has the first IP address, and the first control command is for notifying the second data server to be transported using the first IP address Row, the second data server and the first data server have identical function and are stored with identical data.
Step S204, the second data server are run after receiving the first control command with the first IP address.
Application server sends the first control when detecting that the first data server breaks down, to the second data server System order, the second data server receive the first control command sent from application server, which makes second Data server is run using the first IP address of the first data server.Due to the second data server and the first data service Utensil has identical function and is stored with identical data, therefore application server can take from the first data server or the second data Business device reads data and can take the first data when the first data server breaks down to provide service to client Business device is switched to the second data server and second server is made to be run using the first IP address, and application server passes through the first IP Data are read from the second data server in address.
Preferably, in embodiments of the present invention, the second data server has the second IP address, in the second data server It receives after being run with the first IP address after the first control command, server failure hot change-over method can also include:Second Data server receives the second control command, and the second control command is that application server detects that the first data server restores just The control command sent to the second data server in the case of often, the second control command is for notifying the second data server to make It is run with the second IP address.Second data server is run after receiving the second control command with the second IP address.
During the second data server is run, application server continues to detect the operating status of the first data server. If detecting that the failure of the first data server is excluded, to the second data server send the second control command, second Data server receives the second control command sent from application server, which makes the second data server extensive The second IP address is used to run again, meanwhile, the first data server receives the third control command sent from application server, The control command makes the first data server resume operation using the first IP address, application server by the first IP address from First data server reads data.
Embodiment 3
An embodiment of the present invention provides a kind of fervent changing devices of server failure.The fervent changing device of the server failure can be with Server failure hot change-over method for executing the embodiment of the present invention 1.
Fig. 3 is the schematic diagram of the fervent changing device of server failure according to a first embodiment of the present invention.As shown in figure 3, should Device may include:Detection unit 301, judging unit 302 and transmission unit 303.
Detection unit 301 is used to detect the operating status of the first data server, wherein the first data server is with the One IP address.The detection unit 301 can be realized by monitor component.
Judging unit 302 is used to judge whether the first data server breaks down according to operating status.
Transmission unit 303 is used for if it is judged that the operation of the first data server is broken down, then to the second data service Device send the first control command, wherein the first control command for notify the second data server using the first IP address operation, Second data server is the server for having identical function with the first data server and being stored with identical data, the second data Server is run after receiving the first control command with the first IP address.
Application server to client in providing service process, it will usually data server is connected to, from data service Data are obtained in device and are handled.In the embodiment of the present invention, data clothes are provided from the first data server to application server Business.The operating status for detecting the first data server can be the operating status that application server detects the first data server, Application server judges whether its operation breaks down according to the operating status of the data server, if it is judged that the first number It runs and breaks down and operation suspension according to server, then the application server sends the first control life to the second data server It enables, which makes second server use the first IP address of first server, is carried out at data instead of first server Reason.In this way, when the first data server breaks down, if avoiding the first data server operation suspension, application clothes Business device, which is interrupted to client, provides service;Simultaneously as the second data server replaces first server to carry out identical data Processing, the application server can continue normal operation in the case where not interrupting to offering customers service.In addition, in the second clothes Device be engaged in when first server being replaced to carry out data processing, if first server restoring running is normal, application server can be with The first server is called to continue data processing.
If data server breaks down, application server normally can not provide service to client, in order to keep away Exempt from the above situation occur, implements by the way that at least two data servers are arranged in the present invention, wherein based on the first data server Server, the second data server are the standby server of the first data server, when first data server breaks down When, the first data server is switched to the second data server, number is provided to application server using the second data server According to service.
According to embodiments of the present invention, due to when the first data server breaks down, application server is to the second data Server sends the first control command, and the second data server has identical function with the first data server and is stored with identical Data so that the second data server is run using the first IP address of the first data server, therefore second server replaces First server carries out data processing, has reached when data server breaks down, application server can be to client The effect of service is provided.
Preferably, in embodiments of the present invention, detection unit 301 may include:Sending module and sending module.Send mould Block is used to continuously transmit detectable signal to the first data server, wherein the first data server is in the case of normal operation Receive returning response signal after detectable signal.Sending module is used to judge whether to receive the sound of the first data server return Induction signal obtains judging result.Judging unit 302 may include:Second judgment module.Second judgment module is used for according to judgement As a result judge whether the first data server breaks down, wherein if it is judged that not receiving the return of the first data server Response signal, it is determined that the first data server operation break down.The first data are determined if receiving response signal Server normal operation.
Since in order to ensure that application server is normal and provides service to client incessantly, application server is wanted The operating status of the first data server of examinations, wherein detection method can be:Application server is to the first data service Device continuously transmits detectable signal, and the first data server receives returning response after the detectable signal in the case of normal operation Signal to application server, the first data server in the case that run it is abnormal can not returning response signal to application service Device.In this way, application server can whether returning response signal judges the first data server by the first data server Operating status it is whether normal.
According to embodiments of the present invention, due to continuously transmitting detectable signal to the first data server by application server, Judge whether the first data server receives the signal, therefore can judge whether first server goes out according to judging result Existing failure in this way, application server can find that first server breaks down in time, and makes switching server and carries out data The reaction of processing.
Preferably, in embodiments of the present invention, the second data server has the second IP address, wherein detection unit 301 It is additionally operable to after the second data server receives the first control command after being run with the first IP address, continues the first number of detection According to the operating status of server.Judging unit 302 is additionally operable to judge whether the first data server restores just according to operating status Often.Transmission unit 303 is additionally operable to if it is judged that the first data server restores normal, then sends the to the second data server Two control commands simultaneously send third control command to the first data server, wherein the second control command is for notifying the second number It is run using the second IP address according to server, third control command is for notifying the first data server to be transported using the first IP address Row.
When the first data server breaks down, application server sends the first control life to the second data server, The control command makes the second data server be run using the first IP address of the first data server.In the second data service During device is run, application server continues to detect the operating status of the first data server.If detecting the first data service The failure of device is excluded, then application server sends the second control command to the second data server, which makes the Two data servers restore to run using the second IP address, meanwhile, application server sends third control to the first data server System order, the control command make the first data server resume operation using the first IP address.
According to embodiments of the present invention, since application server is after the failure of the first data server is excluded so that the Two data servers are continued to run with using the second IP address, and it is extensive so that the first data server is continuing with the first IP address Multiple operation, therefore reached when data server breaks down, application server can provide the effect of service to client.
Embodiment 4
The embodiment of the present invention additionally provides a kind of fervent changing device of server failure.The fervent changing device of the server failure can For executing the server failure hot change-over method of above-described embodiment 2.
Fig. 4 is the schematic diagram of the fervent changing device of server failure according to a second embodiment of the present invention.The device can wrap It includes:First receiving unit 401 and the first running unit 402.
First receiving unit 401 is for so that the second data server receives the first control command, wherein the first control life Enable is that application server is sent in the case where detecting that the operation of the first data server is broken down to the second data server Control command, the first data server has the first IP address, and the first control command is for notifying the second data server to make It is run with the first IP address, the first control command is for notifying the second data server to be run using the first IP address, the second number There is identical function according to server and the first data server and be stored with identical data.
First running unit 402 is for so that the second data server receives after the first control command with the first IP address Operation.
Application server sends the first control when detecting that the first data server breaks down, to the second data server System order, the second data server receive the first control command sent from application server, which makes second Data server is run using the first IP address of the first data server.Due to the second data server and the first data service Utensil has identical function and is stored with identical data, therefore application server can take from the first data server or the second data Business device reads data and can take the first data when the first data server breaks down to provide service to client Business device is switched to the second data server and second server is made to be run using the first IP address, and application server passes through the first IP Data are read from the second data server in address.
Preferably, in embodiments of the present invention, the second data server has the second IP address, server failure hot-swap Device can also include:Second receiving unit and the second running unit.Second receiving unit in the second data server for connecing It receiving after being run with the first IP address after the first control command so that the second data server receives the second control command, the Two control commands are that application server detects to send out to the second data server in the case of the first data server restores normal The control command sent, the second control command is for notifying the second data server to be run using the second IP address.Second operation is single Member is for so that the second data server is run after receiving the second control command with the second IP address.
During the second data server is run, application server continues to detect the operating status of the first data server. If detecting that the failure of the first data server is excluded, to the second data server send the second control command, second Data server receives the second control command sent from application server, which makes the second data server extensive The second IP address is used to run again, meanwhile, the first data server receives the third control command sent from application server, The control command makes the first data server resume operation using the first IP address, application server by the first IP address from First data server reads data.
Embodiment 5
An embodiment of the present invention provides a kind of server failure hot swapping systems.The server failure hot swapping system can be with For realizing the server failure hot change-over method and device of the embodiment of the present invention.
Fig. 5 is the schematic diagram of server failure hot swapping system according to the ... of the embodiment of the present invention.As shown in figure 5, the system May include:Application server A, the first data server B and the second data server C.Wherein, application server A can be wrapped The fervent changing device of server failure of the embodiment of the present invention 3 is included, the second data server C may include the embodiment of the present invention 4 The fervent changing device of server failure.
Second data server C is the service for having identical function with the first data server B and being stored with identical data Device, the first data server B have the first IP address, wherein application server A is used to detect the fortune of the first data server B Row state judges whether the first data server B breaks down according to operating status, if it is judged that the first data server B Operation is broken down, then sends the first control command to the second data server C, wherein the first control command is for notifying the Two data server C are run using the first IP address;Second data server C is used for after receiving the first control command with the One IP address is run.
The specific descriptions of server failure hot swapping system may refer to above-mentioned to server failure hot change-over method With the embodiment of device, do not repeat here.
According to embodiments of the present invention, since when the first data server B breaks down, application server is counted to A second The first control command is sent according to server C, the second data server C and the first data server B have identical function and storage There is identical data so that the second data server C is run using the first IP address of the first data server B, therefore the second clothes Device C be engaged in instead of first server B progress data processings, has reached when data server breaks down, application server can To provide the effect of service to client.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, the unit division, it is only a kind of Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, mobile terminal, server or network equipment etc.) executes side described in each embodiment of the present invention The all or part of step of method.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various to be stored The medium of program code.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (7)

1. a kind of server failure hot change-over method, which is characterized in that including:
Detect the operating status of the first data server, wherein first data server has the first IP address;
Judge whether first data server breaks down according to the operating status;And
If it is judged that the first data server operation is broken down, then the first control life is sent to the second data server It enables, wherein first control command is described for notifying second data server to be run using first IP address Second data server is the server for having identical function with first data server and being stored with identical data, described Second data server is run after receiving first control command with first IP address,
Wherein, second data server has the second IP address, and described first is received in second data server After being run with first IP address after control command, the server failure hot change-over method further includes:
Continue to detect the operating status of first data server;
Judge whether first data server restores normal according to the operating status;
If it is judged that first data server restores normal, then the second control life is sent to second data server It enables and simultaneously sends third control command to first data server, wherein second control command is for notifying described the Two data servers are run using second IP address, and the third control command is for notifying first data server It is run using first IP address,
Wherein, the operating status that the first data server is detected by application server occurs in first data server When failure, first data server is switched to second data server, using second data server to The application server provides data service.
2. server failure hot change-over method according to claim 1, which is characterized in that
The operating status for detecting the first data server includes:Detectable signal is continuously transmitted to first data server, In, first data server receives returning response signal after the detectable signal in the case of normal operation;Judge The response signal that first data server returns whether is received, judging result is obtained,
According to the operating status judge first data server whether break down including:Sentenced according to the judging result Whether first data server that breaks breaks down,
Wherein, if the response signal judged not receive first data server and returned, it is determined that described the The operation of one data server is broken down.
3. a kind of server failure hot change-over method, which is characterized in that including:
Second data server receives the first control command, wherein first control command is that application server is detecting The control command that the operation of first data server is sent in the case of breaking down to the second data server, first data Server has the first IP address, and first control command is for notifying second data server to use the first IP Address is run, and second data server has identical function with first data server and is stored with identical data; And
Second data server is run after receiving first control command with first IP address,
Wherein, second data server has the second IP address, and described first is received in second data server After being run with first IP address after control command, the server failure hot change-over method further includes:
Second data server receives the second control command, and second control command is that the application server detects The control command that first data server is sent in the case of restoring normal to second data server, described second Control command is for notifying second data server to be run using second IP address;And
Second data server is run after receiving second control command with second IP address.
4. a kind of fervent changing device of server failure, which is characterized in that including:
Detection unit, the operating status for detecting the first data server, wherein first data server has first IP address;
Judging unit, for judging whether first data server breaks down according to the operating status;And
Transmission unit is used for if it is judged that first data server operation is broken down, then to the second data server Send the first control command, wherein first control command is for notifying second data server to use described first IP address is run, and second data server is to have identical function with first data server and be stored with identical number According to server, second data server received and run with first IP address after first control command,
Second data server has the second IP address, wherein
The detection unit is additionally operable to after second data server receives first control command with described first After IP address operation, continue the operating status for detecting first data server;
The judging unit is additionally operable to judge whether first data server restores normal according to the operating status;
The transmission unit is additionally operable to if it is judged that first data server restores normal, then to second data clothes Device the second control command of transmission of being engaged in simultaneously sends third control command to first data server, wherein second control Order is for notifying second data server to be run using second IP address, and the third control command is for notifying First data server is run using first IP address,
Wherein, the operating status that the first data server is detected by application server occurs in first data server When failure, first data server is switched to second data server, using second data server to The application server provides data service.
5. the fervent changing device of server failure according to claim 4, which is characterized in that
The detection unit includes:Sending module, for continuously transmitting detectable signal to first data server, wherein First data server receives returning response signal after the detectable signal in the case of normal operation;First judges Module, the response signal returned for judging whether to receive first data server, obtains judging result,
The judging unit includes:Second judgment module, for judging first data server according to the judging result Whether break down, wherein if described judge not receive the response signal that first data server returns, really The fixed first data server operation is broken down.
6. a kind of fervent changing device of server failure, which is characterized in that including:
First receiving unit, for so that the second data server receives the first control command, wherein first control command It is sent to the second data server for application server in the case where detecting that the operation of the first data server is broken down Control command, first data server have the first IP address, and first control command is for notifying second number It is run using first IP address according to server, first control command is for notifying second data server to use The first IP address operation, second data server have identical function with first data server and are stored with Identical data;And
Running unit, for after making second data server receive first control command with the first IP Location is run,
Wherein, second data server further includes with the second IP address, the fervent changing device of server failure:
Second receiving unit, for after second data server receives first control command with the first IP After the operation of address so that second data server receives the second control command, and second control command is described answers The control sent to second data server in the case of detecting the first data server recovery normally with server System order, second control command is for notifying second data server to be run using second IP address;And
Second running unit, for making second data server after receiving second control command with described Two IP address are run.
7. a kind of server failure hot swapping system, which is characterized in that including application server, the first data server and second Data server, second data server are to have identical function with first data server and be stored with identical number According to server, first data server have the first IP address, wherein
The application server is used to detect the operating status of first data server, judges institute according to the operating status State whether the first data server breaks down, if it is judged that first data server operation is broken down, then to the Two data servers send the first control command, wherein first control command is for notifying second data server It is run using first IP address;
Second data server is used to run with first IP address after receiving first control command,
Wherein, second data server has the second IP address, and described first is received in second data server After being run with first IP address after control command,
The application server continues to detect the operating status of first data server;Judge institute according to the operating status State whether the first data server restores normal;If it is judged that first data server restores normal, then to described the Two data servers send the second control command and send third control command to first data server, wherein described Second control command is for notifying second data server to be run using second IP address, the third control command For notifying first data server to be run using first IP address.
CN201410773931.5A 2014-12-12 2014-12-12 Server failure hot change-over method, device and system Active CN104468221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410773931.5A CN104468221B (en) 2014-12-12 2014-12-12 Server failure hot change-over method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410773931.5A CN104468221B (en) 2014-12-12 2014-12-12 Server failure hot change-over method, device and system

Publications (2)

Publication Number Publication Date
CN104468221A CN104468221A (en) 2015-03-25
CN104468221B true CN104468221B (en) 2018-09-18

Family

ID=52913630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410773931.5A Active CN104468221B (en) 2014-12-12 2014-12-12 Server failure hot change-over method, device and system

Country Status (1)

Country Link
CN (1) CN104468221B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721223A (en) * 2016-03-30 2016-06-29 苏州美天网络科技有限公司 Network server system with backup service function
CN107707535B (en) * 2017-09-25 2020-12-22 深圳市友华软件科技有限公司 Multi-security-check platform system and method for realizing hot switching
CN116155957B (en) * 2023-04-19 2023-07-14 华芯(嘉兴)智能装备有限公司 Operation method and device of sorting machine control program and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553716A (en) * 2003-06-04 2004-12-08 中兴通讯股份有限公司 Clustering system for utilizing sharing internal memory in mobile communiation system and realizing method thereof
CN1851657A (en) * 2005-07-21 2006-10-25 上海华为技术有限公司 Dual-machine back-up realizing method and system
CN101094104A (en) * 2007-07-30 2007-12-26 中兴通讯股份有限公司 Method and device for carrying out device management through proxy of security network management
CN101557315A (en) * 2009-05-15 2009-10-14 成都市华为赛门铁克科技有限公司 Method, device and system for active-standby switch
CN101686251A (en) * 2008-09-26 2010-03-31 中国银联股份有限公司 Centralized standby system of remote isomorphism real-time system and standby method
JP2013062678A (en) * 2011-09-13 2013-04-04 Toshiba Corp Ip connection device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702791B2 (en) * 2001-07-16 2010-04-20 Bea Systems, Inc. Hardware load-balancing apparatus for session replication
CN102761428A (en) * 2011-04-27 2012-10-31 鸿富锦精密工业(深圳)有限公司 Server system and server switching method
CN103067206B (en) * 2012-12-28 2016-07-06 无锡博欧节能科技有限公司 Internet of Things is across the distributed full-automatic heat standby server switched system of machine room

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553716A (en) * 2003-06-04 2004-12-08 中兴通讯股份有限公司 Clustering system for utilizing sharing internal memory in mobile communiation system and realizing method thereof
CN1851657A (en) * 2005-07-21 2006-10-25 上海华为技术有限公司 Dual-machine back-up realizing method and system
CN101094104A (en) * 2007-07-30 2007-12-26 中兴通讯股份有限公司 Method and device for carrying out device management through proxy of security network management
CN101686251A (en) * 2008-09-26 2010-03-31 中国银联股份有限公司 Centralized standby system of remote isomorphism real-time system and standby method
CN101557315A (en) * 2009-05-15 2009-10-14 成都市华为赛门铁克科技有限公司 Method, device and system for active-standby switch
JP2013062678A (en) * 2011-09-13 2013-04-04 Toshiba Corp Ip connection device

Also Published As

Publication number Publication date
CN104468221A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104394009B (en) A kind of processing method and processing device of fault message
CN101714109B (en) Method and device for controlling mainboard of double CPU system
CN101953139B (en) DHCP in response to Internet connectedness initializes
CN104468221B (en) Server failure hot change-over method, device and system
CN110808873B (en) Method and device for detecting link failure
CN103051557A (en) Data stream processing method and system, controller and switching equipment
CN111142801B (en) Distributed storage system network sub-health detection method and device
CN108768757B (en) Fault processing method and device and distributed network equipment
CN103491134A (en) Container monitoring method and device and agency service system
CN105142235B (en) The means of communication and device of air-conditioner set
CN104883279A (en) Heartbeat message processing method, heartbeat message processing device and heartbeat message processing system
CN104394012B (en) Cluster routers, MPU and its failure determination method, sensing controller
CN104954190A (en) Method and device for detecting faults of application server
CN105634779B (en) The operation processing method and device of master/slave device
CN110224872B (en) Communication method, device and storage medium
US20190028298A1 (en) Ring protection network division
CN107796086A (en) A kind of control method of equipment unit, device, storage medium and equipment unit
JP5050014B2 (en) Network monitoring system
CN104598173B (en) A kind of information processing method and electronic equipment
JP2009110218A (en) Virtualization switch and computer system using the same
CN104123261B (en) A kind of electronic equipment and information transferring method
CN103310147B (en) Factory's security control apparatus and management method
JP5847064B2 (en) Simple monitoring and control device
JP2016071480A (en) Failure monitoring system, failure monitoring method, and failure monitoring program
CN101673234A (en) Abnormality monitoring method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Server fault hot-switching method, device and system

Effective date of registration: 20190531

Granted publication date: 20180918

Pledgee: Shenzhen Black Horse World Investment Consulting Co.,Ltd.

Pledgor: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Registration number: 2019990000503

PE01 Entry into force of the registration of the contract for pledge of patent right
CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

PP01 Preservation of patent right

Effective date of registration: 20240604

Granted publication date: 20180918