CN103546500A - Method and system for switching servers - Google Patents
Method and system for switching servers Download PDFInfo
- Publication number
- CN103546500A CN103546500A CN201210238656.8A CN201210238656A CN103546500A CN 103546500 A CN103546500 A CN 103546500A CN 201210238656 A CN201210238656 A CN 201210238656A CN 103546500 A CN103546500 A CN 103546500A
- Authority
- CN
- China
- Prior art keywords
- server
- listening port
- response message
- port handle
- service
- 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
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and a system for switching servers. The method includes that a first server transmits a listening port handle request to a second server which provides service at the moment; the first server receives an acknowledgment message from the second server; the second server continues providing the service if the acknowledgment message is a failure acknowledgment message; the second server transfers a listening port handle if the acknowledgment message is a success acknowledgment message; the second server completely processes a stock request, the stops serving and is withdrawn; the first server acquires the listening port handle from the acknowledgment message; the first server performs I/O (input/output) operation on the acquired listening port handle; the first server provides service. The method and the system have the advantage that the servers can be switched over by the aid of the method and the system.
Description
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and system of switching server.
Background technology
When carrying out web server upgrading, conventionally adopt following two kinds of modes:
First kind of way is: web server must first stop the web server of early version before upgrading, and the server version then more renewing is restarted new server after replacing.In this case, in the time consuming at escalation process, cannot provide web services to user, can cause the interruption of regular traffic.
The second way is: the web server of early version, after receiving specific Event triggered, starts the web server of redaction, and in this case, the web server of redaction has been inherited all features and property value and the data of the web server of early version.Although this technology can guarantee the operation of web server and uninterruptedly can't cause the interruption of regular traffic, contain following risk:
1. the web server of redaction can be carried out unconfined operation to all data of the web server of early version and resource, likely can have influence on the behavior of original business, has increased the uncertain risk of business conduct.
2. if the web server of some special resource redactions that the web server of early version has is not used, the web server of redaction also must be carried out special processing to it, otherwise can cause the even leakage of the waste of system resource.
3. the web server of redaction must be familiar with the web server exploitation details of early version in exploitation with aspect safeguarding, the relevance of new early version web server is strengthened.Increased the development and maintenance cost of redaction server.
Summary of the invention
In view of this, the invention provides a kind of method and system of switching server, for carrying out Server switching.
The invention provides following technical scheme:
1. a method for switching server, is characterized in that, described method comprises:
First server is to providing the second server of service to send listening port handle request;
First server receives the response message from second server;
Failed response message if, second server continues to provide service;
Successful response message if,
Second server is sold listening port handle;
Second server stops serving and exiting after handling storage request;
First server is obtained listening port handle from response message;
First server is carried out I/O operation to obtained listening port handle;
First server provides service.
2. the method as described in technical scheme 1, is characterized in that, the first and second servers are the server based on ICP/IP protocol.
3. the method as described in technical scheme 1, is characterized in that, described the first and second servers are web server, ftp server, TELNET server or streaming media server.
4. the method as described in one of technical scheme 1-3, is characterized in that, first server when receiving the replying of failure, failed regeneration information.
5. a system for switching server, is characterized in that, described system comprises first server and second server, wherein
First server is to providing the second server of service to send listening port handle request;
First server receives the response message from second server;
Failed response message if, second server continues to provide service;
Successful response message if,
Second server is sold listening port handle;
Second server stops serving and exiting after handling storage request;
First server is obtained listening port handle from response message;
First server is carried out I/O operation to obtained listening port handle;
First server provides service.
6. the system as described in technical scheme 5, is characterized in that, the first and second servers are the server based on ICP/IP protocol.
7. the system as described in technical scheme 6, is characterized in that, the first and second servers are web server, ftp server, TELNET server or streaming media server.
8. the system as described in one of technical scheme 5-7, is characterized in that, first server when receiving the replying of failure, failed regeneration information.
Utilize method and system of the present invention, can realize the switching of server.That in addition, utilizes that the present invention can also realize web server, ftp server, TELNET server, streaming media server does not shut down upgrading.
Accompanying drawing explanation
Fig. 1 is the method according to switching server of the present invention; And
Fig. 2 is the system according to switching server of the present invention.
Embodiment
Below in conjunction with accompanying drawing, describe the preferred embodiments of the present invention in detail, identical reference number represents identical element in the accompanying drawings.
Fig. 1 is according to the method for the switching server of this aspect.Fig. 2 is the system according to switching server of the present invention.As shown in the figure, system according to the present invention comprises first server 1 and second server 2.This first server 1 and second server 2 are the server based on ICP/IP protocol, for example, can be web server, ftp server, TELNET server, streaming media server.
In step 101, first server 1 is to providing the second server 2 of service to send listening port handle request.
In step 102, the response message that first server 1 receives from second server 2.
In step 103, first server 1 determines whether this response message is successful response message, if YES, performs step 104, otherwise performs step 105
In step 104, second server 2 is sold listening port handle; Second server 2 stops serving and exiting after handling storage request; First server 1 is obtained listening port handle from response message; The listening port handle that 1 pair of first server is obtained carries out I/O operation; First server 1 provides service.
In step 105, second server 2 continues to provide service.Alternatively, first server 1 failed regeneration information.
Thus, utilize method and system of the present invention, can be not shutting down, from second server, be switched to first server non-interrupting service in the situation that.Furthermore; for example, when first server server (the being web server) second server that is redaction is legacy version server; realized do not shut down, the server updating of non-interrupting service, avoided because server updating need to stop the web server of legacy version, causing in prior art the situation of service disconnection.
Secondly, resource security.Thereby the present invention has successfully avoided in the second way of prior art, the web server of two versions of the old and new is to the succession of system resource and authority and share the fail safe that the potential safety hazard brought has improved system.
The 3rd, service security.The present invention has successfully avoided the web server of redaction to having the operation of business in the web server of early version, has avoided the business operation inconsistency causing because of system upgrade likely occurring.
The 4th, exploitation is simple.The present invention has successfully avoided the exploitation of the web server of redaction must know the ins and outs problem of the web server exploitation of early version, has effectively reduced the development and maintenance cost of redaction server.
In view of these instructions, those of ordinary skill in the art will easily expect other embodiments of the invention, combination and modification.Therefore,, when reading in conjunction with above-mentioned explanation and accompanying drawing, the present invention is only defined by the claims.
Claims (8)
1. a method for switching server, is characterized in that, described method comprises:
First server is to providing the second server of service to send listening port handle request;
First server receives the response message from second server;
Failed response message if, second server continues to provide service;
Successful response message if,
Second server is sold listening port handle;
Second server stops serving and exiting after handling storage request;
First server is obtained listening port handle from response message;
First server is carried out I/O operation to obtained listening port handle;
First server provides service.
2. the method for claim 1, is characterized in that, the first and second servers are the server based on ICP/IP protocol.
3. the method for claim 1, is characterized in that, described the first and second servers are web server, ftp server, TELNET server or streaming media server.
4. the method as described in one of claim 1-3, is characterized in that, first server when receiving the replying of failure, failed regeneration information.
5. a system for switching server, is characterized in that, described system comprises first server and second server, wherein
First server is to providing the second server of service to send listening port handle request;
First server receives the response message from second server;
Failed response message if, second server continues to provide service;
Successful response message if,
Second server is sold listening port handle;
Second server stops serving and exiting after handling storage request;
First server is obtained listening port handle from response message;
First server is carried out I/O operation to obtained listening port handle;
First server provides service.
6. system as claimed in claim 5, is characterized in that, the first and second servers are the server based on ICP/IP protocol.
7. system as claimed in claim 6, is characterized in that, the first and second servers are web server, ftp server, TELNET server or streaming media server.
8. the system as described in one of claim 5-7, is characterized in that, first server when receiving the replying of failure, failed regeneration information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210238656.8A CN103546500A (en) | 2012-07-11 | 2012-07-11 | Method and system for switching servers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210238656.8A CN103546500A (en) | 2012-07-11 | 2012-07-11 | Method and system for switching servers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103546500A true CN103546500A (en) | 2014-01-29 |
Family
ID=49969547
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210238656.8A Pending CN103546500A (en) | 2012-07-11 | 2012-07-11 | Method and system for switching servers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103546500A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461628A (en) * | 2014-12-09 | 2015-03-25 | 珠海迈科智能科技股份有限公司 | Method and device for controlling updating of server programs |
CN105187236A (en) * | 2015-08-12 | 2015-12-23 | 广东睿江科技有限公司 | Network traffic transfer method |
CN105677433A (en) * | 2016-03-15 | 2016-06-15 | 深圳创维-Rgb电子有限公司 | Hot upgrading method and device for server program |
CN106919418A (en) * | 2017-01-22 | 2017-07-04 | 北京奇艺世纪科技有限公司 | The method and device of the quick rollback of application on site |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101572709A (en) * | 2009-06-01 | 2009-11-04 | 杭州华三通信技术有限公司 | Switching method, system, server and client device of socket connection |
-
2012
- 2012-07-11 CN CN201210238656.8A patent/CN103546500A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101572709A (en) * | 2009-06-01 | 2009-11-04 | 杭州华三通信技术有限公司 | Switching method, system, server and client device of socket connection |
Non-Patent Citations (2)
Title |
---|
张敏狄,郭裕顺: "分布式网络设备的业务不中断软件升级系统设计", 《计算机系统应用》 * |
杨晓芬,王永会,刘轶: "实时数据库系统双机热备机制设计与实现", 《计算机工程与应用》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461628A (en) * | 2014-12-09 | 2015-03-25 | 珠海迈科智能科技股份有限公司 | Method and device for controlling updating of server programs |
CN105187236A (en) * | 2015-08-12 | 2015-12-23 | 广东睿江科技有限公司 | Network traffic transfer method |
CN105187236B (en) * | 2015-08-12 | 2019-01-15 | 广东睿江云计算股份有限公司 | A kind of method of network flow migration |
CN105677433A (en) * | 2016-03-15 | 2016-06-15 | 深圳创维-Rgb电子有限公司 | Hot upgrading method and device for server program |
CN106919418A (en) * | 2017-01-22 | 2017-07-04 | 北京奇艺世纪科技有限公司 | The method and device of the quick rollback of application on site |
CN106919418B (en) * | 2017-01-22 | 2020-11-27 | 北京奇艺世纪科技有限公司 | Method and device for quickly rolling back on-line application |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11526348B2 (en) | Detecting anomalies online using controller processing activity | |
US8910172B2 (en) | Application resource switchover systems and methods | |
US9753954B2 (en) | Data node fencing in a distributed file system | |
CN103124275B (en) | A kind of method and apparatus obtaining file | |
CN102195817B (en) | Software upgrading method and device and software rollback method and device | |
CN102622253A (en) | Singlechip and method for upgrading singlechip on line | |
CN105897461A (en) | Multi-system OTA upgrading method and multi-system equipment | |
US10469620B2 (en) | Method for transferring a new software version to at least one electricity meter via a communication network | |
CN103546500A (en) | Method and system for switching servers | |
CN103268183A (en) | Processing method and device for information report | |
CN104281477A (en) | Automatic software deployment method for computer system | |
US20080172494A1 (en) | Method and apparatus for determining communication protocol | |
CN105786636A (en) | System repairing method and device | |
CN112131041A (en) | Method, apparatus and computer program product for managing data placement | |
US20090319699A1 (en) | Preventing Loss of Access to a Storage System During a Concurrent Code Load | |
CN104182296A (en) | Data processing system, data processing apparatus, and storage medium | |
JP2010067115A (en) | Data storage system and data storage method | |
CN103713911A (en) | Single version upgrading method and single version upgrading device | |
JP4025650B2 (en) | Method for updating network server program, related system and software | |
US20100268784A1 (en) | Data synchronization system and method | |
JP5499484B2 (en) | Program correction system, terminal device, server device, program correction method, error detection program, and management program | |
CN102752365A (en) | Method and device for processing information | |
CN105338398A (en) | Set top box management method, device and system | |
CN103023697B (en) | A kind of management method, Apparatus and system of array multipath | |
CN107678928B (en) | Application program processing method and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140129 |