CN108768875A - Gray scale dissemination method, device and the computer readable storage medium of application - Google Patents

Gray scale dissemination method, device and the computer readable storage medium of application Download PDF

Info

Publication number
CN108768875A
CN108768875A CN201810546888.7A CN201810546888A CN108768875A CN 108768875 A CN108768875 A CN 108768875A CN 201810546888 A CN201810546888 A CN 201810546888A CN 108768875 A CN108768875 A CN 108768875A
Authority
CN
China
Prior art keywords
gray scale
shunting
user
user information
gray
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
Application number
CN201810546888.7A
Other languages
Chinese (zh)
Inventor
孙志博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kang Keyi Information Technology (shenzhen) Co Ltd
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kang Keyi Information Technology (shenzhen) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kang Keyi Information Technology (shenzhen) Co Ltd filed Critical Kang Keyi Information Technology (shenzhen) Co Ltd
Priority to CN201810546888.7A priority Critical patent/CN108768875A/en
Publication of CN108768875A publication Critical patent/CN108768875A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/46Cluster building
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic regulation in packet switching networks
    • H04L47/10Flow control or congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/10Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/34Network-specific arrangements or communication protocols supporting networked applications involving the movement of software or configuration parameters

Abstract

The invention discloses a kind of gray scale dissemination method of application, this method includes:When receiving the access request of client transmission, the corresponding user information of access request is determined;Current first shunting rule is obtained from caching, and judge user information whether with the first shunting rule match;If user information and the first shunting rule match, it is determined that the corresponding gray scale function module of access request, and user's request is guided to gray scale service cluster corresponding with gray scale function module and is handled;According to the visit capacity of the gray scale function module of access request more new record;When the online time of gray scale service module reaches preset duration, the visit capacity of statistics is obtained;Determine the corresponding gray scales of visit capacity, and according to gray scales adjustment the first shunting rule.The present invention also proposes a kind of gray scale distributing device of application and a kind of computer readable storage medium.The present invention is realized by legacy version software to the graceful upgrade between new version software.

Description

Gray scale dissemination method, device and the computer readable storage medium of application
Technical field
The present invention relates to field of computer technology more particularly to gray scale dissemination method, device and the computers of a kind of application Readable storage medium storing program for executing.
Background technology
With the development of internet industry, Internet-related industry is also rapidly developed, and in terminal device In most apparent performance be operating system and application program update upgrading.
Internet product has a large amount of user oriented function, these functions on no line in the case where verifying, nothing Method obtains the feedback information of true user, therefore has also lacked the foundation for judging whether new function is really better than old function.Mesh Before, Application developer is updated when developing newer application software after carrying out close beta by tester, but Defect existing for new function can not be found completely by being close beta, and be unable to get feedback of the user to new function, once Software goes wrong, and needs to carry out rollback, and rollback not only heavy workload but also efficiency is low, also influences whether the normal fortune of business Row, causes legacy version software to be difficult to realize graceful upgrade between new version software.
Invention content
The present invention provides a kind of gray scale dissemination method, device and the computer readable storage medium of application, main purpose It is to realize by legacy version software to the graceful upgrade between new version software.
To achieve the above object, the present invention also provides a kind of gray scale dissemination method of application, this method includes:
When receiving the access request of client transmission, the corresponding user information of the access request is determined;
The first current shunting rule is obtained from caching, and judges whether the user information advises with first shunting Then match;
If the user information shunts rule match with described first, it is determined that the corresponding gray scale function of the access request Module, and user request is guided to gray scale service cluster corresponding with the gray scale function module and is handled;
According to the visit capacity of the gray scale function module of the access request more new record;
When the online time of the gray scale service module reaches preset duration, the visit capacity of statistics is obtained;
According to the mapping relations between preset visit capacity and gray scales, the corresponding gray scale ratio of visit capacity obtained is determined Example, and according to gray scales adjustment the first shunting rule.
Optionally, described when receiving the access request of client transmission, determine the corresponding user of the access request Before the step of information, the method further includes step:
Test is generated according to the gray scale function module and invites link, and invites link to be issued to client the test End;
When receiving the response message that client is received and sent based on the test invitation chain, obtained from the response message The user information of acquisition is added to gray scale white list, and is matched according to described by the configuration information and user information for taking user terminal Confidence breath judges whether the user terminal meets test condition;
If so, the corresponding software upgrading packet of the gray scale function module to be sent to the response message for meeting test condition Corresponding user terminal.
Optionally, the user information is user name, and described first shunts rule for gray scale white list, described in the judgement User information whether with it is described first shunting rule match the step of include:
Judge whether institute's user name is located in gray scale white list, wherein if having the user name in the gray scale white list, Then judge that the user information shunts rule match with described first, if there is no the user name in the gray scale white list, Judge that the user information is mismatched with the first shunting rule.
Optionally, it is described judge the user information whether with it is described first shunting rule match the step of after, it is described Method further includes step:
If the user information is mismatched with the first shunting rule, user request is guided to the client Corresponding formal service cluster is held to be handled.
Optionally, the mapping relations according between preset visit capacity and gray scales determine the visit capacity obtained Corresponding gray scales, and according to the gray scales adjust it is described first shunting rule step after, the method is also wrapped Include step:
When receiving shunting Policy Updates instruction, the second shunting rule is obtained according to shunting Policy Updates instruction, The second shunting rule and the first shunting rule in caching are compared and analyzed, in determination the second shunting rule Increment information;
It is according to the increment information that the first shunting Policy Updates in caching are regular for second shunting.
In addition, to achieve the above object, the present invention also provides a kind of gray scale distributing device of application, which includes storage Device and processor are stored with the gray scale release process that can be run on the processor, the gray scale publication in the memory Program realizes following steps when being executed by the processor:
When receiving the access request of client transmission, the corresponding user information of the access request is determined;
The first current shunting rule is obtained from caching, and judges whether the user information advises with first shunting Then match;
If the user information shunts rule match with described first, it is determined that the corresponding gray scale function of the access request Module, and user request is guided to gray scale service cluster corresponding with the gray scale function module and is handled;
According to the visit capacity of the gray scale function module of the access request more new record;
When the online time of the gray scale service module reaches preset duration, the visit capacity of statistics is obtained;
According to the mapping relations between preset visit capacity and gray scales, the corresponding gray scale ratio of visit capacity obtained is determined Example, and according to gray scales adjustment the first shunting rule.
Optionally, the gray scale release process can also be executed by the processor, ought receive client hair described When the access request sent, before the step of determining the access request corresponding user information, following steps are also realized:
Test is generated according to the gray scale function module and invites link, and invites link to be issued to client the test End;
When receiving the response message that client is received and sent based on the test invitation chain, obtained from the response message The user information of acquisition is added to gray scale white list, and is matched according to described by the configuration information and user information for taking user terminal Confidence breath judges whether the user terminal meets test condition;
If so, the corresponding software upgrading packet of the gray scale function module to be sent to the response message for meeting test condition Corresponding user terminal.
Optionally, the gray scale release process can also be executed by the processor, to judge the user information described After the step of whether shunting rule match with described first, following steps are also realized:
If the user information is mismatched with the first shunting rule, user request is guided to the client Corresponding formal service cluster is held to be handled.
Optionally, the gray scale release process can also be executed by the processor, with described according to preset visit capacity Mapping relations between gray scales determine the corresponding gray scales of visit capacity obtained, and according to the gray scales tune After the step of the whole first shunting rule, following steps are also realized:
When receiving shunting Policy Updates instruction, the second shunting rule is obtained according to shunting Policy Updates instruction, The second shunting rule and the first shunting rule in caching are compared and analyzed, in determination the second shunting rule Increment information;
It is according to the increment information that the first shunting Policy Updates in caching are regular for second shunting.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Gray scale release process is stored on storage medium, the gray scale release process can be executed by one or more processor, with reality The step of gray scale dissemination method now applied as described above.
Gray scale dissemination method, device and the computer readable storage medium of application proposed by the present invention, when receiving target When the access request that the client of application is sent, the corresponding user information of access request is determined;Current is obtained from caching One shunting rule, and judge user information whether with first shunting rule match;If user information and the first shunting rule match, It then determines the corresponding gray scale function module of access request, and user's request is guided to gray scale corresponding with gray scale function module and is taken Business cluster is handled;According to the visit capacity of the gray scale service of access request more new record;When gray scale service module is when reaching the standard grade When length reaches preset duration, the visit capacity of statistics is obtained;According to the mapping relations between preset visit capacity and gray scales, really Surely the corresponding gray scales of visit capacity obtained, and according to gray scales adjustment the first shunting rule.It is arranged in the present invention program Have dedicated for supporting the gray scale service cluster of gray scale function module, the user's request for meeting shunting rule is diverted to gray scale clothes Business cluster is handled, while being counted to the visit capacity of gray scale function module according to access request, when gray scale function module It reaches the standard grade after a period of time, gray scales is adjusted according to the visit capacity of statistics, then adjust first point according to gray scales Stream rule realizes smooth transition of the software by legacy version to new version in such a manner.
Description of the drawings
Fig. 1 is the flow diagram of the gray scale dissemination method for the application that one embodiment of the invention provides;
Fig. 2 is the internal structure schematic diagram of the gray scale distributing device for the application that one embodiment of the invention provides;
The module signal of gray scale release process in the gray scale distributing device for the application that Fig. 3 provides for one embodiment of the invention Figure.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
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.
The present invention provides a kind of gray scale dissemination method of application.Shown in referring to Fig.1, answered for what one embodiment of the invention provided The flow diagram of gray scale dissemination method.This method can be executed by device, which can be by software and/or hard Part is realized.
In the present embodiment, the gray scale dissemination method of application includes:
Step S10 determines the corresponding user's letter of the access request when receiving the access request of client transmission Breath.
When application has new function to reach the standard grade, developer develops the grayscale version of the application after upgrading, the wherein gray scale Include gray scale function module in the application software of version, which can be some in the application by legacy version The function module that updating functional modules obtain, or the new function module for the application and development.Also, it is ash in server-side The application of degree version is deployed with test environment, i.e. gray scale service cluster, is deployed with formal environments for the application of official release, i.e., just Formula service cluster.
Wherein, about user obtain grayscale version client mode can there are many, for example, by server-side to client The user class of all users at end counts, and the high user of screening user class will have gray scale work(as target user The grayscale version application of energy module is sent in the terminal of these target users, and local update is carried out to software by user, or Hot update is carried out when application starts.Alternatively, in other embodiments, link selector is invited by being tested to client push The target user of test condition is closed, and these users are added in gray scale white list.Specifically, according to the gray scale function mould Block generates test and invites link, and invites link to be issued to client the test;It is based on the survey when receiving client When the response message for asking chain to receive and send that tentatively invites, the configuration information and user information of user terminal are obtained from the response message, The user information of acquisition is added to gray scale white list, and judges whether the user terminal meets survey according to the configuration information Strip part;If so, the corresponding software upgrading packet of the gray scale function module to be sent to the response message for meeting test condition Corresponding user terminal.
Whether step S20 obtains current first shunting rule from caching, and judge the user information with described the One shunting rule match.
Step S30, if the user information shunts rule match with described first, it is determined that the access request is corresponding Gray scale function module, and user request is guided at gray scale service cluster corresponding with the gray scale function module Reason.
It is pre-configured with the first shunting rule, the first shunting rule is for asking water conservancy diversion to correct service cluster user. It is each gray scale in server-side it may be mentioned that can include multiple gray scale function modules in the grayscale version of an application Function module is provided with corresponding gray scale service cluster, if user information and the first shunting rule match, it is determined that access request Corresponding gray scale function module, and by user's request be guided to the corresponding gray scale service cluster of gray scale function module of determination into Row processing.And the corresponding target user of each gray scale function module can be different.
In addition, in the present embodiment, the setting method of gray scale cluster is as follows:Gray scales are arranged in tester, according to setting Gray scales original service cluster is split as formal service cluster and gray scale service cluster.For example, original service cluster In have 20 servers, it is assumed that the gray scales of user setting be 20%, then filter out 4 servers in primary service cluster Server as gray scale cluster.Other servers provide clothes as formal service cluster, for the intended application of official release Business.Wherein, gray scales are shared in total number of users of the intended application using the number of users of the application of grayscale version Ratio.
Optionally, in one embodiment, user information is user name, and the first shunting rule is gray scale white list, judges to use Family information whether with first shunting rule match the step of include:Judge whether institute's user name is located in gray scale white list, wherein If having user name in gray scale white list, user information and the first shunting rule match are judged, if not used in gray scale white list Name in an account book then judges that user information is mismatched with the first shunting rule.
Alternatively, in another embodiment, the first shunting rule is IP address white list, user information is to be wrapped in access request The client ip address contained.Judge whether the client ip address for including in access request is located in IP address white list, if so, User information and the first shunting rule match are judged, otherwise, it is determined that user information is mismatched with the first shunting rule.
Optionally, a gray scale function module can correspond to one or more the first shunting rule, when the first shunting When rule has multiple, multiple rules can be integrated, user's request is shunted.For example, when the first shunting rule has multiple, Shunting rule is carried out one by one it is matched, when user information meets multiple first shuntings rules, judgement user information and the simultaneously One shunting rule match.
Step S40, according to the visit capacity of the gray scale function module of the access request more new record.
Step S50 obtains the visit capacity of statistics when the online time of the gray scale service module reaches preset duration.
Step S60 determines that the visit capacity obtained corresponds to according to the mapping relations between preset visit capacity and gray scales Gray scales, and according to the gray scales adjustment it is described first shunting rule.
Specifically, tester can pre-set the mapping relations between visit capacity and gray scales, visit capacity with It can be proportional between gray scales.Within this period that gray scale function module is reached the standard grade, if to gray scale function module Visit capacity is more, then illustrates that user is good for the feedback of gray scale function module, can open and be used to more users The application of grayscale version.At this point, new gray scales are determined according to the mapping relations between preset visit capacity and gray scales, And then according to gray scales adjustment the first shunting rule, more users request is diverted to gray scale service cluster.If for example, First shunting rule is gray scale white list, then increases the user in gray scale white list.In this way, if user feedback one It is directly in preferable state, then gray scales constantly raise, and up to all users of client or have more than predetermined threshold value After the application for upgrading to grayscale version per family, then whole users can be guided to gray scale service cluster, the final gray scale Formal application of the application of version as new version realizes the graceful upgrade for being applied to new version application by legacy version, avoids Occur need upgrade after again rollback the phenomenon that.When there is new user to download the software again, then new version can be mounted directly Formal application.
If within this period that gray scale function module is reached the standard grade, user is less to the visit capacity of gray scale function module, then may be used To keep current gray scales or reduction gray scales, and visit capacity is exported to tester, by tester to ash Degree function module is adjusted, and is solved the problem in software or is made weight after the adjustment that some can improve user experience New publication.
Moreover, it is judged that after the step of whether user information shunts rule match with described first, if the user Information is mismatched with the first shunting rule, then user request is guided to the corresponding formal services set of the client Group is handled.
Optionally, as an implementation, the present invention also supports to carry out hot update to the first shunting rule in caching, Being normally carried out for shunting is not interrupted.Specifically, when receiving shunting Policy Updates instruction, referred to according to the shunting Policy Updates It enables and obtains the second shunting rule, the second shunting rule and the first shunting rule in caching are compared and analyzed, with true Increment information in the fixed second shunting rule;It is institute that first in caching, which is shunted Policy Updates, according to the increment information State the second shunting rule.
The gray scale dissemination method for the application that the present embodiment proposes, when the access that the client for receiving intended application is sent is asked When asking, the corresponding user information of access request is determined;The first current shunting rule is obtained from caching, and judges user information Whether with first shunting rule match;If user information and the first shunting rule match, it is determined that the corresponding gray scale of access request Function module, and user's request is guided to gray scale service cluster corresponding with gray scale function module and is handled;According to access Ask the visit capacity of the gray scale service of more new record;When the online time of gray scale service module reaches preset duration, system is obtained The visit capacity of meter;According to the mapping relations between preset visit capacity and gray scales, the corresponding ash of visit capacity obtained is determined Degree ratio, and according to gray scales adjustment the first shunting rule.It is provided in the present invention program dedicated for supporting gray scale function The user's request for meeting shunting rule is diverted to gray scale service cluster and handled by the gray scale service cluster of module, while root The visit capacity of gray scale function module is counted according to access request, after gray scale function module reaches the standard grade a period of time, according to system The visit capacity of meter is adjusted gray scales, then according to gray scales adjustment the first shunting rule, in such a manner Realize smooth transition of the software by legacy version to new version.
The present invention also provides a kind of gray scale distributing devices of application.With reference to shown in Fig. 2, provided for one embodiment of the invention The internal structure schematic diagram of the gray scale distributing device of application.
In the present embodiment, the gray scale distributing device 1 of application can be PC (Personal Computer, PC), Can also be the terminal devices such as smart mobile phone, tablet computer, pocket computer.The gray scale distributing device 1 of the application includes at least Memory 11, processor 12, communication bus 13 and network interface 14.
Wherein, memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory, Hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), magnetic storage, disk, CD etc..Memory 11 Can be the internal storage unit of the gray scale distributing device 1 of application, such as the gray scale publication dress of the application in some embodiments Set 1 hard disk.Memory 11 can also be the External memory equipment of the gray scale distributing device 1 of application in further embodiments, Such as the plug-in type hard disk being equipped on the gray scale distributing device 1 of application, intelligent memory card (Smart Media Card, SMC), peace Digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..Further, memory 11 can also be wrapped both The internal storage unit for including the gray scale distributing device 1 of application also includes External memory equipment.Memory 11 can be not only used for depositing Storage is installed on the application software and Various types of data of the gray scale distributing device 1 of application, such as the code etc. of gray scale release process 01, also It can be used for temporarily storing the data that has exported or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11 Code or processing data, such as execute gray scale release process 01 etc..
Communication bus 13 is for realizing the connection communication between these components.
Network interface 14 may include optionally standard wireline interface and wireless interface (such as WI-FI interface), be commonly used in Communication connection is established between the device 1 and other electronic equipments.
Optionally, which can also include user interface, and user interface may include display (Display), input Unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface and wireless interface.It is optional Ground, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Wherein, display can also be appropriate Referred to as display screen or display unit, for be shown in the information handled in the gray scale distributing device 1 of application and for show can Depending on the user interface of change.
Fig. 2 illustrates only the gray scale distributing device 1 of the application with component 11-14 and gray scale release process 01, ability Field technique personnel, can be with it is understood that the structure shown in Fig. 1 does not constitute the restriction to the gray scale distributing device 1 of application Including either combining certain components or different components arrangement than illustrating less either more components.
Optionally, which can also include touch sensor.What the touch sensor was provided touches for user The region for touching operation is known as touch area.In addition, touch sensor described here can be resistive touch sensor, capacitance Formula touch sensor etc..Moreover, the touch sensor not only includes the touch sensor of contact, proximity may also comprise Touch sensor etc..In addition, the touch sensor can be single sensor, or multiple sensings of array arrangement Device.The area of the display of the device 1 can be identical as the area of the touch sensor, can also be different.Optionally, it will show Show that device is arranged with touch sensor stacking, to form touch display screen.The device 1 is based on touch display screen detecting user and touches The touch control operation of hair.
Optionally, which can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, sound Frequency circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically, light Sensor may include ambient light sensor and proximity sensor, wherein if the device 1 is mobile terminal, ambient light sensor can The brightness of display screen is adjusted according to the light and shade of ambient light, proximity sensor can be closed when mobile terminal is moved in one's ear Display screen and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile terminal posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; Certainly, mobile terminal can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, This is repeated no more.
In 1 embodiment of device shown in Fig. 2, gray scale release process 01 is stored in memory 11;Processor 12 executes Following steps are realized when the gray scale release process 01 stored in memory 11:
When receiving the access request of client transmission, the corresponding user information of the access request is determined;
The first current shunting rule is obtained from caching, and judges whether the user information advises with first shunting Then match;
If the user information shunts rule match with described first, it is determined that the corresponding gray scale function of the access request Module, and user request is guided to gray scale service cluster corresponding with the gray scale function module and is handled;
According to the visit capacity of the gray scale function module of the access request more new record;
When the online time of the gray scale service module reaches preset duration, the visit capacity of statistics is obtained;
According to the mapping relations between preset visit capacity and gray scales, the corresponding gray scale ratio of visit capacity obtained is determined Example, and according to gray scales adjustment the first shunting rule.
When application has new function to reach the standard grade, developer develops the grayscale version of the application after upgrading, the wherein gray scale Include gray scale function module in the application software of version, which can be some in the application by legacy version The function module that updating functional modules obtain, or the new function module for the application and development.Also, it is ash in server-side The application of degree version is deployed with test environment, i.e. gray scale service cluster, is deployed with formal environments for the application of official release, i.e., just Formula service cluster.
Wherein, about user obtain grayscale version client mode can there are many, for example, by server-side to client The user class of all users at end counts, and the high user of screening user class will have gray scale work(as target user The grayscale version application of energy module is sent in the terminal of these target users, and local update is carried out to software by user, or Hot update is carried out when application starts.Alternatively, in other embodiments, link selector is invited by being tested to client push The target user of test condition is closed, and these users are added in gray scale white list.Specifically, according to the gray scale function mould Block generates test and invites link, and invites link to be issued to client the test;It is based on the survey when receiving client When the response message for asking chain to receive and send that tentatively invites, the configuration information and user information of user terminal are obtained from the response message, The user information of acquisition is added to gray scale white list, and judges whether the user terminal meets survey according to the configuration information Strip part;If so, the corresponding software upgrading packet of the gray scale function module to be sent to the response message for meeting test condition Corresponding user terminal.
It is pre-configured with the first shunting rule, the first shunting rule is for asking water conservancy diversion to correct service cluster user. It is each gray scale in server-side it may be mentioned that can include multiple gray scale function modules in the grayscale version of an application Function module is provided with corresponding gray scale service cluster, if user information and the first shunting rule match, it is determined that access request Corresponding gray scale function module, and by user's request be guided to the corresponding gray scale service cluster of gray scale function module of determination into Row processing.And the corresponding target user of each gray scale function module can be different.
In addition, in the present embodiment, the setting method of gray scale cluster is as follows:Gray scales are arranged in tester, according to setting Gray scales original service cluster is split as formal service cluster and gray scale service cluster.For example, original service cluster In have 20 servers, it is assumed that the gray scales of user setting be 20%, then filter out 4 servers in primary service cluster Server as gray scale cluster.Other servers provide clothes as formal service cluster, for the intended application of official release Business.Wherein, gray scales are shared in total number of users of the intended application using the number of users of the application of grayscale version Ratio.
Optionally, in one embodiment, user information is user name, and the first shunting rule is gray scale white list, judges to use Family information whether with first shunting rule match the step of include:Judge whether institute's user name is located in gray scale white list, wherein If having user name in gray scale white list, user information and the first shunting rule match are judged, if not used in gray scale white list Name in an account book then judges that user information is mismatched with the first shunting rule.
Alternatively, in another embodiment, the first shunting rule is IP address white list, user information is to be wrapped in access request The client ip address contained.Judge whether the client ip address for including in access request is located in IP address white list, if so, User information and the first shunting rule match are judged, otherwise, it is determined that user information is mismatched with the first shunting rule.
Optionally, a gray scale function module can correspond to one or more the first shunting rule, when the first shunting When rule has multiple, multiple rules can be integrated, user's request is shunted.For example, when the first shunting rule has multiple, Shunting rule is carried out one by one it is matched, when user information meets multiple first shuntings rules, judgement user information and the simultaneously One shunting rule match.
Specifically, tester can pre-set the mapping relations between visit capacity and gray scales, visit capacity with It can be proportional between gray scales.Within this period that gray scale function module is reached the standard grade, if to gray scale function module Visit capacity is more, then illustrates that user is good for the feedback of gray scale function module, can open and be used to more users The application of grayscale version.At this point, new gray scales are determined according to the mapping relations between preset visit capacity and gray scales, And then according to gray scales adjustment the first shunting rule, more users request is diverted to gray scale service cluster.If for example, First shunting rule is gray scale white list, then increases the user in gray scale white list.In this way, if user feedback one It is directly in preferable state, then gray scales constantly raise, and up to all users of client or have more than predetermined threshold value After the application for upgrading to grayscale version per family, then whole users can be guided to gray scale service cluster, the final gray scale Formal application of the application of version as new version realizes the graceful upgrade for being applied to new version application by legacy version, avoids Occur need upgrade after again rollback the phenomenon that.When there is new user to download the software again, then new version can be mounted directly Formal application.
If within this period that gray scale function module is reached the standard grade, user is less to the visit capacity of gray scale function module, then may be used To keep current gray scales or reduction gray scales, and visit capacity is exported to tester, by tester to ash Degree function module is adjusted, and is solved the problem in software or is made weight after the adjustment that some can improve user experience New publication.
Moreover, it is judged that after the step of whether user information shunts rule match with described first, if the user Information is mismatched with the first shunting rule, then user request is guided to the corresponding formal services set of the client Group is handled.
Optionally, as an implementation, the present invention also supports to carry out hot update to the first shunting rule in caching, Being normally carried out for shunting is not interrupted.Specifically, when receiving shunting Policy Updates instruction, referred to according to the shunting Policy Updates It enables and obtains the second shunting rule, the second shunting rule and the first shunting rule in caching are compared and analyzed, with true Increment information in the fixed second shunting rule;It is institute that first in caching, which is shunted Policy Updates, according to the increment information State the second shunting rule.
The gray scale distributing device for the application that the present embodiment proposes, when the access that the client for receiving intended application is sent is asked When asking, the corresponding user information of access request is determined;The first current shunting rule is obtained from caching, and judges user information Whether with first shunting rule match;If user information and the first shunting rule match, it is determined that the corresponding gray scale of access request Function module, and user's request is guided to gray scale service cluster corresponding with gray scale function module and is handled;According to access Ask the visit capacity of the gray scale service of more new record;When the online time of gray scale service module reaches preset duration, system is obtained The visit capacity of meter;According to the mapping relations between preset visit capacity and gray scales, the corresponding ash of visit capacity obtained is determined Degree ratio, and according to gray scales adjustment the first shunting rule.It is provided in the present invention program dedicated for supporting gray scale function The user's request for meeting shunting rule is diverted to gray scale service cluster and handled by the gray scale service cluster of module, while root The visit capacity of gray scale function module is counted according to access request, after gray scale function module reaches the standard grade a period of time, according to system The visit capacity of meter is adjusted gray scales, then according to gray scales adjustment the first shunting rule, in such a manner Realize smooth transition of the software by legacy version to new version.
Optionally, in other examples, gray scale release process can also be divided into one or more module, and one A or multiple modules are stored in memory 11, and are held by one or more processors (the present embodiment is by processor 12) For row to complete the present invention, the so-called module of the present invention is the series of computation machine program instruction section for referring to complete specific function, For describing implementation procedure of the gray scale release process in the gray scale distributing device of application.
Shown in Fig. 3, for the gray scale release process in gray scale distributing device one embodiment of the invention applied Program module schematic diagram, in the embodiment, gray scale release process can be divided into data obtaining module 10, rule match module 20, request water conservancy diversion module 30, acess control module 40 and Policy Updates module 50, illustratively:
Data obtaining module 10 is used for:When receiving the access request of client transmission, the access request pair is determined The user information answered;
Rule match module 20 is used for:The first current shunting rule is obtained from caching, and judges the user information Whether with it is described first shunting rule match;
Request water conservancy diversion module 30 is used for:If the user information shunts rule match with described first, it is determined that the visit It asks request corresponding gray scale function module, and user request is guided to gray scale corresponding with the gray scale function module and is taken Business cluster is handled;
Acess control module 40 is used for:According to the access of the gray scale function module of the access request more new record Amount;
And when the online time of the gray scale service module reaches preset duration, obtain the visit capacity of statistics;
Policy Updates module 50 is used for:According to the mapping relations between preset visit capacity and gray scales, determines and obtain The corresponding gray scales of visit capacity, and according to the gray scales adjustment it is described first shunting rule.
Above- mentioned information acquisition module 10, rule match module 20, request water conservancy diversion module 30, acess control module 40 and rule The program modules such as update module 50 are performed realized functions or operations step and are substantially the same with above-described embodiment, herein not It repeats again.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with gray scale release process, the gray scale release process can be executed by one or more processors, to realize following operation:
When receiving the access request of client transmission, the corresponding user information of the access request is determined;
The first current shunting rule is obtained from caching, and judges whether the user information advises with first shunting Then match;
If the user information shunts rule match with described first, it is determined that the corresponding gray scale function of the access request Module, and user request is guided to gray scale service cluster corresponding with the gray scale function module and is handled;
According to the visit capacity of the gray scale function module of the access request more new record;
When the online time of the gray scale service module reaches preset duration, the visit capacity of statistics is obtained;
According to the mapping relations between preset visit capacity and gray scales, the corresponding gray scale ratio of visit capacity obtained is determined Example, and according to gray scales adjustment the first shunting rule.Computer readable storage medium specific embodiment party of the present invention Each embodiment of gray scale distributing device and method of formula and above application is essentially identical, does not make tired state herein.
It should be noted that the embodiments of the present invention are for illustration only, can not represent the quality of embodiment.And The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet Process, device, article or the method for including a series of elements include not only those elements, but also include being not explicitly listed Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more In the case of, the element that is limited by sentence "including a ...", it is not excluded that in the process including the element, device, article Or there is also other identical elements in method.
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.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of gray scale dissemination method of application, which is characterized in that the method includes:
When receiving the access request of client transmission, the corresponding user information of the access request is determined;
Current first shunting rule is obtained from caching, and judge the user information whether with the first shunting rule Match;
If the user information shunts rule match with described first, it is determined that the corresponding gray scale function mould of the access request Block, and user request is guided to gray scale service cluster corresponding with the gray scale function module and is handled;
According to the visit capacity of the gray scale function module of the access request more new record;
When the online time of the gray scale service module reaches preset duration, the visit capacity of statistics is obtained;
According to the mapping relations between preset visit capacity and gray scales, the corresponding gray scales of visit capacity obtained are determined, And according to gray scales adjustment the first shunting rule.
2. the gray scale dissemination method applied as described in claim 1, which is characterized in that described to receive what client was sent When access request, before the step of determining the access request corresponding user information, the method further includes step:
Test is generated according to the gray scale function module and invites link, and invites link to be issued to client the test;
When receiving the response message that client is received and sent based on the test invitation chain, obtains and use from the response message The user information of acquisition is added to gray scale white list, and matches confidence according to described by the configuration information and user information of family terminal Breath judges whether the user terminal meets test condition;
If so, the corresponding software upgrading packet of the gray scale function module to be sent to the response message correspondence for meeting test condition User terminal.
3. the gray scale dissemination method applied as described in claim 1, which is characterized in that the user information is user name, institute State the first shunting rule be gray scale white list, it is described judge the user information whether with it is described first shunt rule match step Suddenly include:
Judge whether institute's user name is located in gray scale white list, wherein if having the user name in the gray scale white list, sentence The fixed user information shunts rule match with described first and judges if not having the user name in the gray scale white list The user information is mismatched with the first shunting rule.
4. the gray scale dissemination method applied as claimed any one in claims 1 to 3, which is characterized in that described in the judgement After the step of whether user information shunts rule match with described first, the method further includes step:
If the user information is mismatched with the first shunting rule, user request is guided to the client pair The formal service cluster answered is handled.
5. the gray scale dissemination method applied as claimed any one in claims 1 to 3, which is characterized in that the basis is default Visit capacity and gray scales between mapping relations, the corresponding gray scales of visit capacity obtained are determined, and according to the ash After degree ratio adjusts the step of the first shunting rule, the method further includes step:
When receiving shunting Policy Updates instruction, the second shunting rule is obtained according to shunting Policy Updates instruction, by institute It states the second shunting rule to compare and analyze with the first shunting rule in caching, with the increasing in determination the second shunting rule Measure information;
It is according to the increment information that the first shunting Policy Updates in caching are regular for second shunting.
6. a kind of gray scale distributing device of application, which is characterized in that described device includes memory and processor, the memory On be stored with the gray scale release process that can be run on the processor, when the gray scale release process is executed by the processor Realize following steps:
When receiving the access request of client transmission, the corresponding user information of the access request is determined;
Current first shunting rule is obtained from caching, and judge the user information whether with the first shunting rule Match;
If the user information shunts rule match with described first, it is determined that the corresponding gray scale function mould of the access request Block, and user request is guided to gray scale service cluster corresponding with the gray scale function module and is handled;
According to the visit capacity of the gray scale function module of the access request more new record;
When the online time of the gray scale service module reaches preset duration, the visit capacity of statistics is obtained;
According to the mapping relations between preset visit capacity and gray scales, the corresponding gray scales of visit capacity obtained are determined, And according to gray scales adjustment the first shunting rule.
7. the gray scale distributing device applied as claimed in claim 6, which is characterized in that the gray scale release process can also be by institute Processor execution is stated, when receiving the access request of client transmission, to determine the corresponding use of the access request described Before the step of family information, following steps are also realized:
Test is generated according to the gray scale function module and invites link, and invites link to be issued to client the test;
When receiving the response message that client is received and sent based on the test invitation chain, obtains and use from the response message The user information of acquisition is added to gray scale white list, and matches confidence according to described by the configuration information and user information of family terminal Breath judges whether the user terminal meets test condition;
If so, the corresponding software upgrading packet of the gray scale function module to be sent to the response message correspondence for meeting test condition User terminal.
8. the gray scale distributing device of application as claimed in claims 6 or 7, which is characterized in that the gray scale release process may be used also Executed by the processor, with it is described judge the user information whether with it is described first shunting rule match the step of it Afterwards, following steps are also realized:
If the user information is mismatched with the first shunting rule, user request is guided to the client pair The formal service cluster answered is handled.
9. the gray scale distributing device of application as claimed in claims 6 or 7, which is characterized in that the gray scale release process may be used also It is executed by the processor, in the mapping relations according between preset visit capacity and gray scales, to determine acquisition The corresponding gray scales of visit capacity, and according to the gray scales adjust it is described first shunting rule step after, also realize Following steps:
When receiving shunting Policy Updates instruction, the second shunting rule is obtained according to shunting Policy Updates instruction, by institute It states the second shunting rule to compare and analyze with the first shunting rule in caching, with the increasing in determination the second shunting rule Measure information;
It is according to the increment information that the first shunting Policy Updates in caching are regular for second shunting.
10. a kind of computer readable storage medium, which is characterized in that be stored with gray scale hair on the computer readable storage medium Cloth program, the gray scale release process can be executed by one or more processor, to realize as any in claim 1 to 5 The step of gray scale dissemination method of application described in.
CN201810546888.7A 2018-05-31 2018-05-31 Gray scale dissemination method, device and the computer readable storage medium of application Pending CN108768875A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810546888.7A CN108768875A (en) 2018-05-31 2018-05-31 Gray scale dissemination method, device and the computer readable storage medium of application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810546888.7A CN108768875A (en) 2018-05-31 2018-05-31 Gray scale dissemination method, device and the computer readable storage medium of application

Publications (1)

Publication Number Publication Date
CN108768875A true CN108768875A (en) 2018-11-06

Family

ID=64001114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810546888.7A Pending CN108768875A (en) 2018-05-31 2018-05-31 Gray scale dissemination method, device and the computer readable storage medium of application

Country Status (1)

Country Link
CN (1) CN108768875A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597643A (en) * 2018-11-27 2019-04-09 平安科技(深圳)有限公司 Using gray scale dissemination method, device, electronic equipment and storage medium
CN109815405A (en) * 2019-01-31 2019-05-28 北京三快在线科技有限公司 Gray scale shunt method and system
CN109871232A (en) * 2019-02-11 2019-06-11 南威软件股份有限公司 A kind of method of APP Android new version gray scale publication
CN109918115A (en) * 2019-03-07 2019-06-21 成都品果科技有限公司 A kind of method and system of software function publication
CN110045964A (en) * 2019-04-09 2019-07-23 厦门网宿有限公司 Software gray scale dissemination method, proxy server, configuration center and system
CN110083485A (en) * 2019-03-15 2019-08-02 咪咕文化科技有限公司 Shunt method, data service system and its front end, storage medium
CN110096305A (en) * 2019-04-25 2019-08-06 杭州数梦工场科技有限公司 Gray scale dissemination method, device, equipment and storage medium
CN110515675A (en) * 2019-08-30 2019-11-29 中国工商银行股份有限公司 Using online method, apparatus, system and readable storage medium storing program for executing
CN111277638A (en) * 2020-01-15 2020-06-12 北京奇艺世纪科技有限公司 Control method and server
CN111314402A (en) * 2018-12-12 2020-06-19 深圳兆日科技股份有限公司 Web application publishing method and device, computer equipment and storage medium
WO2020181684A1 (en) * 2019-03-12 2020-09-17 平安科技(深圳)有限公司 Grayscale release management method, system and device, and storage medium
CN112114869A (en) * 2020-09-18 2020-12-22 聚好看科技股份有限公司 Server, gray level publishing method, device and medium
CN112698852A (en) * 2020-11-30 2021-04-23 厦门亿联网络技术股份有限公司 APP gray scale upgrading method and device, terminal equipment and computer readable storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597643A (en) * 2018-11-27 2019-04-09 平安科技(深圳)有限公司 Using gray scale dissemination method, device, electronic equipment and storage medium
CN111314402A (en) * 2018-12-12 2020-06-19 深圳兆日科技股份有限公司 Web application publishing method and device, computer equipment and storage medium
CN109815405A (en) * 2019-01-31 2019-05-28 北京三快在线科技有限公司 Gray scale shunt method and system
CN109871232A (en) * 2019-02-11 2019-06-11 南威软件股份有限公司 A kind of method of APP Android new version gray scale publication
CN109918115A (en) * 2019-03-07 2019-06-21 成都品果科技有限公司 A kind of method and system of software function publication
WO2020181684A1 (en) * 2019-03-12 2020-09-17 平安科技(深圳)有限公司 Grayscale release management method, system and device, and storage medium
CN110083485A (en) * 2019-03-15 2019-08-02 咪咕文化科技有限公司 Shunt method, data service system and its front end, storage medium
CN110083485B (en) * 2019-03-15 2021-08-06 咪咕文化科技有限公司 Shunting method, data service system, front end thereof and storage medium
CN110045964A (en) * 2019-04-09 2019-07-23 厦门网宿有限公司 Software gray scale dissemination method, proxy server, configuration center and system
CN110096305A (en) * 2019-04-25 2019-08-06 杭州数梦工场科技有限公司 Gray scale dissemination method, device, equipment and storage medium
CN110515675A (en) * 2019-08-30 2019-11-29 中国工商银行股份有限公司 Using online method, apparatus, system and readable storage medium storing program for executing
CN111277638A (en) * 2020-01-15 2020-06-12 北京奇艺世纪科技有限公司 Control method and server
CN112114869A (en) * 2020-09-18 2020-12-22 聚好看科技股份有限公司 Server, gray level publishing method, device and medium
CN112698852A (en) * 2020-11-30 2021-04-23 厦门亿联网络技术股份有限公司 APP gray scale upgrading method and device, terminal equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108768875A (en) Gray scale dissemination method, device and the computer readable storage medium of application
CN102231131B (en) Testing software in electronic device
US20160241589A1 (en) Method and apparatus for identifying malicious website
EP3007408A2 (en) Service method for managing transactions using application properties and system therefor
CN104794396B (en) Across standing posture script loophole detection method and device
CN105630685A (en) Method and device for testing program interface
CN106155750A (en) The loading method of a kind of resource file and device
CN107908952A (en) Identify the method, apparatus and terminal of prototype and simulator
CN105357204B (en) Method and device for generating terminal identification information
CN104267987B (en) A kind of newer detection method of application APP, detection device and terminal
CN106850800B (en) Method for determining download path and client
CN108427698A (en) Updating device, method and the computer readable storage medium of prediction model
CN107154976A (en) Website testing method, device and system
CN108763564A (en) Using method for pushing, device and computer readable storage medium
CN107967424A (en) A kind of verification method of plug-in unit, device, terminal device and storage medium
CN106843868A (en) Method, device and mobile terminal that a kind of many accounts are logged in
CN107896249B (en) Cross-network area data access method, device, equipment and storage medium
CN112269586A (en) Application upgrading method and device, storage medium and electronic equipment
CN108549826A (en) Method of calibration, terminal, server and the readable storage medium storing program for executing of application program
CN105447383B (en) Browser execution environment detection method, client, server and system
CN108255651A (en) A kind of method, terminal and the storage medium of terminal detection
CN107864038B (en) Certificate management method, device, equipment and computer readable storage medium
CN105871695A (en) Emoji sending method and device
CN108875368A (en) A kind of safety detection method, apparatus and system
CN107864066A (en) Offline H5 pages monitoring method, device, equipment and readable storage medium storing program for executing

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