CN103731292A - Fault-tolerant method enabling server to realize fault seamless recovery - Google Patents
Fault-tolerant method enabling server to realize fault seamless recovery Download PDFInfo
- Publication number
- CN103731292A CN103731292A CN201210393716.3A CN201210393716A CN103731292A CN 103731292 A CN103731292 A CN 103731292A CN 201210393716 A CN201210393716 A CN 201210393716A CN 103731292 A CN103731292 A CN 103731292A
- Authority
- CN
- China
- Prior art keywords
- server
- cookie
- session
- client
- pond
- 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.)
- Pending
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention provides a fault-tolerant method enabling a server to realize fault seamless recovery. the server records a real-time operation state of a session into a Cookie according to a fixed time interval, the Cookie is sent to a client side through the session, when the server fails to work, the session built between the fault server and the client side is immediately interrupted, the client side sends the stored Cookie to a second server, the Cookie records the real-time state of the uninterrupted session of the former server, after the second server receives the Cookie, the second server can reset the state to the state before the session is interrupted through the records in the Cookie, and therefore the interrupted session can be recovered in a seamless mode. The Cookie is stored in a client, additional burden will not be brought to the servers, and the efficiency is high.
Description
[technical field]
The invention relates to web server computer field, particularly about web server computer, break down and need to carry out the fault-tolerance approach of seamless recovery.
[background technology]
In existing server failure tolerant system, adopt following step to realize:
First must possess two servers (server A and server B) that same services is provided above;
A wherein station server (supposing server A) is passed through in client computer C access, and between client computer C and server A, set up session S, and carry out information interaction,
When in the process of client computer C access services device A, there is fault and the machine of delaying in server A; Session S between client computer C and server A can interrupt immediately;
Existing tolerant system can start failover process at once, and client computer C, by setting up an one new session T with server B at once, recovers thereby realize server failure.
But corresponding problem also occurred simultaneously, for the process of descriptive session S easily, we are defined as session S by s1, s2, s3, s4 ... s10 operating procedure composition, when session S proceeds to s4, server A breaks down and the machine of delaying; Because the real-time status of interrupted session S has been lost, so the operation of client computer C and server B is must start anew (being s1) in newly-built session T.This fault recovery method cannot be realized the seamless fault recovery of session, from breakpoint, recovers.
[summary of the invention]
The object of the invention is to propose for the defect of prior art a kind of method of the Save and restore that can satisfactorily resolve session real-time status, with utmost point low-cost, realize the seamless restore funcitons of server failure.
For reaching aforementioned object, a kind of fault-tolerance approach that realizes the seamless recovery of server failure of the present invention, it comprises:
When client-access server and set up after session, server is recorded in the real-time running state of session among Cookie according to certain time interval, and this Cookie is sent to client by session, client computer C receives after Cookie, is kept in client; Server will be recorded in new real-time status in cookie according to certain time interval constantly, and according to certain time interval, send to client constantly, client often receives a new Cookie, just with new Cookie, replace old Cookie, to keep the real-time of Cookie content;
After server breaks down, the session that this failed server and aforementioned client are set up is also interrupted immediately, state before conversation is kept in the Cookie of client, client and another server are set up after new session, the Cookie that it is preserved sends to described another server, what in Cookie, record is the real-time status of session before previous server is interrupted, described another server is received after this Cookie, can adopt the record in Cookie that the state of oneself is reset to the state before aforementioned conversation, interrupted like this session is just by seamless recovery.
According to one embodiment of present invention, described server is to be arranged in server pools system, and wherein said server pools system comprises:
Server pools: server pools has identical function by one group, and be unified the server composition that management is got up, each server pools is all used unique pond name as sign;
Pond device: be the management equipment of server pools, be responsible for a virtual server pools of multiple servers composition, and the running status of each station server is monitored in real time and gathered; Provide pond name analysis function, to can allow user facilitate accessing server simultaneously;
Client: the client computer in access services device pond.
According to one embodiment of present invention, described pond device comprises: server registers module, server state monitoring module, pond name analysis module, pond device information synchronization module and interruption processing module; Wherein server registers module is for registering the information of each server, server state monitoring module is for monitoring the running status of each server, and judge that whether each server is in malfunction, server domain name parsing module is for resolving the domain name of each server, pond device information synchronization module is for the information of synchronous each pond device, and interruption processing module is used for controlling pond device when server interrupts and selects the normal server of another one.
The invention provides a kind of shared method that realizes operation condition of server by Cookie, after server breaks down, Cookie can be adapter server a kind of approach that returns to the state before fault is provided, thereby realizes the level and smooth adapter (being seamless fault recovery) of fault.Cookie is kept in client computer, can not bring extra burden to server, and efficiency is high.
[accompanying drawing explanation]
Fig. 1 is the structural representation of server pools system of the present invention.
Fig. 2 is the workflow schematic diagram of the fault-tolerance approach that realizes the seamless recovery of server failure of the present invention.
[embodiment]
Alleged " embodiment " or " embodiment " refers to special characteristic, structure or the characteristic that can be contained at least one implementation of the present invention herein.Different local in this manual " in one embodiment " that occur not all refer to same embodiment, neither be independent or the embodiment mutually exclusive with other embodiment optionally.
Refer to shown in Fig. 1, server pools system of the present invention comprises:
Server pools: server pools has identical function by one group, and be unified the server composition that management is got up, each server pools is all used unique pond name as sign;
Pond device: be the management equipment of server pools, be responsible for a virtual server pools of multiple servers composition, and the running status of each station server is monitored in real time and gathered; Provide pond name analysis function, to can allow user facilitate accessing server simultaneously;
Client: the client computer in access services device pond.
The server that many of the present invention have same services function forms a server pools in logic according to pond name, server pools is managed and is monitored by Chi Huaqi, user is by name access services device pond, pond, first at device place, pond, carry out pond name analysis, then according to analysis result, the directly concrete server of access, without by any transferring equipment, thereby has eliminated the flow bottleneck that transferring equipment may cause.
Pond of the present invention device comprises: server registers module, server state monitoring module, pond name analysis module, pond device information synchronization module and interruption processing module.Wherein server registers module is for registering the information of each server, server state monitoring module is for monitoring the running status of each server, and judge that whether each server is in malfunction, server domain name parsing module is for resolving the domain name of each server, pond device information synchronization module is for the information of synchronous each pond device, and interruption processing module is used for controlling pond device when server interrupts and selects the normal server of another one.
Refer to shown in Fig. 2, when one of them server breaks down, while needing switching server, the present invention adopts Cookie mechanism, realizes the Save and restore of session real-time status.Concrete technical scheme is as follows:
Refer to shown in Fig. 2, as user C access services device A and set up after session S, server A is recorded in the real-time running state of session S among Cookie according to certain time interval, and this Cookie is sent to client computer C by session S, client computer C receives after Cookie, is kept in client computer; Server A will be recorded in new real-time status in cookie according to certain time interval constantly, and according to certain time interval, send to client computer constantly, client computer often receives a new Cookie, just with new Cookie, replace old Cookie, to keep the real-time of Cookie content.
After server A breaks down, the session S that this failed server A and client computer C set up also interrupts immediately, state before session S interrupts is kept in the Cookie of client computer C, client computer C and server B are set up after new session, the Cookie that it is preserved sends to server B, what in Cookie, record is the real-time status of session S before server A is interrupted, server B is received after this Cookie, can adopt the record in Cookie that the state of oneself is reset to the state before session S interrupts, interrupted like this session has just been recovered by seamless.
The invention provides a kind of shared method that realizes operation condition of server by Cookie, after server breaks down, Cookie can be adapter server a kind of approach that returns to the state before fault is provided, thereby realizes the level and smooth adapter (being seamless fault recovery) of fault.
Cookie is kept in client computer, can not bring extra burden to server, and efficiency is high.
Above-mentioned explanation has fully disclosed the specific embodiment of the present invention.It is pointed out that and be familiar with the scope that any change that person skilled in art does the specific embodiment of the present invention does not all depart from claims of the present invention.Correspondingly, the scope of claim of the present invention is also not limited only to previous embodiment.
Claims (3)
1. a fault-tolerance approach that realizes the seamless recovery of server failure, it comprises:
When client-access server and set up after session, server is recorded in the real-time running state of session among Cookie according to certain time interval, and this Cookie is sent to client by session, client computer C receives after Cookie, is kept in client; Server will be recorded in new real-time status in cookie according to certain time interval constantly, and according to certain time interval, send to client constantly, client often receives a new Cookie, just with new Cookie, replace old Cookie, to keep the real-time of Cookie content;
After server breaks down, the session that this failed server and aforementioned client are set up is also interrupted immediately, state before conversation is kept in the Cookie of client, client and another server are set up after new session, the Cookie that it is preserved sends to described another server, what in Cookie, record is the real-time status of session before previous server is interrupted, described another server is received after this Cookie, can adopt the record in Cookie that the state of oneself is reset to the state before aforementioned conversation, interrupted like this session is just by seamless recovery.
2. the fault-tolerance approach that realizes the seamless recovery of server failure as claimed in claim 1, is characterized in that: described server is to be arranged in server pools system, and wherein said server pools system comprises:
Server pools: server pools has identical function by one group, and be unified the server composition that management is got up, each server pools is all used unique pond name as sign;
Pond device: be the management equipment of server pools, be responsible for a virtual server pools of multiple servers composition, and the running status of each station server is monitored in real time and gathered; Provide pond name analysis function, to can allow user facilitate accessing server simultaneously;
Client: the client computer in access services device pond.
3. the fault-tolerance approach that realizes the seamless recovery of server failure as claimed in claim 2, is characterized in that: described pond device comprises: server registers module, server state monitoring module, pond name analysis module, pond device information synchronization module and interruption processing module; Wherein server registers module is for registering the information of each server, server state monitoring module is for monitoring the running status of each server, and judge that whether each server is in malfunction, server domain name parsing module is for resolving the domain name of each server, pond device information synchronization module is for the information of synchronous each pond device, and interruption processing module is used for controlling pond device when server interrupts and selects the normal server of another one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210393716.3A CN103731292A (en) | 2012-10-16 | 2012-10-16 | Fault-tolerant method enabling server to realize fault seamless recovery |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210393716.3A CN103731292A (en) | 2012-10-16 | 2012-10-16 | Fault-tolerant method enabling server to realize fault seamless recovery |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103731292A true CN103731292A (en) | 2014-04-16 |
Family
ID=50455227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210393716.3A Pending CN103731292A (en) | 2012-10-16 | 2012-10-16 | Fault-tolerant method enabling server to realize fault seamless recovery |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103731292A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453567A (en) * | 2016-10-18 | 2017-02-22 | 合肥浮点信息科技有限公司 | Anti-interruption storage processing system in communication network |
CN107005590A (en) * | 2015-01-08 | 2017-08-01 | 华为技术有限公司 | Fault-tolerant content download system |
CN109408300A (en) * | 2018-11-13 | 2019-03-01 | 红芯时代(北京)科技有限公司 | A kind of cloud browser high availability method, system and its apparatus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102437933A (en) * | 2012-01-04 | 2012-05-02 | 无锡云捷科技有限公司 | Fault tolerance system and method of server |
CN102521063A (en) * | 2011-11-30 | 2012-06-27 | 广东电子工业研究院有限公司 | Shared storage method suitable for migration and fault tolerance of virtual machine |
CN102662795A (en) * | 2012-03-20 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Metadata fault-tolerant recovery method in distributed storage system |
-
2012
- 2012-10-16 CN CN201210393716.3A patent/CN103731292A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521063A (en) * | 2011-11-30 | 2012-06-27 | 广东电子工业研究院有限公司 | Shared storage method suitable for migration and fault tolerance of virtual machine |
CN102437933A (en) * | 2012-01-04 | 2012-05-02 | 无锡云捷科技有限公司 | Fault tolerance system and method of server |
CN102662795A (en) * | 2012-03-20 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Metadata fault-tolerant recovery method in distributed storage system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107005590A (en) * | 2015-01-08 | 2017-08-01 | 华为技术有限公司 | Fault-tolerant content download system |
US10484481B2 (en) | 2015-01-08 | 2019-11-19 | Huawei Technologies Co., Ltd. | Fault tolerant, content download system |
CN106453567A (en) * | 2016-10-18 | 2017-02-22 | 合肥浮点信息科技有限公司 | Anti-interruption storage processing system in communication network |
CN109408300A (en) * | 2018-11-13 | 2019-03-01 | 红芯时代(北京)科技有限公司 | A kind of cloud browser high availability method, system and its apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104506357B (en) | A kind of high-availability cluster node administration method | |
CN102231681B (en) | High availability cluster computer system and fault treatment method thereof | |
CN102394774B (en) | Service state monitoring and failure recovery method for controllers of cloud computing operating system | |
CN105095001B (en) | Virtual machine abnormal restoring method under distributed environment | |
CN102355366B (en) | Member-stacking device and method for managing member-stacking device at split stacking moment | |
CN105302661A (en) | System and method for implementing virtualization management platform high availability | |
CN101237315A (en) | A synchronous detection and failure separation method for dual control high-availability system | |
CN102364448A (en) | Fault-tolerant method for computer fault management system | |
CN103036719A (en) | Cross-regional service disaster method and device based on main cluster servers | |
CN103457775A (en) | High-availability virtual machine pooling management system based on roles | |
CN101873223A (en) | N+M service backup mechanism based on IP switching | |
CN106789306A (en) | Restoration methods and system are collected in communication equipment software fault detect | |
CN104317803A (en) | Data access structure and method of database cluster | |
CN106656589A (en) | Server dual hot backup system | |
CN108469996A (en) | A kind of system high availability method based on auto snapshot | |
CN106407045A (en) | Data disaster recovery method and system, and server virtualization system | |
CN105095008A (en) | Distributed task fault redundancy method suitable for cluster system | |
WO2012068787A1 (en) | Data synchronization method and device | |
CN106294795A (en) | A kind of data base's changing method and system | |
CN103095837A (en) | Method achieving lustre metadata server redundancy | |
CN105589756A (en) | Batch processing cluster system and method | |
CN103731292A (en) | Fault-tolerant method enabling server to realize fault seamless recovery | |
CN105490847B (en) | A kind of private cloud storage system interior joint failure real-time detection and processing method | |
CN105068763A (en) | Virtual machine fault-tolerant system and method for storage faults | |
CN101442437B (en) | Method, system and equipment for implementing high availability |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140416 |