CN104023086B - A kind of WEB cluster codes update method, apparatus and system - Google Patents

A kind of WEB cluster codes update method, apparatus and system Download PDF

Info

Publication number
CN104023086B
CN104023086B CN201410291222.3A CN201410291222A CN104023086B CN 104023086 B CN104023086 B CN 104023086B CN 201410291222 A CN201410291222 A CN 201410291222A CN 104023086 B CN104023086 B CN 104023086B
Authority
CN
China
Prior art keywords
web
state
code
containers
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.)
Active
Application number
CN201410291222.3A
Other languages
Chinese (zh)
Other versions
CN104023086A (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

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of WEB cluster codes update method, apparatus and system, WEB container of the front-end proxy agent server into WEB clusters, which is sent, checks request;The inspection result fed back to according to WEB containers, judges whether WEB containers may be updated state in code;In the case where WEB containers are in the renewable state of code and no progress code update, to WEB containers more fresh code.Using the embodiment of the present invention, due to need not artificially change all front-end proxy agent server configurations twice, therefore the operating procedure of WEB cluster codes renewal is reduced, and avoid in WEB cluster code renewal processes, the configuration careless manipulation of artificial modification front-end proxy agent server, the generation of possible caused accident.

Description

A kind of WEB cluster codes update method, apparatus and system
Technical field
The present invention relates to field of computer technology, more particularly to a kind of WEB cluster codes update method, apparatus and system.
Background technology
WEB clusters are a kind of server architecture, Mei Yitai as formed by interconnecting many WEB server main frames Contain one or more WEB containers in WEB server main frame, WEB containers are a kind of service call canonical frames, are WEB application Program assembly provides a running environment, and code is deployed in WEB containers.In order to improve WEB server main frame in WEB clusters The load balancing of security and WEB server main frame, it will usually increase front-end proxy agent server, front-end proxy agent in WEB clusters Server is used for receiving the request on Internet, then forwards a request to the WEB containers in the WEB server of WEB clusters.
The method that WEB cluster codes update in the prior art, be typically:Artificial all front-end proxy agent servers of first modification Configuration, the WEB containers for needing to carry out code update, the WEB Container Codes are entered without Internet request datas to realize After the completion of renewal, then the artificial configuration for changing all front-end proxy agent servers, to realize that Internet request datas are entered In the WEB containers.
Using above-mentioned WEB cluster code update methods, a part of WEB containers are often updated, are required for artificially repairing twice Change all front-end proxy agent server configurations, in the case where front-end proxy agent server is more, complex operation step, and operate slightly Have accidentally, easily carry out accident.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of WEB cluster codes update method and system, reduction WEB cluster generations The operating procedure that code updates, it is to avoid in WEB cluster code renewal processes, the generation of accident.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of WEB cluster codes update method, applied to front end generation Server is managed, including:
Target WEB containers into WEB clusters, which are sent, checks request;
The inspection result fed back to according to target WEB containers, judges whether target WEB containers may be updated shape in code State, wherein, WEB containers, which are in the renewable state representation of code, does not have Internet request datas to enter in the WEB containers;
In the case where target WEB containers are in the renewable state of code, detect whether to carry out target WEB containers More fresh code, if not, code update is carried out to target WEB containers, if it is, continuing to carry out more target WEB Container Codes Newly;
In the case where target WEB containers are in the non-renewable state of code, judge target WEB Container Codes whether more Newly, if not, sending state more new command to target WEB containers, indicate that state is changed to code and may be updated by target WEB containers State, continues executing with the operating procedure for judging whether target WEB containers may be updated state in code.
Preferably, the target WEB containers in the cluster to WEB, which are sent, checks request, including:
The target WEB containers into WEB clusters, which are sent, in real time checks request;
Or
The requesting interval time is detected according to default send, the target WEB containers into WEB clusters, which are sent, checks request.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of WEB cluster codes update method, hold applied to WEB Device, including:
The inspection request that receiving front-end proxy server is sent;
After the inspection request of front-end proxy agent server transmission is received, check that itself WEB container is presently in state, Wherein, WEB containers current state includes:State and the non-renewable state of code may be updated in code, and WEB containers can be more in code New state represents that no Internet request datas are entered in the WEB containers;
After having checked, itself WEB container inspection result is fed back into front-end proxy agent server;
After the completion of front-end proxy agent server updates to the WEB Container Codes, the state of the WEB containers is set to The non-renewable state of code.
Preferably, methods described also includes:
In the case where the WEB Container Codes do not update, the state that receiving front-end proxy server is sent, which updates, to be referred to Order;
After the state more new command of front-end proxy agent server transmission is received, the state of itself WEB container is set State may be updated for code;
After being provided with, the inspection result of itself WEB container current state is fed back into front-end proxy agent server.
Preferably, it is described after the inspection request of front-end proxy agent server transmission is received, check that itself WEB container is worked as Preceding status, including:
After the inspection request of front-end proxy agent server transmission is received, WEB server residing for itself WEB container is checked In with the presence or absence of represent the WEB containers be in code may be updated state file, if it does, represent the WEB containers be in generation The renewable state of code.
Preferably, the state by itself WEB container, which is set to code, may be updated state, including:
Created in WEB server residing for itself WEB container and represent that the WEB containers are in the text that state may be updated in code Part;
The state by itself WEB container is set to the non-renewable state of code, including:
Delete and represent that the WEB containers are in the file that state may be updated in code in WEB server residing for itself WEB container.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of WEB cluster codes updating device, applied to front end generation Server is managed, including:Check that request sending module, judge module, code update module and state update instruction sending module,
Request sending module is checked, is sent for the target WEB containers into WEB clusters and checks request;
Judge module, for the inspection result fed back to according to target WEB containers, judges whether target WEB containers are in State may be updated in code, wherein, WEB containers, which are in the renewable state representation of code, does not have Internet request datas to enter this In WEB containers;
Code update module, in the case of being in judge module judged result, is detected whether to target WEB Container is updated code, if not, code update is carried out to target WEB containers, if it is, continuing to hold the target WEB Device code is updated;
State updates instruction sending module, in the case of being no in judge module judged result, judges that target WEB holds Whether device code has updated, if not, sending state more new command to the target WEB containers, indicates target WEB containers by shape State is changed to code and state may be updated, and triggers judge module.
Preferably, the inspection request sending module, specifically for:
The target WEB containers into WEB clusters, which are sent, in real time checks request;
Or
The requesting interval time is detected according to default send, the target WEB containers into WEB clusters, which are sent, checks request.
To reach above-mentioned purpose, the embodiment of the invention discloses a kind of WEB cluster codes more new system, including:WEB containers And the above-mentioned WEB cluster code updating devices for being applied to front-end proxy agent service,
The WEB containers include:Check request receiving module, status checking module, the first inspection result feedback module and First state setup module,
Request receiving module is checked, the inspection request sent for receiving front-end proxy server;
Status checking module, for after the inspection request of front-end proxy agent server transmission is received, checking itself WEB Container is presently in state, wherein, WEB container current states include:State and the non-renewable state of code may be updated in code, WEB containers, which are in the renewable state representation of code, does not have Internet request datas to enter in the WEB containers;
First inspection result feedback module, after having checked, front end generation is fed back to by itself WEB container inspection result Manage server;
First state setup module, after the completion of being updated in front-end proxy agent server to the WEB Container Codes, by institute The state for stating WEB containers is set to the non-renewable state of code.
Preferably, the WEB containers also include:State updates command reception module, the second state setting module and second Inspection result feedback module,
State updates command reception module, in the case of not updated in the WEB Container Codes, receiving front-end generation Manage the state more new command that server is sent;
Second state setting module, for after the state more new command of front-end proxy agent server transmission is received, inciting somebody to action The state of itself WEB container is set to code and state may be updated;
Second inspection result feedback module, it is after being provided with, the inspection result of itself WEB container current state is anti- Front-end proxy agent of feeding server.
Preferably, the status checking module, specifically for:
After the inspection request of front-end proxy agent server transmission is received, WEB server residing for itself WEB container is checked In with the presence or absence of represent the WEB containers be in code may be updated state file, if it does, represent the WEB containers be in generation The renewable state of code.
Preferably, second state setting module, specifically for:
After the state more new command of front-end proxy agent server transmission is received, in WEB service residing for itself WEB container Created in device and represent that the WEB containers are in the file that state may be updated in code;
The first state setup module, specifically for:
After the completion of front-end proxy agent server updates to the WEB Container Codes, delete WEB residing for itself WEB container and take Represent that the WEB containers are in the file that state may be updated in code in business device.
As seen from the above technical solutions, the embodiments of the invention provide a kind of WEB cluster codes update method, device and System, WEB container of the front-end proxy agent server into WEB clusters, which is sent, checks request;The inspection knot fed back to according to WEB containers Really, judge whether WEB containers may be updated state in code;Code, which is in, in WEB containers state may be updated and without progress generation In the case that code updates, to WEB containers more fresh code.Matched somebody with somebody due to need not artificially change all front-end proxy agent servers twice Put, therefore reduce the operating procedure of WEB cluster codes renewal, and avoid in WEB cluster code renewal processes, artificially Modification front-end proxy agent server configuration careless manipulation, may caused by accident generation.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of WEB cluster codes update method provided in an embodiment of the present invention applied to front-end proxy agent server Schematic flow sheet;
Fig. 2 is the flow of the first WEB cluster code update method provided in an embodiment of the present invention applied to WEB containers Schematic diagram;
Fig. 3 is the flow of second of WEB cluster code update method provided in an embodiment of the present invention applied to WEB containers Schematic diagram;
Fig. 4 is a kind of WEB cluster codes updating device provided in an embodiment of the present invention applied to front-end proxy agent server Structural representation;
Fig. 5 is the structural representation of the first WEB cluster codes more new system provided in an embodiment of the present invention;
Fig. 6 is the structural representation of second of WEB cluster codes more new system provided in an 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 carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention is provided in a kind of WEB cluster codes update method, apparatus and system, the program, front-end proxy agent Target WEB container of the server into WEB clusters, which is sent, checks request;The inspection result fed back to according to target WEB containers, sentences Whether disconnected target WEB containers may be updated state in code;In the case where target WEB containers are in the renewable state of code, Detect whether to be updated code to target WEB containers, if not, code update is carried out to target WEB containers, if It is that continuation is updated to target WEB Container Codes;In the case where target WEB containers are in the non-renewable state of code, sentence Whether disconnected target WEB Container Codes have updated, if not, sending state more new command to target WEB containers, indicate target WEB State is changed to code and state may be updated by container.
The inspection request that WEB container reception front-end proxy agents server is sent;Receiving the transmission of front-end proxy agent server Check after request, check that itself WEB container is presently in state;After having checked, itself WEB container inspections result is fed back Give front-end proxy agent server;After the completion of front-end proxy agent server updates to the WEB Container Codes, by the WEB containers State is set to the non-renewable state of code.
Below by specific embodiment, the present invention is described in detail.
Fig. 1 is a kind of WEB cluster codes update method provided in an embodiment of the present invention applied to front-end proxy agent server Schematic flow sheet, comprise the following steps:
S101:Target WEB containers into WEB clusters, which are sent, checks request;
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, the target WEB containers that front-end proxy agent server can in real time into WEB clusters send inspection please Ask.
In actual applications, front-end proxy agent server can also detect the requesting interval time according to default send, to WEB Target WEB containers in cluster, which are sent, checks request.
It is exemplary, it is assumed that default to send the detection requesting interval time be 10MS, then front-end proxy agent server every 10MS sends to the target WEB containers and once checks request.
S102:The inspection result fed back to according to target WEB containers, judges whether target WEB containers can be more in code New state, if it is, S103 is performed, if not, performing S104;
Wherein, WEB containers, which are in the renewable state representation of code, does not have Internet request datas to enter the WEB containers In.
S103:Detect whether to be updated code to target WEB containers, if it is, S105 is performed, if not, holding Row S106;
S104:Judge whether target WEB Container Codes have updated, if not, performing S107 and S102;
S105:Continuation is updated to target WEB Container Codes;
S106:Code update is carried out to target WEB containers;
S107:State more new command is sent to target WEB containers, state is changed to code by instruction target WEB containers can More new state.
Exemplary, it is assumed that there are a front-end proxy agent server and three WEB containers, three WEB containers point in WEB clusters Wei not WEB container a, WEB container b and WEB containers c.
With the code that updates WEB containers 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 detection request to WEB containers a.Specifically, front-end proxy agent server can in real time to WEB containers a, which is sent, checks request, can also detect the requesting interval time according to default send, send and check to WEB containers a Request, for example:It is default that to send the detection requesting interval time be 10MS, then front-end proxy agent server every 10MS to WEB containers a Send and once check request.
The inspection result fed back to according to WEB containers a, judges whether WEB containers a may be updated state in code;
If WEB containers a is in code and state may be updated, front-end proxy agent server is no longer by Internet request datas It is forwarded in WEB containers a, judges whether to carry out code update to WEB containers a, if currently entered WEB containers a Line code updates, then continues the renewal of WEB container a codes, right if carrying out code update currently without to WEB containers a WEB containers a carries out code update.
If WEB containers a is in the non-renewable state of code, judge whether WEB container a codes have updated, if do not had There is renewal, then send state more new command to WEB containers a, indicate that state is changed to code and state may be updated by WEB containers a, together When continue to the inspection result that WEB containers a is fed back to, the inspection result fed back to according to WEB containers a judges WEB containers a Whether state may be updated in code.
Specifically, front-end proxy agent server can be each WEB container one status indication of setting in WEB clusters, Such as status indication is in renewable but does not have more new state for 0 expression WEB containers, and status indication is in for 1 expression WEB containers can Renewal and more new state, status indication are that 2 expression WEB containers are in non-renewable and do not have more new state, and status indication is 3 Represent that WEB containers are in unavailable renewal and update completion status.
When it is 0 that front end proxy server, which detects WEB container a status indications, start to enter line code more to WEB containers a Newly, while being 1 by WEB container a status indications;
When it is 1 that front end proxy server, which detects WEB container a status indications, continuation enters line code more to WEB containers a Newly, it is 3 by WEB container a status indications after code update is completed;
When it is 2 that front end proxy server, which detects WEB container a status indications, sends state renewal to WEB containers a and refer to Order, after WEB container a states, which update, to be completed, can detect WEB containers a and be in the renewable state of code, but code does not have Update, be now 0 by WEB container a status indications, start to carry out code update to WEB containers a, while by WEB container a states Labeled as 1.
Using embodiment illustrated in fig. 1 of the present invention, it is not necessary to artificially change all front-end proxy agent server configurations twice, subtract The operating procedure of WEB cluster codes renewal is lacked, and has avoided in WEB cluster code renewal processes, before artificial modification Hold the configuration careless manipulation of proxy server, the generation of possible caused accident.
Fig. 2 is the flow of the first WEB cluster code update method provided in an embodiment of the present invention applied to WEB containers Schematic diagram, comprises the following steps:
S201:The inspection request that receiving front-end proxy server is sent;
S202:After the inspection request of front-end proxy agent server transmission is received, check that itself WEB container is presently in State;
Wherein, WEB containers current state includes:State and the non-renewable state of code is may be updated in code, and WEB containers are in State representation, which may be updated, in code does not have Internet request datas to enter in the WEB containers.
S203:After having checked, itself WEB container inspection result is fed back into front-end proxy agent server;
S204:After the completion of front-end proxy agent server updates to the WEB Container Codes, by the state of the WEB containers It is set to the non-renewable state of code.
Exemplary, WEB containers a checks that itself WEB holds after the inspection request that receiving front-end proxy server is sent Device is presently in state, specifically, can check in WEB server residing for itself WEB container with the presence or absence of the expression WEB containers The file of state may be updated in code, if it does, representing that the WEB containers are in code and state may be updated.After having checked, Itself WEB container inspection result is fed back into front-end proxy agent server.Front-end proxy agent server to the WEB Container Codes more After the completion of new, it will represent that the WEB containers are in code and the file of state may be updated from the WEB server residing for the WEB containers Delete.
Using embodiment illustrated in fig. 2 of the present invention, it is not necessary to artificially change all front-end proxy agent server configurations twice, subtract The operating procedure of WEB cluster codes renewal is lacked, and has avoided in WEB cluster code renewal processes, before artificial modification Hold the configuration careless manipulation of proxy server, the generation of possible caused accident.
Fig. 3 is the flow of second of WEB cluster code update method provided in an embodiment of the present invention applied to WEB containers Schematic diagram, embodiment illustrated in fig. 3 of the present invention increases three below step on the basis of embodiment illustrated in fig. 2,
S205:In the case where the WEB Container Codes do not update, the state that receiving front-end proxy server is sent is more New command;
S206:After the state more new command of front-end proxy agent server transmission is received, by the state of itself WEB container It is set to code and state may be updated;
S207:After being provided with, the inspection result of itself WEB container current state is fed back into front-end proxy agent server.
Exemplary, WEB containers a checks that itself WEB holds after the inspection request that receiving front-end proxy server is sent Device is presently in state, specifically, can check in WEB server residing for itself WEB container with the presence or absence of the expression WEB containers The file of state may be updated in code, if it does, representing that the WEB containers are in code and state may be updated.After having checked, Itself WEB container inspection result is fed back into front-end proxy agent server.Now the possible codes of WEB containers a do not update, but In the non-renewable state of code, then the state more new command that receiving front-end proxy server is sent is receiving front-end proxy agent After the state more new command that server is sent, the state of itself WEB container is set to code state may be updated, specifically, It can be created in WEB server residing for itself WEB container and represent that the WEB containers are in the file that state may be updated in code, text Part is created after completion, the inspection result of itself WEB container current state is fed back into front-end proxy agent server, in front-end proxy agent After the completion of server updates to the WEB Container Codes, the state of the WEB containers is set to the non-renewable state of code, It can will specifically represent that the WEB containers are in code and the file of state may be updated from the WEB server residing for the WEB containers Delete.
Using embodiment illustrated in fig. 3 of the present invention, it is to avoid the WEB not updated in the non-renewable state of code but code Container is not by carry out fresh code more news.
Fig. 4 is a kind of WEB cluster codes updating device provided in an embodiment of the present invention applied to front-end proxy agent server Structural representation, including:Check that request sending module 301, judge module 302, code update module 303 and state update to refer to Sending module 304 is made,
Wherein, request sending module 301 is checked, is sent for the target WEB containers into WEB clusters and checks request;
The inspection request sending module 301 of the present embodiment, specifically can be used for:
The target WEB containers into WEB clusters, which are sent, in real time checks request;
Or
The requesting interval time is detected according to default send, the target WEB containers into WEB clusters, which are sent, checks request.
Judge module 302, for the inspection result fed back to according to target WEB containers, judges whether target WEB containers are located State may be updated in code;
Wherein, WEB containers, which are in the renewable state representation of code, does not have Internet request datas to enter the WEB containers In;
Code update module 303, in the case of being in judge module judged result, is detected whether to target WEB containers are updated code, if not, code update is carried out to target WEB containers, if it is, continuing to the target WEB Container Code is updated;
State updates instruction sending module 304, in the case of being no in judge module judged result, judges target Whether WEB Container Codes have updated, if not, sending state more new command to the target WEB containers, indicate that target WEB holds State is changed to code and state may be updated by device, triggers judge module 302.
Using embodiment illustrated in fig. 4 of the present invention, it is not necessary to artificially change all front-end proxy agent server configurations twice, subtract The operating procedure of WEB cluster codes renewal is lacked, and has avoided in WEB cluster code renewal processes, before artificial modification Hold the configuration careless manipulation of proxy server, the generation of possible caused accident.
Fig. 5 is the structural representation of the first WEB cluster codes more new system provided in an embodiment of the present invention, including:WEB Container and the above-mentioned WEB cluster code updating devices serviced applied to front-end proxy agent, WEB containers include:Check that request is received Module 401, status checking module 402, the first inspection result feedback module 403 and first state setup module 404,
Wherein, request receiving module 401 is checked, the inspection request sent for receiving front-end proxy server;
Status checking module 402, the inspection for receiving the transmission of front-end proxy agent server in inspection request receiving module 401 Make a thorough investigation of after asking, check that itself WEB container is presently in state, wherein, WEB container current states include:Shape may be updated in code State and the non-renewable state of code, WEB containers, which are in the renewable state representation of code, does not have Internet request datas to enter In the WEB containers;
The status checking module 402 of the present embodiment, specifically for:Please in the inspection for receiving the transmission of front-end proxy agent server After asking, check that the WEB containers are in the renewable state of code with the presence or absence of expression in WEB server residing for itself WEB container File, if it does, represent the WEB containers be in code may be updated state.
First inspection result feedback module 403, after having been checked for status checking module 402, itself WEB container is examined The fruit that comes to an end feeds back to front-end proxy agent server;
First state setup module 404, after the completion of being updated in front-end proxy agent server to the WEB Container Codes, The state of the WEB containers is set to the non-renewable state of code.
Using embodiment illustrated in fig. 5 of the present invention, it is not necessary to artificially change all front-end proxy agent server configurations twice, subtract The operating procedure of WEB cluster codes renewal is lacked, and has avoided in WEB cluster code renewal processes, before artificial modification Hold the configuration careless manipulation of proxy server, the generation of possible caused accident.
Fig. 6 is the structural representation of second of WEB cluster codes more new system provided in an embodiment of the present invention, present invention figure 6 illustrated embodiments are on the basis of embodiment illustrated in fig. 5, and WEB containers also include:State updates command reception module 405, the second shape The inspection result feedback module 407 of state setup module 406 and second,
Wherein, state updates command reception module 405, in the case of not updated in the WEB Container Codes, connects Receive the state more new command that front-end proxy agent server is sent;
Second state setting module 406, for receive front-end proxy agent server transmission state more new command after, The state of itself WEB container is set to code state may be updated;
Second inspection result feedback module 407, after being provided with, by the inspection knot of itself WEB container current state Fruit feeds back to front-end proxy agent server.
The status checking module 402 of the present embodiment, specifically for:
After the inspection request of front-end proxy agent server transmission is received, WEB server residing for itself WEB container is checked In with the presence or absence of represent the WEB containers be in code may be updated state file, if it does, represent the WEB containers be in generation The renewable state of code.
The first state setup module 404 of the present embodiment, specifically for:
After the completion of front-end proxy agent server updates to the WEB Container Codes, delete WEB residing for itself WEB container and take Represent that the WEB containers are in the file that state may be updated in code in business device.
Second state setting module 406 of the present embodiment, specifically for:
After the state more new command of front-end proxy agent server transmission is received, in WEB service residing for itself WEB container Created in device and represent that the WEB containers are in the file that state may be updated in code.
Using embodiment illustrated in fig. 6 of the present invention, it is to avoid the WEB not updated in the non-renewable state of code but code Container is not by carry out fresh code more news.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for device and For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to method The part explanation of embodiment.
Can one of ordinary skill in the art will appreciate that realizing that all or part of step in above method embodiment is To instruct the hardware of correlation to complete by program, described program can be stored in computer read/write memory medium, The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of WEB cluster codes update method, applied to front-end proxy agent server, it is characterised in that methods described includes:
Target WEB containers into WEB clusters, which are sent, checks request;
The inspection result fed back to according to target WEB containers, judges whether target WEB containers may be updated state in code, its In, WEB containers, which are in the renewable state representation of code, does not have Internet request datas to enter in the WEB containers;
In the case where target WEB containers are in the renewable state of code, detect whether to be updated target WEB containers Code, if not, code update is carried out to target WEB containers, if it is, continuing to be updated target WEB Container Codes;
In the case where target WEB containers are in the non-renewable state of code, judge whether target WEB Container Codes have updated, If not, sending state more new command to target WEB containers, indicate that state is changed to code and shape may be updated by target WEB containers State, continues executing with the operating procedure for judging whether target WEB containers may be updated state in code.
2. according to the method described in claim 1, it is characterised in that the target WEB containers in the cluster to WEB, which are sent, to be checked Request, including:
The target WEB containers into WEB clusters, which are sent, in real time checks request;
Or
The requesting interval time is detected according to default send, the target WEB containers into WEB clusters, which are sent, checks request.
3. a kind of WEB cluster codes update method, applied to WEB containers, it is characterised in that methods described includes:
The inspection request that receiving front-end proxy server is sent;
After the inspection request of front-end proxy agent server transmission is received, check that itself WEB container is presently in state, its In, WEB container current states include:State and the non-renewable state of code may be updated in code, and WEB containers are renewable in code State representation does not have Internet request datas to enter in the WEB containers;
After having checked, itself WEB container inspection result is fed back into front-end proxy agent server;
After the completion of front-end proxy agent server updates to the WEB Container Codes, the state of the WEB containers is set to code Non-renewable state;
Methods described also includes:
In the case where the WEB Container Codes do not update, the state more new command that receiving front-end proxy server is sent;
After the state more new command of front-end proxy agent server transmission is received, the state of itself WEB container is set to generation The renewable state of code;
After being provided with, the inspection result of itself WEB container current state is fed back into front-end proxy agent server.
4. method according to claim 3, it is characterised in that described to receive the inspection of front-end proxy agent server transmission After request, check that itself WEB container is presently in state, including:
After the inspection request of front-end proxy agent server transmission is received, checking in WEB server residing for itself WEB container is It is no to there is the file for representing that the WEB containers are in the renewable state of code, if it does, representing that the WEB containers can in code More new state.
5. method according to claim 4, it is characterised in that the state by itself WEB container is set to code can More new state, including:
Created in WEB server residing for itself WEB container and represent that the WEB containers are in the file that state may be updated in code;
The state by itself WEB container is set to the non-renewable state of code, including:
Delete and represent that the WEB containers are in the file that state may be updated in code in WEB server residing for itself WEB container.
6. a kind of WEB cluster codes updating device, applied to front-end proxy agent server, it is characterised in that described device includes:Inspection Look into request sending module, judge module, code update module and state and update instruction sending module,
Request sending module is checked, is sent for the target WEB containers into WEB clusters and checks request;
Judge module, for the inspection result fed back to according to target WEB containers, judges whether target WEB containers are in code Renewable state, wherein, WEB containers, which are in the renewable state representation of code, does not have Internet request datas to enter the WEB In container;
Code update module, in the case of being in judge module judged result, is detected whether to target WEB containers Code is updated, if not, code update is carried out to target WEB containers, if it is, continuing to the target WEB container generations Code is updated;
State updates instruction sending module, in the case of being no in judge module judged result, judges target WEB container generations Whether code has updated, if not, sending state more new command to the target WEB containers, indicates target WEB containers by state more It is changed to code and state may be updated, triggers judge module.
7. device according to claim 6, it is characterised in that the inspection request sending module, specifically for:
The target WEB containers into WEB clusters, which are sent, in real time checks request;
Or
The requesting interval time is detected according to default send, the target WEB containers into WEB clusters, which are sent, checks request.
8. a kind of WEB cluster codes more new system, it is characterised in that the system includes:WEB containers and claim 6 or 7 Described WEB cluster code updating devices,
The WEB containers include:Check request receiving module, status checking module, the first inspection result feedback module and first State setting module,
Request receiving module is checked, the inspection request sent for receiving front-end proxy server;
Status checking module, for after the inspection request of front-end proxy agent server transmission is received, checking itself WEB container State is presently in, wherein, WEB container current states include:State and the non-renewable state of code may be updated in code, and WEB holds Device, which is in the renewable state representation of code, does not have Internet request datas to enter in the WEB containers;
First inspection result feedback module, after having checked, front-end proxy agent clothes are fed back to by itself WEB container inspection result Business device;
First state setup module, will be described after the completion of being updated in front-end proxy agent server to the WEB Container Codes The state of WEB containers is set to the non-renewable state of code;
The WEB containers also include:State updates command reception module, the second state setting module and the second inspection result feedback Module,
State updates command reception module, in the case of not updated in the WEB Container Codes, receiving front-end agency's clothes The state more new command that business device is sent;
Second state setting module, for after the state more new command of front-end proxy agent server transmission is received, by itself The state of WEB containers is set to code and state may be updated;
Second inspection result feedback module, after being provided with, the inspection result of itself WEB container current state is fed back to Front-end proxy agent server.
9. system according to claim 8, it is characterised in that the status checking module, specifically for:
After the inspection request of front-end proxy agent server transmission is received, checking in WEB server residing for itself WEB container is It is no to there is the file for representing that the WEB containers are in the renewable state of code, if it does, representing that the WEB containers can in code More new state.
10. system according to claim 9, it is characterised in that second state setting module, specifically for:
After the state more new command of front-end proxy agent server transmission is received, in WEB server residing for itself WEB container Create and represent that the WEB containers are in the file that state may be updated in code;
The first state setup module, specifically for:
After the completion of front-end proxy agent server updates to the WEB Container Codes, WEB server residing for itself WEB container is deleted It is middle to represent that the WEB containers are in the file that state may be updated in 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 CN104023086A (en) 2014-09-03
CN104023086B true 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)

Families Citing this family (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

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094229A (en) * 2007-07-24 2007-12-26 深圳市融合视讯科技有限公司 Increment upgrading system and method for networked application programs
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7200838B2 (en) * 2000-12-20 2007-04-03 National Instruments Corporation System and method for automatically generating a graphical program in response to a state diagram
JP4869050B2 (en) * 2006-12-11 2012-02-01 キヤノン株式会社 Management apparatus and management method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Also Published As

Publication number Publication date
CN104023086A (en) 2014-09-03

Similar Documents

Publication Publication Date Title
US8627146B2 (en) Model-based testing of an application program under test
CN106897095A (en) The multiple method of application program hot repair, device and readable storage medium storing program for executing
CN105930226A (en) Data processing method and apparatus
CN107222340A (en) A kind of fault handling method and device based on cloud platform
CN105550080A (en) Method, apparatus and system for performing server program fault injection based on Linux
CN104484167B (en) Task processing method and device
CN103617118A (en) Method, device and system for uniformly processing test results
CN104023086B (en) A kind of WEB cluster codes update method, apparatus and system
CN105227557A (en) A kind of account number processing method and device
CN102103613A (en) Distributed database upgrade method, upgrade processing device and upgrade control device
CN105094860A (en) Terminal software online upgrade method and device
CN106067906A (en) A kind of method of reconnect and monitoring device
CN105955838A (en) System halt reason check method and device
CN105607606B (en) A kind of data acquisition device and method based on double mainboard frameworks
CN105515804A (en) Apparatus and method for fixing client system errors
CN105573905A (en) Software compatibility testing method and system
CN114650211B (en) Fault repairing method, device, electronic equipment and computer readable storage medium
CN111930565A (en) Process fault self-healing method, device and equipment for components in distributed management system
CN106294058A (en) The target strategy processing problems of operation document determines method and device
CN112181695A (en) Abnormal application processing method, device, server and storage medium
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN104915291A (en) Terminal restart verification method and system
CN107888693A (en) NB IOT apparatus debugging methods and server
CN109086171A (en) A kind of file system restorative procedure and device
CN106648444B (en) A kind of message treatment method and equipment

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