CN106998369A - Gray scale dissemination method, gateway blocker and computer-readable recording medium - Google Patents
Gray scale dissemination method, gateway blocker and computer-readable recording medium Download PDFInfo
- Publication number
- CN106998369A CN106998369A CN201710395322.4A CN201710395322A CN106998369A CN 106998369 A CN106998369 A CN 106998369A CN 201710395322 A CN201710395322 A CN 201710395322A CN 106998369 A CN106998369 A CN 106998369A
- Authority
- CN
- China
- Prior art keywords
- client
- request
- distribution rules
- side information
- application server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/566—Grouping or aggregating service requests, e.g. for unified processing
Abstract
The invention discloses a kind of gray scale dissemination method, gateway blocker and computer-readable recording medium, methods described includes:Client request is received, client-side information is parsed from the request header of the request;Judge whether the client-side information meets distribution rules;The distribution rules are pre-configured in gateway blocker;If the client-side information does not meet the distribution rules, the request is distributed to prototype version using corresponding first application server;If the client-side information meets the distribution rules, the request is distributed to more redaction using corresponding second application server.Implementation process of the present invention is simple, and the hardware resource taken needed for gray scale issue is realized in effectively reduction;And present invention distribution precision is high, can be accurately positioned the customer group of distribution.
Description
Technical field
Field is issued the present invention relates to program, more particularly to a kind of gray scale dissemination method, gateway blocker and computer can
Read storage medium.
Background technology
Gray scale, which is issued, to be referred between B&W, a kind of published method that can be seamlessly transitted, it is ensured that total system
The stabilization of issue, just can be found that, adjustment problem when initial gray, so as to ensure problem disturbance degree.For example, with being
The development of system, its corresponding customer volume also steeply rises, if now the system needs New function of reaching the standard grade, and needs certain customers
Take the lead in using this function, check the evaluation of user, and remaining user still uses legacy version;Or the function not immediately on
Line, on line trial operation for a period of time, check no BUG, and it is stable after popularized in an all-round way.
Existing gray scale published method implementation process is complicated.
The content of the invention
It is a primary object of the present invention to propose a kind of gray scale dissemination method, gateway blocker and computer-readable storage medium
Matter, it is intended to reduce the implementation process of existing gray scale issue.
To achieve the above object, a kind of gray scale dissemination method that the present invention is provided, methods described includes:
Client request is received, client-side information is parsed from the request header of the request;
Judge whether the client-side information meets distribution rules;The distribution rules are pre-configured in gateway blocker
In;
If the client-side information does not meet the distribution rules, the request is distributed to prototype version using corresponding
First application server;
If the client-side information meets the distribution rules, the request is distributed to more redaction using corresponding the
Two application servers.
Alternatively, the distribution rules use character string forms, are made up of keyword and variable;The keyword represents symbol
The client-side information of distribution conditions is closed, the variable represents to meet the scope of the client of distribution conditions.
Specifically, the scope is using percents or uses aggregate form.
Alternatively, the gateway blocker is specially the Nginx servers with Lua scripts;
It is described to configure distribution rules in gateway blocker, including:
By the Lua scripts, first application server and described second is configured in the Nginx servers should
With the network address of server;
Distribution rules are write to the Nginx servers.
Specifically, it is described that the request is distributed to prototype version using corresponding first application server, or, it is described
The request is distributed to more redaction using corresponding second application server, including:
According to the network address of first application server or second application server, the request is distributed to
Corresponding application server;The application server includes first application server and second application server.
Specifically, the reception client request, parses before client-side information from the request header of the request, goes back
Including:
After the Nginx startup of server, configuration work process is fixed by the Lua scripts according to default crawl frequency
When capture the distribution rules;
It is described to judge whether the client-side information meets the distribution rules being pre-configured with, including:
When receiving client request, according to the distribution rules currently captured, judge the client-side information whether with
The keyword match, if mismatching, judges that the client-side information does not meet the distribution rules;
If matching, judge whether the client-side information is in the variable;If being in, the client is judged
Information meets the distribution rules;If being not at, judge that the client-side information does not meet the distribution rules.
Specifically, it is described to capture frequency according to default by the Lua scripts, the distribution rules are regularly captured, in addition to:
When the memory data output of the distribution rules is not more than default storage threshold value, the Lua scripts divide crawl
Rule cache is sent out to Lua local caches.
Alternatively, the client-side information for it is following any one or more:
In application version information, functional module information, user profile, the affiliated regional information of client and the client of application
Mobile equipment identity code information.
To achieve the above object, the present invention also proposes a kind of gateway blocker, the gateway blocker include memory and
Processor, the memory storage has gray scale release process, and the processor is used to perform the gray scale release process, to realize
As above described in any one the step of gray scale dissemination method.
In addition, to achieve the above object, the present invention also proposes a kind of computer-readable recording medium, described computer-readable
Storage medium is stored with gray scale release process;When it is described have gray scale release process by least one computing device when, cause institute
The step of stating at least one computing device any one gray scale dissemination method as described above.
Gray scale dissemination method proposed by the present invention, gateway blocker and computer-readable recording medium, by being blocked in gateway
Cut in device and configure distribution rules, when receiving client request, client-side information is parsed from the request header of the request, is led to
Gateway blocker is crossed according to distribution rules and client request information, distribution is made requests on, therefore implementation process is simple, effectively drops
It is low to realize the hardware resource taken needed for gray scale issue;And present invention distribution precision is high, can be accurately positioned the user of distribution
Group.
Brief description of the drawings
Fig. 1 is a kind of flow chart of gray scale dissemination method in the embodiment of the present invention;
Fig. 2 is the schematic layout pattern of gateway blocker, application server and client in the embodiment of the present invention;
Fig. 3 is a kind of structural representation of gray scale distributing device in the embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed
Ground is used.
The embodiment of the present invention provides a kind of gray scale dissemination method, and methods described includes:
S101, receives client request, client-side information is parsed from the request header of the request;
S102, judges whether the client-side information meets distribution rules;The distribution rules are pre-configured in gateway and blocked
Cut in device;
S103, according to client-side information and the distribution rules, distributes the request to corresponding application server;
Specifically, if the client-side information does not meet the distribution rules, the request is distributed into prototype version should
With corresponding first application server;
If the client-side information meets the distribution rules, the request is distributed to more redaction using corresponding the
Two application servers.
Gray scale dissemination method in the embodiment of the present invention, by configuring distribution rules in gateway blocker, as reception client
During the request of end, client-side information is parsed from the request header of the request, by gateway blocker according to distribution rules and visitor
Family end solicited message, makes requests on distribution, therefore implementation process is simple, and the hardware taken needed for gray scale issue is realized in effectively reduction
Resource;And present invention distribution precision is high, can be accurately positioned the customer group of distribution.
In embodiments of the present invention, client can be implemented in a variety of manners.For example, the client described in the present invention
Such as mobile phone, tablet personal computer, notebook computer, palm PC, personal digital assistant (Personal Digital can be included
Assistant, PDA), portable media player (Portable Media Player, PMP), guider, wearable set
The mobile terminals such as standby, Intelligent bracelet, pedometer, and the fixed terminal such as numeral TV, desktop computer.
Application can be that an application program or FTP client FTP in client should in the embodiment of the present invention
With.
Gateway blocker can be realized in the form of server in the embodiment of the present invention.
Request can use WEB forms in the embodiment of the present invention, and request header can be http heads.
Prototype version can be default version in the embodiment of the present invention, belong to the version that all users can access;Update
Version can be upgraded version, belong to version to be evaluated, it is necessary to the version for determining whether to be popularized in an all-round way according to evaluation result
This.
Client-side information described in the embodiment of the present invention for it is following any one or more:
In application version information, functional module information, user profile, the affiliated regional information of client and the client of application
Mobile equipment identity code information (IMEI).
Wherein application version information can be version number, bag name etc..
User profile can be user name, user's mark etc..
Regional information can be the postcode of region where client, region name abbreviation etc..
Distribution rules in the embodiment of the present invention can be configured according to targeted customer's information.Wherein targeted customer is to answer
The feedback user for the evaluation result that publisher determines.
For example:The APK (AndroidPackage, Android installation kit) that active user uses have many versions such as 3.1,
3.2nd, 4.1,4.2 etc., the effect that product manager (one of publisher of application) wants to reach is that allow can using more than 4.0 user
To use new service, new service is in more redaction.Now, distribution rules could be arranged to key=version, value
=4.0, it is then written in gateway blocker.
And for example, the effect that product manager wants to reach is to allow the client for meeting regulation mark to use new service, newly
Service is in more redaction.Now, distribution rules could be arranged to key=imei, value=(' imei1 ', ' imei2 ', '
Imei3 ' ... ..), it is then written in gateway blocker.
For another example:The effect that product manager wants to reach is to allow region A client to use new service, and new service is more
In redaction.Now, distribution rules could be arranged to key=area, value=BJ, be then written in gateway blocker.
That is, gray scale dissemination method can realize that precise positioning customer group is distributed in the embodiment of the present invention, such as basis
Mobile phone IMEI (mobile equipment identity code information), mobile phone A PK versions, client-side information etc..
On the basis of above-described embodiment, it is further proposed that the variant embodiment of above-described embodiment, needs explanation herein
It is, in order that description is brief, the only description and the difference of above-described embodiment in each variant embodiment.
In one embodiment of the invention, the distribution rules use character string forms, are made up of keyword and variable;
The keyword represents to meet the client-side information of distribution conditions, and the variable represents to meet the model of the client of distribution conditions
Enclose.
Distribution rules are used character string forms by the embodiment of the present invention, improve the judging efficiency of distribution procedure, effectively reduction
The implementation complexity of judgement, so as to improve the performance of gateway blocker.
Wherein keyword represents that variable is represented using value using character string key.
For example:Key=version, value=4.0.
And for example:Key=imei, value=(' imei1 ', ' imei2 ', ' imei3 ' ... ..).
For another example:Key=area, value=BJ.BJ is Pekinese's english abbreviation.
In an embodiment of the embodiment of the present invention, the scope can use percents or use
Aggregate form.
In another embodiment of the present invention, the gateway blocker is specially that the Nginx with Lua scripts is serviced
Device;
Wherein, Nginx servers are the Web server/Reverse Proxy and Email of a lightweight
(IMAP/POP3) proxy server, and issued under a BSD-like agreement.
Lua is a kind of compact script of light weight, is write and is opened with source code form with standard C language, and it is designed
Purpose is in order to be embedded in application program, so as to provide flexible extension and customization function for application program.
The embodiment of the present invention builds front end gateway blocker based on Nginx and Lua, can effectively improve gray scale issue property
Energy.
Wherein, it is described to configure distribution rules in gateway blocker, including:
By the Lua scripts, first application server and described second is configured in the Nginx servers should
With the network address of server;
Distribution rules are write to the Nginx servers.
It is described that the request is distributed to prototype version application in the another embodiment of the embodiment of the present invention
Corresponding first application server, or, it is described that the request is distributed to more redaction using corresponding second application service
Device, including:
According to the network address of first application server or second application server, the request is distributed to
Corresponding application server;The application server includes first application server and second application server.
Wherein the network address can be IP address.
In another embodiment of the embodiment of the present invention, the reception client request, from the request
Before parsing client-side information in request header, in addition to:
After the Nginx startup of server, configuration work process is fixed by the Lua scripts according to default crawl frequency
When capture the distribution rules;
It is described to judge whether the client-side information meets the distribution rules being pre-configured with, including:
When receiving client request, according to the distribution rules currently captured, judge the client-side information whether with
The keyword match, if mismatching, judges that the client-side information does not meet the distribution rules;
If matching, judges whether the client-side information belongs to the variable;If belonging to, the client letter is judged
Breath meets the distribution rules;If being not belonging to, judge that the client-side information does not meet the distribution rules.
Wherein, it is described to capture frequency according to default by the Lua scripts, the distribution rules are regularly captured, in addition to:
When the memory data output of the distribution rules is not more than default storage threshold value, the Lua scripts divide crawl
Rule cache is sent out to Lua local caches.
Gray scale dissemination method in the present invention is described in detail with a specific embodiment below, including:
Step 1, the upstream of allocating default and new upstream in gateway blocker.
Upstream is that a proper noun in Nginx needs the IP that the application place of distribution is serviced, wherein giving tacit consent to
Upstream apply corresponding application server for prototype version, new upstream applies corresponding application for more redaction
Server.
In this step, in the configuration file specified of gateway blocker, allocating default and new upstream;For example
default_upstream,new_upstream。
Then Nginx servers are restarted, Lua scripts, which are attended school, in restarting sets this 2 upstream values to global change
In amount, used after follow-up rule verification is finished.
Wherein, the layout of application server, gateway blocker and client is as shown in Figure 2.
The distribution rules of step 2, the form that setups string.
Write distribution rules into Redis clusters, the APK that such as active user uses have many versions such as 3.1,3.2,4.1,
4.2 etc., the effect that product manager wants to reach is to allow that using more than 4.0 user new service can be used, and then we are just
It is key=version, value=4.0 that rule, which can be set, is then written in Redis.
Certainly, the distribution rules set in this step can also be using the form gathered, i.e., can also be for being data volume
Under very big scene, such as IMEI of mobile phone, it is possible to which value is arranged to the form of set believes the IMEI of tens of thousands of mobile phones
Cease in Redis cachings, in other words distribution rules are set to key=imei, value=(' imei1 ', ' imei2 ', '
Imei3 ' ... ..), so as to say distribution rules with storage in the form of gathering into Redis.
Wherein, Redis belongs to instrument in Nginx servers, and specific Redis is that the use increased income an ANSI C language is compiled
Write, support network, can based on internal memory also can persistence log type, Key-Value databases, and provide the API of multilingual.
Step 3, according to preset crawl frequency, timing crawl Redis data (i.e. distribution rules data) are updated to Lua sheets
In ground caching.
When starting Nginx, meeting configuration work process is captured Redis data by Lua timings, if Redis number
According to (that is less than preset storage threshold value) less than normal is measured, then by the local cache of data buffer storage to Lua, otherwise do not do and locate
Distribution rules just belong to the small rule of data volume in reason, this step, can be cached in Lua local cache, can so improve
The performance of server.
Certainly, such as the distribution rules of the aggregate form in step 2, crossing conference due to data volume causes front end gateway blocker
Hydraulic performance decline, would not be timed in the local cache that crawl task grabs Lua.
Step 4, front end gateway blocker are distributed request according to distribution rules.
The request header information of user can be parsed when gateway blocker receives the response of client, the request header of user is checked
Whether information has the key and version of corresponding rule match, if client does not upload this parameter, gives tacit consent to and uses this
The upstream, i.e. default_upstream of the acquiescence of the request distribution at family;If the value for the version that client is uploaded is
V3.1, then do not meet 4.0 in rule setting, i.e., illegal, can forward requests to the upstream of acquiescence, i.e., yet
default_upstream;If the value for the version that client is uploaded is 4.2, meet the matching of 4.0 rules, then by this
Request is forwarded to new upstream, i.e. new_upstream.
In this step, when the cache invalidation of storage rule, the logical process failure of delay machine or front end gateway blocker,
Then gateway blocker in front end distributes the request to more redaction using corresponding application server.
Front end gateway blocker of the specific embodiment of the invention based on Nginx and Lua, realizes that version is applied in percentage distribution
This;Realize that precise positioning customer group is distributed, such as according to mobile phone IMEI, mobile phone A PK versions, the information such as user name;Can be accurate
To some function of application;Support string matching and set relations.
As shown in figure 3, present invention further propose that a kind of gateway blocker, the gateway blocker includes memory and place
Device is managed, the memory storage has gray scale release process, and the processor is used to perform the gray scale release process, to realize such as
Described in upper any one embodiment the step of gray scale dissemination method.
Specifically, the gateway blocker includes memory and processor, and the memory storage has gray scale release process,
The processor is used to perform the gray scale release process, to realize following steps:
Client request is received, client-side information is parsed from the request header of the request;
Judge whether the client-side information meets distribution rules;The distribution rules are pre-configured in gateway blocker
In;
If the client-side information does not meet the distribution rules, the request is distributed to prototype version using corresponding
First application server;
If the client-side information meets the distribution rules, the request is distributed to more redaction using corresponding the
Two application servers.
The embodiment of the present invention in gateway blocker by configuring distribution rules, when receiving client request, from described
Client-side information is parsed in the request header of request, by gateway blocker according to distribution rules and client request information, is entered
Row request distribution, therefore implementation process is simple, the hardware resource taken needed for gray scale issue is realized in effectively reduction;And the present invention
Distribute precision high, the customer group of distribution can be accurately positioned.
Wherein, the client-side information for it is following any one or more:
In application version information, functional module information, user profile, the affiliated regional information of client and the client of application
Mobile equipment identity code information.
Client-side information is not limited to information above in certain embodiment of the present invention.
In one embodiment of the invention, the distribution rules use character string forms, are made up of keyword and variable;
The keyword represents to meet the client-side information of distribution conditions, and the variable represents to meet the model of the client of distribution conditions
Enclose.
Specifically, the scope is using percents or uses aggregate form.
In another embodiment of the present invention, the gateway blocker is specially that the Nginx with Lua scripts is serviced
Device;
It is described to configure distribution rules in gateway blocker, including:
By the Lua scripts, first application server and described second is configured in the Nginx servers should
With the network address of server;
Distribution rules are write to the Nginx servers.
Wherein, it is described that the request is distributed to prototype version using corresponding first application server, or, it is described to incite somebody to action
The request is distributed to more redaction using corresponding second application server, including:
According to the network address of first application server or second application server, the request is distributed to
Corresponding application server;The application server includes first application server and second application server.
Wherein, the reception client request, parses before client-side information from the request header of the request, also wraps
Include:
After the Nginx startup of server, configuration work process is fixed by the Lua scripts according to default crawl frequency
When capture the distribution rules;
It is described to judge whether the client-side information meets the distribution rules being pre-configured with, including:
When receiving client request, according to the distribution rules currently captured, judge the client-side information whether with
The keyword match, if mismatching, judges that the client-side information does not meet the distribution rules;
If matching, judges whether the client-side information belongs to the variable;If belonging to, the client letter is judged
Breath meets the distribution rules;If being not belonging to, judge that the client-side information does not meet the distribution rules.
Wherein, it is described to capture frequency according to default by the Lua scripts, the distribution rules are regularly captured, in addition to:
When the memory data output of the distribution rules is not more than default storage threshold value, the Lua scripts divide crawl
Rule cache is sent out to Lua local caches.
At this it should be noted that each gateway blocker can refer to above-mentioned each side when implementing in the present invention
Method embodiment, it also has the technique effect of each method embodiment, will not be repeated here.
The present invention also proposes a kind of computer-readable recording medium, and the computer-readable recording medium storage has gray scale hair
Cloth program;When it is described have gray scale release process by least one computing device when, cause at least one described computing device
In the above method embodiment the step of any one gray scale dissemination method.
Specifically, the computer-readable recording medium storage has gray scale release process;There is gray scale release process when described
During by least one computing device, cause at least one described computing device following steps:
Client request is received, client-side information is parsed from the request header of the request;
Judge whether the client-side information meets distribution rules;The distribution rules are pre-configured in gateway blocker
In;
If the client-side information does not meet the distribution rules, the request is distributed to prototype version using corresponding
First application server;
If the client-side information meets the distribution rules, the request is distributed to more redaction using corresponding the
Two application servers.
Wherein, the client-side information for it is following any one or more:
In application version information, functional module information, user profile, the affiliated regional information of client and the client of application
Mobile equipment identity code information.
Client-side information is not limited to information above in certain embodiment of the present invention.
In one embodiment of the invention, the distribution rules use character string forms, are made up of keyword and variable;
The keyword represents to meet the client-side information of distribution conditions, and the variable represents to meet the model of the client of distribution conditions
Enclose.
Specifically, the scope is using percents or uses aggregate form.
In another embodiment of the present invention, the gateway blocker is specially that the Nginx with Lua scripts is serviced
Device;
It is described to configure distribution rules in gateway blocker, including:
By the Lua scripts, first application server and described second is configured in the Nginx servers should
With the network address of server;
Distribution rules are write to the Nginx servers.
Wherein, it is described that the request is distributed to prototype version using corresponding first application server, or, it is described to incite somebody to action
The request is distributed to more redaction using corresponding second application server, including:
According to the network address of first application server or second application server, the request is distributed to
Corresponding application server;The application server includes first application server and second application server.
Wherein, the reception client request, parses before client-side information from the request header of the request, also wraps
Include:
After the Nginx startup of server, configuration work process is fixed by the Lua scripts according to default crawl frequency
When capture the distribution rules;
It is described to judge whether the client-side information meets the distribution rules being pre-configured with, including:
When receiving client request, according to the distribution rules currently captured, judge the client-side information whether with
The keyword match, if mismatching, judges that the client-side information does not meet the distribution rules;
If matching, judges whether the client-side information belongs to the variable;If belonging to, the client letter is judged
Breath meets the distribution rules;If being not belonging to, judge that the client-side information does not meet the distribution rules.
Wherein, it is described to capture frequency according to default by the Lua scripts, the distribution rules are regularly captured, in addition to:
When the memory data output of the distribution rules is not more than default storage threshold value, the Lua scripts divide crawl
Rule cache is sent out to Lua local caches.
Computer of embodiment of the present invention readable storage medium storing program for executing can be RAM memory, flash memory, ROM memory, EPROM
Memory, eeprom memory, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art
Storage medium.A kind of storage medium lotus root can be connected to processor, so that enable a processor to from the read information,
And information can be write to the storage medium;Or the storage medium can be the part of processor.Processor and storage are situated between
Matter can be located in application specific integrated circuit.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of gray scale dissemination method, it is characterised in that methods described includes:
Client request is received, client-side information is parsed from the request header of the request;
Judge whether the client-side information meets distribution rules;The distribution rules are pre-configured in gateway blocker;
If the client-side information does not meet the distribution rules, the request is distributed to prototype version using corresponding first
Application server;
If the client-side information meets the distribution rules, the request is distributed into more redaction should using corresponding second
Use server.
2. the method as described in claim 1, it is characterised in that the distribution rules use character string forms, by keyword and
Variable is constituted;The keyword represents to meet the client-side information of distribution conditions, and the variable represents to meet the visitor of distribution conditions
The scope at family end.
3. method as claimed in claim 2, it is characterised in that the scope is using percents or using set shape
Formula.
4. the method as described in any one in claim 1-3, it is characterised in that the gateway blocker is specially to have
The Nginx servers of Lua scripts;
It is described to configure distribution rules in gateway blocker, including:
By the Lua scripts, first application server and the second application clothes are configured in the Nginx servers
The network address of business device;
Distribution rules are write to the Nginx servers.
5. method as claimed in claim 4, it is characterised in that described that the request is distributed to prototype version using corresponding
First application server, or, it is described that the request is distributed to the step that more redaction applies corresponding second application server
Suddenly, including:
According to the network address of first application server or second application server, the request is distributed to corresponding
Application server;Corresponding application server includes first application server and second application server.
6. method as claimed in claim 4, it is characterised in that the reception client request, from the request header of the request
In parse client-side information before, in addition to:
After the Nginx startup of server, configuration work process, by the Lua scripts according to default crawl frequency, is regularly grabbed
Take the distribution rules;
It is described to judge the step of whether client-side information meets the distribution rules being pre-configured with, including:
When receiving client request, according to the distribution rules currently captured, judge the client-side information whether with it is described
Keyword match, if mismatching, judges that the client-side information does not meet the distribution rules;
If matching, judge whether the client-side information is in the variable;If being in, the client-side information is judged
Meet the distribution rules;If being not at, judge that the client-side information does not meet the distribution rules.
7. method as claimed in claim 6, it is characterised in that described to capture frequency, timing according to default by the Lua scripts
The distribution rules are captured, in addition to:
When the memory data output of the distribution rules is not more than default storage threshold value, the Lua scripts advise the distribution of crawl
Then it is cached to Lua local caches.
8. the method as described in any one in claim 1-3, it is characterised in that the client-side information is following any one
Plant or a variety of:
Moved in application version information, functional module information, user profile, the affiliated regional information of client and the client of application
Device identity information.
9. a kind of gateway blocker, it is characterised in that the gateway blocker includes memory and processor, the memory is deposited
Gray scale release process is contained, the processor is used to perform the gray scale release process, to realize that claim 1 to 8 is any one
The step of item gray scale dissemination method.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has gray scale issue
Program;When it is described have gray scale release process by least one computing device when, cause at least one described computing device institute
The step of stating claim 1 to 8 any one gray scale dissemination method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710395322.4A CN106998369A (en) | 2017-05-26 | 2017-05-26 | Gray scale dissemination method, gateway blocker and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710395322.4A CN106998369A (en) | 2017-05-26 | 2017-05-26 | Gray scale dissemination method, gateway blocker and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106998369A true CN106998369A (en) | 2017-08-01 |
Family
ID=59436210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710395322.4A Pending CN106998369A (en) | 2017-05-26 | 2017-05-26 | Gray scale dissemination method, gateway blocker and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106998369A (en) |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108279924A (en) * | 2018-01-30 | 2018-07-13 | 北京小米移动软件有限公司 | Program dissemination method and device |
CN108494867A (en) * | 2018-04-04 | 2018-09-04 | 广州华多网络科技有限公司 | Service method, apparatus, system and the routing server of gray proces |
CN108513144A (en) * | 2018-03-12 | 2018-09-07 | 四川合智聚云科技有限公司 | A kind of EPG gray scales dissemination method and its system based on IPTV |
CN108768875A (en) * | 2018-05-31 | 2018-11-06 | 康键信息技术(深圳)有限公司 | Gray scale dissemination method, device and the computer readable storage medium of application |
CN108848092A (en) * | 2018-06-20 | 2018-11-20 | 中国联合网络通信集团有限公司 | The processing method and processing device of micro services gray scale publication based on call chain |
CN109412957A (en) * | 2017-08-17 | 2019-03-01 | 阿里巴巴集团控股有限公司 | Traffic scheduling method, device and system and electronic equipment |
CN109542475A (en) * | 2018-10-22 | 2019-03-29 | 平安科技(深圳)有限公司 | Data-updating method, device, storage medium and the server of system multi version |
CN109669719A (en) * | 2018-09-26 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Using gray scale dissemination method, device, equipment and readable storage medium storing program for executing |
CN109739537A (en) * | 2018-12-29 | 2019-05-10 | 中电福富信息科技有限公司 | A kind of gray scale release management platform and gray scale method for release management |
CN109787830A (en) * | 2019-01-21 | 2019-05-21 | 北京京东尚科信息技术有限公司 | Gray scale distribution control method, device, system, electronic equipment and storage medium |
CN109815405A (en) * | 2019-01-31 | 2019-05-28 | 北京三快在线科技有限公司 | Gray scale shunt method and system |
CN110045964A (en) * | 2019-04-09 | 2019-07-23 | 厦门网宿有限公司 | Software gray scale dissemination method, proxy server, configuration center and system |
CN110311989A (en) * | 2019-08-02 | 2019-10-08 | 中国工商银行股份有限公司 | A kind of gray scale dissemination method, device, storage medium, equipment and system |
CN110650163A (en) * | 2018-06-26 | 2020-01-03 | 马上消费金融股份有限公司 | Gray scale publishing method, system, equipment and computer readable storage medium |
CN110825425A (en) * | 2018-08-09 | 2020-02-21 | 北京京东尚科信息技术有限公司 | Configuration data management method and device, electronic equipment and storage medium |
CN111405024A (en) * | 2020-03-11 | 2020-07-10 | 京东数字科技控股有限公司 | Service processing method, gateway, electronic device and storage medium |
CN113162858A (en) * | 2021-04-23 | 2021-07-23 | 中科云谷科技有限公司 | Flow forwarding system, equipment and method and Internet of things system |
CN113923081A (en) * | 2021-10-15 | 2022-01-11 | 北京同城必应科技有限公司 | Business gateway solution for gray scale release in distributed environment |
CN114153526A (en) * | 2021-12-01 | 2022-03-08 | 北京百度网讯科技有限公司 | Agent-based gray level configuration method, device, electronic device and medium |
CN115022174A (en) * | 2022-06-20 | 2022-09-06 | 北京奇艺世纪科技有限公司 | Request processing method and device, readable storage medium and electronic equipment |
CN115296959A (en) * | 2022-07-25 | 2022-11-04 | 紫光云技术有限公司 | Method for replacing SpringCloudGateway gateway by using Nginx + Lua script |
CN116033015A (en) * | 2022-12-29 | 2023-04-28 | 联通智网科技股份有限公司 | Flow segmentation method and device |
Citations (5)
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 |
CN105791341A (en) * | 2014-12-22 | 2016-07-20 | 华为软件技术有限公司 | Method, device and system for processing application release |
CN105975270A (en) * | 2016-05-04 | 2016-09-28 | 北京思特奇信息技术股份有限公司 | Gray scale distribution method and system based on HTTP request forwarding |
CN106100927A (en) * | 2016-06-20 | 2016-11-09 | 浪潮电子信息产业股份有限公司 | A kind of method realizing the issue of SSR gray scale |
-
2017
- 2017-05-26 CN CN201710395322.4A patent/CN106998369A/en active Pending
Patent Citations (5)
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 |
CN105791341A (en) * | 2014-12-22 | 2016-07-20 | 华为软件技术有限公司 | Method, device and system for processing application release |
CN105975270A (en) * | 2016-05-04 | 2016-09-28 | 北京思特奇信息技术股份有限公司 | Gray scale distribution method and system based on HTTP request forwarding |
CN106100927A (en) * | 2016-06-20 | 2016-11-09 | 浪潮电子信息产业股份有限公司 | A kind of method realizing the issue of SSR gray scale |
Cited By (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109412957A (en) * | 2017-08-17 | 2019-03-01 | 阿里巴巴集团控股有限公司 | Traffic scheduling method, device and system and electronic equipment |
CN108279924A (en) * | 2018-01-30 | 2018-07-13 | 北京小米移动软件有限公司 | Program dissemination method and device |
CN108513144A (en) * | 2018-03-12 | 2018-09-07 | 四川合智聚云科技有限公司 | A kind of EPG gray scales dissemination method and its system based on IPTV |
CN108494867A (en) * | 2018-04-04 | 2018-09-04 | 广州华多网络科技有限公司 | Service method, apparatus, system and the routing server of gray proces |
CN108768875A (en) * | 2018-05-31 | 2018-11-06 | 康键信息技术(深圳)有限公司 | Gray scale dissemination method, device and the computer readable storage medium of application |
CN108768875B (en) * | 2018-05-31 | 2023-04-07 | 康键信息技术(深圳)有限公司 | Application gray level publishing method and device and computer readable storage medium |
CN108848092A (en) * | 2018-06-20 | 2018-11-20 | 中国联合网络通信集团有限公司 | The processing method and processing device of micro services gray scale publication based on call chain |
CN110650163A (en) * | 2018-06-26 | 2020-01-03 | 马上消费金融股份有限公司 | Gray scale publishing method, system, equipment and computer readable storage medium |
CN110825425A (en) * | 2018-08-09 | 2020-02-21 | 北京京东尚科信息技术有限公司 | Configuration data management method and device, electronic equipment and storage medium |
CN109669719A (en) * | 2018-09-26 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Using gray scale dissemination method, device, equipment and readable storage medium storing program for executing |
CN109542475A (en) * | 2018-10-22 | 2019-03-29 | 平安科技(深圳)有限公司 | Data-updating method, device, storage medium and the server of system multi version |
CN109739537A (en) * | 2018-12-29 | 2019-05-10 | 中电福富信息科技有限公司 | A kind of gray scale release management platform and gray scale method for release management |
CN109787830A (en) * | 2019-01-21 | 2019-05-21 | 北京京东尚科信息技术有限公司 | Gray scale distribution control method, device, system, electronic equipment and storage medium |
CN109787830B (en) * | 2019-01-21 | 2023-03-07 | 北京京东尚科信息技术有限公司 | Gray scale distribution control method, device, system, electronic device and storage medium |
CN109815405A (en) * | 2019-01-31 | 2019-05-28 | 北京三快在线科技有限公司 | Gray scale shunt method and system |
CN110045964A (en) * | 2019-04-09 | 2019-07-23 | 厦门网宿有限公司 | Software gray scale dissemination method, proxy server, configuration center and system |
CN110045964B (en) * | 2019-04-09 | 2022-10-28 | 厦门网宿有限公司 | Software gray level release method, proxy server, configuration center and system |
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 |
CN111405024A (en) * | 2020-03-11 | 2020-07-10 | 京东数字科技控股有限公司 | Service processing method, gateway, electronic device and storage medium |
CN113162858A (en) * | 2021-04-23 | 2021-07-23 | 中科云谷科技有限公司 | Flow forwarding system, equipment and method and Internet of things system |
CN113923081A (en) * | 2021-10-15 | 2022-01-11 | 北京同城必应科技有限公司 | Business gateway solution for gray scale release in distributed environment |
CN114153526A (en) * | 2021-12-01 | 2022-03-08 | 北京百度网讯科技有限公司 | Agent-based gray level configuration method, device, electronic device and medium |
CN115022174A (en) * | 2022-06-20 | 2022-09-06 | 北京奇艺世纪科技有限公司 | Request processing method and device, readable storage medium and electronic equipment |
CN115022174B (en) * | 2022-06-20 | 2024-03-26 | 北京奇艺世纪科技有限公司 | Request processing method and device, readable storage medium and electronic equipment |
CN115296959A (en) * | 2022-07-25 | 2022-11-04 | 紫光云技术有限公司 | Method for replacing SpringCloudGateway gateway by using Nginx + Lua script |
CN116033015A (en) * | 2022-12-29 | 2023-04-28 | 联通智网科技股份有限公司 | Flow segmentation method and device |
CN116033015B (en) * | 2022-12-29 | 2024-03-12 | 联通智网科技股份有限公司 | Flow segmentation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106998369A (en) | Gray scale dissemination method, gateway blocker and computer-readable recording medium | |
CN111625452B (en) | Flow playback method and system | |
US8762309B2 (en) | Storage policy evaluation in a computing environment | |
US20160307131A1 (en) | Method, apparatus, and system for controlling delivery task in social networking platform | |
WO2018166113A1 (en) | Random forest model training method, electronic apparatus and storage medium | |
US20070234283A1 (en) | Automatic code generation for applications which run on common platforms | |
US20160171589A1 (en) | Personalized application recommendations | |
CN110266510B (en) | Network control strategy generation method and device, network control method and storage medium | |
US20140143647A1 (en) | Method for improving browser cache by reducing duplicate stored content | |
CN110221901A (en) | Container asset creation method, apparatus, equipment and computer readable storage medium | |
CN111427766A (en) | Request processing method and device and proxy server | |
CN108319598B (en) | Data caching method, device and system | |
US9286273B1 (en) | Method and system for implementing a website builder | |
CN103685304A (en) | Method and system for sharing session information | |
US20100162231A1 (en) | Personalized, automated modification method and system for software applications and contents | |
CN109471795A (en) | It is grouped test method, device, computer equipment and storage medium | |
CN103248677B (en) | The Internet behavioural analysis system and method for work thereof | |
CN104601736A (en) | Method and device for realizing short uniform resource locator (URL) service | |
US20150006706A1 (en) | Analytics caching based on users connected | |
US10609206B1 (en) | Auto-repairing mobile communication device data streaming architecture | |
CN106899750A (en) | Information displaying method based on card, information show the processing method and processing device of business | |
CN106909656A (en) | Obtain the method and device of Text Feature Extraction model | |
CN107145547A (en) | A kind of acquisition methods of abnormal data, equipment and computer-readable recording medium | |
CN110389859A (en) | Method, equipment and computer program product for copied chunks | |
CN109522501A (en) | Content of pages management method and its device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170801 |
|
RJ01 | Rejection of invention patent application after publication |