CN104426703B - A kind of server updating method and system - Google Patents
A kind of server updating method and system Download PDFInfo
- Publication number
- CN104426703B CN104426703B CN201310413201.XA CN201310413201A CN104426703B CN 104426703 B CN104426703 B CN 104426703B CN 201310413201 A CN201310413201 A CN 201310413201A CN 104426703 B CN104426703 B CN 104426703B
- Authority
- CN
- China
- Prior art keywords
- server
- client
- notice
- reconnection
- session
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention relates to a kind of server updating methods, including:Standby server carries out program data updating, and transfer server is notified after the completion of upgrading;The standby server is directed toward in address of service by transfer server after receiving notice;Transfer server receives the access request that client is initiated, and forwards it to the corresponding standby server in the address of service.In addition, further including a kind of server updating system.Above-mentioned server updating method and system improves the convenience of server updating operation.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of server updating method and system.
Background technology
With the development of network technology, in order to have better experience, each manufacturer confused when user being allowed to surf the Internet in internet
The confused exploitation dynamics increased to network technology, therefore often server is updated.
Currently, update server technology, which needs hardness pause to be even switched off Web portal, could realize the upgrading of server,
Thus, cause user that can not surf the Internet in server updating, the experience of user has been seriously affected.Most of manufacturer is in order to protect
The experience for demonstrate,proving user, maintenance upgrade when being typically chosen morning user less, but so again so that the newer staff of upgrading
The overtime work in morning is needed to be upgraded, not only the time limits to, and also increases the triviality of upgrade job.Therefore, traditional skill
The convenience of server updating method operation in art is insufficient.
Invention content
Based on this, it is necessary to provide a kind of server updating method for the convenience that can improve operation.
A kind of server updating method, the method includes:
Standby server carries out program data updating, and transfer server is notified after the completion of upgrading;
The standby server is directed toward in address of service by transfer server after receiving notice;
Transfer server receives the access request that client is initiated, and forwards it to the corresponding standby service in the address of service
Device.
The step of standby server is directed toward in address of service by the transfer server in one of the embodiments, is wrapped
It includes:
Transfer server changes configuration file, and the address of service in configuration file is changed to the network of the standby server
Address.
Further include after the step of transfer server receives notice in one of the embodiments,:
The transfer server sends upgrading to master server and finishes notice;
The master server receives after upgrading finishes notice, judge whether session corresponding with client if so,
Then reconnection notice is sent to the corresponding client of the session.
The master server sends the step that reconnection notifies to the corresponding client of the session in one of the embodiments,
Further include after rapid:
After the client receives the reconnection notice, request or displaying prompt letter are initiated the connection to the transfer server
Breath initiates the connection request after the reconnection instruction for obtaining input to the transfer server.
It is also wrapped after described the step of judging whether session corresponding with client in one of the embodiments,
It includes:
If in the presence of session corresponding with client, after detecting that the corresponding calculating task of the session is finished,
It executes to the corresponding client of the session and sends the step of reconnection notifies.
A kind of server updating system for the convenience that can improve operation is provided in addition, there is a need to.
A kind of server updating system, including standby server, transfer server, client and master server, wherein:
The standby server includes:
Program data updating module notifies the transfer server for carrying out program data updating after the completion of upgrading;
The transfer server includes:
Module is directed toward in address of service, for address of service to be directed toward the standby server after receiving notice;
Access request receiving module, the access request for receiving client initiation, forwards it to the address of service
Corresponding standby server.
The transfer server further includes in one of the embodiments,:
Address of service in configuration file is changed to described standby by configuration file modified module for changing configuration file
The network address of server.
The system also includes master servers in one of the embodiments, wherein:
Transfer server further includes:
Upgrade notification sending module finishes notice for sending upgrading to master server;
The master server includes:
Reconnection notifies sending module, for receiving after upgrading finishes notice, judges whether corresponding with client
Session;If so, sending reconnection notice to the corresponding client of the session.
The client includes in one of the embodiments,:
Reconnection notifies receiving module, and after receiving the reconnection notice, request is initiated the connection to the transfer server
Or displaying prompt message initiates the connection request after the reconnection instruction for obtaining input to the transfer server.
In one of the embodiments, it is characterized in that, the master server further includes:
Detection module executes after detecting that the corresponding calculating task of the session is finished to the session pair
The client answered sends reconnection notice.
Above-mentioned server updating method and system, by increasing a transfer service between master server and standby server
The master server that user never upgrades effectively is forwarded to the standby server upgraded by device, transfer server, is not influencing to use
The upgrading to server is completed at family in the case of normally surfing the Internet, improve the convenience of server updating operation.
Description of the drawings
Fig. 1 is the flow diagram of server updating method in one embodiment;
Fig. 2 is the structural schematic diagram of server updating system in one embodiment.
Specific implementation mode
As shown in Figure 1, in one embodiment, a kind of server updating method, this method comprises the following steps:
Step S102, standby server carry out program data updating, transfer server are notified after the completion of upgrading.
In the present embodiment, client connects transfer server, the corresponding master server of transfer server connection.Transfer
Server can forward data between master server and client.
The program data that standby server is upgraded refers to required data when standby server operation program, user's
Operation behavior generates or the data of modification are user data, is stored in independent database server, user data and program
Data are unrelated, and master server connects same database server with standby server.
Specifically, standby server can be by TCP connection to transfer server after being finished to the upgrading of associated program data
Send the notice that finishes of upgrading, notice transfer server this upgraded for the program file on server and finished.Further, should
It may include the IP address and port numbers of standby server in the notice that the upgrading that standby server is sent finishes.
Address of service is directed toward for server by step S104, transfer server after receiving notice.
In the present embodiment, transfer server receives the notice that the upgrading that standby server is sent finishes, and is carried from the notice
The network address for the standby server to be turned connecting, the network address is taken to may include IP address and port numbers of standby server etc..In
Turn server modification configuration file, by the address of service in configuration file by the network address change of master server for for server
Network address.
Step S106, transfer server receive the access request that client is initiated, it is corresponding to forward it to address of service
Standby server.
In the present embodiment, transfer server receives the access request that client is initiated, according in the configuration file of itself
Standby server address of service, forward the request to the corresponding standby server in address of service.Standby server receives client
Access request, and it is handled, returns to corresponding processing data and be transmitted to transfer server, then by transfer server
Client.
In one embodiment, after transfer server receives notice, it can also send what upgrading finished to master server
Notice.Master server receive transfer server upgrading finish notice after, judge to whether there is in master server and client
Hold corresponding session, and if it exists, then send reconnection notice to the corresponding client of session.
In the present embodiment, client receives reconnection and notifies and show prompt message;The reconnection that client obtains input refers to
It enables, access request is initiated to transfer server.
For example, during game server upgrades, user is connected to master server by transfer server and swims
Play, authorities' game are above-mentioned session.After standby server updating finishes, the notice that upgrading finishes is sent to transfer server,
It may include the IP address and port numbers of standby server in the notice.Transfer server receives what the upgrading that standby server is sent finished
Notice extracts the network address such as IP address and the port numbers of standby server, by the service in itself configuration file from the notice
The network address of standby server is revised as by the network address of original master server in address.Transfer server changes configuration file
Later, the notice that finish of upgrading can be sent to master server, the upgrading that master server receives transfer server finishes and notifies it
Afterwards, then judge whether also have user playing in master server(With the presence or absence of corresponding with client i.e. in master server
Session), if so, then sending reconnection notice to user.User can input weight after client receives reconnection notice
It even instructs, access request is initiated to transfer server.
Further, when master server detects the presence of session corresponding with client, then detecting that the session corresponds to
Calculating task be finished after, send reconnection notice to the corresponding client of session.Prompt is carried in reconnection notice
The reconnection of information and input instructs.For example, during game server upgrades, when master server is detecting the presence of user just
It is playing, that is, is detecting whether there is session corresponding with client, then the progress of authorities' game is being detected, that is, detected
Whether the corresponding calculating task of session is finished.When the game over of user authorities, master server no longer starts new one innings
Game, but reconnection notice is sent to client, it may include that " going game server has updated, please again in reconnection notice
Log in " prompt message.After client receives reconnection notice, it can show that the prompt message, user can pass through by dialog box
The button input reconnection instruction for confirming and logging in again is clicked, client can re-initiate access request.Transfer server is connecing
After receiving the access request that the client re-initiates, you can the access request is transmitted to by standby server according to address of service,
By the standby server process access request.
In another embodiment, it when master server detects the presence of session corresponding with client, is then corresponded to session
Client send reconnection notice.After client receives reconnection notice, request is initiated the connection to transfer server again automatically.
For example, playing when master server detects the presence of user, that is, detect whether to exist corresponding with client
Session, then to client send reconnection notice.Client receives reconnection notice, can be after authorities' conversation end from trend
Transfer server initiates access request.Transfer server is after receiving the connection request that the client re-initiates, you can with
Client re-establishes connection, and the access request that the client is subsequently initiated is transmitted to the corresponding standby service in address of service
Device, to by the standby server process access request.
It should be noted that when master server does not reconnect any client, terminate the process in master server, next time is standby
When server needs upgrading, in the enterprising line program file update of master server, that is, abovementioned steps S102 to S106 is repeated, you can
Under the premise of not influencing user's online, the upgrading of server is realized.
As shown in Fig. 2, in one embodiment, a kind of server updating system, including standby server 10, transfer server
20, client 30 and master server 40, wherein:
Include for server 10:
Program data updating module 102 notifies transfer server for carrying out program data updating after the completion of upgrading;
Transfer server 20 includes:
Module 204 is directed toward in address of service, and standby server is directed toward in address of service after notice for receiving;
Access request receiving module 208, the access request for receiving client initiation, forwards it to address of service pair
The standby server answered.
Transfer server 20 further includes in one of the embodiments,:
Address of service in configuration file is changed to standby clothes by configuration file modified module 202 for changing configuration file
The network address of business device.
In one of the embodiments,
Transfer server 20 further includes:
Upgrade notification sending module 206 finishes notice for sending upgrading to master server;
Master server 40 includes:
Reconnection notifies sending module 404, for receiving after upgrading finishes notice, judges whether corresponding with client
Session;If so, sending reconnection notice to the corresponding client of session.
Client 30 includes in one of the embodiments,:
Reconnection notifies receiving module 302, and after receiving reconnection notice, request or displaying are initiated the connection to transfer server
Prompt message initiates the connection request after the reconnection instruction for obtaining input to transfer server.
In one of the embodiments, it is characterized in that, master server 40 further includes:
Detection module 402 executes visitor corresponding to session after detecting that the corresponding calculating task of session is finished
Family end sends reconnection notice.
Above-mentioned server updating method and system, by increasing a transfer service between master server and standby server
The master server that user never upgrades effectively is forwarded to the standby server upgraded by device, transfer server, is not influencing to use
The upgrading to server is completed at family in the case of normally surfing the Internet, improve the convenience of server updating operation.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (6)
1. a kind of server updating method, the method includes:
Standby server carries out program data updating, notifies transfer server after the completion of upgrading, the transfer server can be in main clothes
It includes the network address of the standby server that data, the notice are forwarded between business device and client;
Transfer server, which receives, extracts the network address of the standby server after notice, and by the address of service in configuration file
It is changed to the network address of the standby server;
The transfer server sends upgrading to master server and finishes notice;
The master server receives after upgrading finishes notice, judges whether session corresponding with client;If so, to
The corresponding client of the session sends reconnection notice;
Transfer server receives the access request that client is initiated, and forwards it to the corresponding standby server in the address of service.
2. according to the method described in claim 1, it is characterized in that, the master server is sent out to the corresponding client of the session
Further include after the step of sending reconnection to notify:
After the client receives the reconnection notice, request or displaying prompt message are initiated the connection to the transfer server,
After the reconnection instruction for obtaining input, request is initiated the connection to the transfer server.
3. according to the method described in claim 1, it is characterized in that, described judge whether corresponding with client session
Further include after step:
If in the presence of session corresponding with client, after detecting that the corresponding calculating task of the session is finished, execute
The step of reconnection notifies is sent to the corresponding client of the session.
4. a kind of server updating system, which is characterized in that including standby server, transfer server and client and main service
Device, wherein:
The standby server includes:
Program data updating module notifies the transfer server, in described for carrying out program data updating after the completion of upgrading
Turn server to forward data, the notice between master server and client to include the network address of the standby server;
The transfer server includes:
Module is directed toward in address of service, and the network address of the standby server is extracted after notice for receiving, and by configuration file
In address of service be changed to the network address of the standby server;
Access request receiving module, the access request for receiving client initiation forward it to the address of service and correspond to
Standby server;
Upgrade notification sending module finishes notice for sending upgrading to master server;
The master server includes:
Reconnection notifies sending module, for receiving after upgrading finishes notice, judges whether session corresponding with client;
If so, sending reconnection notice to the corresponding client of the session.
5. server updating system according to claim 4, which is characterized in that the client includes:
Reconnection notifies receiving module, and after receiving the reconnection notice, request or exhibition are initiated the connection to the transfer server
Show prompt message, after the reconnection instruction for obtaining input, request is initiated the connection to the transfer server.
6. server updating system according to claim 4, which is characterized in that the master server further includes:
Detection module executes corresponding to the session after detecting that the corresponding calculating task of the session is finished
Client sends reconnection notice.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310413201.XA CN104426703B (en) | 2013-09-11 | 2013-09-11 | A kind of server updating method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310413201.XA CN104426703B (en) | 2013-09-11 | 2013-09-11 | A kind of server updating method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104426703A CN104426703A (en) | 2015-03-18 |
CN104426703B true CN104426703B (en) | 2018-08-31 |
Family
ID=52974719
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310413201.XA Active CN104426703B (en) | 2013-09-11 | 2013-09-11 | A kind of server updating method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104426703B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134453B (en) * | 2018-02-09 | 2022-07-08 | 网宿科技股份有限公司 | Server configuration overloading method and server |
CN109447724A (en) * | 2018-09-13 | 2019-03-08 | 航天信息股份有限公司 | Billing method and system in a kind of local area network based on Golden Taxes disk |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101908980A (en) * | 2010-08-20 | 2010-12-08 | 中兴通讯股份有限公司 | Network management upgrading method and system |
CN102047643A (en) * | 2008-04-02 | 2011-05-04 | 国际商业机器公司 | Method for enabling faster recovery of client applications in the event of server failure |
CN102053982A (en) * | 2009-11-02 | 2011-05-11 | 阿里巴巴集团控股有限公司 | Method and equipment for managing database information |
CN102571900A (en) * | 2010-12-08 | 2012-07-11 | 中国电信股份有限公司 | System and method for implementing far-end real-time control |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7366734B2 (en) * | 2004-12-25 | 2008-04-29 | Oracle International Corporation | Enabling client systems to discover services accessible by remote procedure calls (RPC) on server systems |
-
2013
- 2013-09-11 CN CN201310413201.XA patent/CN104426703B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102047643A (en) * | 2008-04-02 | 2011-05-04 | 国际商业机器公司 | Method for enabling faster recovery of client applications in the event of server failure |
CN102053982A (en) * | 2009-11-02 | 2011-05-11 | 阿里巴巴集团控股有限公司 | Method and equipment for managing database information |
CN101908980A (en) * | 2010-08-20 | 2010-12-08 | 中兴通讯股份有限公司 | Network management upgrading method and system |
CN102571900A (en) * | 2010-12-08 | 2012-07-11 | 中国电信股份有限公司 | System and method for implementing far-end real-time control |
Also Published As
Publication number | Publication date |
---|---|
CN104426703A (en) | 2015-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105407172B (en) | A kind of router long-distance management system based on http protocol | |
JP2012123591A5 (en) | ||
EP2615758B1 (en) | Fault-tolerant method for online game interaction logic and fault-tolerant system and client for online games | |
CN105204880B (en) | computer system and setting method of basic input and output system | |
JP2006099780A5 (en) | ||
RU2012132396A (en) | METHOD AND DEVICE FOR DETERMINING A COMMUNICATION PURPOSE AND ASSISTING COMMUNICATIONS BASED ON THE OBJECT DESCRIPTOR | |
CN104052769B (en) | It is a kind of to mobile terminal apply comprising resource updates methods, devices and systems | |
US20190007562A1 (en) | System and information processing method | |
GB0509904D0 (en) | Method, apparatus and computer program for facilitating communication between a client application and a server application | |
CN104426703B (en) | A kind of server updating method and system | |
JP2005115936A (en) | Web browser control for customer support | |
CN102662467B (en) | Method and device for instruction control in remote assistance process | |
JP2007041089A (en) | Information terminal and speech recognition program | |
CN109194742B (en) | Virtual machine console connection method and device and storage medium | |
CN104090805B (en) | A kind of method, equipment and system for updating terminal operating system | |
CN105704707A (en) | Slave equipment and air upgrading method thereof | |
CN104252232B (en) | Command control method and device during remote assistance | |
CN107015874B (en) | Data transmission control method, device and terminal | |
CN107018140A (en) | A kind of authority control method and system | |
WO2018000635A1 (en) | Interface configuration method and device | |
WO2016161968A1 (en) | Equipment for security information interaction | |
CN106815006A (en) | Page invocation method, device and page management server | |
WO2009007611A3 (en) | Method for secure communication between a terminal and a localisation assistance server | |
CN103379023A (en) | Instant messaging method and instant messaging client-side | |
JP6976382B2 (en) | Network systems, servers, programs, and terminals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20161114 Address after: 518000 Guangdong city of Shenzhen province Nanshan District Xili liuxiandong Zhongshan Road No. 1001 TCL Science Park R & D building D3 8 storey building A room 801 unit Applicant after: Shenzhen City, Oriental Boya Technology Co. Ltd. Address before: 518057 Guangdong city of Shenzhen province Nanshan District Zhongshan Road No. 1001 TCL Industrial Park International City building D3 9B - C E Applicant before: Burson Marsteller network game development (Shenzhen) Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |