CN108768875B - Application gray level publishing method and device and computer readable storage medium - Google Patents

Application gray level publishing method and device and computer readable storage medium Download PDF

Info

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

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols 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 arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an applied gray level publishing method, which comprises the following steps: when an access request sent by a client is received, determining user information corresponding to the access request; acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule; if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the user request to a gray scale service cluster corresponding to the gray scale function module for processing; updating the recorded access amount of the gray function module according to the access request; when the online time of the gray scale service module reaches the preset time, acquiring the statistical access amount; and determining the gray scale corresponding to the access amount, and adjusting the first shunting rule according to the gray scale. The invention also provides an applied gray scale release device and a computer readable storage medium. The invention realizes the smooth upgrade from the old version software to the new version software.

Description

Application gray level release method and device and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for issuing grayscale for an application, and a computer-readable storage medium.
Background
With the development of the internet industry, the internet-related industry has also been rapidly developed, and the most obvious performance in terminal devices is the update and upgrade of the operating system and application programs.
Internet products have a large number of user-oriented functions, and the functions cannot obtain real feedback information of users without online verification, so that a basis for judging whether a new function is really superior to an old function is lacked. At present, when an application software developer develops updated application software, a tester performs internal testing and then updates the application software, but the internal testing cannot completely discover the defects of a new function and cannot obtain feedback of a user to the new function, once the software has a problem, rollback is required, the rollback is large in workload and low in efficiency, normal operation of business can be affected, and stable upgrading from old version software to new version software is difficult to achieve.
Disclosure of Invention
The invention provides a method and a device for releasing gray scale of an application and a computer readable storage medium, and mainly aims to realize smooth upgrade from old version software to new version software.
In order to achieve the above object, the present invention further provides a gray scale publishing method for an application, including:
when an access request sent by a client is received, determining user information corresponding to the access request;
acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule;
if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the user request to a gray scale service cluster corresponding to the gray scale function module for processing;
updating the recorded access amount of the gray function module according to the access request;
when the online time of the gray scale service module reaches a preset time, acquiring a counted access amount;
and determining the gray scale corresponding to the acquired access amount according to a mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale.
Optionally, before the step of determining, when receiving an access request sent by a client, user information corresponding to the access request, the method further includes the steps of:
generating a test invitation link according to the gray function module, and issuing the test invitation link to a client;
when response information sent by a client based on the test invitation link is received, configuration information and user information of a user terminal are obtained from the response information, the obtained user information is added to a gray white list, and whether the user terminal meets a test condition or not is judged according to the configuration information;
and if so, sending the software updating package corresponding to the gray function module to the user terminal corresponding to the response information meeting the test condition.
Optionally, the user information is a user name, the first splitting rule is a gray white list, and the step of determining whether the user information matches the first splitting rule includes:
and judging whether the user name is in a gray white list, wherein if the user name is in the gray white list, the user information is judged to be matched with the first shunting rule, and if the user name is not in the gray white list, the user information is judged to be not matched with the first shunting rule.
Optionally, after the step of determining whether the user information matches the first forking rule, the method further includes the steps of:
and if the user information is not matched with the first shunting rule, guiding the user request to a formal service cluster corresponding to the client for processing.
Optionally, after the step of determining the gray scale corresponding to the obtained access amount according to the preset mapping relationship between the access amount and the gray scale, and adjusting the first shunting rule according to the gray scale, the method further includes the steps of:
when a shunting rule updating instruction is received, acquiring a second shunting rule according to the shunting rule updating instruction, and comparing and analyzing the second shunting rule and a first shunting rule in a cache to determine incremental information in the second shunting rule;
and updating the first shunt rule in the cache into the second shunt rule according to the increment information.
In addition, in order to achieve the above object, the present invention further provides a applied gray scale issuing device, which includes a memory and a processor, wherein the memory stores a gray scale issuing program operable on the processor, and the gray scale issuing program implements the following steps when executed by the processor:
when an access request sent by a client is received, determining user information corresponding to the access request;
acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule;
if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the user request to a gray scale service cluster corresponding to the gray scale function module for processing;
updating the recorded access amount of the gray function module according to the access request;
when the online time of the gray scale service module reaches a preset time, acquiring a statistical access amount;
and determining the gray scale corresponding to the acquired access amount according to a mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale.
Optionally, the grayscale issuing program may be further executed by the processor to, before the step of determining, when an access request sent by a client is received, user information corresponding to the access request, further implement the following steps:
generating a test invitation link according to the gray function module, and issuing the test invitation link to a client;
when response information sent by a client based on the test invitation link is received, acquiring configuration information and user information of a user terminal from the response information, adding the acquired user information to a gray white list, and judging whether the user terminal meets a test condition according to the configuration information;
and if so, sending the software updating package corresponding to the gray function module to the user terminal corresponding to the response information meeting the test condition.
Optionally, the grayscale issuing program may be further executable by the processor to, after the step of determining whether the user information matches the first branching rule, further implement the steps of:
and if the user information is not matched with the first shunting rule, guiding the user request to a formal service cluster corresponding to the client for processing.
Optionally, the gray scale publishing program may be further executed by the processor to, after the step of determining a gray scale corresponding to the obtained access amount according to a mapping relationship between a preset access amount and a gray scale, and adjusting the first shunting rule according to the gray scale, further implement the following steps:
when a shunting rule updating instruction is received, acquiring a second shunting rule according to the shunting rule updating instruction, and comparing and analyzing the second shunting rule and a first shunting rule in a cache to determine incremental information in the second shunting rule;
and updating the first shunt rule in the cache into the second shunt rule according to the increment information.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a gradation issuance program executable by one or more processors to implement the steps of the gradation issuance method of the application as described above.
According to the application gray scale release method, the application gray scale release device and the computer readable storage medium, when an access request sent by a client of a target application is received, user information corresponding to the access request is determined; acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule; if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the user request to a gray scale service cluster corresponding to the gray scale function module for processing; updating the recorded access amount of the gray level service according to the access request; when the online time of the gray scale service module reaches the preset time, acquiring the statistical access amount; and determining the gray scale corresponding to the acquired access amount according to the mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale. The technical scheme of the invention is provided with a gray scale service cluster which is specially used for supporting the gray scale function module, the user request which accords with the shunting rule is shunted to the gray scale service cluster for processing, meanwhile, the access amount of the gray scale function module is counted according to the access request, after the gray scale function module is on line for a period of time, the gray scale proportion is adjusted according to the counted access amount, then the first shunting rule is adjusted according to the gray scale proportion, and the smooth transition of the software from the old version to the new version is realized according to the mode.
Drawings
Fig. 1 is a schematic flowchart of a gray scale publishing method for an application according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an internal structure of a gray scale issuing apparatus applied according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a gray level publishing program in a gray level publishing device according to an embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides an applied gray level issuing method. Fig. 1 is a schematic flow chart of a gray scale publishing method for an application according to an embodiment of the present invention. The method may be performed by an apparatus, which may be implemented by software and/or hardware.
In this embodiment, the applied gray scale distribution method includes:
step S10, when receiving an access request sent by a client, determining user information corresponding to the access request.
When the application has a new function to be online, a developer develops a grayscale version of the upgraded application, wherein the application software of the grayscale version contains a grayscale function module, and the grayscale function module can be a function module obtained by upgrading a certain function module in the application of an old version or a new function module developed for the application. And, the application deployment for the gray scale version has a test environment, namely a gray scale service cluster, at the server, and the application deployment for the formal version has a formal environment, namely a formal service cluster.
For example, the server counts the user levels of all users of the client, screens the users with high user levels as target users, sends the grayscale version application with the grayscale function module to the terminals of the target users, and locally updates software by the users or performs hot update when the application is started. Alternatively, in other embodiments, the target users meeting the test conditions are selected by pushing the test invitation link to the client, and the users are added to the gray white list. Specifically, a test invitation link is generated according to the gray function module, and the test invitation link is issued to the client; when response information sent by a client based on the test invitation link is received, configuration information and user information of a user terminal are obtained from the response information, the obtained user information is added to a gray white list, and whether the user terminal meets a test condition or not is judged according to the configuration information; and if so, sending the software updating package corresponding to the gray function module to the user terminal corresponding to the response information meeting the test condition.
Step S20, obtaining the current first shunt rule from the cache, and judging whether the user information is matched with the first shunt rule.
Step S30, if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the user request to a gray scale service cluster corresponding to the gray scale function module for processing.
And pre-configuring a first shunting rule, wherein the first shunting rule is used for guiding the user request to a correct service cluster. It may be noted that a grayscale version of an application may include a plurality of grayscale function modules, a corresponding grayscale service cluster is set at the server for each grayscale function module, and if the user information matches the first forking rule, the grayscale function module corresponding to the access request is determined, and the user request is diverted to the grayscale service cluster corresponding to the determined grayscale function module for processing. And the target user corresponding to each gray scale function module can be different.
In addition, in this embodiment, the setting method of the grayscale cluster is as follows: and (3) setting a gray scale ratio by a tester, and splitting the original service cluster into a formal service cluster and a gray scale service cluster according to the set gray scale ratio. For example, 20 servers are in the original service cluster, and if the gray scale ratio set by the user is 20%, 4 servers in the original service cluster are screened out as the servers of the gray scale cluster. And the other servers serve as a formal service cluster to provide services for the target application of the formal version. Wherein, the gray scale ratio is the ratio of the number of users of the application using the gray scale version to the total number of users of the target application.
Optionally, in an embodiment, the user information is a user name, the first splitting rule is a gray white list, and the step of determining whether the user information matches the first splitting rule includes: and judging whether the user name is in the gray white list, wherein if the user name is in the gray white list, the user information is judged to be matched with the first shunting rule, and if the user name is not in the gray white list, the user information is judged to be not matched with the first shunting rule.
Or, in another embodiment, the first splitting rule is an IP address white list, and the user information is a client IP address included in the access request. And judging whether the client IP address contained in the access request is in an IP address white list, if so, judging that the user information is matched with the first shunting rule, and otherwise, judging that the user information is not matched with the first shunting rule.
Alternatively, one gray function module may correspond to one or more first shunting rules, and when there are a plurality of first shunting rules, the user request may be shunted by synthesizing the plurality of rules. For example, when there are a plurality of first branching rules, the branching rules are matched one by one, and when the user information simultaneously conforms to the plurality of first branching rules, it is determined that the user information matches the first branching rules.
And step S40, updating the recorded access amount of the gray function module according to the access request.
And S50, acquiring the counted access amount when the online time of the gray scale service module reaches the preset time.
Step S60, determining the gray scale corresponding to the acquired access amount according to the mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale.
Specifically, the tester may preset a mapping relationship between the access amount and the gray scale, and the access amount and the gray scale may be in a direct proportion. In the period of time when the gray scale function module is on-line, if the access amount to the gray scale function module is more, the feedback condition of the user to the gray scale function module is good, and the application of using the gray scale version can be opened for more users. At this time, a new gray scale ratio is determined according to a mapping relation between a preset access amount and the gray scale ratio, and then the first shunting rule is adjusted according to the gray scale ratio so as to shunt more user requests to the gray scale service cluster. For example, if the first branching rule is a gray white list, the users in the gray white list are added. By the method, if the user feedback is always in a better state, the gray scale proportion is continuously adjusted upwards, all users at the client or users with the gray scale proportion larger than the preset threshold value are guided to the gray scale service cluster until all users at the client or the users with the gray scale proportion larger than the preset threshold value are upgraded to the application of the gray scale version, and finally the application of the gray scale version is used as the formal application of the new version, so that the stable upgrade of the application of the old version to the new version is realized, and the phenomenon that the user needs to be upgraded and then rolls back is avoided. When a new user downloads the software, the formal application of the new version can be directly installed.
If the access amount of the user to the gray scale function module is less in the period of time when the gray scale function module is on line, the current gray scale proportion can be maintained or the gray scale proportion can be reduced, the access amount is output to a tester, the tester adjusts the gray scale function module, the problem occurring in software is solved, or the gray scale function module is released again after some adjustment which can improve user experience is made.
In addition, after the step of judging whether the user information is matched with the first shunting rule, if the user information is not matched with the first shunting rule, the user request is guided to a formal service cluster corresponding to the client to be processed.
Optionally, as an embodiment, the present invention further supports hot updating the first forking rule in the cache, without interrupting normal operation of the forking. Specifically, when a shunting rule updating instruction is received, a second shunting rule is obtained according to the shunting rule updating instruction, and the second shunting rule is compared with a first shunting rule in a cache for analysis so as to determine incremental information in the second shunting rule; and updating the first shunt rule in the cache into the second shunt rule according to the increment information.
According to the gray scale issuing method of the application, when an access request sent by a client of a target application is received, user information corresponding to the access request is determined; acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule; if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the user request to a gray scale service cluster corresponding to the gray scale function module for processing; updating the recorded access amount of the gray level service according to the access request; when the online time of the gray scale service module reaches the preset time, acquiring the counted access amount; and determining the gray scale corresponding to the acquired access amount according to the mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale. The technical scheme of the invention is provided with a gray scale service cluster which is specially used for supporting the gray scale function module, the user request which accords with the shunting rule is shunted to the gray scale service cluster for processing, meanwhile, the access amount of the gray scale function module is counted according to the access request, after the gray scale function module is on line for a period of time, the gray scale proportion is adjusted according to the counted access amount, then the first shunting rule is adjusted according to the gray scale proportion, and the smooth transition of the software from the old version to the new version is realized according to the mode.
The invention also provides an applied gray scale release device. Fig. 2 is a schematic diagram illustrating an internal structure of a gray scale releasing apparatus applied according to an embodiment of the present invention.
In the present embodiment, the applied gradation issuing apparatus 1 may be a PC (Personal Computer), or may be a terminal device such as a smartphone, a tablet Computer, or a mobile Computer. The greyscale distribution device 1 of this application comprises at least a memory 11, a processor 12, a communication bus 13, and a network interface 14.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the applied grey scale distribution apparatus 1, for example a hard disk of the applied grey scale distribution apparatus 1. The memory 11 may also be an external storage device of the applied gray scale issuing apparatus 1 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the applied gray scale issuing apparatus 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the applied gradation issuing apparatus 1. The memory 11 can be used not only to store application software installed in the applied gradation issuing apparatus 1 and various types of data, such as a code of the gradation issuing program 01, but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as executing the gray releasing program 01.
The communication bus 13 is used to realize connection communication between these components.
The network interface 14 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), typically used to establish a communication link between the apparatus 1 and other electronic devices.
Optionally, the apparatus 1 may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the applied gray-scale distribution apparatus 1 and for displaying a visualized user interface.
Fig. 2 shows only the applied gray scale issuing apparatus 1 with the components 11 to 14 and the gray scale issuing program 01, and it will be understood by those skilled in the art that the structure shown in fig. 1 does not constitute a limitation of the applied gray scale issuing apparatus 1, and may include fewer or more components than those shown, or combine some components, or a different arrangement of components.
Optionally, the device 1 may also comprise a touch sensor. The area provided by the touch sensor for the user to perform touch operation is called a touch area. Further, the touch sensor described herein may be a resistive touch sensor, a capacitive touch sensor, or the like. The touch sensor may include not only a contact type touch sensor but also a proximity type touch sensor. In addition, the touch sensor may be a single sensor or may be a plurality of sensors arranged in an array. The area of the display of the device 1 may be the same as or different from the area of the touch sensor. Optionally, a display is stacked with the touch sensor to form a touch display screen. The device 1 detects touch operation triggered by a user based on a touch display screen.
Optionally, the apparatus 1 may further comprise a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, a WiFi module, etc. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein if the device 1 is a mobile terminal, the ambient light sensor may adjust the brightness of the display screen according to the brightness of ambient light, and the proximity sensor may turn off the display screen and/or the backlight when the mobile terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
In the embodiment of the apparatus 1 shown in fig. 2, a gray scale distribution program 01 is stored in the memory 11; the processor 12 implements the following steps when executing the gradation issuance program 01 stored in the memory 11:
when an access request sent by a client is received, determining user information corresponding to the access request;
acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule;
if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the user request to a gray scale service cluster corresponding to the gray scale function module for processing;
updating the recorded access amount of the gray function module according to the access request;
when the online time of the gray scale service module reaches a preset time, acquiring a statistical access amount;
and determining the gray scale corresponding to the obtained access amount according to the mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale.
When the application has a new function to be online, a developer develops a grayscale version of the upgraded application, wherein the application software of the grayscale version contains a grayscale function module, and the grayscale function module can be a function module obtained by upgrading a certain function module in the application of an old version or a new function module developed for the application. And, the application deployment for the gray scale version has a test environment, namely a gray scale service cluster, at the server, and the application deployment for the formal version has a formal environment, namely a formal service cluster.
For example, the server counts the user levels of all users of the client, screens the users with high user levels as target users, sends the grayscale version application with the grayscale function module to the terminals of the target users, and locally updates software by the users or performs hot update when the application is started. Alternatively, in other embodiments, the target users meeting the test conditions are selected by pushing the test invitation link to the client, and the users are added to the gray white list. Specifically, a test invitation link is generated according to the gray function module, and the test invitation link is issued to the client; when response information sent by a client based on the test invitation link is received, acquiring configuration information and user information of a user terminal from the response information, adding the acquired user information to a gray white list, and judging whether the user terminal meets a test condition according to the configuration information; and if so, sending the software updating package corresponding to the gray function module to the user terminal corresponding to the response information meeting the test condition.
And pre-configuring a first shunting rule, wherein the first shunting rule is used for guiding the user request to a correct service cluster. It may be noted that a grayscale version of an application may include a plurality of grayscale function modules, a corresponding grayscale service cluster is set at the server for each grayscale function module, and if the user information matches the first forking rule, the grayscale function module corresponding to the access request is determined, and the user request is diverted to the grayscale service cluster corresponding to the determined grayscale function module for processing. And the target user corresponding to each gray function module may be different.
In addition, in this embodiment, the setting method of the grayscale cluster is as follows: and (3) setting a gray scale ratio by a tester, and splitting the original service cluster into a formal service cluster and a gray scale service cluster according to the set gray scale ratio. For example, 20 servers are in the original service cluster, and if the gray scale ratio set by the user is 20%, 4 servers in the original service cluster are screened out as the servers of the gray scale cluster. And the other servers serve as a formal service cluster to provide services for the target application of the formal version. Wherein, the gray scale ratio is the ratio of the number of users of the application using the gray scale version to the total number of users of the target application.
Optionally, in an embodiment, the user information is a user name, the first splitting rule is a gray white list, and the step of determining whether the user information matches the first splitting rule includes: and judging whether the user name is in the gray white list, wherein if the user name is in the gray white list, the user information is judged to be matched with the first shunting rule, and if the user name is not in the gray white list, the user information is judged to be not matched with the first shunting rule.
Or, in another embodiment, the first splitting rule is an IP address white list, and the user information is a client IP address included in the access request. And judging whether the client IP address contained in the access request is in an IP address white list, if so, judging that the user information is matched with the first shunting rule, and otherwise, judging that the user information is not matched with the first shunting rule.
Alternatively, one gray function module may correspond to one or more first shunting rules, and when there are a plurality of first shunting rules, the user request may be shunted by synthesizing the plurality of rules. For example, when there are a plurality of first branching rules, the branching rules are matched one by one, and when the user information simultaneously conforms to the plurality of first branching rules, it is determined that the user information matches the first branching rules.
Specifically, the tester may preset a mapping relationship between the access amount and the gray scale, and the access amount and the gray scale may be in a direct proportion. In the period of time when the gray scale function module is on-line, if the access amount to the gray scale function module is more, the feedback condition of the user to the gray scale function module is good, and the application of using the gray scale version can be opened for more users. At this time, a new gray scale ratio is determined according to a mapping relation between a preset access amount and the gray scale ratio, and then the first shunting rule is adjusted according to the gray scale ratio so as to shunt more user requests to the gray scale service cluster. For example, if the first branching rule is a gray white list, the users in the gray white list are added. By the method, if the user feedback is always in a better state, the gray scale proportion is continuously adjusted upwards, all users at the client or users with the gray scale proportion larger than the preset threshold value are guided to the gray scale service cluster until all users at the client or the users with the gray scale proportion larger than the preset threshold value are upgraded to the application of the gray scale version, and finally the application of the gray scale version is used as the formal application of the new version, so that the stable upgrade of the application of the old version to the new version is realized, and the phenomenon that the user needs to be upgraded and then rolls back is avoided. When a new user downloads the software, the formal application of the new version can be directly installed.
If the access amount of the user to the gray scale function module is less in the period of time when the gray scale function module is on line, the current gray scale ratio can be maintained or the gray scale ratio can be reduced, the access amount is output to a tester, the tester adjusts the gray scale function module, and problems occurring in software are solved or the gray scale function module is released again after some adjustment which can improve user experience is made.
In addition, after the step of judging whether the user information is matched with the first shunting rule, if the user information is not matched with the first shunting rule, the user request is guided to a formal service cluster corresponding to the client to be processed.
Optionally, as an embodiment, the present invention further supports hot update of the first forking rule in the cache, without interrupting normal operation of the forking. Specifically, when a shunting rule updating instruction is received, a second shunting rule is obtained according to the shunting rule updating instruction, and the second shunting rule is compared with a first shunting rule in a cache for analysis so as to determine incremental information in the second shunting rule; and updating the first shunt rule in the cache into the second shunt rule according to the increment information.
In the grayscale issuing device of the application according to this embodiment, when an access request sent by a client of a target application is received, user information corresponding to the access request is determined; acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule; if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the user request to a gray scale service cluster corresponding to the gray scale function module for processing; updating the recorded access amount of the gray level service according to the access request; when the online time of the gray scale service module reaches the preset time, acquiring the statistical access amount; and determining the gray scale corresponding to the acquired access amount according to the mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale. The technical scheme of the invention is provided with a gray scale service cluster which is specially used for supporting the gray scale function module, the user request which accords with the shunting rule is shunted to the gray scale service cluster for processing, meanwhile, the access quantity of the gray scale function module is counted according to the access request, after the gray scale function module is on line for a period of time, the gray scale proportion is adjusted according to the counted access quantity, then the first shunting rule is adjusted according to the gray scale proportion, and the smooth transition from the old version to the new version of the software is realized according to the mode.
Alternatively, in other embodiments, the gray level issuing program may be divided into one or more modules, and the one or more modules are stored in the memory 11 and executed by one or more processors (in this embodiment, the processor 12) to implement the present invention, where the module referred to in the present invention refers to a series of computer program instruction segments capable of performing a specific function for describing the execution process of the gray level issuing program in the applied gray level issuing apparatus.
For example, referring to fig. 3, a schematic diagram of program modules of a gray scale distribution program in an embodiment of a gray scale distribution apparatus to which the present invention is applied, in this embodiment, the gray scale distribution program may be divided into an information obtaining module 10, a rule matching module 20, a request diversion module 30, an access statistics module 40, and a rule updating module 50, which exemplarily:
the information acquisition module 10 is configured to: when an access request sent by a client is received, determining user information corresponding to the access request;
the rule matching module 20 is configured to: acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule;
the request diversion module 30 is configured to: if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the user request to a gray scale service cluster corresponding to the gray scale function module for processing;
the access statistics module 40 is configured to: updating the recorded access amount of the gray function module according to the access request;
when the online time of the gray scale service module reaches a preset time, acquiring the statistical access amount;
the rule update module 50 is configured to: and determining the gray scale corresponding to the obtained access amount according to the mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale.
The functions or operation steps implemented when the program modules such as the information obtaining module 10, the rule matching module 20, the request diversion module 30, the access statistics module 40, and the rule updating module 50 are executed are substantially the same as those of the above embodiments, and are not described herein again.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, on which a grayscale release program is stored, where the grayscale release program is executable by one or more processors to implement the following operations:
when an access request sent by a client is received, determining user information corresponding to the access request;
acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule;
if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the user request to a gray scale service cluster corresponding to the gray scale function module for processing;
updating the recorded access amount of the gray function module according to the access request;
when the online time of the gray scale service module reaches a preset time, acquiring a statistical access amount;
and determining the gray scale corresponding to the obtained access amount according to the mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale. The embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the gray scale distribution apparatus and method applied above, and will not be described in detail herein.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of another identical element in a process, apparatus, article, or method comprising the element.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for gray scale distribution of an application, the method comprising:
when an access request sent by a client is received, determining user information corresponding to the access request;
splitting an original service cluster into a formal service cluster and a gray service cluster according to a preset gray scale proportion;
acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule;
if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the access request to the gray scale service cluster corresponding to the gray scale function module for processing;
updating the recorded access amount of the gray function module according to the access request;
when the online time of the gray function module reaches a preset time, acquiring a statistical access amount;
and determining the gray scale corresponding to the acquired access amount according to a mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale.
2. The gray scale publishing method of claim 1, wherein before the step of determining the user information corresponding to the access request when receiving the access request sent by the client, the method further comprises the steps of:
generating a test invitation link according to the gray function module, and issuing the test invitation link to a client;
when response information sent by a client based on the test invitation link is received, acquiring configuration information and user information of a user terminal from the response information, adding the acquired user information to a gray white list, and judging whether the user terminal meets a test condition according to the configuration information;
and if so, sending the software updating package corresponding to the gray function module to the user terminal corresponding to the response information meeting the test condition.
3. The gray scale publishing method of claim 1, wherein the user information is a user name, the first splitting rule is a gray white list, and the step of determining whether the user information matches the first splitting rule comprises:
and judging whether the user name is in a gray white list, wherein if the user name is in the gray white list, the user information is judged to be matched with the first shunting rule, and if the user name is not in the gray white list, the user information is judged to be not matched with the first shunting rule.
4. A gray scale publishing method of an application according to any of claims 1 to 3, wherein after the step of determining whether the user information matches the first forking rule, the method further comprises the steps of:
and if the user information is not matched with the first shunting rule, guiding the user request to a formal service cluster corresponding to the client for processing.
5. The gray scale issuing method according to any one of claims 1 to 3, wherein after the step of determining the gray scale corresponding to the obtained access amount according to a preset mapping relationship between the access amount and the gray scale, and adjusting the first shunting rule according to the gray scale, the method further comprises the steps of:
when a shunting rule updating instruction is received, acquiring a second shunting rule according to the shunting rule updating instruction, and comparing and analyzing the second shunting rule and a first shunting rule in a cache to determine incremental information in the second shunting rule;
and updating the first shunt rule in the cache into the second shunt rule according to the increment information.
6. An applied gray scale issuing apparatus, characterized in that the apparatus comprises a memory and a processor, the memory stores a gray scale issuing program operable on the processor, and the gray scale issuing program realizes the following steps when executed by the processor:
when an access request sent by a client is received, determining user information corresponding to the access request;
splitting an original service cluster into a formal service cluster and a gray service cluster according to a preset gray scale proportion;
acquiring a current first shunt rule from a cache, and judging whether the user information is matched with the first shunt rule;
if the user information is matched with the first shunting rule, determining a gray scale function module corresponding to the access request, and guiding the access request to the gray scale service cluster corresponding to the gray scale function module for processing;
updating the recorded access amount of the gray function module according to the access request;
when the online time of the gray function module reaches a preset time, acquiring a statistical access amount;
and determining the gray scale corresponding to the obtained access amount according to the mapping relation between the preset access amount and the gray scale, and adjusting the first shunting rule according to the gray scale.
7. The gray scale publishing device of claim 6, wherein the gray scale publishing program is further executable by the processor to, prior to the step of determining the user information corresponding to the access request when the access request sent by the client is received, further implement the steps of:
generating a test invitation link according to the gray function module, and issuing the test invitation link to a client;
when response information sent by a client based on the test invitation link is received, configuration information and user information of a user terminal are obtained from the response information, the obtained user information is added to a gray white list, and whether the user terminal meets a test condition or not is judged according to the configuration information;
and if so, sending the software updating package corresponding to the gray function module to the user terminal corresponding to the response information meeting the test condition.
8. A grey scale publishing device according to claim 6 or 7, wherein the grey scale publishing program is further executable by the processor to, after the step of determining whether the user information matches the first forking rule, further perform the steps of:
and if the user information is not matched with the first shunting rule, guiding the user request to a formal service cluster corresponding to the client for processing.
9. The applied gray scale issuing apparatus according to claim 6 or 7, wherein the gray scale issuing program is further executable by the processor to, after the step of determining a gray scale corresponding to the obtained access amount according to a preset mapping relationship between the access amount and the gray scale, and adjusting the first shunting rule according to the gray scale, further implement the steps of:
when a shunting rule updating instruction is received, acquiring a second shunting rule according to the shunting rule updating instruction, and comparing and analyzing the second shunting rule and a first shunting rule in a cache to determine incremental information in the second shunting rule;
and updating the first shunt rule in the cache into the second shunt rule according to the increment information.
10. A computer-readable storage medium having stored thereon a grey scale publishing program executable by one or more processors to implement the steps of a grey scale publishing method for an application as claimed in any one of claims 1 to 5.
CN201810546888.7A 2018-05-31 2018-05-31 Application gray level publishing method and device and computer readable storage medium Active CN108768875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810546888.7A CN108768875B (en) 2018-05-31 2018-05-31 Application gray level publishing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810546888.7A CN108768875B (en) 2018-05-31 2018-05-31 Application gray level publishing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108768875A CN108768875A (en) 2018-11-06
CN108768875B true CN108768875B (en) 2023-04-07

Family

ID=64001114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810546888.7A Active CN108768875B (en) 2018-05-31 2018-05-31 Application gray level publishing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108768875B (en)

Families Citing this family (36)

* 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
CN111314402B (en) * 2018-12-12 2022-10-28 深圳兆日科技股份有限公司 Web application publishing method and device, computer equipment and storage medium
CN111352678B (en) * 2018-12-20 2024-05-07 阿里巴巴集团控股有限公司 Information processing method and device
CN109815405B (en) * 2019-01-31 2020-04-17 北京三快在线科技有限公司 Gray level shunting 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
CN110071960A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 Manage method, system, equipment and the storage medium of gray scale publication
CN110083485B (en) * 2019-03-15 2021-08-06 咪咕文化科技有限公司 Shunting method, data service system, front end thereof and storage medium
CN110045964B (en) * 2019-04-09 2022-10-28 厦门网宿有限公司 Software gray level release method, proxy server, configuration center and system
CN110096305B (en) * 2019-04-25 2021-07-30 杭州数梦工场科技有限公司 Gray scale distribution method, device, equipment and storage medium
CN111953721B (en) * 2019-05-16 2024-04-09 北京京东尚科信息技术有限公司 Access flow control method and device
CN110399147A (en) * 2019-06-04 2019-11-01 菜鸟智能物流控股有限公司 Version release system and method and electronic equipment
CN110120917B (en) * 2019-06-28 2024-02-02 北京瑛菲网络科技有限公司 Routing method and device based on content
CN110457223B (en) * 2019-08-13 2023-08-22 中国联合网络通信集团有限公司 Gray test drainage method, device, proxy server and readable storage medium
CN110489133A (en) * 2019-08-23 2019-11-22 亿企赢网络科技有限公司 A kind of gray scale dissemination method, system and electronic equipment and storage medium
CN110597535A (en) * 2019-08-27 2019-12-20 贝壳技术有限公司 Gray scale publishing method and device and storage medium
CN110543317A (en) * 2019-08-29 2019-12-06 上海艾融软件股份有限公司 transaction request processing method, device, gateway and storage medium
CN110609701A (en) * 2019-08-29 2019-12-24 凡普数字技术有限公司 Method, apparatus and storage medium for providing service
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
CN111813415A (en) * 2020-04-15 2020-10-23 北京三快在线科技有限公司 Gray level shunting method and device, electronic equipment and computer readable storage medium
CN111815401B (en) * 2020-06-16 2024-02-13 上海万物新生环保科技集团有限公司 Order flow control method and equipment
CN112114869A (en) * 2020-09-18 2020-12-22 聚好看科技股份有限公司 Server, gray level publishing method, device and medium
CN112162762B (en) * 2020-10-16 2024-04-02 中国工商银行股份有限公司 Gray level distribution method, gray level distribution device and electronic equipment
CN112363751A (en) * 2020-11-10 2021-02-12 平安普惠企业管理有限公司 Software product gray level release method, device, equipment and medium
CN112532602A (en) * 2020-11-20 2021-03-19 中国联合网络通信集团有限公司 Gray scale publishing method, equipment and server
CN112698852B (en) * 2020-11-30 2022-09-20 厦门亿联网络技术股份有限公司 APP gray scale upgrading method and device, terminal equipment and computer readable storage medium
CN112445510A (en) * 2020-11-30 2021-03-05 中国人寿保险股份有限公司 Gray scale publishing method and related equipment for hot update file of client application function
CN112650523B (en) * 2020-12-02 2023-06-16 青岛海尔科技有限公司 Data distribution method, device and equipment for gray level release
CN112714011B (en) * 2020-12-15 2023-06-02 贝壳技术有限公司 Distribution information configuration method, device, electronic equipment and storage medium
CN113467800B (en) * 2021-05-24 2023-10-20 康键信息技术(深圳)有限公司 Gray release method, device and equipment of application program and storage medium
CN113312257B (en) * 2021-05-24 2023-09-22 深圳市中科明望通信软件有限公司 Version identification method and device, storage medium and computer equipment
CN113422732A (en) * 2021-06-22 2021-09-21 康键信息技术(深圳)有限公司 Version updating method, device, equipment and storage medium based on total station gray scale
CN113676549A (en) * 2021-09-02 2021-11-19 京东科技信息技术有限公司 Application request distribution method, application gateway, electronic device and storage medium
CN113918234A (en) * 2021-09-16 2022-01-11 广州心娱网络科技有限公司 Gray strategy implementation method and system
CN114928479B (en) * 2022-05-12 2024-02-02 中国工商银行股份有限公司 Gray scale issuing method, system, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993946A (en) * 2015-06-01 2015-10-21 华为技术有限公司 Evaluation method, device and system for gated launch
CN106066791A (en) * 2016-05-25 2016-11-02 合网络技术(北京)有限公司 The gray scale dissemination method of application and device
CN106100927A (en) * 2016-06-20 2016-11-09 浪潮电子信息产业股份有限公司 A kind of method realizing the issue of SSR gray scale
CN106998369A (en) * 2017-05-26 2017-08-01 努比亚技术有限公司 Gray scale dissemination method, gateway blocker and computer-readable recording medium
CN107861871A (en) * 2017-11-02 2018-03-30 百度在线网络技术(北京)有限公司 A kind of gray scale dissemination method, device, server and storage medium
CN107864175A (en) * 2017-08-24 2018-03-30 平安普惠企业管理有限公司 Gray scale distribution control method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9225621B2 (en) * 2013-06-25 2015-12-29 Netflix, Inc. Progressive deployment and termination of canary instances for software analysis

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993946A (en) * 2015-06-01 2015-10-21 华为技术有限公司 Evaluation method, device and system for gated launch
CN106066791A (en) * 2016-05-25 2016-11-02 合网络技术(北京)有限公司 The gray scale dissemination method of application and device
CN106100927A (en) * 2016-06-20 2016-11-09 浪潮电子信息产业股份有限公司 A kind of method realizing the issue of SSR gray scale
CN106998369A (en) * 2017-05-26 2017-08-01 努比亚技术有限公司 Gray scale dissemination method, gateway blocker and computer-readable recording medium
CN107864175A (en) * 2017-08-24 2018-03-30 平安普惠企业管理有限公司 Gray scale distribution control method, device, equipment and storage medium
CN107861871A (en) * 2017-11-02 2018-03-30 百度在线网络技术(北京)有限公司 A kind of gray scale dissemination method, device, server and storage medium

Also Published As

Publication number Publication date
CN108768875A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108768875B (en) Application gray level publishing method and device and computer readable storage medium
US20140380295A1 (en) Method and system for updating application, and computer storage medium thereof
US8495617B2 (en) Interworking system between user terminal and smart card for executing widget, and method thereof
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN107896249B (en) Cross-network area data access method, device, equipment and storage medium
CN110320378B (en) Method, apparatus, device and computer readable storage medium for applying for a quality control test
CN115145801B (en) A/B test flow distribution method, device, equipment and storage medium
CN111090866A (en) Application authority management method, mobile terminal and computer readable storage medium
CN111367518A (en) Page layout method and device, computing equipment and computer storage medium
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN108717357B (en) Page display code conversion method, device, equipment and computer storage medium
CN109710510B (en) Code submitting method, device, equipment and readable storage medium
CN105373370B (en) Control display method and device
CN108415767B (en) Server thread control method, device, equipment and readable storage medium
CN108388616B (en) Data collection device, method, system and computer readable storage medium
CN103365672A (en) Method and system for processing description information of application program
CN111385661B (en) Method, device, terminal and storage medium for voice control of full screen playing
CN108268274B (en) Application management method and device, storage medium and electronic equipment
CN109032651B (en) Application updating method, intelligent terminal and computer readable storage medium
CN113672311A (en) Structure assignment method, assigner and computer-readable storage medium
CN113377423A (en) Method and device for providing service and electronic equipment
CN115004667A (en) Information pushing method and device, electronic equipment and computer readable medium
AU2013206622B2 (en) Download management method and device based on Android browser
CN112882768A (en) Progress bar loading method, device and equipment and computer readable storage medium
CN111381849A (en) Software updating method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant