CN110046083A - Automate gray scale dissemination method and device - Google Patents

Automate gray scale dissemination method and device Download PDF

Info

Publication number
CN110046083A
CN110046083A CN201810043539.3A CN201810043539A CN110046083A CN 110046083 A CN110046083 A CN 110046083A CN 201810043539 A CN201810043539 A CN 201810043539A CN 110046083 A CN110046083 A CN 110046083A
Authority
CN
China
Prior art keywords
current generation
gray scale
gray
next stage
gray scales
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
CN201810043539.3A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810043539.3A priority Critical patent/CN110046083A/en
Publication of CN110046083A publication Critical patent/CN110046083A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of automation gray scale dissemination method and devices, are related to field of computer technology.One specific embodiment of this method includes: the grey parameter for obtaining the current generation and preset gray scale plan;According to the grey parameter of the current generation and the gray scale plan, the gray scales of next stage are determined;According to the gray scales of the next stage, gray scale publication is carried out.The embodiment can automate mobilism adjustment gray scale publication, improve accuracy and reduce risk;Next stage, which can timely and accurately be adjusted, can receive the number of users of upgrade notification, and automation mobilism adjustment gray scale publication easily controls the coverage of new version application or service publication risk;And reduce human resources investment and cost.

Description

Automate gray scale dissemination method and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of automation gray scale dissemination methods and device.
Background technique
After mobile application publication, the various reasons such as code quality, device configuration, equipment compatibility, use environment cause Real user occurs being operating abnormally situation on line.In order to reduce real user rate of breakdown on line as far as possible, improve user Experience, application formally issue it is online before, fraction of subscribers can be randomly selected and try out and test new version application.Choose user The process of new version on probation is known as a gray scale.
In the prior art, the general step of mobile application progress gray scale publication is as follows:
1. staff randomly selects certain customers and issues new version upgrade tip, used for customer upgrade;
2. staff is according to the related data of current gray level (such as the increasing for having upgraded number of users, having upgraded number of users Long speed, abnormal data amount, abnormal data serious conditions) manually adjust gray scales, wherein and gray scales refer to for the moment Between can receive the number of users of upgrade notification and account for ratio using total number of users, which, which determines, has currently upgraded use The growth rate of amount amount.
Above procedure is properly termed as gray scale monitoring or gray scale publication.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
Gray scale monitoring, which is completely dependent on, in the prior art manually adjusts, by arranging special messenger on duty in real time, according to same day gray scale All data manually adjust.Due to excessively relying on artificial treatment and empirical data, gray scales are adjusted not in time, accuracy Difference, risk are big;The work weight bearing of gray scale monitoring personnel is big, and human cost is big.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of automation gray scale dissemination method and device, dynamic can be automated Change adjustment gray scale publication, improve accuracy and reduces risk;Next stage can timely and accurately be adjusted, and can to receive upgrading logical The number of users known, automation mobilism adjustment gray scale publication, easily controls the shadow of new version application or service publication risk Range is rung, and reduces human resources investment and cost.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of automation gray scale publisher is provided Method, comprising: obtain the current generation grey parameter and preset gray scale plan;According to the grey parameter of the current generation and institute Gray scale plan is stated, determines the gray scales of next stage;According to the gray scales of the next stage, gray scale publication is carried out.
Optionally, the gray scale plan includes: gray scale runing time and gray scale target user amount;The ash of the current generation Degree parameter include: the gray scales of current generation, the current generation upgrading user volume, the current generation upgrading user increment and Current generation user activity;
According to the grey parameter of the gray scale plan and the current generation, the gray scales for calculating next stage include: The gray scales of next stage are calculated according to the following formula:
Wherein, P indicates the gray scales of next stage, UVtIndicate gray scale target user amount, UVcIndicate current generation upgrading User volume, UVΔpIndicate that the ratio between the increment and the gray scales of current generation of current generation upgrading user, R indicate Current generation user activity, ClIndicate remaining gray-scale level segment number, the ClAccording to the gray scale runing time and current rank The time of section determines.
Optionally, the gray scale plan further includes termination condition;
After carrying out gray scale publication according to the gray scales of the next stage, the method also includes: according to described The grey parameter of current generation determines whether the grey states of current generation are normal and whether meet termination condition;If current The grey states in stage are abnormal and are unsatisfactory for termination condition, then output abnormality notifies;If the grey states exception of current generation, And meet termination condition, then output abnormality end notification;If the grey states of current generation are normal and meet termination condition, Export normal termination notice.
Optionally, the grey parameter of the current generation further include: the user volume of current generation upgrading collapse;
According to the grey parameter of the current generation, judge whether the grey states of current generation normally include: according to institute The user volume of current generation upgrading and the user volume of current generation upgrading collapse are stated, the collapse rate of current generation is calculated;If described Collapse rate is greater than or equal to collapse rate threshold value, then the grey states of current generation are abnormal;If the collapse rate is less than collapse rate Threshold value, then the grey states of current generation are normal.
Optionally, it in the gray scales that determine next stage or determines that current gray state is abnormal and is unsatisfactory for terminating item Part determines that current gray state is normal and is unsatisfactory for after termination condition, the method also includes: judge the next stage Gray scales it is whether identical as the gray scales of current generation;If they are the same, then upgrading user segment is adjusted, to be used for next stage Gray scale publication is carried out in gray scale user segment after the adjustment;And/or judge the gray scales of the next stage whether be greater than or Equal to the gray scales upper limit;If so, carrying out gray scale publication according to preset gray scales correction value.
To achieve the above object, on the other hand the embodiment of the present invention provides a kind of automation gray scale distributing device, comprising: obtains Modulus block, obtain the current generation grey parameter and preset gray scale plan;Gray scales determining module, for working as according to The grey parameter of last stage and the gray scale plan, determine the gray scales of next stage;Gray scale release module, for according to institute The gray scales of next stage are stated, gray scale publication is carried out.
Optionally, the gray scale plan includes: gray scale runing time and gray scale target user amount;The ash of the current generation Degree parameter include: the gray scales of current generation, the current generation upgrading user volume, the current generation upgrading user increment and Current generation user activity;
The gray scales determining module calculates the gray scales of next stage according to the following formula
Wherein, P indicates the gray scales of next stage, UVtIndicate gray scale target user amount, UVcIndicate current generation upgrading User volume, UVΔpIndicate that the ratio between the increment and the gray scales of current generation of current generation upgrading user, R indicate Current generation user activity, ClIndicate remaining gray-scale level segment number, the ClAccording to the gray scale runing time and current rank The time of section determines.
Optionally, the gray scale plan further includes termination condition;Described device further includes notice output module, is used for: root According to the grey parameter of the current generation, determine whether the grey states of current generation are normal and whether meet termination condition; If the grey states of current generation are abnormal and are unsatisfactory for termination condition, output abnormality notice;If the grey states of current generation Extremely and meet termination condition, then output abnormality end notification;If the grey states of current generation are normal and meet end item Part then exports normal termination notice.
Optionally, the grey parameter of the current generation further include: the user volume of current generation upgrading collapse;The notice Output module is also used to: according to the user volume of the user volume of current generation upgrading and current generation upgrading collapse, calculating is worked as The collapse rate of last stage;If the collapse rate is greater than or equal to collapse rate threshold value, the grey states of current generation are abnormal;If The collapse rate is less than collapse rate threshold value, then the grey states of current generation are normal.
Optionally, described device further includes gray scales update module, is used for: judging the gray scales of the next stage It is whether identical as the gray scales of current generation;If they are the same, then adjust upgrading user segment, with for next stage after the adjustment Gray scale publication is carried out in gray scale user segment;And/or judge whether the gray scales of the next stage are greater than or equal to gray scale ratio The example upper limit;If so, carrying out gray scale publication according to preset gray scales correction value.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of electronic equipment is provided, comprising: one A or multiple processors;Storage device, for storing one or more programs, when one or more of programs are one Or multiple processors execute, so that one or more of processors realize the automation gray scale publisher of the embodiment of the present invention Method.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of computer-readable medium is provided, On be stored with computer program, when described program is executed by processor realize the embodiment of the present invention automation gray scale publisher Method.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that because using preset densitometer is saved It draws, obtains the grey parameter of current generation;According to the grey parameter of the gray scale plan and the current generation, automation adjustment The technological means of gray scale publication, thus overcome prior art human resources investment is big, adjustment not in time and accuracy difference Technical problem, and then reach and dynamic adjustment gray scale publication is automated according to current gray level situation, it is time saving and energy saving, reduce human resources Investment improves accuracy and reduces the technical effect of risk.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow of automation gray scale dissemination method according to an embodiment of the present invention;
Fig. 2 is the schematic diagram of the main flow of automation gray scale dissemination method according to another embodiment of the present invention;
Fig. 3 is the schematic diagram of the main flow of the automation gray scale dissemination method of another embodiment according to the present invention;
Fig. 4 is the schematic diagram of the main modular of automation gray scale distributing device according to an embodiment of the present invention;
Fig. 5 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 6 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the schematic diagram of the main flow of automation gray scale dissemination method according to an embodiment of the present invention.Such as Fig. 1 institute Show, this method comprises:
Step S101: obtain the current generation grey parameter and preset gray scale plan;
Step S102: according to the grey parameter of the current generation and the gray scale plan, the gray scale of next stage is determined Ratio;
Step S103: according to the gray scales of the next stage, gray scale publication is carried out.
For step S101, gray scale plan can be preset according to project demands.The gray scale plan specifically can wrap The gradation effect data being finally reached are included, for example including gray scale runing time and gray scale target user amount (gray scale target user amount Refer to the quantity for upgrading user in a period of time during gray scale publication starts to gray scale to terminate);Gray scales can also be set The upper limit, alarm conditions and gray scale termination condition etc..
Above-mentioned grey parameter may include the gray scales of current generation, the user volume of current generation upgrading, current generation Upgrade increment and the current generation user activity etc. of user.Wherein, the user volume of current generation upgrading refers to sends out from gray scale Cloth starts the quantity of the user to current generation all upgradings.The increment of current generation upgrading user refers to and previous stage phase Than the current generation increased quantity for having upgraded user.
It in an alternate embodiment of the invention, can be with the grey parameter of timing output current generation, to facilitate staff to check.
For step S102, in embodiments of the present invention, the runing time between gray scale adjustment twice is a gray-scale level Section T, the gray scale stage are the fixed cycle.Current generation refers to that current gray level stage, next stage refer to next gray scale stage. According to the grey parameter of the current generation and the gray scale plan, the step of determining the gray scales of next stage, includes:
According to the increment UV of the upgrading user of current generationΔIt is determined in the unit stage with the gray scales P ' of current generation The customer upgrade quantity UV of unit ratioΔp;Wherein, the increment UV of current generation upgrading userΔRefer to and previous stage phase Than the current generation increased quantity for having upgraded user;
According to gray scale running time Tt, the current generation time TcRemaining gray-scale level segment number is determined with gray scale stage T Cl
Current generation user activity R is determined according to historical user's alive data;
UV is measured according to gray scale target usertWith the user volume UV of current generation upgradingcDetermine remaining upgrading number of users (UVt-UVc);Wherein, gray scale target user measures UVtRefer to and upgrades in a period of time during gray scale publication starts to gray scale to terminate The quantity of user, the user volume UV of current generation upgradingcRefer to the user since gray scale publication to current generation all upgradings Quantity;
According to remaining upgrading number of users, in the unit stage unit ratio customer upgrade quantity UVΔp, remaining gray scale Stage quantity Cl, current generation user activity R calculate next stage gray scales P.
More specifically, the gray scales of next stage can be calculated according to the following formula:
Wherein,
UVhIndicate the user volume of the previous day same period of stable release on line;UVh′Stable release is previous on expression line The user volume of a period in the sky.For example, the time of current generation be December 18 16:09, stable release is V6.5.3 on line, then UVhFor the user volume of V6.5.3 version 17 16:00-17:00 periods of December, UVh′For 17 days 15 December of V6.5.3 version: The user volume of 00-16:00 period.
According to the gray scales and total number of users of the next stage being calculated, it can determine that next stage can receive liter The number of users of grade notice so as to automate dynamic adjustment gray scale issuing process, and can make user during gray scale Updating speed keeps stable as far as possible.
For step S103, it has been determined that next stage can receive newly according to the gray scales for the next stage being calculated Edition upgrading informant's number then carries out gray scale publication according to the number.
The automation gray scale dissemination method of the embodiment of the present invention, according to current generation gradation data and preset densitometer It draws, determines the gray scales of next stage, then automate mobilism adjustment gray scale hair according to the gray scales of the next stage Cloth improves accuracy and reduces risk;Next stage, which can timely and accurately be adjusted, can receive the number of users of upgrade notification, Mobilism adjustment gray scale publication is automated, the coverage of new version application or service publication risk is easily controlled, and is reduced Human resources investment and cost.
In an alternate embodiment of the invention, after carrying out gray scale publication according to the gray scales of the next stage, the side Method further include:
According to the grey parameter of the current generation, determine whether the grey states of current generation are normal and whether meet Termination condition;
If the grey states of current generation are abnormal and are unsatisfactory for termination condition, output abnormality notice;
If the grey states of current generation are abnormal and meet termination condition, output abnormality end notification;
If the grey states of current generation are normal and meet termination condition, normal termination notice is exported.
Wherein, whether the grey states of current generation can normally be determined by the collapse rate of current generation, specific:
The grey parameter of above-mentioned current generation can also include the user volume of current generation upgrading collapse, the current generation liter The user volume of grade collapse, which refers to, applies the quantity collapsed into the user of current generation all upgradings since gray scale publication.
According to the user volume of the user volume of current generation upgrading and current generation upgrading collapse, the current generation is calculated Collapse rate;If the collapse rate is greater than or equal to collapse rate threshold value, the grey states of current generation are abnormal;If the collapse Rate is less than collapse rate threshold value, then the grey states of current generation are normal.
After whether the grey states for determining the current generation are normal, judge whether the grey parameter of current generation meets knot Beam condition, such as judge whether the gray scale time of current generation reaches gray scale runing time or the user volume of current generation upgrading is It is no to reach gray scale target user amount or whether the collapse rate of current generation is more than collapse rate extreme value, if meeting above-mentioned thrin, Then the grey states of current generation meet termination condition.
After whether the grey states for determining the current generation meet termination condition, according to it is determining as a result, for example using The modes such as mail or short message export corresponding notification information, to facilitate staff to check.For example, if the gray scale shape of current generation State is normal and meets termination condition, then exports normal termination notice;If the grey states of current generation are abnormal and satisfaction terminates Condition, then output abnormality end notification;If the grey states of current generation are abnormal and are unsatisfactory for termination condition, output abnormality Notice.
In an alternate embodiment of the invention, in the gray scales that determine next stage or determine that current gray state is abnormal and not Meet termination condition or determines that current gray state is normal and is unsatisfactory for after termination condition, the method also includes:
Judge whether the gray scales of the next stage are identical as the gray scales of current generation;
If they are the same, then upgrading user segment is adjusted, for carrying out gray scale in next stage gray scale user segment after the adjustment Publication;And/or
Judge whether the gray scales of the next stage are greater than or equal to the gray scales upper limit;
If so, carrying out gray scale publication according to preset gray scales correction value.
In the present embodiment, when setting gray scale plan, can for example, by using hash algorithm to user device characteristics value into Whole users are divided into several upgrading user segments by row hashing, so that user is random in a certain range, uniformly divides Cloth.The application of new version or service can be allowed to bear the test of different user's usage scenario in this way.
After the gray scales of next stage are calculated, judge the gray scales whether the gray scale ratio with the current generation Example is identical: if they are the same, then adjustable upgrading user segment, and such as the upgrading user segment of preset next stage is A to C, adjustment Upgrading user segment afterwards is D to F, and the embodiment of the present invention upgrades the mode of user segment with no restrictions to adjustment.Adjustment upgrading user After section, is issued in the upgrading user segment according to the gray scales for the next stage being calculated and update upgrade notification.To The efficiency of gray scale publication can be improved, reduce risk.
In other alternative-embodiments, it can also judge whether the gray scales of the next stage are greater than or equal to ash The degree ratio upper limit, such as the gray scales upper limit can be 100% or 90%, and the present invention is herein with no restrictions.If the lower single order Section gray scales be greater than the gray scales upper limit, then according to preset gray scales correction value preset next stage upgrading Publication updates upgrade notification in user segment.Wherein, which can be according to application scenarios and project need Seek flexible setting, the present invention is herein with no restrictions.In the present embodiment, it is believed that be greater than when the gray scales of next stage or When equal to the gray scales upper limit, abnormal conditions are had occurred in gray scale issuing process.At this point, by the gray scale for the next stage being calculated Ratio replaces with preset gray scales correction value, can reduce adverse effect caused by abnormal conditions.The embodiment of the present invention Different gray scale publishing policies can be used for different situations by automating gray scale dissemination method, improve the efficiency of gray scale publication, Reduce risk.
Fig. 2 is the main flow schematic diagram of gray scale dissemination method according to another embodiment of the present invention.As shown in Fig. 2, should Method includes:
Step S201: obtain the current generation grey parameter and preset gray scale plan;
Step S202: according to the grey parameter of the current generation and the gray scale plan, the gray scale of next stage is determined Ratio;
Step S203: according to the gray scales of next stage, gray scale publication is carried out;
Step S204: according to the grey parameter of current generation determine the current generation grey states whether normally and whether Meet termination condition;
Step S2051: abnormal in current state and when being unsatisfactory for termination condition, output abnormality notice;
In current state exception, and when meeting termination condition, output abnormality end notification;
It is normal in current state, and when meeting termination condition, output normal termination notice;
Step S2052: judge whether the gray scales of next stage meet predetermined condition;If so, return step S203; If it is not, then first carrying out step S206 returns again to step S203;
Step S206, is adjusted according to pre-defined rule.
Step S201- step S203 in the present embodiment is identical as step S101- step S103 in Fig. 1, and the present invention is herein It repeats no more.For step S204, determine that the whether normal step of the grey states of current generation may include: according to current rank The user volume of section upgrading and the user volume of current generation upgrading collapse calculate the collapse rate of current generation, collapse if the collapse rate is less than The rate of bursting precognition, then the grey states of current generation are normal;If the collapse rate is greater than or equal to collapse rate threshold value, current generation Grey states be abnormal.
Determine that the step of whether grey states of current generation meet termination condition may include:
Judge the gray scale time of current generation whether reach gray scale runing time or the current generation upgrading user volume whether Reach gray scale target user amount or whether the collapse rate of current generation is more than collapse rate extreme value, if meeting above-mentioned thrin, The grey states of current generation meet termination condition.
In embodiments of the present invention, step S2051 and step S2052 can be carried out simultaneously, can also first carry out step S2051 executes step S2052 again, can also first carry out step S2052 and execute step S2051 again, and the present invention is herein with no restrictions.
For step S2052, judge the gray scales of next stage it is whether identical as the gray scales of current generation and Judge whether the gray scales of the next stage are greater than or equal to the gray scales upper limit.
It is adjustable when the gray scales of next stage are identical as the gray scales of current generation for step S206 Upgrade user segment, such as the upgrading user segment of preset next stage is A to C, upgrading user segment adjusted is D to F, this hair Bright embodiment upgrades the mode of user segment with no restrictions to adjustment.It is next according to what is be calculated after adjustment upgrading user segment The gray scales in stage are issued in the upgrading user segment updates upgrade notification.The automation gray scale publisher of the embodiment of the present invention The efficiency of gray scale publication can be improved in method, reduces risk.
When the gray scales of the next stage are greater than or equal to the gray scales upper limit, corrected according to preset gray scales Value publication in the upgrading user segment of preset next stage updates upgrade notification.Wherein, which can root According to application scenarios and project demands flexible setting, the present invention is herein with no restrictions.
The automation gray scale dissemination method of the embodiment of the present invention using the grey parameter for obtaining the current generation and is preset Gray scale plan;According to the grey parameter of the current generation and the gray scale plan, the gray scales of next stage are determined;Root The technological means that gray scale publication is carried out according to the gray scales of the next stage can automate adjustment gray scale publication, overcome existing Have that skilled manpower resource input is big, adjustment not in time and the technical problem of accuracy difference, and then reaches time saving and energy saving, reduction people Power resource input improves accuracy and reduces the technical effect of risk.
Fig. 3 is the main flow schematic diagram of the gray scale dissemination method of another embodiment according to the present invention.As shown in figure 3, should Method includes:
Step S301: obtain the current generation grey parameter and preset gray scale plan;
Step S302: according to the grey parameter of the current generation and the gray scale plan, the gray scale of next stage is determined Ratio;
Step S303: judge whether the gray scales of next stage meet predetermined condition;If so, thening follow the steps S3042; If it is not, then first carry out step S3041 executes step S3042 again;
Step S3041: it is adjusted according to pre-defined rule;
Step S3042: according to the gray scales of next stage, gray scale publication is carried out;
Step S305: according to the grey parameter of current generation determine the current generation grey states whether normally and whether Meet termination condition;
Step S306: abnormal in current state and when being unsatisfactory for termination condition, output abnormality notice returns to step S3042;
It is abnormal in current state and when meeting termination condition, output abnormality end notification;
It is normal in current state and when meeting termination condition, output normal termination notice;
It is normal in current state and when being unsatisfactory for termination condition, return to step S3042.
Method provided in the present embodiment and method shown in Fig. 2 have identical beneficial effect, not in the present embodiment In detailed description technical detail, reference can be made to method shown in Fig. 2.
Fig. 4 is the schematic diagram of the main modular of gray scale distributing device according to an embodiment of the present invention.As shown in figure 4, the ash Spending distributing device 400 includes:
Obtain module 401, obtain the current generation grey parameter and preset gray scale plan;
Gray scales determining module 402, for according to the current generation grey parameter and the gray scale plan, determine The gray scales of next stage;
Gray scale release module 403 carries out gray scale publication for the gray scales according to the next stage.
Optionally, the gray scale plan includes: gray scale runing time and gray scale target user amount;The ash of the current generation Degree parameter include: the gray scales of current generation, the current generation upgrading user volume, the current generation upgrading user increment and Current generation user activity;
The gray scales determining module 402 calculates the gray scales of next stage according to the following formula:
Wherein, P indicates the gray scales of next stage, UVtIndicate gray scale target user amount, UVcIndicate current generation upgrading User volume, UVΔpIndicate that the ratio between the increment and the gray scales of current generation of current generation upgrading user, R indicate Current generation user activity, ClIndicate remaining gray-scale level segment number, the ClAccording to the gray scale runing time and current rank The time of section determines.
Optionally, the gray scale plan further includes termination condition;
Described device further includes notice output module, is used for: according to the grey parameter of the current generation, determining current rank Whether the grey states of section are normal and judge whether the grey parameter of the current generation meets termination condition;
If the grey states of current generation are normal and meet termination condition, end of output notice;
If the grey states of current generation are abnormal and meet termination condition, output abnormality end notification;
If the grey states of current generation are abnormal and are unsatisfactory for termination condition, output abnormality notice.
Optionally, the grey parameter of the current generation further include: the user volume of current generation upgrading collapse;The notice Output module is also used to: according to the user volume of the user volume of current generation upgrading and current generation upgrading collapse, calculating is worked as The collapse rate of last stage;
If the collapse rate is greater than or equal to collapse rate threshold value, the grey states of current generation are abnormal;
If the collapse rate is less than collapse rate threshold value, the grey states of current generation are normal.
Optionally, the gray scales determining module 402 is also used to:
Judge whether the gray scales of the next stage are identical as the gray scales of current generation;
If they are the same, then upgrading user segment is adjusted, according to the upgrading user segment of the next stage gray scales after the adjustment Interior automation adjustment gray scale publication;And/or
Judge whether the gray scales of the next stage are greater than or equal to the gray scales upper limit;
If so, automating adjustment gray scale publication according to preset gray scales correction value.
The gray scale distributing device of the embodiment of the present invention, using the grey parameter and preset gray scale for obtaining the current generation Plan;According to the grey parameter of the current generation and the gray scale plan, the gray scales of next stage are determined;According under this The gray scales in one stage carry out the technological means of gray scale publication, can automate adjustment gray scale publication, overcome the prior art Human resources investment is big, adjustment not in time and the technical problem of accuracy difference, and then reaches time saving and energy saving, reduction human resources Investment improves accuracy and reduces the technical effect of risk.
Method provided by the embodiment of the present invention can be performed in above-mentioned apparatus, has the corresponding functional module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present invention.
Fig. 5 is shown can be using the automation gray scale dissemination method or automation gray scale distributing device of the embodiment of the present invention Exemplary system architecture 500.
As shown in figure 5, system architecture 500 may include terminal device 501,502,503, network 504 and server 505. Network 504 between terminal device 501,502,503 and server 505 to provide the medium of communication link.Network 504 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 501,502,503 and be interacted by network 504 with server 505, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 501,502,503 The application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 501,502,503 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 505 can be to provide the server of various services, such as utilize terminal device 501,502,503 to user The shopping class website browsed provides the back-stage management server supported.Back-stage management server can believe the product received The data such as breath inquiry request carry out the processing such as analyzing, and processing result (such as target push information, product information) is fed back to Terminal device.
It should be noted that automation gray scale dissemination method provided by the embodiment of the present invention is generally held by server 505 Row, correspondingly, automation gray scale distributing device are generally positioned in server 505.
It should be understood that the number of terminal device, network and server in Fig. 5 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 6 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 609, and/or from can Medium 611 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 601, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet It includes sending module, obtain module, determining module and first processing module.Wherein, the title of these modules is under certain conditions simultaneously The restriction to the unit itself is not constituted, for example, sending module is also described as " sending picture to the server-side connected The module of acquisition request ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes:
The grey parameter of acquisition current generation and preset gray scale plan;
According to the grey parameter of the current generation and the gray scale plan, the gray scales of next stage are determined;
According to the gray scales of the next stage, gray scale publication is carried out.
Technical solution according to an embodiment of the present invention, using the grey parameter and preset gray scale for obtaining the current generation Plan;According to the grey parameter of the current generation and the gray scale plan, the gray scales of next stage are determined;According under this The gray scales in one stage carry out the technological means of gray scale publication, can automate adjustment gray scale publication, overcome the prior art Human resources investment is big, adjustment not in time and the technical problem of accuracy difference, and then reaches time saving and energy saving, reduction human resources Investment improves accuracy and reduces the technical effect of risk.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (12)

1. a kind of automation gray scale dissemination method characterized by comprising
The grey parameter of acquisition current generation and preset gray scale plan;
According to the grey parameter of the current generation and the gray scale plan, the gray scales of next stage are determined;
According to the gray scales of the next stage, gray scale publication is carried out.
2. the method according to claim 1, wherein
The gray scale plan includes: gray scale runing time and gray scale target user amount;
The grey parameter of the current generation includes: the gray scales of current generation, the user volume of current generation upgrading, current rank The increment and current generation user activity of section upgrading user;
According to the grey parameter of the gray scale plan and the current generation, determine that the gray scales of next stage include: basis Following formula calculates the gray scales of next stage:
Wherein, P indicates the gray scales of next stage, UVtIndicate gray scale target user amount, UVcIndicate the use of current generation upgrading Family amount, UVΔpIndicate that the ratio between the increment and the gray scales of current generation of current generation upgrading user, R indicate current Phase user liveness, ClIndicate remaining gray-scale level segment number, the ClAccording to the gray scale runing time and current generation Time determines.
3. according to the method described in claim 2, it is characterized in that, the gray scale plan further includes termination condition;
After carrying out gray scale publication according to the gray scales of the next stage, the method also includes:
Whether according to the grey parameter of the current generation, determining whether the grey states of current generation are normal and meeting terminates Condition;
If the grey states of current generation are abnormal and are unsatisfactory for termination condition, output abnormality notice;
If the grey states of current generation are abnormal and meet termination condition, output abnormality end notification;
If the grey states of current generation are normal and meet termination condition, normal termination notice is exported.
4. according to the method described in claim 3, it is characterized in that, the grey parameter of the current generation further include: current rank The user volume of section upgrading collapse;
According to the grey parameter of the current generation, judge the current generation grey states whether normally include:
According to the user volume of the user volume of current generation upgrading and current generation upgrading collapse, the collapse of current generation is calculated Rate;
If the collapse rate is greater than or equal to collapse rate threshold value, the grey states of current generation are abnormal;
If the collapse rate is less than collapse rate threshold value, the grey states of current generation are normal.
5. according to the method described in claim 3, it is characterized in that, in the gray scales for determining next stage or determining current ash It spends abnormal state and is unsatisfactory for termination condition or determines that current gray state is normal and is unsatisfactory for after termination condition, the side Method further include:
Judge whether the gray scales of the next stage are identical as the gray scales of current generation;
If they are the same, then gray scale user segment is adjusted, for carrying out gray scale publication in next stage gray scale user segment after the adjustment; And/or
Judge whether the gray scales of the next stage are greater than or equal to the gray scales upper limit;
If so, carrying out gray scale publication according to preset gray scales correction value.
6. a kind of automation gray scale distributing device characterized by comprising
Obtain module, obtain the current generation grey parameter and preset gray scale plan;
Gray scales determining module, for according to the current generation grey parameter and the gray scale plan, determine lower single order The gray scales of section;
Gray scale release module carries out gray scale publication for the gray scales according to the next stage.
7. device according to claim 6, which is characterized in that
The gray scale plan includes: gray scale runing time and gray scale target user amount;
The grey parameter of the current generation includes: the gray scales of current generation, the user volume of current generation upgrading, current rank The increment and current generation user activity of section upgrading user;
The gray scales determining module calculates the gray scales of next stage according to the following formula:
Wherein, P indicates the gray scales of next stage, UVtIndicate gray scale target user amount, UVcIndicate the use of current generation upgrading Family amount, UVΔpIndicate that the ratio between the increment and the gray scales of current generation of current generation upgrading user, R indicate current Phase user liveness, ClIndicate remaining gray-scale level segment number, the C1According to the gray scale runing time and current generation Time determines.
8. device according to claim 7, which is characterized in that the gray scale plan further includes termination condition;
Described device further includes notice output module, is used for:
Whether according to the grey parameter of the current generation, determining whether the grey states of current generation are normal and meeting terminates Condition;
If the grey states of current generation are abnormal and are unsatisfactory for termination condition, output abnormality notice;
If the grey states of current generation are abnormal and meet termination condition, output abnormality end notification;
If the grey states of current generation are normal and meet termination condition, normal termination notice is exported.
9. device according to claim 8, which is characterized in that the grey parameter of the current generation further include: current rank The user volume of section upgrading collapse;
The notice output module is also used to:
According to the user volume of the user volume of current generation upgrading and current generation upgrading collapse, the collapse of current generation is calculated Rate;
If the collapse rate is greater than or equal to collapse rate threshold value, the grey states of current generation are abnormal;
If the collapse rate is less than collapse rate threshold value, the grey states of current generation are normal.
10. device according to claim 8, which is characterized in that described device further includes gray scales update module, is used In:
Judge whether the gray scales of the next stage are identical as the gray scales of current generation;
If they are the same, then upgrading user segment is adjusted, for carrying out gray scale publication in next stage gray scale user segment after the adjustment; And/or
Judge whether the gray scales of the next stage are greater than or equal to the gray scales upper limit;
If so, carrying out gray scale publication according to preset gray scales correction value.
11. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
CN201810043539.3A 2018-01-17 2018-01-17 Automate gray scale dissemination method and device Pending CN110046083A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810043539.3A CN110046083A (en) 2018-01-17 2018-01-17 Automate gray scale dissemination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810043539.3A CN110046083A (en) 2018-01-17 2018-01-17 Automate gray scale dissemination method and device

Publications (1)

Publication Number Publication Date
CN110046083A true CN110046083A (en) 2019-07-23

Family

ID=67273067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810043539.3A Pending CN110046083A (en) 2018-01-17 2018-01-17 Automate gray scale dissemination method and device

Country Status (1)

Country Link
CN (1) CN110046083A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543317A (en) * 2019-08-29 2019-12-06 上海艾融软件股份有限公司 transaction request processing method, device, gateway and storage medium
CN110633207A (en) * 2019-08-14 2019-12-31 平安普惠企业管理有限公司 Operation request processing method and system based on gray level test and computer equipment
CN112035126A (en) * 2020-09-22 2020-12-04 北京百度网讯科技有限公司 Processing method and device for gray release, electronic equipment and storage medium
WO2021051541A1 (en) * 2019-09-18 2021-03-25 平安科技(深圳)有限公司 Method and apparatus for achieving simultaneous gray release based on microservice framework, and computer device
CN114553855A (en) * 2020-11-25 2022-05-27 北京奇艺世纪科技有限公司 Plug-in gray level release method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335204A (en) * 2014-07-29 2016-02-17 株式会社日立制作所 Grey level distribution control method and grey level distribution control device of software program
CN105653440A (en) * 2014-11-13 2016-06-08 阿里巴巴集团控股有限公司 Gray release method and device
CN106487824A (en) * 2015-08-25 2017-03-08 阿里巴巴集团控股有限公司 A kind of rule gray scale dissemination method and device
WO2017071425A1 (en) * 2015-10-29 2017-05-04 腾讯科技(深圳)有限公司 Method and device for updating version
CN107479862A (en) * 2016-06-07 2017-12-15 阿里巴巴集团控股有限公司 The gray scale dissemination method and system of a kind of software upgrading

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335204A (en) * 2014-07-29 2016-02-17 株式会社日立制作所 Grey level distribution control method and grey level distribution control device of software program
CN105653440A (en) * 2014-11-13 2016-06-08 阿里巴巴集团控股有限公司 Gray release method and device
CN106487824A (en) * 2015-08-25 2017-03-08 阿里巴巴集团控股有限公司 A kind of rule gray scale dissemination method and device
WO2017071425A1 (en) * 2015-10-29 2017-05-04 腾讯科技(深圳)有限公司 Method and device for updating version
CN107479862A (en) * 2016-06-07 2017-12-15 阿里巴巴集团控股有限公司 The gray scale dissemination method and system of a kind of software upgrading

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李晓毅;: "电子银行系统灰度发布的研究与实现", 金融电子化, no. 01, 15 January 2018 (2018-01-15) *
符颖;: "LBS检索容灾架构研究", 无线互联科技, no. 14, 25 July 2016 (2016-07-25) *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633207A (en) * 2019-08-14 2019-12-31 平安普惠企业管理有限公司 Operation request processing method and system based on gray level test and computer equipment
CN110543317A (en) * 2019-08-29 2019-12-06 上海艾融软件股份有限公司 transaction request processing method, device, gateway and storage medium
WO2021051541A1 (en) * 2019-09-18 2021-03-25 平安科技(深圳)有限公司 Method and apparatus for achieving simultaneous gray release based on microservice framework, and computer device
CN112035126A (en) * 2020-09-22 2020-12-04 北京百度网讯科技有限公司 Processing method and device for gray release, electronic equipment and storage medium
CN112035126B (en) * 2020-09-22 2023-10-20 北京百度网讯科技有限公司 Processing method and device for gray level distribution, electronic equipment and storage medium
CN114553855A (en) * 2020-11-25 2022-05-27 北京奇艺世纪科技有限公司 Plug-in gray level release method and device, electronic equipment and storage medium
CN114553855B (en) * 2020-11-25 2024-04-05 北京奇艺世纪科技有限公司 Plug-in gray level issuing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110046083A (en) Automate gray scale dissemination method and device
US11847576B2 (en) Methods and system for managing predictive models
CN112165691B (en) Content delivery network scheduling method, device, server and medium
CN107231264A (en) For the method and apparatus for the capacity for managing Cloud Server
CN107666525A (en) The method and apparatus of cluster container IP distribution
CN110019503A (en) The dilatation of Redis cluster and/or the method and device of capacity reducing
CN107547629A (en) Method, apparatus, electronic equipment and the computer-readable recording medium that client static resource is downloaded
CN108933822B (en) Method and apparatus for handling information
CN110019339A (en) A kind of data query method and system
CN109413125A (en) The method and apparatus of dynamic regulation distributed system resource
CN110502256A (en) A kind of method for upgrading software, terminal and storage medium
CN112667260A (en) OTA remote upgrading system and method based on intelligent brain
CN109388655A (en) A kind of method and apparatus of dynamic control of data access
CN112506584A (en) Resource file loading method, device, equipment, storage medium and product
CN109428926A (en) A kind of method and apparatus of scheduler task node
CN107608688A (en) Terminal device timesharing upgrade method and computer-readable recording medium
CN109639490B (en) Downtime notification method and device
CN114924851A (en) Training task scheduling method and device, electronic equipment and storage medium
CN113765811B (en) Flow control method, device, equipment and storage medium
CN110119279A (en) A kind of method and apparatus applied and its upgrade
CN109725913A (en) The method and apparatus that data update
CN113596920B (en) Flow control method, device, electronic equipment and storage medium
CN109144991A (en) Dynamic divides method, apparatus, electronic equipment and the computer of table can storage medium
CN105825316A (en) Integral management method
CN114612212A (en) Business processing method, device and system based on risk control

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