CN104023086A - WEB cluster code updating method, device and system - Google Patents

WEB cluster code updating method, device and system Download PDF

Info

Publication number
CN104023086A
CN104023086A CN201410291222.3A CN201410291222A CN104023086A CN 104023086 A CN104023086 A CN 104023086A CN 201410291222 A CN201410291222 A CN 201410291222A CN 104023086 A CN104023086 A CN 104023086A
Authority
CN
China
Prior art keywords
web container
code
state
web
container
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
CN201410291222.3A
Other languages
Chinese (zh)
Other versions
CN104023086B (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201410291222.3A priority Critical patent/CN104023086B/en
Publication of CN104023086A publication Critical patent/CN104023086A/en
Application granted granted Critical
Publication of CN104023086B publication Critical patent/CN104023086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a WEB cluster code updating method, device and system. The WEB cluster code updating method is characterized by comprising the following steps: transmitting an inspection request to a WEB vessel in a WEB cluster through a front proxy server; judging whether the WEB vessel is in a code updating state or not according to an inspection result fed back by the WEB vessel; and updating a code of the WEB vessel under the situation that the WEB vessel is in an updatable state but the code is not updated. By utilizing the embodiment, the configuration of the front proxy server is unnecessary to change manually twice, the operating step for updating the code of the WEB cluster can be reduced, and accidents caused by improper operation of manually changing the configuration of the front proxy server in the WEB cluster code updating process can be avoided.

Description

A kind of WEB cluster code update method, Apparatus and system
Technical field
The present invention relates to field of computer technology, particularly a kind of WEB cluster code update method, Apparatus and system.
Background technology
WEB cluster is to be interconnected and a kind of server architecture of forming by many WEB server hosts, in each WEB server host, contain one or more WEB containers, WEB container is a kind of service call canonical frame, for WEB application program assembly provides a running environment, code portions is deployed in WEB container.In order to improve the fail safe of WEB server host in WEB cluster and the load balancing of WEB server host; conventionally can in WEB cluster, increase front-end proxy agent server; front-end proxy agent server is used for receiving the request on Internet, then request is transmitted to the WEB container in the WEB server of WEB cluster.
The method of WEB cluster code update in prior art, normally: all front-end proxy agent server configurations of artificial first modification, to realize, do not have Internet request msg to enter into the WEB container that need to carry out code update, after this WEB container code update completes, the configuration of all front-end proxy agent servers of artificial modification again, enters into this WEB container to realize Internet request msg.
Apply above-mentioned WEB cluster code update method, every renewal part WEB container, all needs to revise artificially for twice all front-end proxy agent server configurations, in the situation that front-end proxy agent server is more, complex operation step, and operate careless slightlyly, easily carry out accident.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of WEB cluster code update method and system, reduces the operating procedure of WEB cluster code update, avoids in WEB cluster code update process the generation of accident.
For achieving the above object, the embodiment of the invention discloses a kind of WEB cluster code update method, be applied to front-end proxy agent server, comprising:
Target WEB container in WEB cluster sends the request of inspection;
The check result feeding back to according to target WEB container, judges that whether target WEB container is in the renewable state of code, and wherein, WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code;
At target WEB container, in the renewable state of code in the situation that, detect whether target WEB container is carried out to more fresh code, if not, target WEB container is carried out to code update, if so, continue target WEB container code to upgrade;
At target WEB container in the non-renewable state of code in the situation that, judge whether target WEB container code upgrades, if not, to target WEB container transmission state, upgrade instruction, indicating target WEB container changes to the renewable state of code by state, continue to carry out and to judge the whether operating procedure in the renewable state of code of target WEB container.
Preferably, described target WEB container in WEB cluster sends the request of inspection, comprising:
Real-time target WEB container in WEB cluster sends the request of inspection;
Or
According to default transmission, detect the requesting interval time, the target WEB container in WEB cluster sends the request of inspection.
For achieving the above object, the embodiment of the invention discloses a kind of WEB cluster code update method, be applied to WEB container, comprising:
The inspection request that receiving front-end proxy server sends;
After receiving the inspection request of front-end proxy agent server transmission, check the current status of self WEB container, wherein, WEB container current state comprises: the renewable state of code and the non-renewable state of code, and WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code;
After having checked, by self WEB container inspection result feedback to front-end proxy agent server;
After front-end proxy agent server completes described WEB container code update, the state of described WEB container is set to the non-renewable state of code.
Preferably, described method also comprises:
At described WEB container code, not more under news, the state that receiving front-end proxy server sends upgrades instruction;
Receiving after state that front-end proxy agent server sends upgrades instruction, the state of self WEB container is set to the renewable state of code;
After setting completes, the check result of self WEB container current state is fed back to front-end proxy agent server.
Preferably, describedly after receiving the inspection request that front-end proxy agent server sends, check the current status of self WEB container, comprising:
After receiving the inspection request of front-end proxy agent server transmission, check in self WEB container WEB server of living in and whether exist and represent if existed, to represent that this WEB container is in the renewable state of code by the file of this WEB container in the renewable state of code.
Preferably, the state of described self WEB container is set to the renewable state of code, comprising:
In self WEB container WEB server of living in, create and represent the file of this WEB container in the renewable state of code;
The state of described self WEB container is set to the non-renewable state of code, comprising:
Delete in self WEB container WEB server of living in and represent the file of this WEB container in the renewable state of code.
For achieving the above object, the embodiment of the invention discloses a kind of WEB cluster code update device, be applied to front-end proxy agent server, comprising: check that request sending module, judge module, code update module and state upgrade instruction sending module,
Check request sending module, for the target WEB container to WEB cluster, send the request of inspection;
Judge module, for the check result feeding back to according to target WEB container, judges that whether target WEB container is in the renewable state of code, and wherein, WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code;
Code update module, the in the situation that of being, detects whether target WEB container is carried out to more fresh code for judgment result is that at judge module, if not, target WEB container is carried out to code update, if so, continue described target WEB container code to upgrade;
State upgrades instruction sending module, for at judge module the determination result is NO in the situation that, judge whether target WEB container code upgrades, if not, to described target WEB container transmission state, upgrade instruction, indicating target WEB container changes to the renewable state of code by state, triggers judge module.
Preferably, described inspection request sending module, specifically for:
Real-time target WEB container in WEB cluster sends the request of inspection;
Or
According to default transmission, detect the requesting interval time, the target WEB container in WEB cluster sends the request of inspection.
For achieving the above object, the embodiment of the invention discloses a kind of WEB cluster code update system, comprising: WEB container and the above-mentioned WEB cluster code update device that is applied to front-end proxy agent service,
Described WEB container comprises: check request receiving module, status checkout module, the first check result feedback module and the first state setting module,
Check request receiving module, the inspection request sending for receiving front-end proxy server;
Status checkout module, for after receiving the inspection request of front-end proxy agent server transmission, check the current status of self WEB container, wherein, WEB container current state comprises: the renewable state of code and the non-renewable state of code, and WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code;
The first check result feedback module, after having checked, by self WEB container inspection result feedback to front-end proxy agent server;
The first state setting module, after described WEB container code update being completed at front-end proxy agent server, the state of described WEB container is set to the non-renewable state of code.
Preferably, described WEB container also comprises: state upgrades command reception module, the second state setting module and the second check result feedback module,
State upgrades command reception module, and at described WEB container code not more under news, the state that receiving front-end proxy server sends upgrades instruction;
The second state setting module, for receiving after state that front-end proxy agent server sends upgrades instruction, the state of self WEB container is set to the renewable state of code;
The second check result feedback module, after having arranged, feeds back to front-end proxy agent server by the check result of self WEB container current state.
Preferably, described status checkout module, specifically for:
After receiving the inspection request of front-end proxy agent server transmission, check in self WEB container WEB server of living in and whether exist and represent if existed, to represent that this WEB container is in the renewable state of code by the file of this WEB container in the renewable state of code.
Preferably, described the second state setting module, specifically for:
After the state that receives the transmission of front-end proxy agent server upgrades instruction, in self WEB container WEB server of living in, create and represent the file of this WEB container in the renewable state of code;
Described the first state setting module, specifically for:
After front-end proxy agent server completes described WEB container code update, delete in self WEB container WEB server of living in and represent the file of this WEB container in the renewable state of code.
As seen from the above technical solutions, the embodiment of the present invention provides a kind of WEB cluster code update method, Apparatus and system, and front-end proxy agent server sends to the WEB container in WEB cluster the request of inspection; The check result feeding back to according to WEB container, judges that whether WEB container is in the renewable state of code; At WEB container in the renewable state of code and do not carry out code update in the situation that, to WEB container fresh code more.Owing to not needing to revise artificially for twice all front-end proxy agent server configurations, therefore reduced the operating procedure of WEB cluster code update, and avoided in WEB cluster code update process, the configuration operation of artificial modification front-end proxy agent server is careless, the generation of the accident that may cause.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of a kind of WEB cluster code update method that is applied to front-end proxy agent server that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the first WEB cluster code update method that is applied to WEB container that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the second WEB cluster code update method that is applied to WEB container that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of WEB cluster code update device that is applied to front-end proxy agent server that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the first WEB cluster code update system that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the second WEB cluster code update system that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of WEB cluster code update method, Apparatus and system, and in this scheme, front-end proxy agent server sends to the target WEB container in WEB cluster the request of inspection; The check result feeding back to according to target WEB container, judges that whether target WEB container is in the renewable state of code; At target WEB container, in the renewable state of code in the situation that, detect whether target WEB container is carried out to more fresh code, if not, target WEB container is carried out to code update, if so, continue target WEB container code to upgrade; At target WEB container, in the non-renewable state of code in the situation that, judge whether target WEB container code upgrades, if not, to target WEB container transmission state, upgrade instruction, indicating target WEB container changes to the renewable state of code by state.
The inspection request that WEB container receiving front-end proxy server sends; After receiving the inspection request of front-end proxy agent server transmission, check the current status of self WEB container; After having checked, by self WEB container inspection result feedback to front-end proxy agent server; After front-end proxy agent server completes described WEB container code update, the state of described WEB container is set to the non-renewable state of code.
Below by specific embodiment, the present invention is described in detail.
The schematic flow sheet of a kind of WEB cluster code update method that is applied to front-end proxy agent server that Fig. 1 provides for the embodiment of the present invention, comprises the steps:
S101: the target WEB container in WEB cluster sends the request of inspection;
Front-end proxy agent server in the embodiment of the present invention is operated in the application layer in network osi model.
In actual applications, front-end proxy agent server can be in real time sends to the target WEB container in WEB cluster the request of inspection.
In actual applications, front-end proxy agent server can also detect the requesting interval time according to default transmission, and the target WEB container in WEB cluster sends the request of inspection.
Exemplary, suppose that it is 10MS that default transmission detects the requesting interval time, front-end proxy agent server sends to described target WEB container the request that once checks every 10MS.
S102: the check result feeding back to according to target WEB container, judge that whether target WEB container is in the renewable state of code, if so, carry out S103, if not, carry out S104;
Wherein, WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code.
S103: detect whether target WEB container is carried out to more fresh code, if so, carry out S105, if not, carry out S106;
S104: judge whether target WEB container code upgrades, if not, carry out S107 and S102;
S105: continue target WEB container code to upgrade;
S106: target WEB container is carried out to code update;
S107: upgrade instruction to target WEB container transmission state, indicating target WEB container changes to the renewable state of code by state.
Exemplary, supposing has a front-end proxy agent server and three WEB containers in WEB cluster, and three WEB containers are respectively WEB container a, WEB container b and WEB container c.
To upgrade the code of WEB container a, the present invention will be described in detail below.
Front-end proxy agent server in the embodiment of the present invention is operated in the application layer in network osi model.
Front-end proxy agent server sends to WEB container a the request of detection.Concrete, front-end proxy agent server can send to WEB container a the request of inspection in real time, also can detect the requesting interval time according to default transmission, to WEB container a, send the request of inspection, for example: it is 10MS that default transmission detects the requesting interval time, front-end proxy agent server sends to WEB container a the request that once checks every 10MS.
The check result feeding back to according to WEB container a, judges that whether WEB container a is in the renewable state of code;
If WEB container a is in the renewable state of code, front-end proxy agent server is no longer forwarded to Internet request msg in WEB container a, judge whether WEB container a to be carried out to code update, if current, WEB container a is carried out to code update, continue the renewal of WEB container a code, if current, WEB container a is not carried out to code update, WEB container a is carried out to code update.
If WEB container a is in the non-renewable state of code, judge whether WEB container a code upgrades, if do not upgraded, to WEB container a transmission state, upgrade instruction, indication WEB container a changes to the renewable state of code by state, continue to receive the check result that WEB container a feeds back to, the check result feeding back to according to WEB container a, judges that whether WEB container a is in the renewable state of code simultaneously.
Concrete, front-end proxy agent server can arrange a status indication for each the WEB container in WEB cluster, for example status indication is 0 expression WEB container in renewable but new state more not, status indication is 1 expression WEB container in renewable and new state more, status indication is 2 expression WEB containers in non-renewable and new state more not, and status indication is that 3 expression WEB containers are in unavailable renewal and upgrade completion status.
When front end proxy server detects WEB container a status indication and is 0, start WEB container a to carry out code update, by WEB container a status indication, be 1 simultaneously;
When front end proxy server detects WEB container a status indication and is 1, continue WEB container a to carry out code update, after code update completes, by WEB container a status indication, be 3;
When front end proxy server detects WEB container a status indication and is 2, to WEB container a transmission state, upgrade instruction, after WEB container a state has upgraded, WEB container a can be detected in the renewable state of code, but code does not upgrade, by WEB container a status indication, be now 0, start WEB container a to carry out code update, be 1 by WEB container a status indication simultaneously.
The present invention is embodiment illustrated in fig. 1 in application, do not need to revise artificially for twice all front-end proxy agent server configurations, reduced the operating procedure of WEB cluster code update, and avoided in WEB cluster code update process, the configuration operation of artificial modification front-end proxy agent server is careless, the generation of the accident that may cause.
The schematic flow sheet of the first WEB cluster code update method that is applied to WEB container that Fig. 2 provides for the embodiment of the present invention, comprises the steps:
S201: the inspection request that receiving front-end proxy server sends;
S202: after receiving the inspection request of front-end proxy agent server transmission, check the current status of self WEB container;
Wherein, WEB container current state comprises: the renewable state of code and the non-renewable state of code, WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code.
S203: after having checked, by self WEB container inspection result feedback to front-end proxy agent server;
S204: after front-end proxy agent server completes described WEB container code update, the state of described WEB container is set to the non-renewable state of code.
Exemplary, after the inspection request that WEB container a sends at receiving front-end proxy server, check the current status of self WEB container, concrete, can check in self WEB container WEB server of living in and whether exist and represent the file of this WEB container in the renewable state of code, if exist, represent that this WEB container is in the renewable state of code.After having checked, by self WEB container inspection result feedback to front-end proxy agent server.After front-end proxy agent server completes described WEB container code update, the file of this WEB container of expression in the renewable state of code deleted from the residing WEB server of this WEB container.
The present invention is embodiment illustrated in fig. 2 in application, do not need to revise artificially for twice all front-end proxy agent server configurations, reduced the operating procedure of WEB cluster code update, and avoided in WEB cluster code update process, the configuration operation of artificial modification front-end proxy agent server is careless, the generation of the accident that may cause.
The schematic flow sheet of the second WEB cluster code update method that is applied to WEB container that Fig. 3 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 3 on basis embodiment illustrated in fig. 2, increases following three steps,
S205: not more under news, the state that receiving front-end proxy server sends upgrades instruction at described WEB container code;
S206: receiving after state that front-end proxy agent server sends upgrades instruction, the state of self WEB container is set to the renewable state of code;
S207: after having arranged, the check result of self WEB container current state is fed back to front-end proxy agent server.
Exemplary, after the inspection request that WEB container a sends at receiving front-end proxy server, check the current status of self WEB container, concrete, can check in self WEB container WEB server of living in and whether exist and represent the file of this WEB container in the renewable state of code, if exist, represent that this WEB container is in the renewable state of code.After having checked, by self WEB container inspection result feedback to front-end proxy agent server.Now WEB container a may not upgrade by code, but but in the non-renewable state of code, the state that receiving front-end proxy server sends upgrades instruction, after the state that receives the transmission of front-end proxy agent server upgrades instruction, the state of self WEB container is set to the renewable state of code, concrete, can in self WEB container WEB server of living in, create and represent the file of this WEB container in the renewable state of code, after document creation completes, the check result of self WEB container current state is fed back to front-end proxy agent server, after front-end proxy agent server completes described WEB container code update, the state of described WEB container is set to the non-renewable state of code, concrete can delete the file of this WEB container of expression in the renewable state of code from the residing WEB server of this WEB container.
Application the present invention embodiment illustrated in fig. 3, avoided in the non-renewable state of code but code not have renewal WEB container do not carried out more news of fresh code.
The structural representation of a kind of WEB cluster code update device that is applied to front-end proxy agent server that Fig. 4 provides for the embodiment of the present invention, comprise: check that request sending module 301, judge module 302, code update module 303 and state upgrade instruction sending module 304
Wherein, check request sending module 301, for the target WEB container to WEB cluster, send the request of inspection;
The inspection request sending module 301 of the present embodiment, specifically can be for:
Real-time target WEB container in WEB cluster sends the request of inspection;
Or
According to default transmission, detect the requesting interval time, the target WEB container in WEB cluster sends the request of inspection.
Judge module 302, for the check result feeding back to according to target WEB container, judges that whether target WEB container is in the renewable state of code;
Wherein, WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code;
Code update module 303, the in the situation that of being, detects whether target WEB container is carried out to more fresh code for judgment result is that at judge module, if not, target WEB container is carried out to code update, if so, continue described target WEB container code to upgrade;
State upgrades instruction sending module 304, for at judge module the determination result is NO in the situation that, judge whether target WEB container code upgrades, if not, to described target WEB container transmission state, upgrade instruction, indicating target WEB container changes to the renewable state of code by state, triggers judge module 302.
The present invention is embodiment illustrated in fig. 4 in application, do not need to revise artificially for twice all front-end proxy agent server configurations, reduced the operating procedure of WEB cluster code update, and avoided in WEB cluster code update process, the configuration operation of artificial modification front-end proxy agent server is careless, the generation of the accident that may cause.
The structural representation of the first WEB cluster code update system that Fig. 5 provides for the embodiment of the present invention, comprise: WEB container and the above-mentioned WEB cluster code update device that is applied to front-end proxy agent service, WEB container comprises: check request receiving module 401, status checkout module 402, the first check result feedback module 403 and the first state setting module 404
Wherein, check request receiving module 401, the inspection request sending for receiving front-end proxy server;
Status checkout module 402, for after checking that request receiving module 401 receives the inspection request of front-end proxy agent server transmission, check the current status of self WEB container, wherein, WEB container current state comprises: the renewable state of code and the non-renewable state of code, and WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code;
The status checkout module 402 of the present embodiment, specifically for: after receiving the inspection request of front-end proxy agent server transmission, check in self WEB container WEB server of living in and whether exist and represent the file of this WEB container in the renewable state of code, if exist, represent that this WEB container is in the renewable state of code.
The first check result feedback module 403, after having checked for status checkout module 402, by self WEB container inspection result feedback to front-end proxy agent server;
The first state setting module 404, after described WEB container code update being completed at front-end proxy agent server, the state of described WEB container is set to the non-renewable state of code.
The present invention is embodiment illustrated in fig. 5 in application, do not need to revise artificially for twice all front-end proxy agent server configurations, reduced the operating procedure of WEB cluster code update, and avoided in WEB cluster code update process, the configuration operation of artificial modification front-end proxy agent server is careless, the generation of the accident that may cause.
The structural representation of the second WEB cluster code update system that Fig. 6 provides for the embodiment of the present invention, the present invention is embodiment illustrated in fig. 6 on basis embodiment illustrated in fig. 5, WEB container also comprises: state upgrades command reception module 405, the second state setting module 406 and the second check result feedback module 407
Wherein, state upgrades command reception module 405, and at described WEB container code not more under news, the state that receiving front-end proxy server sends upgrades instruction;
The second state setting module 406, for receiving after state that front-end proxy agent server sends upgrades instruction, the state of self WEB container is set to the renewable state of code;
The second check result feedback module 407, after having arranged, feeds back to front-end proxy agent server by the check result of self WEB container current state.
The status checkout module 402 of the present embodiment, specifically for:
After receiving the inspection request of front-end proxy agent server transmission, check in self WEB container WEB server of living in and whether exist and represent if existed, to represent that this WEB container is in the renewable state of code by the file of this WEB container in the renewable state of code.
First state setting module 404 of the present embodiment, specifically for:
After front-end proxy agent server completes described WEB container code update, delete in self WEB container WEB server of living in and represent the file of this WEB container in the renewable state of code.
Second state setting module 406 of the present embodiment, specifically for:
After the state that receives the transmission of front-end proxy agent server upgrades instruction, in self WEB container WEB server of living in, create and represent the file of this WEB container in the renewable state of code.
Application the present invention embodiment illustrated in fig. 6, avoided in the non-renewable state of code but code not have renewal WEB container do not carried out more news of fresh code.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually referring to, each embodiment stresses is the difference with other embodiment.Especially, for device and system embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method execution mode is to come the hardware that instruction is relevant to complete by program, described program can be stored in computer read/write memory medium, here alleged storage medium, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (12)

1. a WEB cluster code update method, is applied to front-end proxy agent server, it is characterized in that, described method comprises:
Target WEB container in WEB cluster sends the request of inspection;
The check result feeding back to according to target WEB container, judges that whether target WEB container is in the renewable state of code, and wherein, WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code;
At target WEB container, in the renewable state of code in the situation that, detect whether target WEB container is carried out to more fresh code, if not, target WEB container is carried out to code update, if so, continue target WEB container code to upgrade;
At target WEB container in the non-renewable state of code in the situation that, judge whether target WEB container code upgrades, if not, to target WEB container transmission state, upgrade instruction, indicating target WEB container changes to the renewable state of code by state, continue to carry out and to judge the whether operating procedure in the renewable state of code of target WEB container.
2. method according to claim 1, is characterized in that, described target WEB container in WEB cluster sends the request of inspection, comprising:
Real-time target WEB container in WEB cluster sends the request of inspection;
Or
According to default transmission, detect the requesting interval time, the target WEB container in WEB cluster sends the request of inspection.
3. a WEB cluster code update method, is applied to WEB container, it is characterized in that, described method comprises:
The inspection request that receiving front-end proxy server sends;
After receiving the inspection request of front-end proxy agent server transmission, check the current status of self WEB container, wherein, WEB container current state comprises: the renewable state of code and the non-renewable state of code, and WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code;
After having checked, by self WEB container inspection result feedback to front-end proxy agent server;
After front-end proxy agent server completes described WEB container code update, the state of described WEB container is set to the non-renewable state of code.
4. method according to claim 3, is characterized in that, described method also comprises:
At described WEB container code, not more under news, the state that receiving front-end proxy server sends upgrades instruction;
Receiving after state that front-end proxy agent server sends upgrades instruction, the state of self WEB container is set to the renewable state of code;
After setting completes, the check result of self WEB container current state is fed back to front-end proxy agent server.
5. according to the method described in claim 3 or 4, it is characterized in that, describedly after receiving the inspection request that front-end proxy agent server sends, check the current status of self WEB container, comprising:
After receiving the inspection request of front-end proxy agent server transmission, check in self WEB container WEB server of living in and whether exist and represent if existed, to represent that this WEB container is in the renewable state of code by the file of this WEB container in the renewable state of code.
6. method according to claim 5, is characterized in that, the state of described self WEB container is set to the renewable state of code, comprising:
In self WEB container WEB server of living in, create and represent the file of this WEB container in the renewable state of code;
The state of described self WEB container is set to the non-renewable state of code, comprising:
Delete in self WEB container WEB server of living in and represent the file of this WEB container in the renewable state of code.
7. a WEB cluster code update device, is applied to front-end proxy agent server, it is characterized in that, described device comprises: check that request sending module, judge module, code update module and state upgrade instruction sending module,
Check request sending module, for the target WEB container to WEB cluster, send the request of inspection;
Judge module, for the check result feeding back to according to target WEB container, judges that whether target WEB container is in the renewable state of code, and wherein, WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code;
Code update module, the in the situation that of being, detects whether target WEB container is carried out to more fresh code for judgment result is that at judge module, if not, target WEB container is carried out to code update, if so, continue described target WEB container code to upgrade;
State upgrades instruction sending module, for at judge module the determination result is NO in the situation that, judge whether target WEB container code upgrades, if not, to described target WEB container transmission state, upgrade instruction, indicating target WEB container changes to the renewable state of code by state, triggers judge module.
8. device according to claim 7, is characterized in that, described inspection request sending module, specifically for:
Real-time target WEB container in WEB cluster sends the request of inspection;
Or
According to default transmission, detect the requesting interval time, the target WEB container in WEB cluster sends the request of inspection.
9. a WEB cluster code update system, is characterized in that, described system comprises: the WEB cluster code update device described in WEB container and claim 7 or 8,
Described WEB container comprises: check request receiving module, status checkout module, the first check result feedback module and the first state setting module,
Check request receiving module, the inspection request sending for receiving front-end proxy server;
Status checkout module, for after receiving the inspection request of front-end proxy agent server transmission, check the current status of self WEB container, wherein, WEB container current state comprises: the renewable state of code and the non-renewable state of code, and WEB container does not have Internet request msg to enter into this WEB container in the renewable state representation of code;
The first check result feedback module, after having checked, by self WEB container inspection result feedback to front-end proxy agent server;
The first state setting module, after described WEB container code update being completed at front-end proxy agent server, the state of described WEB container is set to the non-renewable state of code.
10. system according to claim 9, is characterized in that, described WEB container also comprises: state upgrades command reception module, the second state setting module and the second check result feedback module,
State upgrades command reception module, and at described WEB container code not more under news, the state that receiving front-end proxy server sends upgrades instruction;
The second state setting module, for receiving after state that front-end proxy agent server sends upgrades instruction, the state of self WEB container is set to the renewable state of code;
The second check result feedback module, after having arranged, feeds back to front-end proxy agent server by the check result of self WEB container current state.
11. according to the system described in claim 9 or 10, it is characterized in that, described status checkout module, specifically for:
After receiving the inspection request of front-end proxy agent server transmission, check in self WEB container WEB server of living in and whether exist and represent if existed, to represent that this WEB container is in the renewable state of code by the file of this WEB container in the renewable state of code.
12. systems according to claim 11, is characterized in that, described the second state setting module, specifically for:
After the state that receives the transmission of front-end proxy agent server upgrades instruction, in self WEB container WEB server of living in, create and represent the file of this WEB container in the renewable state of code;
Described the first state setting module, specifically for:
After front-end proxy agent server completes described WEB container code update, delete in self WEB container WEB server of living in and represent the file of this WEB container in the renewable state of code.
CN201410291222.3A 2014-06-25 2014-06-25 A kind of WEB cluster codes update method, apparatus and system Active CN104023086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410291222.3A CN104023086B (en) 2014-06-25 2014-06-25 A kind of WEB cluster codes update method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410291222.3A CN104023086B (en) 2014-06-25 2014-06-25 A kind of WEB cluster codes update method, apparatus and system

Publications (2)

Publication Number Publication Date
CN104023086A true CN104023086A (en) 2014-09-03
CN104023086B CN104023086B (en) 2017-08-25

Family

ID=51439655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410291222.3A Active CN104023086B (en) 2014-06-25 2014-06-25 A kind of WEB cluster codes update method, apparatus and system

Country Status (1)

Country Link
CN (1) CN104023086B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302667A (en) * 2016-08-04 2017-01-04 上海携程商务有限公司 Code management system and method
CN106487542A (en) * 2015-08-26 2017-03-08 北京京东尚科信息技术有限公司 A kind of utilization configuration center manages the method and system of dynamic script

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020083413A1 (en) * 2000-12-20 2002-06-27 National Instruments Corporation System and method for programmatically generating a graphical program in response to a state diagram
CN101094229A (en) * 2007-07-24 2007-12-26 深圳市融合视讯科技有限公司 Increment upgrading system and method for networked application programs
US20080140831A1 (en) * 2006-12-11 2008-06-12 Canon Kabushiki Kaisha Managing apparatus and management method
CN101211440A (en) * 2006-12-27 2008-07-02 阿里巴巴公司 System and method for dynamically updating commercial service contents
US7730258B1 (en) * 2005-11-01 2010-06-01 Netapp, Inc. System and method for managing hard and soft lock state information in a distributed storage system environment
CN102150105A (en) * 2008-09-09 2011-08-10 凯思网络公司 Deployment and management of virtual containers
CN102333113A (en) * 2011-08-05 2012-01-25 三一重机有限公司 System and method for remote debugging and upgrading of software
CN103150165A (en) * 2013-03-07 2013-06-12 中国农业大学 Frame and method for building outdoor data acquisition program
CN103186400A (en) * 2011-12-31 2013-07-03 深圳市金蝶中间件有限公司 Web application program upgrading method and system
CN103220342A (en) * 2013-03-29 2013-07-24 厦门雅迅网络股份有限公司 Grouped remote and synchronous program updating method for terminals
CN103297275A (en) * 2013-06-08 2013-09-11 烽火通信科技股份有限公司 Dynamic discovery and loading system and method for Web network management client module
CN103617064A (en) * 2013-12-09 2014-03-05 五八同城信息技术有限公司 Improved method for updating mobile client product

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020083413A1 (en) * 2000-12-20 2002-06-27 National Instruments Corporation System and method for programmatically generating a graphical program in response to a state diagram
US7730258B1 (en) * 2005-11-01 2010-06-01 Netapp, Inc. System and method for managing hard and soft lock state information in a distributed storage system environment
US20080140831A1 (en) * 2006-12-11 2008-06-12 Canon Kabushiki Kaisha Managing apparatus and management method
CN101211440A (en) * 2006-12-27 2008-07-02 阿里巴巴公司 System and method for dynamically updating commercial service contents
CN101094229A (en) * 2007-07-24 2007-12-26 深圳市融合视讯科技有限公司 Increment upgrading system and method for networked application programs
CN102150105A (en) * 2008-09-09 2011-08-10 凯思网络公司 Deployment and management of virtual containers
CN102333113A (en) * 2011-08-05 2012-01-25 三一重机有限公司 System and method for remote debugging and upgrading of software
CN103186400A (en) * 2011-12-31 2013-07-03 深圳市金蝶中间件有限公司 Web application program upgrading method and system
CN103150165A (en) * 2013-03-07 2013-06-12 中国农业大学 Frame and method for building outdoor data acquisition program
CN103220342A (en) * 2013-03-29 2013-07-24 厦门雅迅网络股份有限公司 Grouped remote and synchronous program updating method for terminals
CN103297275A (en) * 2013-06-08 2013-09-11 烽火通信科技股份有限公司 Dynamic discovery and loading system and method for Web network management client module
CN103617064A (en) * 2013-12-09 2014-03-05 五八同城信息技术有限公司 Improved method for updating mobile client product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487542A (en) * 2015-08-26 2017-03-08 北京京东尚科信息技术有限公司 A kind of utilization configuration center manages the method and system of dynamic script
CN106302667A (en) * 2016-08-04 2017-01-04 上海携程商务有限公司 Code management system and method

Also Published As

Publication number Publication date
CN104023086B (en) 2017-08-25

Similar Documents

Publication Publication Date Title
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
CN110365510A (en) It is a kind of can to network node batch OTA upgrade things-internet gateway and OTA upgrade method
CN105573819A (en) Method for obtaining disk capacity information of virtual machine directly through host machine
CN104144466A (en) Access method for sensor in Internet of Things, Internet of Things system and server
CN105471760A (en) Routing method, load balancing device and data communication system
CN103036706A (en) Local processing method of application upgrading abnormity
CN103327051A (en) Long-distance desktop management system and method
CN105700927B (en) Version upgrading method, terminal device and version server
CN104301140A (en) Service request responding method, device and system
CN106528214B (en) A kind of installation method of OS, server and system
CN105511903A (en) Audio device updating method and apparatus
CN103810010A (en) Information processing method and first electronic device terminal
CN109905431A (en) Message treatment method and system, storage medium, electronic equipment
CN105550004A (en) Multi-system upgrading apparatus and method
CN110751458A (en) Business approval method, device and system
CN106547645A (en) Automatically the method and server system of image shelves are repaired
CN103003809B (en) For equipment and the method and system of managing remote subscriber interface
CN105245581A (en) Application program transmission method and device
CN104092732A (en) Intelligent terminal software updating method and device
CN104023086A (en) WEB cluster code updating method, device and system
CN102098190A (en) Automatic development test system and method of Web project
CN103546563B (en) terminal software intelligent updating method and system
CN103095698B (en) The restorative procedure of client software, device and communication system
CN110554963B (en) Application rollback method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant