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.