CN109787830A - Gray scale distribution control method, device, system, electronic equipment and storage medium - Google Patents
Gray scale distribution control method, device, system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109787830A CN109787830A CN201910055325.2A CN201910055325A CN109787830A CN 109787830 A CN109787830 A CN 109787830A CN 201910055325 A CN201910055325 A CN 201910055325A CN 109787830 A CN109787830 A CN 109787830A
- Authority
- CN
- China
- Prior art keywords
- alternative versions
- gray
- access request
- web service
- logic
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of gray scale distribution control method, device, system, electronic equipment and storage mediums.Wherein, Web service has original version and an at least alternative versions, and gray scale distribution control method includes: the access request for receiving client, and the access request is for requesting access to the Web service;The matched gray scale strategy of the Web service is obtained, the gray scale strategy includes gray-scale Control logic, and the gray-scale Control logic is used to configure an at least alternative versions for the specified access that the Web service is distinguished according to presupposed information;According to the gray-scale Control logic, client alternative versions corresponding to the value on the presupposed information are judged whether there is;If it exists, then the access request is forwarded to the corresponding alternative versions;If it does not exist, then the access request is forwarded to the original version.The present invention supports the gray scale publication of much information, more alternative versions, supports complicated gray level logic.
Description
Technical field
The present invention relates to internet area more particularly to a kind of gray scale distribution control method, device, systems, electronic equipment
And storage medium.
Background technique
For website application for, usually require that provide continuous service in 7*24 hours, service upgrade however shadow
It rings to user and normally accesses website.It can be issued under normal circumstances by gray scale, i.e., new version is first issued to a wherein server,
Read that server is abnormal either with or without report, access website sees whether service is normal, after confirmation is out of question, then issues half server, most
After confirm full dose again out of question publication.
Current gray scale publication is generally completed by automatic deployment system, and gray scale publication can only generally be supported according to a small amount of
Several information carry out gray scale, bad for more complex gray level logic support, influence the flexible Application of gray scale publication.
Summary of the invention
Technical problems to be solved of the embodiment of the present invention be in order to overcome in the prior art gray scale publication can only support by
Gray scale is carried out according to a small amount of several information, it is bad for more complex gray level logic support, influence the flexible Application of gray scale publication
Defect provides a kind of gray scale distribution control method, device, system, electronic equipment and storage medium.
The embodiment of the present invention is to solve above-mentioned technical problem by the following technical programs:
The embodiment of the present invention provides a kind of Web (global wide area network) service gray scale distribution control method, and Web service has original
Beginning version and at least an alternative versions, which comprises
The access request of client is received, the access request is for requesting access to the Web service;
The matched gray scale strategy of the Web service is obtained, the gray scale strategy includes gray-scale Control logic, the gray scale control
Logic processed is used to configure an at least alternative versions for the specified access that the Web service is distinguished according to presupposed information;
According to the gray-scale Control logic, the client is judged whether there is corresponding to the value on the presupposed information
Alternative versions;
If it exists, then the access request is forwarded to the corresponding alternative versions;
If it does not exist, then the access request is forwarded to the original version.
Preferably, the access request includes request URL (uniform resource locator), the gray-scale Control logic is configured with
The URL of the alternative versions of the specified access of the Web service and URL of the original version;
The step of access request is forwarded to the corresponding alternative versions includes: to be forwarded to the access request
The URL of the corresponding alternative versions;
The step of access request is forwarded to the original version includes: that the access request is forwarded to the original
The URL of beginning version.
Preferably, the presupposed information includes IP (Internet protocol address), uid (user identity proves), User-
At least one of Agent (user agent) and third party's service caller.
Preferably, an at least alternative versions of the gray-scale Control logic configured with the specified access of the Web service and
The control logic of each alternative versions;
According to the gray-scale Control logic, the client is judged whether there is corresponding to the value on the presupposed information
Alternative versions the step of, comprising:
Whether the alternative versions for judging the gray-scale Control logic configuration are empty;
If it is empty, then the access request is forwarded to the original version;
If not empty, then:
The control logic of the alternative versions is executed one by one, until finding value of the client on the presupposed information
The alternative versions hit, and using the alternative versions of hit as the corresponding alternative versions, the access request is forwarded
To the corresponding alternative versions;
If value miss any alternative versions of the client on the presupposed information, the access request is turned
It is sent to the original version;
And/or the gray-scale Control logic is also configured with the Requests dispatching strategies designed of each alternative versions;
The method distributes plan when the access request is forwarded to the corresponding alternative versions, according to the request
Slightly make requests distribution;
And/or the gray-scale Control logic is also configured with whether each alternative versions execute from the background;
The method is when being forwarded to the corresponding alternative versions for the access request, if the corresponding alternative version
Originally it is configured to backstage to execute, then forwards the access request to the corresponding alternative versions from the background.
Preferably, the gray-scale Control logic is also configured with the abnormality processing rule of each alternative versions, the exception
Reason rule is for configuring at least one abnormal logic and the corresponding solution when there is the abnormal logic;
The method also includes judging whether occur after the access request is forwarded to the corresponding alternative versions
Any one described abnormal logic, if so, executing corresponding solution;
Wherein, the abnormal logic preferably includes at least one of following situation:
Generate the responsive state code of mistake;
Access time-out;
Access current limliting;
The solution preferably includes: the access request is forwarded to the original version.
Preferably, the gray scale strategy further includes verifying logic, the verifying logic is for verifying the alternative versions
Whether content is correct;
The method also includes: after the access request is forwarded to the corresponding alternative versions, tested according to described
Whether the response results for demonstrate,proving alternative versions described in logic checking are correct;
If mistake, the access request is forwarded to the original version.
The embodiment of the present invention provides a kind of gradation control method, which comprises
Gray scale strategy is configured, the gray scale strategy includes gray-scale Control logic, and the gray-scale Control logic is for configuring Web
Service an at least alternative versions for the specified access distinguished according to presupposed information.
Preferably, the presupposed information includes at least one in IP, uid, User-Agent and third party's service caller
Kind.
Preferably, an at least alternative versions of the gray-scale Control logic configured with the specified access of the Web service, and
At least one of the following contents:
The URL of the original version of the Web service;
The URL of each alternative versions;
The control logic of each alternative versions;
The Requests dispatching strategies designed of each alternative versions;
Whether each alternative versions execute from the background;
Each alternative versions abnormality processing rule, the abnormality processing rule for configure an at least abnormal logic and
The corresponding solution when there is the abnormal logic, wherein preferably included in the abnormal logic in following situation extremely
Few one kind:
Generate the responsive state code of mistake;
Access time-out;
Access current limliting;
The solution preferably includes: the access request is forwarded to the original version.
Preferably, the gray scale strategy further includes verifying logic, the verifying logic is for verifying the alternative versions
Whether content is correct.
The embodiment of the present invention provides a kind of Web service gray scale publication control device, the Web service have original version and
An at least alternative versions, described device include: receiving module, obtain module, judgment module and forwarding module;
The receiving module is used to receive the access request of client, and the access request is for requesting access to the Web
Service;
For the acquisition module for obtaining the matched gray scale strategy of the Web service, the gray scale strategy includes gray scale control
Logic processed, the gray-scale Control logic is for configuring at least the one of the specified access that the Web service is distinguished according to presupposed information
Alternative versions;
The judgment module is used to judge whether there is the client described default according to the gray-scale Control logic
Alternative versions corresponding to value in information then call the forwarding module to be forwarded to the access request described right if it exists
The alternative versions answered then call the forwarding module that the access request is forwarded to the original version if it does not exist.
Preferably, the access request includes request URL, the gray-scale Control logic is specified configured with the Web service
The URL of the URL of the alternative versions of access and the original version;
By the access request be forwarded to the corresponding alternative versions include: the access request is forwarded to it is described right
The URL for the alternative versions answered;
It includes: that the access request is forwarded to the original version that the access request, which is forwarded to the original version,
URL.
Preferably, the presupposed information includes at least one in IP, uid, User-Agent and third party's service caller
Kind.
Preferably, an at least alternative versions of the gray-scale Control logic configured with the specified access of the Web service and
The control logic of each alternative versions;
The judgment module is used to judge whether the alternative versions of the gray-scale Control logic configuration to be sky, are if it is empty then adjusted
The access request is forwarded to the original version with the forwarding module, then executes each alternative versions one by one if not empty
Control logic then will hit until find the alternative versions that value of the client on the presupposed information is hit
Alternative versions as the corresponding alternative versions, call the forwarding module that the access request is forwarded to the correspondence
Alternative versions, call the forwarding mould if any alternative versions of value miss on the presupposed information if the client
The access request is forwarded to the original version by block;
And/or the gray-scale Control logic is also configured with the Requests dispatching strategies designed of each alternative versions;
The forwarding module is when being forwarded to the corresponding alternative versions for the access request, according to the request point
Hair strategy makes requests distribution;
And/or the gray-scale Control logic is also configured with whether each alternative versions execute from the background;
The forwarding module is when being forwarded to the corresponding alternative versions for the access request, if described corresponding standby
It selects version to be configured to backstage to execute, then forwards the access request to the corresponding alternative versions from the background.
Preferably, the gray-scale Control logic is also configured with the abnormality processing rule of each alternative versions, the exception
Reason rule is for configuring at least one abnormal logic and the corresponding solution when there is the abnormal logic;
Described device further include:
Exception processing module, for judging whether after the access request is forwarded to the corresponding alternative versions
There is any one described abnormal logic, if so, executing corresponding solution;
Wherein, the abnormal logic preferably includes at least one of following situation:
Generate the responsive state code of mistake;
Access time-out;
Access current limliting;
The solution preferably includes: calling the forwarding module that the access request is forwarded to the original version
This.
Preferably, the gray scale strategy further includes verifying logic, the verifying logic is for verifying the alternative versions
Whether content is correct;
Described device further include:
Authentication module, for after the access request is forwarded to the corresponding alternative versions, according to the verifying
Whether the response results of alternative versions described in logic checking are correct, call the forwarding module by the access if authentication error
Request is forwarded to the original version.
The embodiment of the present invention provides a kind of gray-scale Control system, the system comprises:
Configuration module, for configuring gray scale strategy, the gray scale strategy includes gray-scale Control logic, and the gray-scale Control is patrolled
Collect at least alternative versions for configuring the specified access that Web service is distinguished according to presupposed information.
Preferably, the presupposed information includes at least one in IP, uid, User-Agent and third party's service caller
Kind.
Preferably, an at least alternative versions of the gray-scale Control logic configured with the specified access of the Web service, and
At least one of the following contents:
The URL of the original version of the Web service;
The URL of each alternative versions;
The control logic of each alternative versions;
The Requests dispatching strategies designed of each alternative versions;
Whether each alternative versions execute from the background;
Each alternative versions abnormality processing rule, the abnormality processing rule for configure an at least abnormal logic and
The corresponding solution when there is the abnormal logic, wherein the abnormal logic preferably includes in following situation at least
It is a kind of:
Generate the responsive state code of mistake;
Access time-out;
Access current limliting;
The solution preferably includes: the access request is forwarded to the original version.
Preferably, the gray scale strategy further includes verifying logic, the verifying logic is for verifying the alternative versions
Whether content is correct.
The embodiment of the present invention provides a kind of Web service system, and the Web service system includes appointing in claim 11-16
Gray-scale Control described in Web service gray scale described in meaning one publication any one of control device and claim 17-20
System;
The Web service gray scale publication control device calls the gray scale after the access request for receiving the client
Control system, the gray-scale Control system return to the matched gray scale strategy of Web service and give Web service gray scale publication control
Device processed.
The embodiment of the present invention provides a kind of electronic equipment, including memory, processor and storage are on a memory and can be
The computer program run on processor, the processor realize Web service gray scale hair as described above when executing described program
Cloth control method.
The embodiment of the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, and feature exists
In the step of realizing Web service gray scale distribution control method as described above when described program is executed by processor.
The embodiment of the present invention provides a kind of electronic equipment, including memory, processor and storage are on a memory and can be
The computer program run on processor, which is characterized in that the processor realizes ash as described above when executing described program
Spend control method.
The embodiment of the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, and feature exists
In the step of realizing gradation control method as described above when described program is executed by processor.
On the basis of common knowledge of the art, above-mentioned each optimum condition, can any combination to get each preferable reality of the present invention
Apply example.
The positive effect of the embodiment of the present invention is: by distinguishing the specified access of Web service according to presupposed information
Alternative versions realize the gray scale publication for supporting much information, more alternative versions;It is especially grey by the configuration of gray scale strategy
Control logic and verifying logic are spent, so that supporting complicated gray level logic, gray scale publication can be carried out for greater flexibility;By different
Self-adaptive processing under normal situation, guarantees the user experience good for use and good of service.
Detailed description of the invention
Fig. 1 is a kind of flow chart of Web service gray scale distribution control method of the embodiment of the present invention 1.
Fig. 2 is a kind of flow chart of Web service gray scale distribution control method of the embodiment of the present invention 2.
Fig. 3 is a kind of flow chart of gradation control method of the embodiment of the present invention 3.
Fig. 4 is that a kind of Web service gray scale of the embodiment of the present invention 4 issues the schematic block diagram of control device.
Fig. 5 is that a kind of Web service gray scale of the embodiment of the present invention 5 issues the schematic block diagram of control device.
Fig. 6 is a kind of schematic block diagram of gray-scale Control system of the embodiment of the present invention 6.
Fig. 7 is a kind of schematic block diagram of Web service system of the embodiment of the present invention 6.
Fig. 8 is the structural schematic diagram of a kind of electronic equipment of the embodiment of the present invention 7.
Specific embodiment
The present invention is further illustrated below by the mode of embodiment, but does not therefore limit the present invention to the reality
It applies among a range.
Embodiment 1
Fig. 1 shows a kind of Web service gray scale distribution control method of the present embodiment.The Web service has original version
Sheet and an at least alternative versions.The Web service gray scale distribution control method the following steps are included:
Step 11: receiving the access request of client.The access request is for requesting access to the Web service.
Step 12: obtaining the matched gray scale strategy of the Web service.The gray scale strategy includes gray-scale Control logic.Institute
Gray-scale Control logic is stated for configuring an at least alternative versions for the specified access that the Web service is distinguished according to presupposed information.
Step 13: according to the gray-scale Control logic, judging whether there is the client on the presupposed information
The corresponding alternative versions of value, and if it exists, then follow the steps 14, if it does not exist, then follow the steps 15.
Step 14: the access request is forwarded to the corresponding alternative versions.
Step 15: the access request is forwarded to the original version.
The Web service gray scale distribution control method of the present embodiment can be applied but is not limited to applied to Web service version
It updates, the scenes such as test of different editions.The original version can be that Web service is original, early version of function-stable, institute
State that alternative versions can be that Web service is newly developed, function needs further test or that whether uncertain function is stable is new
Version.It, can be according to actual development situation, publication situation etc. for the quantity for the alternative versions that a Web service can have
Depending on many factors, the present embodiment is not especially limited.
Value of the gray-scale Control logical expressions client of the present embodiment on presupposed information is different, specifies the Web clothes of access
The alternative versions of business may be different.In the present embodiment, the presupposed information may include IP, uid, User-Agent and third
At least one of square service caller can support the information of gray scale more, so that entire ash compared to traditional gray scale publication
Degree publication is more flexible.By the configuration of the gray-scale Control logic, the method for the present embodiment may be implemented to visit in different user
When asking same Web service, the version used be will be different, and the gray scale of multi version is supported to issue.
Embodiment 2
Web service gray scale distribution control method provided in this embodiment is further refinement on the basis of embodiment 1,
Major embodiment in:
The gray scale strategy of the present embodiment includes gray-scale Control logic and verifying logic.The gray scale strategy can specifically configure
Multiple configuration items are advantageously implemented more complicated gray-scale Control and version verifying.Wherein, for realizing the gray-scale Control logic
Configuration item can include but is not limited to configure:
Key assignments (KEY, such as KEY=request URL), the matching for gray scale strategy;
The URL (old_version_url) of the original version;
(version, such as version=versionN, N's at least alternative versions for the specified access of the Web service are positive
Integer);
Each alternative versions URL (versionN_url can be relative path such as/tem/v1, can also with when absolute road
Diameter such as server internal forwarding address http://a.local/item/v1, redirect address http://a.com/item/v1);
Control logic (versionN_control_logic, such as versionN_control_ of each alternative versions
Logic=lua code);
Requests dispatching strategies designed (versionN_dispatch, such as versionN_dispatch=of each alternative versions
Redirect/forward), the Requests dispatching strategies designed is for indicating that when distributing request be that server internal is forwarded to
The url of versionN is still redirected to the url of versionN;
Whether each alternative versions execute (versionN_background, such as versionN_background=from the background
0/1) it, is executed if it is backstage, then it represents that flow is copied into versionN, without executing gray level logic;
Each alternative versions abnormality processing rule, the abnormality processing rule for configure at least one abnormal logic with
And the corresponding solution when there is the abnormal logic, wherein the abnormal logic preferably includes, but is not limited to following shape
At least one of condition:
Generate responsive state code (versionN_error_status, such as versionN_error_status=of mistake
404,500,502,503);
Access overtime (versionN_timeout, such as versionN_timeout=5s);
It accesses current limliting (versionN_limit, such as versionN_limit=100/s);
The corresponding solution of above-mentioned condition can be identical or different, the embodiment of the present invention solution preferably include but
It is not limited to: the access request is forwarded to the original version.
Whether the content that the verifying logic is used to verify the alternative versions is correct.For realizing the verifying logic
Configuration item can include but is not limited to configure:
Proof rule (versionN_validation_rule, such as versionN_validation_rule=lua generation
Code), it is whether correct for verifying versionN content, authentication failed is indicated if returning to 0.
The configuration item of each alternative versions can be identical or different according to actual needs.The concrete configuration of each configuration item can also
With identical or different according to actual needs.
Fig. 2 shows a kind of Web service gray scale distribution control methods of the present embodiment.For the gray-scale Control of the present embodiment
Logic, the Web service gray scale distribution control method the following steps are included:
Step 21: receiving the access request of client, the access request includes request URL, source IP, required parameter and asks
Head is sought, wherein request URL is to indicate the Web service requested access to.
Step 22: using the request URL, obtain the gray scale strategy that KEY is the request URL.
Step 23: whether the alternative versions for judging the gray-scale Control logic configuration of the gray scale strategy are sky, if it is empty, then
It executes step 24 and thens follow the steps 25 if not empty.
Step 24: the access request is forwarded to the URL of the original version.
Step 25: the control logic of the alternative versions is executed one by one, until finding the client in the default letter
The alternative versions that value on breath is hit, and using the alternative versions of hit as the corresponding alternative versions, then execute step
Rapid 27.For example, it is assumed that the alternative versions of the specified access of Web service are version1 and version2, then version1 is first carried out
Control logic, can be dynamic by loadstring (type function) here with a kind of lua (scripting language) scripting language
State parses script and realizes dynamic configuration, and request URL, source IP, required parameter and request header are passed to lua function and executed, it is assumed that
The access request that presupposed information is uid and default uid tail number is 1,3,5 is forwarded to version1, if the return value executed is 1
It then indicates hit version1, otherwise indicates miss version1, then execute the control logic of version2, it is same to judge
Whether return value is 1, and hit version2 is indicated if returning to 1, otherwise indicates miss version2.
Step 26: if value miss any alternative versions of the client on the presupposed information, then follow the steps
24。
Step 27: the access request is forwarded to the URL of the corresponding alternative versions.Turn by the access request
When being sent to the corresponding alternative versions, need to make requests distribution according to the Requests dispatching strategies designed, then if it is forward
It indicates that server internal is forwarded to the URL of the corresponding alternative versions, then indicates to be redirected to if it is redirect described
The URL of corresponding alternative versions;It is executed if the corresponding alternative versions are configured to backstage, forwards the access request from the background
To the corresponding alternative versions, whether the corresponding alternative versions are judged by observation log in the case where not online
Correctly.
Step 28: judging whether any one described abnormal logic occur, including responsive state generation after forwarding returning response
Whether code correct, whether time-out, whether current limliting if there is any one described abnormal logic thens follow the steps 24, if not occurring
Any one described abnormal logic, thens follow the steps 29.
Step 29: whether the response results for verifying the alternative versions according to the verifying logic are correct, if mistake, hold
Row step 24.
In the present embodiment, the control of gray scale publication is very flexible, can support multi version gray scale, can support matching for gray scale
It sets, can support complicated gray-scale Control and verifying logic, reproducible flow carrys out gray scale authentication function, and the flexible self-adaptive processing of energy is different
Normal logic, it is fast automatic when encountering problems to be downgraded to original version processing, user experience is influenced without worrying, to realize
Flexible multi version gray scale.
Nginx can be used in the Web gray scale of embodiment 1 and embodiment 2 service distribution control method, and (one high performance
HTTP and reverse proxy service and an IMAP/POP3/SMTP service) access layer (or the skill with other similar Nginx
Art, for example an access layer is write with go language)+lua realization.
Embodiment 3
Fig. 3 shows a kind of gradation control method of the present embodiment.The gradation control method includes:
Step 31: configuration gray scale strategy.
In the present embodiment, the gray scale strategy includes gray-scale Control logic.The gray-scale Control logic is for configuring Web clothes
An at least alternative versions for the specified access that business is distinguished according to presupposed information.The gray-scale Control logical expressions client of the present embodiment
Value on presupposed information is different, specifies the alternative versions of the Web service of access just different.
In the present embodiment, the presupposed information include in IP, uid, User-Agent and third party's service caller extremely
Few one kind can support the information of gray scale more compared to traditional gray scale publication, so that entire gray scale publication is more flexible.
The gray scale strategy can specifically configure multiple configuration items, be advantageously implemented more complicated gray-scale Control.Wherein, it uses
It can include but is not limited to configure in the configuration item for realizing the gray-scale Control logic:
Key assignments (KEY, such as KEY=request URL), the matching for gray scale strategy;
The URL (old_version_url) of the original version;
(version, such as version=versionN, N's at least alternative versions for the specified access of the Web service are positive
Integer);
Each alternative versions URL (versionN_url can be relative path such as/tem/v1, can also with when absolute road
Diameter such as server internal forwarding address http://a.local/item/v1, redirect address http://a.com/item/v1);
Control logic (versionN_control_logic, such as versionN_control_ of each alternative versions
Logic=lua code);
Requests dispatching strategies designed (versionN_dispatch, such as versionN_dispatch=of each alternative versions
Redirect/forward), the Requests dispatching strategies designed is for indicating that when distributing request be that server internal is forwarded to
The url of versionN is still redirected to the url of versionN;
Whether each alternative versions execute (versionN_background, such as versionN_background=from the background
0/1) it, is executed if it is backstage, then it represents that flow is copied into versionN, without executing gray level logic;
Each alternative versions abnormality processing rule, the abnormality processing rule for configure at least one abnormal logic with
And the corresponding solution when there is the abnormal logic, wherein the abnormal logic preferably includes, but is not limited to following shape
At least one of condition:
Generate responsive state code (versionN_error_status, such as versionN_error_status=of mistake
404,500,502,503);
Access overtime (versionN_timeout, such as versionN_timeout=5s);
It accesses current limliting (versionN_limit, such as versionN_limit=100/s);
The corresponding solution of above-mentioned condition can be identical or different, the embodiment of the present invention solution preferably include but
It is not limited to: the access request is forwarded to the original version.
In the present embodiment, the gray scale strategy can also include verifying logic.The verifying logic is described standby for verifying
Select the content of version whether correct.It can include but is not limited to configure for realizing the configuration item of the verifying logic:
Proof rule (versionN_validation_rule, such as versionN_validation_rule=lua generation
Code), it is whether correct for verifying versionN content, authentication failed is indicated if returning to 0.
The configuration item of each alternative versions can be identical or different according to actual needs.The concrete configuration of each configuration item can also
With identical or different according to actual needs.
The gradation control method of the present embodiment can be used alone, and to realize the configuration of complicated gray scale strategy, can also match
The Web service gray scale distribution control method closed in embodiment 1 or embodiment 2 uses, and for example, Web service gray scale issues controlling party
Method provides configured gray scale strategy, to guarantee the progress of gray-scale Control.
Embodiment 4
Fig. 4 shows a kind of Web service gray scale publication control device of the present embodiment.The Web service has original version
Sheet and an at least alternative versions.The Web service gray scale publication control device 40 includes: receiving module 41, obtains module 42, sentences
Disconnected module 43 and forwarding module 44.
The receiving module 41 is used to receive the access request of client.The access request is described for requesting access to
Web service.
The acquisition module 42 is for obtaining the matched gray scale strategy of the Web service.The gray scale strategy includes gray scale
Control logic.The gray-scale Control logic is used to configure specified access that the Web service is distinguished according to presupposed information at least
One alternative versions.
The judgment module 43 is used to judge whether there is the client described pre- according to the gray-scale Control logic
If alternative versions corresponding to the value in information, then call the forwarding module 44 that the access request is forwarded to institute if it exists
Corresponding alternative versions are stated, then call the forwarding module 44 that the access request is forwarded to the original version if it does not exist
This.
The Web service gray scale publication control device 40 of the present embodiment can be applied but be not limited to be applied to Web service version
Update, the scenes such as test of different editions.The original version can be that Web service is original, early version of function-stable,
Whether the alternative versions can be Web service newly developed, the further test of function needs or uncertain function stable
New version.It, can be according to actual development situation, publication situation for the quantity for the alternative versions that a Web service can have
Depending on equal many factors, the present embodiment is not especially limited.
Value of the gray-scale Control logical expressions client of the present embodiment on presupposed information is different, specifies the Web clothes of access
The alternative versions of business may be different.In the present embodiment, the presupposed information may include IP, uid, User-Agent and third
At least one of square service caller can support the information of gray scale more, so that entire ash compared to traditional gray scale publication
Degree publication is more flexible.By the configuration of the gray-scale Control logic, the device of the present embodiment may be implemented to visit in different user
When asking same Web service, the version used be will be different, and the gray scale of multi version is supported to issue.
Embodiment 5
Web service gray scale publication control device provided in this embodiment is further refinement on the basis of embodiment 4,
Major embodiment in:
The gray scale strategy of the present embodiment includes gray-scale Control logic and verifying logic.The gray scale strategy can specifically configure
Multiple configuration items are advantageously implemented more complicated gray-scale Control and version verifying.Wherein, for realizing the gray-scale Control logic
Configuration item can include but is not limited to configure:
Key assignments (KEY, such as KEY=request URL), the matching for gray scale strategy;
The URL (old_version_url) of the original version;
(version, such as version=versionN, N's at least alternative versions for the specified access of the Web service are positive
Integer);
Each alternative versions URL (versionN_url can be relative path such as/tem/v1, can also with when absolute road
Diameter such as server internal forwarding address http://a.local/item/v1, redirect address http://a.com/item/v1);
Control logic (versionN_control_logic, such as versionN_control_ of each alternative versions
Logic=lua code);
Requests dispatching strategies designed (versionN_dispatch, such as versionN_dispatch=of each alternative versions
Redirect/forward), the Requests dispatching strategies designed is for indicating that when distributing request be that server internal is forwarded to
The url of versionN is still redirected to the url of versionN;
Whether each alternative versions execute (versionN_background, such as versionN_background=from the background
0/1) it, is executed if it is backstage, then it represents that flow is copied into versionN, without executing gray level logic;
Each alternative versions abnormality processing rule, the abnormality processing rule for configure at least one abnormal logic with
And the corresponding solution when there is the abnormal logic, wherein the abnormal logic preferably includes, but is not limited to following shape
At least one of condition:
Generate responsive state code (versionN_error_status, such as versionN_error_status=of mistake
404,500,502,503);
Access overtime (versionN_timeout, such as versionN_timeout=5s);
It accesses current limliting (versionN_limit, such as versionN_limit=100/s);
The corresponding solution of above-mentioned condition can be identical or different, the embodiment of the present invention solution preferably include but
It is not limited to: the access request is forwarded to the original version.
Whether the content that the verifying logic is used to verify the alternative versions is correct.For realizing the verifying logic
Configuration item can include but is not limited to configure:
Proof rule (versionN_validation_rule, such as versionN_validation_rule=lua generation
Code), it is whether correct for verifying versionN content, authentication failed is indicated if returning to 0.
The configuration item of each alternative versions can be identical or different according to actual needs.The concrete configuration of each configuration item can also
With identical or different according to actual needs.
Fig. 5 shows the Web service gray scale publication control device of the present embodiment.It is patrolled for the gray-scale Control of the present embodiment
Volume, the Web service gray scale publication control device 50 includes receiving module 51, obtains module 52, judgment module 53, forwarding module
54, exception processing module 55 and authentication module 56.
The receiving module 51 is used to receive the access request of client, the access request include request URL, source IP,
Required parameter and request header, wherein request URL is to indicate the Web service requested access to.
The acquisition module 52 is used to use the request URL, obtains the gray scale strategy that KEY is the request URL.
The judgment module 53 is used to judge whether the alternative versions of the gray-scale Control logic configuration to be sky, if it is empty then
It calls the forwarding module 54 that the access request is forwarded to the URL of the original version, then executes one by one if not empty every
The control logic of a alternative versions, until the alternative versions that value of the client on the presupposed information is hit are found,
Then using the alternative versions of hit as the corresponding alternative versions, the forwarding module 54 is called to turn the access request
It is sent to the URL of the corresponding alternative versions, if any alternative version of value miss of the client on the presupposed information
This then calls the forwarding module 54 that the access request is forwarded to the URL of the original version.
The forwarding module 54 when the access request to be forwarded to the URL of the corresponding alternative versions, need by
Distribution is made requests according to the Requests dispatching strategies designed, it is described corresponding then to indicate that server internal is forwarded to if it is forward
The URL of alternative versions then indicates the URL for being redirected to the corresponding alternative versions if it is redirect;If the correspondence
Alternative versions be configured to backstage execute, then forward the access request to the corresponding alternative versions from the background, not online
In the case where by observation log judge whether the corresponding alternative versions correct.
The exception processing module 55 is used in the URL that the access request is forwarded to the corresponding alternative versions
Afterwards, judge whether any one described abnormal logic occur, including whether responsive state code is correct after forwarding returning response, is
It is no time-out, whether current limliting, call the forwarding module 54 by the access request if there is any one described abnormal logic
It is forwarded to the URL of the original version.
The authentication module 56 is used for after the access request to be forwarded to the URL of the corresponding alternative versions, is pressed
Whether the response results for verifying the alternative versions according to the verifying logic are correct, and the forwarding module is called if authentication error
54 are forwarded to the access request URL of the original version.
In the present embodiment, the control of gray scale publication is very flexible, can support multi version gray scale, can support matching for gray scale
It sets, can support complicated gray-scale Control and verifying logic, reproducible flow carrys out gray scale authentication function, and the flexible self-adaptive processing of energy is different
Normal logic, it is fast automatic when encountering problems to be downgraded to original version processing, user experience is influenced without worrying, to realize
Flexible multi version gray scale.
Nginx access layer can be used in Web gray scale service publication control device 40,50 in embodiment 4 and embodiment 5
(or the technology with other similar Nginx, for example an access layer is write with go language)+lua realization.
Embodiment 6
Fig. 6 shows a kind of gray-scale Control system of the present embodiment.The gray-scale Control system 60 includes: configuration module
61.The configuration module 61 is for configuring gray scale strategy.
In the present embodiment, the gray scale strategy includes gray-scale Control logic.The gray-scale Control logic is for configuring Web clothes
An at least alternative versions for the specified access that business is distinguished according to presupposed information.The gray-scale Control logical expressions client of the present embodiment
Value on presupposed information is different, specifies the alternative versions of the Web service of access just different.
In the present embodiment, the presupposed information include in IP, uid, User-Agent and third party's service caller extremely
Few one kind can support the information of gray scale more compared to traditional gray scale publication, so that entire gray scale publication is more flexible.
The gray scale strategy can specifically configure multiple configuration items, be advantageously implemented more complicated gray-scale Control.Wherein, it uses
It can include but is not limited to configure in the configuration item for realizing the gray-scale Control logic:
Key assignments (KEY, such as KEY=request URL), the matching for gray scale strategy;
The URL (old_version_url) of the original version;
(version, such as version=versionN, N's at least alternative versions for the specified access of the Web service are positive
Integer);
Each alternative versions URL (versionN_url can be relative path such as/tem/v1, can also with when absolute road
Diameter such as server internal forwarding address http://a.local/item/v1, redirect address http://a.com/item/v1);
Control logic (versionN_control_logic, such as versionN_control_ of each alternative versions
Logic=lua code);
Requests dispatching strategies designed (versionN_dispatch, such as versionN_dispatch=of each alternative versions
Redirect/forward), the Requests dispatching strategies designed is for indicating that when distributing request be that server internal is forwarded to
The url of versionN is still redirected to the url of versionN;
Whether each alternative versions execute (versionN_background, such as versionN_background=from the background
0/1) it, is executed if it is backstage, then it represents that flow is copied into versionN, without executing gray level logic;
Each alternative versions abnormality processing rule, the abnormality processing rule for configure at least one abnormal logic with
And the corresponding solution when there is the abnormal logic, wherein the abnormal logic preferably includes, but is not limited to following shape
At least one of condition:
Generate responsive state code (versionN_error_status, such as versionN_error_status=of mistake
404,500,502,503);
Access overtime (versionN_timeout, such as versionN_timeout=5s);
It accesses current limliting (versionN_limit, such as versionN_limit=100/s);
The corresponding solution of above-mentioned condition can be identical or different, the embodiment of the present invention solution preferably include but
It is not limited to: the access request is forwarded to the original version.
In the present embodiment, the gray scale strategy can also include verifying logic.The verifying logic is described standby for verifying
Select the content of version whether correct.It can include but is not limited to configure for realizing the configuration item of the verifying logic:
Proof rule (versionN_validation_rule, such as versionN_validation_rule=lua generation
Code), it is whether correct for verifying versionN content, authentication failed is indicated if returning to 0.
The configuration item of each alternative versions can be identical or different according to actual needs.The concrete configuration of each configuration item can also
With identical or different according to actual needs.
The gray-scale Control system 60 of the present embodiment can be used alone, can also be with to realize the configuration of complicated gray scale strategy
The Web service gray scale publication control device 40 or 50 in embodiment 4 or embodiment 5 is cooperated to use, such as:
A kind of Web service system as shown in Figure 7, the Web service system include Web service gray scale publication control device
40 or 50 and gray-scale Control system 60.The Web service gray scale publication control device 40 or 50 is receiving the client
Access request after call the gray-scale Control system 60, the gray-scale Control system 60 returns to the matched ash of the Web service
Degree strategy issues control device 40 or 50 to the Web service gray scale, to guarantee the progress of gray-scale Control.The Web service system
System can further include the Web server 70 for issuing the original version and issue the Web server of the alternative versions
80。
Embodiment 7
Fig. 8 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention 7 provides.The electronic equipment includes storage
Device, processor and storage on a memory and the computer program that can run on a processor, the processor execution journey
Any one method in embodiment 1-3 is realized when sequence.The electronic equipment 90 that Fig. 8 is shown is only an example, should not be to this hair
The function and use scope of bright embodiment bring any restrictions.
As shown in figure 8, electronic equipment 90 can be showed in the form of universal computing device, such as it can set for server
It is standby.The component of electronic equipment 90 can include but is not limited to: at least one above-mentioned processor 91, above-mentioned at least one processor
92, the bus 93 of different system components (including memory 92 and processor 91) is connected.
Bus 93 includes data/address bus, address bus and control bus.
Memory 92 may include volatile memory, such as random access memory (RAM) 921 and/or cache
Memory 922 can further include read-only memory (ROM) 923.
Memory 92 can also include program/utility 925 with one group of (at least one) program module 924, this
The program module 924 of sample includes but is not limited to: operating system, one or more application program, other program modules and journey
It may include the realization of network environment in ordinal number evidence, each of these examples or certain combination.
Processor 91 by the computer program that is stored in memory 92 of operation, thereby executing various function application and
Data processing, such as any one method provided by 1-3 of the embodiment of the present invention.
Electronic equipment 90 can also be communicated with one or more external equipments 94 (such as keyboard, sensing equipment etc.).It is this
Communication can be carried out by input/output (I/O) interface 95.Also, the equipment 90 that model generates can also pass through Network adaptation
Device 96 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) logical
Letter.As shown, the other modules for the equipment 90 that network adapter 96 is generated by bus 93 and model communicate.It should be understood that
Although not shown in the drawings, the equipment 90 that can be generated with binding model uses other hardware and/or software module, including but unlimited
In: microcode, device driver, redundant processor, external disk drive array, RAID (disk array) system, magnetic tape drive
Device and data backup storage system etc..
It should be noted that although being referred to several units/modules or subelement/mould of electronic equipment in the above detailed description
Block, but it is this division be only exemplary it is not enforceable.In fact, embodiment according to the present invention, is retouched above
The feature and function for two or more units/modules stated can embody in a units/modules.Conversely, above description
A units/modules feature and function can with further division be embodied by multiple units/modules.
Embodiment 9
A kind of computer readable storage medium is present embodiments provided, computer program, described program quilt are stored thereon with
The step of any one method provided by embodiment 1-3 is realized when processor executes.
Wherein, what readable storage medium storing program for executing can use more specifically can include but is not limited to: portable disc, hard disk, random
Access memory, read-only memory, erasable programmable read only memory, light storage device, magnetic memory device or above-mentioned times
The suitable combination of meaning.
In possible embodiment, the present invention is also implemented as a kind of form of program product comprising program generation
Code, when described program product is run on the terminal device, said program code is realized in fact for executing the terminal device
Apply the step in any one method described in a 1-3.
Wherein it is possible to be write with any combination of one or more programming languages for executing program of the invention
Code, said program code can be executed fully on a user device, partly execute on a user device, is only as one
Vertical software package executes, part executes on a remote device or executes on a remote device completely on a user device for part.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that these
It is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back
Under the premise of from the principle and substance of the present invention, many changes and modifications may be made, but these are changed
Protection scope of the present invention is each fallen with modification.
Claims (25)
1. a kind of Web service gray scale distribution control method, which is characterized in that Web service has original version and at least one alternatively
Version, which comprises
The access request of client is received, the access request is for requesting access to the Web service;
The matched gray scale strategy of the Web service is obtained, the gray scale strategy includes gray-scale Control logic, and the gray-scale Control is patrolled
Collect at least alternative versions for configuring the specified access that the Web service is distinguished according to presupposed information;
According to the gray-scale Control logic, it is standby corresponding to the value on the presupposed information to judge whether there is the client
Select version;
If it exists, then the access request is forwarded to the corresponding alternative versions;
If it does not exist, then the access request is forwarded to the original version.
2. Web service gray scale distribution control method as described in claim 1, which is characterized in that the access request includes asking
Ask URL, the URL of alternative versions of the gray-scale Control logic configured with the specified access of the Web service and the original version
This URL;
The step of access request is forwarded to the corresponding alternative versions include: the access request is forwarded to it is described
The URL of corresponding alternative versions;
The step of access request is forwarded to the original version includes: that the access request is forwarded to the original version
This URL.
3. Web service gray scale distribution control method as described in claim 1, which is characterized in that the presupposed information include IP,
At least one of uid, User-Agent and third party's service caller.
4. Web service gray scale distribution control method as described in claim 1, which is characterized in that the gray-scale Control logic is matched
It is equipped with the control logic of at least alternative versions and each alternative versions of the specified access of the Web service;
According to the gray-scale Control logic, it is standby corresponding to the value on the presupposed information to judge whether there is the client
The step of selecting version, comprising:
Whether the alternative versions for judging the gray-scale Control logic configuration are empty;
If it is empty, then the access request is forwarded to the original version;
If not empty, then:
The control logic of the alternative versions is executed one by one, is ordered until finding value of the client on the presupposed information
In alternative versions the access request is forwarded to institute and using the alternative versions of hit as the corresponding alternative versions
State corresponding alternative versions;
If value miss any alternative versions of the client on the presupposed information, the access request is forwarded to
The original version;
And/or the gray-scale Control logic is also configured with the Requests dispatching strategies designed of each alternative versions;
The method when the access request is forwarded to the corresponding alternative versions, according to the Requests dispatching strategies designed into
Row request distribution;
And/or the gray-scale Control logic is also configured with whether each alternative versions execute from the background;
The method is when being forwarded to the corresponding alternative versions for the access request, if the corresponding alternative versions are matched
It is set to backstage to execute, then forwards the access request to the corresponding alternative versions from the background.
5. Web service gray scale distribution control method as described in claim 1, which is characterized in that the gray-scale Control logic is also
Configured with each alternative versions abnormality processing rule, the abnormality processing rule for configure at least one abnormal logic and
The corresponding solution when there is the abnormal logic;
It is any the method also includes after the access request is forwarded to the corresponding alternative versions, judging whether to occur
A kind of abnormal logic, if so, executing corresponding solution;
Wherein, the abnormal logic preferably includes at least one of following situation:
Generate the responsive state code of mistake;
Access time-out;
Access current limliting;
The solution preferably includes: the access request is forwarded to the original version.
6. Web service gray scale distribution control method as described in claim 1, which is characterized in that the gray scale strategy further includes
Whether verifying logic, the content that the verifying logic is used to verify the alternative versions are correct;
The method also includes: after the access request is forwarded to the corresponding alternative versions, patrolled according to the verifying
Whether the response results for collecting the verifying alternative versions are correct;
If mistake, the access request is forwarded to the original version.
7. a kind of gradation control method, which is characterized in that the described method includes:
Gray scale strategy is configured, the gray scale strategy includes gray-scale Control logic, and the gray-scale Control logic is for configuring Web service
According to an at least alternative versions for the specified access that presupposed information is distinguished.
8. gradation control method as claimed in claim 7, which is characterized in that the presupposed information includes IP, uid, User-
At least one of Agent and third party's service caller.
9. gradation control method as claimed in claim 7, which is characterized in that the gray-scale Control logic is configured with the Web
At least at least one of an alternative versions and the following contents for the specified access of service:
The URL of the original version of the Web service;
The URL of each alternative versions;
The control logic of each alternative versions;
The Requests dispatching strategies designed of each alternative versions;
Whether each alternative versions execute from the background;
The abnormality processing rule of each alternative versions, the abnormality processing rule is for configuring an at least abnormal logic and going out
Corresponding solution when the existing abnormal logic, wherein at least one in following situation is preferably included in the abnormal logic
Kind:
Generate the responsive state code of mistake;
Access time-out;
Access current limliting;
The solution preferably includes: the access request is forwarded to the original version.
10. gradation control method as claimed in claim 7, which is characterized in that the gray scale strategy further includes verifying logic, institute
Whether correct state content of the verifying logic for verifying the alternative versions.
11. a kind of Web service gray scale issues control device, which is characterized in that the Web service has original version and at least one
Alternative versions, described device include: receiving module, obtain module, judgment module and forwarding module;
The receiving module is used to receive the access request of client, and the access request is for requesting access to the Web service;
For the acquisition module for obtaining the matched gray scale strategy of the Web service, the gray scale strategy includes that gray-scale Control is patrolled
Volume, the gray-scale Control logic is used to configure at least the one of the specified access that the Web service is distinguished according to presupposed information alternatively
Version;
The judgment module is used to judge whether there is the client in the presupposed information according to the gray-scale Control logic
On value corresponding to alternative versions, then call the forwarding module to be forwarded to the access request if it exists described corresponding
Alternative versions then call the forwarding module that the access request is forwarded to the original version if it does not exist.
12. Web service gray scale as claimed in claim 11 issues control device, which is characterized in that the access request includes
Request URL, the URL of alternative versions of the gray-scale Control logic configured with the specified access of the Web service and described original
The URL of version;
By the access request be forwarded to the corresponding alternative versions include: the access request is forwarded to it is described corresponding
The URL of alternative versions;
It includes: that the access request is forwarded to the original version that the access request, which is forwarded to the original version,
URL。
13. Web service gray scale as claimed in claim 11 issues control device, which is characterized in that the presupposed information includes
At least one of IP, uid, User-Agent and third party's service caller.
14. Web service gray scale as claimed in claim 11 issues control device, which is characterized in that the gray-scale Control logic
The control logic of at least an alternative versions and each alternative versions configured with the specified access of the Web service;
The judgment module is used to judge whether the alternative versions of the gray-scale Control logic configuration to be sky, if it is empty then call institute
It states forwarding module and the access request is forwarded to the original version, then execute the control of each alternative versions one by one if not empty
Logic processed, until the alternative versions that value of the client on the presupposed information is hit are found, then by the standby of hit
It selects version as the corresponding alternative versions, calls the forwarding module to be forwarded to the access request described corresponding standby
Version is selected, calls the forwarding module will if any alternative versions of value miss on the presupposed information if the client
The access request is forwarded to the original version;
And/or the gray-scale Control logic is also configured with the Requests dispatching strategies designed of each alternative versions;
The forwarding module distributes plan when the access request is forwarded to the corresponding alternative versions, according to the request
Slightly make requests distribution;
And/or the gray-scale Control logic is also configured with whether each alternative versions execute from the background;
The forwarding module is when being forwarded to the corresponding alternative versions for the access request, if the corresponding alternative version
Originally it is configured to backstage to execute, then forwards the access request to the corresponding alternative versions from the background.
15. Web service gray scale as claimed in claim 11 issues control device, which is characterized in that the gray-scale Control logic
Be also configured with each alternative versions abnormality processing rule, the abnormality processing rule for configure at least one abnormal logic with
And the corresponding solution when there is the abnormal logic;
Described device further include:
Exception processing module, for judging whether occur after the access request is forwarded to the corresponding alternative versions
Any one described abnormal logic, if so, executing corresponding solution;
Wherein, the abnormal logic preferably includes at least one of following situation:
Generate the responsive state code of mistake;
Access time-out;
Access current limliting;
The solution preferably includes: calling the forwarding module that the access request is forwarded to the original version.
16. Web service gray scale as claimed in claim 11 issues control device, which is characterized in that the gray scale strategy also wraps
Verifying logic is included, whether the content that the verifying logic is used to verify the alternative versions is correct;
Described device further include:
Authentication module, for after the access request is forwarded to the corresponding alternative versions, according to the verifying logic
Whether the response results for verifying the alternative versions are correct, call the forwarding module by the access request if authentication error
It is forwarded to the original version.
17. a kind of gray-scale Control system, which is characterized in that the system comprises:
Configuration module, for configuring gray scale strategy, the gray scale strategy includes gray-scale Control logic, and the gray-scale Control logic is used
In an at least alternative versions for the specified access that configuration Web service is distinguished according to presupposed information.
18. gray-scale Control system as claimed in claim 17, which is characterized in that the presupposed information includes IP, uid, User-
At least one of Agent and third party's service caller.
19. gray-scale Control system as claimed in claim 17, which is characterized in that the gray-scale Control logic is configured with described
At least at least one of an alternative versions and the following contents for the specified access of Web service:
The URL of the original version of the Web service;
The URL of each alternative versions;
The control logic of each alternative versions;
The Requests dispatching strategies designed of each alternative versions;
Whether each alternative versions execute from the background;
The abnormality processing rule of each alternative versions, the abnormality processing rule is for configuring an at least abnormal logic and going out
Corresponding solution when the existing abnormal logic, wherein the abnormal logic preferably includes at least one of following situation:
Generate the responsive state code of mistake;
Access time-out;
Access current limliting;
The solution preferably includes: the access request is forwarded to the original version.
20. gray-scale Control system as claimed in claim 17, which is characterized in that the gray scale strategy further includes verifying logic,
Whether the content that the verifying logic is used to verify the alternative versions is correct.
21. a kind of Web service system, which is characterized in that the Web service system includes any one of claim 11-16
Gray-scale Control system described in Web service gray scale publication any one of the control device and claim 17-20;
The Web service gray scale publication control device calls the gray-scale Control after the access request for receiving the client
System, the gray-scale Control system return to the matched gray scale strategy of Web service and give Web service gray scale publication control dress
It sets.
22. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the processor realizes Web clothes described in any one of claims 1 to 6 when executing described program
Business gray scale distribution control method.
23. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed
The step of device realizes Web service gray scale distribution control method described in any one of claims 1 to 6 when executing.
24. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the processor realizes gray scale described in any one of claim 7 to 10 when executing described program
Control method.
25. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed
The step of gradation control method described in any one of claim 7 to 10 is realized when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910055325.2A CN109787830B (en) | 2019-01-21 | 2019-01-21 | Gray scale distribution control method, device, system, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910055325.2A CN109787830B (en) | 2019-01-21 | 2019-01-21 | Gray scale distribution control method, device, system, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109787830A true CN109787830A (en) | 2019-05-21 |
CN109787830B CN109787830B (en) | 2023-03-07 |
Family
ID=66501038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910055325.2A Active CN109787830B (en) | 2019-01-21 | 2019-01-21 | Gray scale distribution control method, device, system, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109787830B (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110311989A (en) * | 2019-08-02 | 2019-10-08 | 中国工商银行股份有限公司 | A kind of gray scale dissemination method, device, storage medium, equipment and system |
CN110457223A (en) * | 2019-08-13 | 2019-11-15 | 中国联合网络通信集团有限公司 | Gray scale tests drainage method, device, proxy server and readable storage medium storing program for executing |
CN110471712A (en) * | 2019-08-12 | 2019-11-19 | 广州华多网络科技有限公司 | Switching method, device, server and the storage medium of cross-system service |
CN110532024A (en) * | 2019-08-28 | 2019-12-03 | 维沃移动通信有限公司 | A kind of version optimization method, device, server and the storage medium of application program |
CN110798502A (en) * | 2019-09-18 | 2020-02-14 | 平安科技(深圳)有限公司 | Grayscale publishing method and device based on micro-service framework and computer equipment |
CN110912734A (en) * | 2019-10-31 | 2020-03-24 | 北京浪潮数据技术有限公司 | Method and device for realizing multi-dimensional gray scale release of container application by cloud management platform |
CN111488159A (en) * | 2019-12-20 | 2020-08-04 | 杭州当虹科技股份有限公司 | Gray scale publishing method capable of being dynamically configured |
CN112532602A (en) * | 2020-11-20 | 2021-03-19 | 中国联合网络通信集团有限公司 | Gray scale publishing method, equipment and server |
CN112653579A (en) * | 2020-12-16 | 2021-04-13 | 中国人寿保险股份有限公司 | OpenResty-based gray scale publishing method and related equipment |
CN112838936A (en) * | 2019-11-22 | 2021-05-25 | 北京金山云网络技术有限公司 | Resource speed limiting method and device, user terminal and server |
CN113050978A (en) * | 2019-12-26 | 2021-06-29 | ***通信集团北京有限公司 | Application gray release control method, device and equipment and computer storage medium |
CN113452622A (en) * | 2021-06-29 | 2021-09-28 | 上海通联金融服务有限公司 | Gray level shunting method based on client |
CN113568655A (en) * | 2021-07-26 | 2021-10-29 | 河北幸福消费金融股份有限公司 | Gray scale distribution system, method and storage medium |
CN113905246A (en) * | 2021-09-10 | 2022-01-07 | 微梦创科网络科技(中国)有限公司 | Method and device for realizing live broadcast room |
CN114125067A (en) * | 2021-02-10 | 2022-03-01 | 北京沃东天骏信息技术有限公司 | Front-end and back-end separated gray scale publishing method, front-end server and configuration server |
CN114615135A (en) * | 2022-02-18 | 2022-06-10 | 佐朋数科(深圳)信息技术有限责任公司 | Front-end gray level publishing method, system and storage medium |
CN114710550A (en) * | 2022-03-18 | 2022-07-05 | 中国建设银行股份有限公司 | Request response method, device, equipment and computer storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104378304A (en) * | 2013-08-14 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Gray scale issuing control method, device and system |
CN104993946A (en) * | 2015-06-01 | 2015-10-21 | 华为技术有限公司 | Evaluation method, device and system for gated launch |
CN105099988A (en) * | 2014-04-24 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Method used for supporting gray releasing, access method, devices and system |
CN106648562A (en) * | 2015-10-29 | 2017-05-10 | 腾讯科技(深圳)有限公司 | Version updating method and device |
CN106998369A (en) * | 2017-05-26 | 2017-08-01 | 努比亚技术有限公司 | Gray scale dissemination method, gateway blocker and computer-readable recording medium |
US20170277481A1 (en) * | 2016-03-24 | 2017-09-28 | Canon Kabushiki Kaisha | Information processing apparatus, method, and storage medium storing program |
CN108632374A (en) * | 2018-05-09 | 2018-10-09 | 星络科技有限公司 | Software gray scale dissemination method and device |
-
2019
- 2019-01-21 CN CN201910055325.2A patent/CN109787830B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104378304A (en) * | 2013-08-14 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Gray scale issuing control method, device and system |
CN105099988A (en) * | 2014-04-24 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Method used for supporting gray releasing, access method, devices and system |
CN104993946A (en) * | 2015-06-01 | 2015-10-21 | 华为技术有限公司 | Evaluation method, device and system for gated launch |
CN106648562A (en) * | 2015-10-29 | 2017-05-10 | 腾讯科技(深圳)有限公司 | Version updating method and device |
US20170277481A1 (en) * | 2016-03-24 | 2017-09-28 | Canon Kabushiki Kaisha | Information processing apparatus, method, and storage medium storing program |
CN106998369A (en) * | 2017-05-26 | 2017-08-01 | 努比亚技术有限公司 | Gray scale dissemination method, gateway blocker and computer-readable recording medium |
CN108632374A (en) * | 2018-05-09 | 2018-10-09 | 星络科技有限公司 | Software gray scale dissemination method and device |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110311989B (en) * | 2019-08-02 | 2022-01-28 | 中国工商银行股份有限公司 | Gray scale publishing method, device, storage medium, equipment and system |
CN110311989A (en) * | 2019-08-02 | 2019-10-08 | 中国工商银行股份有限公司 | A kind of gray scale dissemination method, device, storage medium, equipment and system |
CN110471712A (en) * | 2019-08-12 | 2019-11-19 | 广州华多网络科技有限公司 | Switching method, device, server and the storage medium of cross-system service |
CN110457223A (en) * | 2019-08-13 | 2019-11-15 | 中国联合网络通信集团有限公司 | Gray scale tests drainage method, device, proxy server and readable storage medium storing program for executing |
CN110457223B (en) * | 2019-08-13 | 2023-08-22 | 中国联合网络通信集团有限公司 | Gray test drainage method, device, proxy server and readable storage medium |
CN110532024A (en) * | 2019-08-28 | 2019-12-03 | 维沃移动通信有限公司 | A kind of version optimization method, device, server and the storage medium of application program |
CN110798502A (en) * | 2019-09-18 | 2020-02-14 | 平安科技(深圳)有限公司 | Grayscale publishing method and device based on micro-service framework and computer equipment |
WO2021051623A1 (en) * | 2019-09-18 | 2021-03-25 | 平安科技(深圳)有限公司 | Grayscale release method and apparatus based on microservice framework, and computer device |
CN110798502B (en) * | 2019-09-18 | 2022-06-17 | 平安科技(深圳)有限公司 | Grayscale publishing method and device based on micro-service framework and computer equipment |
CN110912734A (en) * | 2019-10-31 | 2020-03-24 | 北京浪潮数据技术有限公司 | Method and device for realizing multi-dimensional gray scale release of container application by cloud management platform |
CN112838936B (en) * | 2019-11-22 | 2023-05-26 | 北京金山云网络技术有限公司 | Resource speed limiting method, device, user terminal and server |
CN112838936A (en) * | 2019-11-22 | 2021-05-25 | 北京金山云网络技术有限公司 | Resource speed limiting method and device, user terminal and server |
CN111488159A (en) * | 2019-12-20 | 2020-08-04 | 杭州当虹科技股份有限公司 | Gray scale publishing method capable of being dynamically configured |
CN113050978A (en) * | 2019-12-26 | 2021-06-29 | ***通信集团北京有限公司 | Application gray release control method, device and equipment and computer storage medium |
CN113050978B (en) * | 2019-12-26 | 2024-03-19 | ***通信集团北京有限公司 | Gray release control method, device and equipment for application and computer storage medium |
CN112532602A (en) * | 2020-11-20 | 2021-03-19 | 中国联合网络通信集团有限公司 | Gray scale publishing method, equipment and server |
CN112653579A (en) * | 2020-12-16 | 2021-04-13 | 中国人寿保险股份有限公司 | OpenResty-based gray scale publishing method and related equipment |
CN112653579B (en) * | 2020-12-16 | 2023-05-23 | 中国人寿保险股份有限公司 | Gray release method based on OpenResity and related equipment |
CN114125067A (en) * | 2021-02-10 | 2022-03-01 | 北京沃东天骏信息技术有限公司 | Front-end and back-end separated gray scale publishing method, front-end server and configuration server |
CN113452622A (en) * | 2021-06-29 | 2021-09-28 | 上海通联金融服务有限公司 | Gray level shunting method based on client |
CN113568655A (en) * | 2021-07-26 | 2021-10-29 | 河北幸福消费金融股份有限公司 | Gray scale distribution system, method and storage medium |
CN113905246B (en) * | 2021-09-10 | 2023-12-15 | 微梦创科网络科技(中国)有限公司 | Live broadcasting room implementation method and device |
CN113905246A (en) * | 2021-09-10 | 2022-01-07 | 微梦创科网络科技(中国)有限公司 | Method and device for realizing live broadcast room |
CN114615135A (en) * | 2022-02-18 | 2022-06-10 | 佐朋数科(深圳)信息技术有限责任公司 | Front-end gray level publishing method, system and storage medium |
CN114615135B (en) * | 2022-02-18 | 2024-03-22 | 佐朋数科(深圳)信息技术有限责任公司 | Front-end gray level publishing method, system and storage medium |
CN114710550A (en) * | 2022-03-18 | 2022-07-05 | 中国建设银行股份有限公司 | Request response method, device, equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109787830B (en) | 2023-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109787830A (en) | Gray scale distribution control method, device, system, electronic equipment and storage medium | |
US20200174915A1 (en) | Emulation-based testing of a microservices architecture | |
CN109726099B (en) | Application gray level publishing method, device and equipment | |
US7334162B1 (en) | Dynamic distribution of test execution | |
CN104598257B (en) | The method and apparatus of remote application operation | |
US8578371B2 (en) | Software distribution method and system with automatic prerequisite installation | |
CN109814910A (en) | Automate gray scale dissemination method, device, computer system and storage medium | |
US20120291132A1 (en) | System, method and program product for dynamically performing an audit and security compliance validation in an operating environment | |
US9665465B1 (en) | Automated determination of application permissions | |
CN106027644B (en) | Service verification method and system | |
CN115328752B (en) | Cluster simulation method and system for Kubernetes control plane test | |
CN110362318A (en) | Using dispositions method, device, equipment and storage medium | |
CN114064062B (en) | Kubernetes platform and load balancing component-based default gray level issuing method and device | |
CN112162925A (en) | Test method and system based on service virtualization | |
CN103646081A (en) | Method and device for logging in web page | |
CN110336813A (en) | A kind of access control method, device, equipment and storage medium | |
CN106789142B (en) | The method and apparatus of resource distribution | |
CN110716730B (en) | Gray release method, device, equipment and computer readable storage medium | |
CN113448988A (en) | Method and device for training algorithm model, electronic equipment and storage medium | |
CN112650689A (en) | Test method, test device, electronic equipment and storage medium | |
CN107864209A (en) | The method, apparatus and server of data write-in | |
CN116383055A (en) | Financial scene testing method and device, processor and electronic equipment | |
CN110493644A (en) | TV applications upgrade method, television terminal and server | |
CN110442636A (en) | A kind of reading/writing method of data, device and reading and writing data equipment | |
CN109951549A (en) | Access method, device and the computer readable storage medium of Webpage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |