CN104468221A - Server fault hot-switching method, device and system - Google Patents

Server fault hot-switching method, device and system Download PDF

Info

Publication number
CN104468221A
CN104468221A CN201410773931.5A CN201410773931A CN104468221A CN 104468221 A CN104468221 A CN 104468221A CN 201410773931 A CN201410773931 A CN 201410773931A CN 104468221 A CN104468221 A CN 104468221A
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.)
Granted
Application number
CN201410773931.5A
Other languages
Chinese (zh)
Other versions
CN104468221B (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 server fault hot-switching method, device and system. The server fault hot-switching method comprises the steps of detecting the running state of a first data server, wherein the first data server has the first IP address; judging whether the first data server has faults according to the running state; sending a first control command to a second data server if the first data server is judged to have faults, wherein the first control command is used for commanding the second data server to be run through the first IP address, and the second data server has the same functions and stores the same data as the first data server and is run through the first IP address after receiving the first control command. According to the server fault hot-switching method, device and system, the problem that because the data servers have faults, an application server cannot provide services for a client in the related technology is solved.

Description

Server failure hot change-over method, device and system
Technical field
The present invention relates to server field, in particular to a kind of server failure hot change-over method, device and system.
Background technology
Application server is providing in service process to client, usually can be connected to data server, obtains data and go forward side by side row relax from data server.If data server fail, then application server normally cannot provide service to client.At present, time for data server fail, usual needs provide data cube computation to application server after manually getting rid of again, and in this process, application server then cannot provide service to client, thus cause service disruption.
For in prior art because data server fault causes application server cannot provide the problem of service to client, at present effective solution is not yet proposed.
Summary of the invention
Main purpose of the present invention is to provide a kind of server failure hot change-over method, device and system, to solve in prior art because data server fault causes application server cannot provide the problem of service to client.
To achieve these goals, according to an aspect of the embodiment of the present invention, a kind of server failure hot change-over method is provided.Server failure hot change-over method according to the present invention can comprise: the running status detecting the first data server, and wherein, above-mentioned first data server has an IP address; Judge whether above-mentioned first data server breaks down according to above-mentioned running status; And if judge above-mentioned first data server run break down, then send the first control command to the second data server, wherein, above-mentioned first control command is used for notifying that above-mentioned second data server uses an above-mentioned IP address to run, above-mentioned second data server is have identical function with above-mentioned first data server and store the server of identical data, runs after above-mentioned second data server receives above-mentioned first control command with an above-mentioned IP address.
Further, the running status detecting the first data server can comprise: send detectable signal continuously to above-mentioned first data server, wherein, returns response signal after above-mentioned first data server receives above-mentioned detectable signal when normal operation; Judge whether to receive the response signal that above-mentioned first data server returns, obtain judged result, judge whether above-mentioned first data server breaks down and can comprise according to above-mentioned running status: judge whether above-mentioned first data server breaks down according to above-mentioned judged result, wherein, judge not receive the response signal that above-mentioned first data server returns if above-mentioned, then determine that above-mentioned first data server runs and break down.
Further, above-mentioned second data server has the 2nd IP address, after running with an above-mentioned IP address after above-mentioned second data server receives above-mentioned first control command, above-mentioned server failure hot change-over method can also comprise: continue the running status detecting above-mentioned first data server; Judge whether above-mentioned first data server recovers normal according to above-mentioned running status; If judge that above-mentioned first data server recovers normal, then send the second control command to above-mentioned second data server and send the 3rd control command to above-mentioned first data server, wherein, above-mentioned second control command is used for notifying that above-mentioned second data server uses above-mentioned 2nd IP address to run, and above-mentioned 3rd control command is used for notifying that above-mentioned first data server uses an above-mentioned IP address to run.
To achieve these goals, according to another aspect of the embodiment of the present invention, additionally provide a kind of server failure hot change-over method.Server failure hot change-over method according to the present invention can also comprise: the second data server receives the first control command, wherein, above-mentioned first control command is application server control command to the second data server transmission when detecting that the first data server operation is broken down, above-mentioned first data server has an IP address, above-mentioned first control command is used for notifying that above-mentioned second data server uses an above-mentioned IP address to run, above-mentioned second data server and above-mentioned first data server have identical function and store identical data, and above-mentioned second data server receives after above-mentioned first control command and runs with an above-mentioned IP address.
Further, above-mentioned second data server has the 2nd IP address, after running with an above-mentioned IP address after above-mentioned second data server receives above-mentioned first control command, above-mentioned server failure hot change-over method can also comprise: above-mentioned second data server receives the second control command, above-mentioned second control command is that above-mentioned application server detects the control command sent to above-mentioned second data server under above-mentioned first data server recovers normal situation, above-mentioned second control command is used for notifying that above-mentioned second data server uses above-mentioned 2nd IP address to run, and above-mentioned second data server runs with above-mentioned 2nd IP address after receiving above-mentioned second control command.
To achieve these goals, according to the another aspect of the embodiment of the present invention, provide a kind of server failure hot-swap device.Server failure hot-swap device according to the present invention can comprise: detecting unit, and for detecting the running status of the first data server, wherein, above-mentioned first data server has an IP address; Judging unit, for judging according to above-mentioned running status whether above-mentioned first data server breaks down; And transmitting element, if broken down for judging that above-mentioned first data server runs, then send the first control command to the second data server, wherein, above-mentioned first control command is used for notifying that above-mentioned second data server uses an above-mentioned IP address to run, above-mentioned second data server is have identical function with above-mentioned first data server and store the server of identical data, runs after above-mentioned second data server receives above-mentioned first control command with an above-mentioned IP address.
Further, above-mentioned detecting unit can comprise: sending module, for sending detectable signal continuously to above-mentioned first data server, wherein, returns response signal after above-mentioned first data server receives above-mentioned detectable signal when normal operation; First judge module, for judging whether to receive the response signal that above-mentioned first data server returns, obtain judged result, above-mentioned judging unit can comprise: the second judge module, for judging according to above-mentioned judged result whether above-mentioned first data server breaks down, wherein, judge not receive the response signal that above-mentioned first data server returns if above-mentioned, then determine that above-mentioned first data server runs and break down.
Further, above-mentioned second data server has the 2nd IP address, wherein, above-mentioned detecting unit also for after running with an above-mentioned IP address after above-mentioned second data server receives above-mentioned first control command, continues to detect the running status of above-mentioned first data server; Above-mentioned judging unit is also for judging according to above-mentioned running status whether above-mentioned first data server recovers normal; If above-mentioned transmitting element is also for judging that above-mentioned first data server recovers normal, then send the second control command to above-mentioned second data server and send the 3rd control command to above-mentioned first data server, wherein, above-mentioned second control command is used for notifying that above-mentioned second data server uses above-mentioned 2nd IP address to run, and above-mentioned 3rd control command is used for notifying that above-mentioned first data server uses an above-mentioned IP address to run.
To achieve these goals, according to the another aspect of the embodiment of the present invention, additionally provide a kind of server failure hot-swap device.Server failure hot-swap device according to the present invention can comprise: the first receiving element, be provided for the second data server and receive the first control command, wherein, above-mentioned first control command is application server control command to the second data server transmission when detecting that the first data server operation is broken down, above-mentioned first data server has an IP address, above-mentioned first control command is used for notifying that above-mentioned second data server uses an above-mentioned IP address to run, above-mentioned first control command is used for notifying that above-mentioned second data server uses an above-mentioned IP address to run, above-mentioned second data server and above-mentioned first data server have identical function and store identical data, and running unit, be provided for after above-mentioned second data server receives above-mentioned first control command and run with an above-mentioned IP address.
Further, above-mentioned second data server has the 2nd IP address, above-mentioned server failure hot-swap device can also comprise: the second receiving element, after running with an above-mentioned IP address after above-mentioned second data server receives above-mentioned first control command, above-mentioned second data server is made to receive the second control command, above-mentioned second control command is that above-mentioned application server detects the control command sent to above-mentioned second data server under above-mentioned first data server recovers normal situation, above-mentioned second control command is used for notifying that above-mentioned second data server uses above-mentioned 2nd IP address to run, and second running unit, be provided for above-mentioned second data server and run with above-mentioned 2nd IP address after receiving above-mentioned second control command.
To achieve these goals, according to the another aspect of the embodiment of the present invention, provide a kind of server failure hot swapping system.Server failure hot swapping system according to the present invention can comprise: application server, first data server and the second data server, above-mentioned second data server is have identical function with above-mentioned first data server and store the server of identical data, above-mentioned first data server has an IP address, wherein, above-mentioned application server is for detecting the running status of above-mentioned first data server, judge whether above-mentioned first data server breaks down according to above-mentioned running status, if judge that above-mentioned first data server runs to break down, then send the first control command to the second data server, wherein, above-mentioned first control command is used for notifying that above-mentioned second data server uses an above-mentioned IP address to run, above-mentioned second data server is used for running with an above-mentioned IP address after receiving above-mentioned first control command.
According to inventive embodiments, by detecting the running status of the first data server, wherein, the first data server has an IP address, judge whether the first data server breaks down according to running status, if and judge first data server run break down, then send the first control command to the second data server, wherein, first control command is used for notifying that the second data server uses an IP address to run, second data server is have identical function with the first data server and store the server of identical data, second data server runs with an IP address after receiving the first control command, solve in prior art because data server fault causes application server cannot provide the problem of service to client, reach when data server fail, application server can provide the effect of service to client.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation 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 server failure hot-swap device according to a first embodiment of the present invention;
Fig. 4 is the schematic diagram of server failure hot-swap device according to a second embodiment of the present invention; And
Fig. 5 is the schematic diagram of the server failure hot swapping system according to the embodiment of the present invention.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that embodiments of the invention described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiment 1
Embodiments provide a kind of server failure hot change-over method.
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, can to comprise step as follows for the method:
Step S102, detects the running status of the first data server, and wherein, the first data server has an IP address.
According to running status, step S104, judges whether the first data server breaks down.
Step S106, if judge that the first data server runs to break down, then send the first control command to the second data server, wherein, first control command is used for notifying that the second data server uses an IP address to run, second data server is have identical function with the first data server and store the server of identical data, and the second data server runs with an IP address after receiving the first control command.
Application server is providing in service process to client, usually can be connected to data server, obtains data and go forward side by side row relax from data server.In the embodiment of the present invention, provide data, services by the first data server to application server.The running status detecting the first data server can be the running status that application server detects the first data server, according to the running status of this data server, application server judges whether its operation breaks down, if judge that the first data server runs to break down and operation suspension, then this application server sends the first control command to the second data server, this control command makes second server use an IP address of first server, replaces first server to carry out data processing.Like this, when the first data server fail, if avoid the first data server operation suspension, then application server interrupts providing service to client; Meanwhile, because the second data server replaces first server to carry out identical data processing, this application server can when not interrupting to continuing normal operation when offering customers service.In addition, when second server replaces first server to carry out data processing, if first server restoring running is normal, then application server can call this first server and proceed data processing.
If data server fail, then application server normally cannot provide service to client, in order to avoid there is above-mentioned situation, in the invention process by arranging at least two data servers, wherein, first data server is master server, second data server is the standby server of the first data server, when this first data server fail, first data server is switched to the second data server, utilizes the second data server to provide data, services to application server.
According to the embodiment of the present invention, due to when the first data server fail, application server sends the first control command to the second data server, second data server and the first data server have identical function and store identical data, the second data server is made to use an IP address of the first data server to run, therefore second server instead of first server and carries out data processing, reach when data server fail, application server can provide the effect of service to client.
Preferably, in embodiments of the present invention, the running status detecting the first data server can comprise: send detectable signal continuously to the first data server, and wherein, the first data server returns response signal after receiving detectable signal when normal operation; Judge whether to receive the response signal that the first data server returns, obtain judged result.Judge whether the first data server breaks down according to running status can comprise: judge whether the first data server breaks down according to judged result.Wherein, if judge not receive the response signal that the first data server returns, then determine that the first data server runs and break down.If the response signal of receiving, determine that the first data server normally runs.Due in order to ensure that application server normally and provide service to client incessantly, therefore the running status of examinations first data server wanted by application server, wherein, detection method can be: application server sends detectable signal continuously to the first data server, first data server returns response signal to application server after receiving this detectable signal when normal operation, and the first data server cannot return response signal to application server in the abnormal situation of operation.Like this, whether application server whether can to return response signal to judge the running status of the first data server by the first data server normal.
Particularly, can arrange monitor component in the application server, this monitor component is used for sending above-mentioned detectable signal to the first data server and/or the second data server according to certain frequency; Heartbeat assembly is set in the first data server and/or the second data server, the detectable signal that this heartbeat assembly sends for receiving above-mentioned monitor component, and returns above-mentioned response signal to monitor component.Wherein, a detectable signal transmission and response signal return a formation heartbeat.If after monitor component monitors heartbeat stopping (namely not receiving response signal) of the first data server, notify that the second data server uses an IP address of the first data server to continue to run.If after monitor component monitors the heartbeating recovery of the first data server, notify that the second data server uses the 2nd IP address to run.
According to the embodiment of the present invention, owing to sending detectable signal by application server continuously to the first data server, judge whether the first data server receives this signal, therefore can judge whether first server breaks down according to judged result, like this, application server can find that first server breaks down in time, and makes the reaction that switching server carries out data processing.
Preferably, in embodiments of the present invention, second data server has the 2nd IP address, and after running with an IP address after the second data server receives the first control command, server failure hot change-over method can also comprise: the running status continuing detection first data server.Judge whether the first data server recovers normal according to running status.If judge that the first data server recovers normal, then send the second control command to the second data server and send the 3rd control command to the first data server, wherein, second control command is used for notifying that the second data server uses the 2nd IP address to run, and the 3rd control command is used for notifying that the first data server uses an IP address to run.
When the first data server fail, application server sends first to the second data server and controls life, and this control command makes the second data server use an IP address of the first data server to run.At the second data server run duration, application server continues the running status of detection first data server.If detect that the fault of the first data server is excluded, then application server sends the second control command to the second data server, this control command makes the second data server recover the operation of use the 2nd IP address, simultaneously, application server sends the 3rd control command to the first data server, and this control command makes the first data server use an IP address to resume operation.
According to the embodiment of the present invention, because application server is after the fault of the first data server is excluded, the second data server is made to use the 2nd IP address to continue to run, and make the first data server continue use the one IP address to resume operation, therefore reach when data server fail, 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 Figure 2, the method can comprise:
Step S202, the second data server receives the first control command.Wherein, first control command is application server control command to the second data server transmission when detecting that the first data server operation is broken down, first data server has an IP address, first control command is used for notifying that the second data server uses an IP address to run, and the second data server and the first data server have identical function and store identical data.
Step S204, the second data server runs with an IP address after receiving the first control command.
Application server is when detecting the first data server fail, the first control command is sent to the second data server, second data server receives the first control command sent from application server, and this control command makes the second data server use an IP address of the first data server to run.Because the second data server and the first data server have identical function and store identical data, therefore application server can read data in order to provide service to client from the first data server or the second data server, when the first data server fail, first data server can be switched to the second data server and make second server use an IP address to run, application server reads data by an IP address from the second data server.
Preferably, in embodiments of the present invention, second data server has the 2nd IP address, after running with an IP address after the second data server receives the first control command, server failure hot change-over method can also comprise: the second data server receives the second control command, second control command is that application server detects the control command sent to the second data server under the first data server recovers normal situation, and the second control command is used for notifying that the second data server uses the 2nd IP address to run.Second data server runs with the 2nd IP address after receiving the second control command.
At the second data server run duration, application server continues the running status of detection first data server.If detect that the fault of the first data server is excluded, then send the second control command to the second data server, second data server receives the second control command sent from application server, this control command makes the second data server recover the operation of use the 2nd IP address, simultaneously, first data server receives the 3rd control command sent from application server, this control command makes the first data server use an IP address to resume operation, and application server reads data by an IP address from the first data server.
Embodiment 3
Embodiments provide a kind of server failure hot-swap device.This server failure hot-swap device may be used for the server failure hot change-over method performing the embodiment of the present invention 1.
Fig. 3 is the schematic diagram of server failure hot-swap device according to a first embodiment of the present invention.As shown in Figure 3, this device can comprise: detecting unit 301, judging unit 302 and transmitting element 303.
Detecting unit 301 is for detecting the running status of the first data server, and wherein, the first data server has an IP address.This detecting unit 301 can be realized by monitor component.
Judging unit 302 is for judging according to running status whether the first data server breaks down.
If transmitting element 303 breaks down for judging that the first data server runs, then send the first control command to the second data server, wherein, first control command is used for notifying that the second data server uses an IP address to run, second data server is have identical function with the first data server and store the server of identical data, and the second data server runs with an IP address after receiving the first control command.
Application server is providing in service process to client, usually can be connected to data server, obtains data and go forward side by side row relax from data server.In the embodiment of the present invention, provide data, services by the first data server to application server.The running status detecting the first data server can be the running status that application server detects the first data server, according to the running status of this data server, application server judges whether its operation breaks down, if judge that the first data server runs to break down and operation suspension, then this application server sends the first control command to the second data server, this control command makes second server use an IP address of first server, replaces first server to carry out data processing.Like this, when the first data server fail, if avoid the first data server operation suspension, then application server interrupts providing service to client; Meanwhile, because the second data server replaces first server to carry out identical data processing, this application server can when not interrupting to continuing normal operation when offering customers service.In addition, when second server replaces first server to carry out data processing, if first server restoring running is normal, then application server can call this first server and proceed data processing.
If data server fail, then application server normally cannot provide service to client, in order to avoid there is above-mentioned situation, in the invention process by arranging at least two data servers, wherein, first data server is master server, second data server is the standby server of the first data server, when this first data server fail, first data server is switched to the second data server, utilizes the second data server to provide data, services to application server.
According to the embodiment of the present invention, due to when the first data server fail, application server sends the first control command to the second data server, second data server and the first data server have identical function and store identical data, the second data server is made to use an IP address of the first data server to run, therefore second server instead of first server and carries out data processing, reach when data server fail, application server can provide the effect of service to client.
Preferably, in embodiments of the present invention, detecting unit 301 can comprise: sending module and sending module.Sending module is used for sending detectable signal continuously to the first data server, and wherein, the first data server returns response signal after receiving detectable signal when normal operation.The response signal that sending module returns for judging whether to receive the first data server, obtains judged result.Judging unit 302 can comprise: the second judge module.Second judge module is used for judging whether the first data server breaks down according to judged result, wherein, if judge not receive the response signal that the first data server returns, then determines that the first data server runs and breaks down.If the response signal of receiving, determine that the first data server normally runs.
Due in order to ensure that application server normally and provide service to client incessantly, therefore the running status of examinations first data server wanted by application server, wherein, detection method can be: application server sends detectable signal continuously to the first data server, first data server returns response signal to application server after receiving this detectable signal when normal operation, and the first data server cannot return response signal to application server in the abnormal situation of operation.Like this, whether application server whether can to return response signal to judge the running status of the first data server by the first data server normal.
According to the embodiment of the present invention, owing to sending detectable signal by application server continuously to the first data server, judge whether the first data server receives this signal, therefore can judge whether first server breaks down according to judged result, like this, application server can find that first server breaks down in time, and makes the reaction that switching server carries out data processing.
Preferably, in embodiments of the present invention, the second data server has the 2nd IP address, wherein, detecting unit 301 also for after running with an IP address after the second data server receives the first control command, continues the running status of detection first data server.Judging unit 302 is also for judging according to running status whether the first data server recovers normal.If transmitting element 303 is also for judging that the first data server recovers normal, then send the second control command to the second data server and send the 3rd control command to the first data server, wherein, second control command is used for notifying that the second data server uses the 2nd IP address to run, and the 3rd control command is used for notifying that the first data server uses an IP address to run.
When the first data server fail, application server sends first to the second data server and controls life, and this control command makes the second data server use an IP address of the first data server to run.At the second data server run duration, application server continues the running status of detection first data server.If detect that the fault of the first data server is excluded, then application server sends the second control command to the second data server, this control command makes the second data server recover the operation of use the 2nd IP address, simultaneously, application server sends the 3rd control command to the first data server, and this control command makes the first data server use an IP address to resume operation.
According to the embodiment of the present invention, because application server is after the fault of the first data server is excluded, the second data server is made to use the 2nd IP address to continue to run, and make the first data server continue use the one IP address to resume operation, therefore reach when data server fail, application server can provide the effect of service to client.
Embodiment 4
The embodiment of the present invention additionally provides a kind of server failure hot-swap device.This server failure hot-swap device may be used for the server failure hot change-over method performing above-described embodiment 2.
Fig. 4 is the schematic diagram of server failure hot-swap device according to a second embodiment of the present invention.This device can comprise: the first receiving element 401 and the first running unit 402.
First receiving element 401 is provided for the second data server and receives the first control command, wherein, first control command is application server control command to the second data server transmission when detecting that the first data server operation is broken down, first data server has an IP address, first control command is used for notifying that the second data server uses an IP address to run, first control command is used for notifying that the second data server uses an IP address to run, second data server and the first data server have identical function and store identical data.
First running unit 402 is provided for after the second data server receives the first control command and runs with an IP address.
Application server is when detecting the first data server fail, the first control command is sent to the second data server, second data server receives the first control command sent from application server, and this control command makes the second data server use an IP address of the first data server to run.Because the second data server and the first data server have identical function and store identical data, therefore application server can read data in order to provide service to client from the first data server or the second data server, when the first data server fail, first data server can be switched to the second data server and make second server use an IP address to run, application server reads data by an IP address from the second data server.
Preferably, in embodiments of the present invention, the second data server has the 2nd IP address, and server failure hot-swap device can also comprise: the second receiving element and the second running unit.After second receiving element is used for running with an IP address after the second data server receives the first control command, the second data server is made to receive the second control command, second control command is that application server detects the control command sent to the second data server under the first data server recovers normal situation, and the second control command is used for notifying that the second data server uses the 2nd IP address to run.Second running unit is provided for the second data server and runs with the 2nd IP address after receiving the second control command.
At the second data server run duration, application server continues the running status of detection first data server.If detect that the fault of the first data server is excluded, then send the second control command to the second data server, second data server receives the second control command sent from application server, this control command makes the second data server recover the operation of use the 2nd IP address, simultaneously, first data server receives the 3rd control command sent from application server, this control command makes the first data server use an IP address to resume operation, and application server reads data by an IP address from the first data server.
Embodiment 5
Embodiments provide a kind of server failure hot swapping system.This server failure hot swapping system may be used for the server failure hot change-over method and the device that realize the embodiment of the present invention.
Fig. 5 is the schematic diagram of the server failure hot swapping system according to the embodiment of the present invention.As shown in Figure 5, this system can comprise: application server A, the first data server B and the second data server C.Wherein, application server A can comprise the server failure hot-swap device of the embodiment of the present invention 3, and the second data server C can comprise the server failure hot-swap device of the embodiment of the present invention 4.
Second data server C has identical function with the first data server B and stores the server of identical data, first data server B has an IP address, wherein, application server A is for detecting the running status of the first data server B, judge whether the first data server B breaks down according to running status, if judge that the first data server B runs to break down, then send the first control command to the second data server C, wherein, the first control command is used for notifying that the second data server C uses an IP address to run; Second data server C is used for running with an IP address after receiving the first control command.
Specific descriptions for server failure hot swapping system see the above-mentioned embodiment to server failure hot change-over method and device, can not repeat here.
According to the embodiment of the present invention, due to when the first data server B breaks down, application server sends the first control command to A second data server C, second data server C and the first data server B has identical function and stores identical data, the second data server C is made to use an IP address of the first data server B to run, therefore second server C instead of first server B and carries out data processing, reach when data server fail, application server can provide the effect of service to client.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
In several embodiments that the application provides, should be understood that, disclosed device, the mode by other realizes.Such as, device embodiment described above is only schematic, the such as division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprises all or part of step of some instructions in order to make a computer equipment (can be personal computer, mobile terminal, server or the network equipment etc.) perform method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a server failure hot change-over method, is characterized in that, comprising:
Detect the running status of the first data server, wherein, described first data server has an IP address;
Judge whether described first data server breaks down according to described running status; And
If judge that described first data server runs to break down, then send the first control command to the second data server, wherein, described first control command is used for notifying that described second data server uses a described IP address to run, described second data server is have identical function with described first data server and store the server of identical data, runs after described second data server receives described first control command with a described IP address.
2. server failure hot change-over method according to claim 1, is characterized in that,
The running status detecting the first data server comprises: send detectable signal continuously to described first data server, wherein, returns response signal after described first data server receives described detectable signal when normal operation; Judge whether to receive the response signal that described first data server returns, obtain judged result,
Judge whether described first data server breaks down according to described running status to comprise: judge whether described first data server breaks down according to described judged result,
Wherein, if described in judge not receive the response signal that described first data server returns, then determine that described first data server runs and break down.
3. server failure hot change-over method according to claim 1, it is characterized in that, described second data server has the 2nd IP address, after running with a described IP address after described second data server receives described first control command, described server failure hot change-over method also comprises:
Continue the running status detecting described first data server;
Judge whether described first data server recovers normal according to described running status;
If judge that described first data server recovers normal, then send the second control command to described second data server and send the 3rd control command to described first data server, wherein, described second control command is used for notifying that described second data server uses described 2nd IP address to run, and described 3rd control command is used for notifying that described first data server uses a described IP address to run.
4. a server failure hot change-over method, is characterized in that, comprising:
Second data server receives the first control command, wherein, described first control command is application server control command to the second data server transmission when detecting that the first data server operation is broken down, described first data server has an IP address, described first control command is used for notifying that described second data server uses a described IP address to run, and described second data server and described first data server have identical function and store identical data; And
Run with a described IP address after described second data server receives described first control command.
5. server failure hot change-over method according to claim 4, it is characterized in that, described second data server has the 2nd IP address, after running with a described IP address after described second data server receives described first control command, described server failure hot change-over method also comprises:
Described second data server receives the second control command, described second control command is that described application server detects the control command sent to described second data server under described first data server recovers normal situation, and described second control command is used for notifying that described second data server uses described 2nd IP address to run; And
Described second data server runs with described 2nd IP address after receiving described second control command.
6. a server failure hot-swap device, is characterized in that, comprising:
Detecting unit, for detecting the running status of the first data server, wherein, described first data server has an IP address;
Judging unit, for judging according to described running status whether described first data server breaks down; And
Transmitting element, if broken down for judging that described first data server runs, then send the first control command to the second data server, wherein, described first control command is used for notifying that described second data server uses a described IP address to run, described second data server is have identical function with described first data server and store the server of identical data, runs after described second data server receives described first control command with a described IP address.
7. server failure hot-swap device according to claim 6, is characterized in that,
Described detecting unit comprises: sending module, for sending detectable signal continuously to described first data server, wherein, returns response signal after described first data server receives described detectable signal when normal operation; First judge module, for judging whether to receive the response signal that described first data server returns, obtains judged result,
Described judging unit comprises: the second judge module, for judging according to described judged result whether described first data server breaks down, wherein, if described in judge not receive the response signal that described first data server returns, then determine that described first data server runs and break down.
8. server failure hot-swap device according to claim 6, is characterized in that, described second data server has the 2nd IP address, wherein,
Described detecting unit also for after running with a described IP address after described second data server receives described first control command, continues to detect the running status of described first data server;
Described judging unit is also for judging according to described running status whether described first data server recovers normal;
If described transmitting element is also for judging that described first data server recovers normal, then send the second control command to described second data server and send the 3rd control command to described first data server, wherein, described second control command is used for notifying that described second data server uses described 2nd IP address to run, and described 3rd control command is used for notifying that described first data server uses a described IP address to run.
9. a server failure hot-swap device, is characterized in that, comprising:
First receiving element, be provided for the second data server and receive the first control command, wherein, described first control command is application server control command to the second data server transmission when detecting that the first data server operation is broken down, described first data server has an IP address, described first control command is used for notifying that described second data server uses a described IP address to run, described first control command is used for notifying that described second data server uses a described IP address to run, described second data server and described first data server have identical function and store identical data, and
Running unit, is provided for after described second data server receives described first control command and runs with a described IP address.
10. server failure hot-swap device according to claim 9, is characterized in that, described second data server has the 2nd IP address, and described server failure hot-swap device also comprises:
Second receiving element, after running with a described IP address after described second data server receives described first control command, described second data server is made to receive the second control command, described second control command is that described application server detects the control command sent to described second data server under described first data server recovers normal situation, and described second control command is used for notifying that described second data server uses described 2nd IP address to run; And
Second running unit, is provided for described second data server and runs with described 2nd IP address after receiving described second control command.
11. 1 kinds of server failure hot swapping systems, it is characterized in that, comprise application server, the first data server and the second data server, described second data server is have identical function with described first data server and store the server of identical data, described first data server has an IP address, wherein
Described application server is for detecting the running status of described first data server, judge whether described first data server breaks down according to described running status, if judge that described first data server runs to break down, then send the first control command to the second data server, wherein, described first control command is used for notifying that described second data server uses a described IP address to run;
Described second data server is used for running with a described IP address after receiving described first control command.
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 true CN104468221A (en) 2015-03-25
CN104468221B 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)

Cited By (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
CN107707535A (en) * 2017-09-25 2018-02-16 深圳市友华软件科技有限公司 Realize that more peaces of hot-swap examine plateform system and method
CN116155957A (en) * 2023-04-19 2023-05-23 华芯(嘉兴)智能装备有限公司 Operation method and device of sorting machine control program and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030014526A1 (en) * 2001-07-16 2003-01-16 Sam Pullara Hardware load-balancing apparatus for session replication
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
CN102761428A (en) * 2011-04-27 2012-10-31 鸿富锦精密工业(深圳)有限公司 Server system and server switching method
JP2013062678A (en) * 2011-09-13 2013-04-04 Toshiba Corp Ip connection device
CN103067206A (en) * 2012-12-28 2013-04-24 无锡博欧节能科技有限公司 Internet of things across-machine room distributed type full automatic hot standby server switching system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030014526A1 (en) * 2001-07-16 2003-01-16 Sam Pullara Hardware load-balancing apparatus for session replication
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
CN102761428A (en) * 2011-04-27 2012-10-31 鸿富锦精密工业(深圳)有限公司 Server system and server switching method
JP2013062678A (en) * 2011-09-13 2013-04-04 Toshiba Corp Ip connection device
CN103067206A (en) * 2012-12-28 2013-04-24 无锡博欧节能科技有限公司 Internet of things across-machine room distributed type full automatic hot standby server switching system

Cited By (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
CN107707535A (en) * 2017-09-25 2018-02-16 深圳市友华软件科技有限公司 Realize that more peaces of hot-swap examine plateform system and method
CN116155957A (en) * 2023-04-19 2023-05-23 华芯(嘉兴)智能装备有限公司 Operation method and device of sorting machine control program and electronic equipment

Also Published As

Publication number Publication date
CN104468221B (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN101714109B (en) Method and device for controlling mainboard of double CPU system
CN107846316B (en) Cloud mobile phone management system and exception handling method thereof
US20190090302A1 (en) Method and Device for Bluetooth Connection Control for Multiple Playing Devices, and Music Playing System
CN104168134B (en) Distributed wireless hotspot control system with uninterrupted data service after single board exception
CN103795553A (en) Switching of main and standby servers on the basis of monitoring
CN104469699A (en) Cluster quorum method and multi-cluster cooperation system
CN103560955A (en) Method and device for switching between redundancy devices
CN105227347A (en) A kind of general O&M method for supervising and O&M supervisory control system
CN103491134A (en) Container monitoring method and device and agency service system
CN112260895A (en) Data transmission method and device and processor
CN104468221A (en) Server fault hot-switching method, device and system
CN104601401A (en) Detection method, device and system for cloud-controlled household appliance
CN106230954B (en) Virtualization management platform
CN105142235B (en) Communication method and device of air conditioning unit
CN113794597A (en) Alarm information processing method, system, electronic device and storage medium
CN104954190A (en) Method and device for detecting faults of application server
CN104660780B (en) Electronic equipment and its control method
CN106161108A (en) The parameter processing method of a kind of smart machine, device and smart machine
US9164825B2 (en) Computing unit, method of managing computing unit, and computing unit management program
CN107526651A (en) A kind of method and system of disk array backup
CN105245361A (en) Data high availability system for Linux system, method and device
CN104869445A (en) A method for realizing content sharing between intelligent terminals based on a cloud system and the cloud system
CN105430319A (en) Video communication termination method and device
CN101567804B (en) Method, equipment and system for realizing protection of system anomaly
CN106534758B (en) Conference backup 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

PP01 Preservation of patent right