CN108632374B - Software gray level release method and device - Google Patents

Software gray level release method and device Download PDF

Info

Publication number
CN108632374B
CN108632374B CN201810439354.4A CN201810439354A CN108632374B CN 108632374 B CN108632374 B CN 108632374B CN 201810439354 A CN201810439354 A CN 201810439354A CN 108632374 B CN108632374 B CN 108632374B
Authority
CN
China
Prior art keywords
client
gray scale
software
network address
address information
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
CN201810439354.4A
Other languages
Chinese (zh)
Other versions
CN108632374A (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.)
Jinbi Smart Life Technology Shenzhen Co ltd
Original Assignee
Evergrande Intelligent 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 Evergrande Intelligent Technology Co Ltd filed Critical Evergrande Intelligent Technology Co Ltd
Priority to CN201810439354.4A priority Critical patent/CN108632374B/en
Publication of CN108632374A publication Critical patent/CN108632374A/en
Application granted granted Critical
Publication of CN108632374B publication Critical patent/CN108632374B/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
    • 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 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention provides a software gray scale release method and device. The method comprises the following steps: receiving a software access request from a client, and analyzing the software access request to obtain identity identification information, software version information and network address information of the client; searching a gray release strategy matched with the software access request according to the identity identification information, the software version information and the network address information; if the matched gray scale release strategy is found successfully, distributing target network address information for the client from the network address information of the matched gray scale release server according to the gray scale release strategy; and correspondingly sending the target network address information to the client so that the client fixedly accesses the software content operated on the server corresponding to the target network address information. The method can quickly and flexibly fixedly distribute the proper gray scale publishing server for the client, so that the client is fixedly connected to the corresponding gray scale publishing server for software access.

Description

Software gray level release method and device
Technical Field
The invention relates to the technical field of software gray level release, in particular to a software gray level release method and device.
Background
With the rapid development of the internet of things, the update and release of the service software of the internet of things are also in a rapid iteration state, so that in order to ensure that the released new version software can be accepted by a user, the released new version software can be adjusted and modified in time according to feedback opinions of the user, the software is usually tested and adjusted in a gray release software mode, wherein the gray release can enable part of clients to be routed to a gray release server running with the new version software, and other clients still interact with the conventional server running with the original version software in a data mode, so that missing and missing of the new version software are checked and repaired through the use experience of the new version software routed to each client of the gray release server, and the quality of the new version software is improved.
At present, the industry generally adopts a method of embedding gray scale release logic in a new version software code at a gray scale release server, or a method of performing gray scale logic judgment on each software access request of a client in an access layer of data interaction to realize gray scale release of software. However, in the two implementation manners of gray release, the former needs to modify a new version software code when modifying gray release logic every time, the whole workload is large, which is not favorable for the stability of a software system and the quick online function, and the latter needs to have a great operation function for each access device in the access layer, the operation and maintenance difficulty and the operation and maintenance workload are large, and the gray release implementation cost is high.
Disclosure of Invention
In order to overcome the above-mentioned deficiencies in the prior art, the present invention aims to provide a software gray scale publishing method and apparatus, where the software gray scale publishing method has low implementation cost, low implementation difficulty and small implementation workload, can fixedly allocate a suitable gray scale publishing server to a client, and can quickly and flexibly access the client to the corresponding gray scale publishing server.
As for a method, an embodiment of the present invention provides a software grayscale release method, where the method is applied to a release management server communicatively connected to a client, and the release management server stores therein a plurality of grayscale release policies corresponding to the software, and network address information of a grayscale release server corresponding to each grayscale release policy, and the method includes:
receiving a software access request sent by a client, and analyzing the software access request to obtain identity identification information of the client, software version information when the client accesses software and network address information of the client, wherein the identity identification information of the client, the software version information when the client accesses the software, and the network address information of the client are included in the software access request;
searching a gray release strategy correspondingly matched with the software access request according to the identity identification information, the software version information and the network address information;
if the matched gray scale release strategy is successfully found, distributing target network address information for the client from the network address information of the gray scale release server corresponding to the gray scale release strategy according to the found gray scale release strategy;
and correspondingly sending the distributed target network address information to the client so that the client fixedly accesses software content running on a server corresponding to the target network address information based on the acquired target network address information.
As for an apparatus, an embodiment of the present invention provides a software distribution apparatus applied to a distribution management server communicatively connected to a client, the distribution management server storing therein a plurality of distribution policies for grays corresponding to the software and network address information of a grayscale distribution server corresponding to each of the distribution policies, the apparatus including:
the software access request analysis module is used for receiving a software access request sent by a client and analyzing the software access request to obtain the identity information of the client, the software version information when the client accesses software and the network address information of the client, wherein the identity information of the client, the software version information when the client accesses the software, and the network address information of the client are included in the software access request;
the strategy searching module is used for searching a gray release strategy correspondingly matched with the software access request according to the identity identification information, the software version information and the network address information;
the address allocation module is used for allocating target network address information to the client from the network address information of the gray scale issuing server corresponding to the gray scale issuing strategy according to the searched gray scale issuing strategy if the matched gray scale issuing strategy is successfully searched;
and the address sending module is used for correspondingly sending the allocated target network address information to the client so that the client accesses software content running on a server corresponding to the target network address information based on the acquired target network address information.
Compared with the prior art, the software gray scale publishing method and the software gray scale publishing device provided by the embodiment of the invention have the following beneficial effects: the software gray scale publishing method is low in implementation cost, low in implementation difficulty and small in implementation workload, and can be used for quickly and flexibly fixedly distributing a proper gray scale publishing server to a client side, so that the client side is fixedly connected to the corresponding gray scale publishing server to perform software access. The release management server applied by the method is in communication connection with the client, and a plurality of gray release strategies corresponding to the software and network address information of the gray release servers corresponding to the gray release strategies are stored in the release management server. Firstly, after receiving a software access request sent by a client, the method analyzes the software access request to obtain the identity information of the client, the software version information when the client accesses the software and the network address information of the client, wherein the identity information of the client, the software version information and the network address information are included in the software access request. Then, the method searches a gray scale release strategy which is correspondingly matched with the software access request in the gray scale release server according to the identity identification information, the software version information and the network address information. Then, after the gray scale release strategy matched with the software access request is successfully found, a target network address information is distributed to the client side from the network address information of the gray scale release server corresponding to the gray scale release strategy according to the found gray scale release strategy. Finally, the method correspondingly sends the distributed target network address information to the client, so that the client fixedly accesses the software content running on the server corresponding to the target network address information based on the obtained target network address information, and a gray scale release server is fixedly distributed to the client meeting a gray scale release strategy, so that the client can be directly and fixedly accessed to the corresponding gray scale release server for software access according to the target network address information of the correspondingly distributed gray scale release server without inquiring gray scale control logic again in the online software access process, the realization cost of the whole software gray scale release process is low, the realization difficulty is low, and the realization workload is small.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments are briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the claims of the present invention, and it is obvious for those skilled in the art that other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of interaction among a distribution management server, a client, a gray distribution server, and a conventional server according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of a software gray scale publishing method according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating sub-steps included in step S220 shown in fig. 2.
Fig. 4 is a schematic flowchart of a second process of the software gray scale publishing method according to the embodiment of the present invention.
Fig. 5 is a schematic flow chart of a third method for software gray scale publishing according to an embodiment of the present invention.
Fig. 6 is a first block schematic diagram of the software gray scale publishing device shown in fig. 1 according to an embodiment of the present invention.
FIG. 7 is a block diagram of the policy lookup module shown in FIG. 6.
Fig. 8 is a second block schematic diagram of the software gray scale publishing device shown in fig. 1 according to an embodiment of the present invention.
Icon: 10-a release management server; 20-a client; 30-a grey scale publishing server; 40-a regular server; 100-software gray scale issuing device; 110-request parsing module; 120-policy lookup module; 130-address assignment module; 140-address sending module; 121-position acquisition submodule; 122-match verification sub-module; 123-strategy judgment submodule; 150-policy configuration module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 1 is a schematic diagram of interaction among a distribution management server 10, a client 20, a gray scale distribution server 30, and a regular server 40 according to an embodiment of the present invention. In the embodiment of the present invention, the release management server 10 is communicatively connected to the client 20, and is configured to allocate a software server to the client 20 when the client 20 wants to perform software access, so that the client 20 accesses software content on the software server by means of a fixed access to the allocated software server. The software server comprises a gray release server 30 and a conventional server 40, wherein the gray release server 30 is a server which runs new version software content and is used for software gray release, and the conventional server 40 is a server which runs original version software.
In this embodiment, the client 20 is a terminal Device that logs in a user account corresponding to a software user, each user account corresponds to one software user, and the terminal Device may be, but is not limited to, a smart phone, a Personal Computer (PC), a tablet Computer, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like.
In this embodiment, the release management server 10 is configured to manage an event that whether the client 20 performs software gray scale release, and fixedly allocate one gray scale release server 30 to the client 20 meeting the software gray scale release condition, so that the client 20 can be fixedly accessed to the gray scale release server 30 for software access directly according to the target network address information of the allocated gray scale release server 30 without acquiring new network address information of the gray scale release server 30 from the release management server 10 again in the software online access process.
In the present embodiment, the number of the clients 20 communicatively connected to the distribution management server 10 is at least one, the number of the gradation distribution servers 30 in the software server is at least one, and the number of the regular servers 40 in the software server is at least one. The number of times each software server is allocated may be plural, that is, the number of clients 20 corresponding to each software server may be plural.
Fig. 2 is a schematic flow chart of a software gray scale publishing method according to an embodiment of the present invention. In the embodiment of the present invention, the software grayscale publishing method is applied to the publishing management server 10 shown in fig. 1 and communicatively connected to the client 20, the publishing management server 10 stores a plurality of grayscale publishing policies corresponding to the software, and network address information of the grayscale publishing servers 30 corresponding to the grayscale publishing policies, where the grayscale publishing policies are used as a policy for determining whether the client 20 needs to perform software grayscale publishing access debugging, and the number of the grayscale publishing servers 30 corresponding to each grayscale publishing policy may be multiple or only one. The specific flow and steps of the software gray scale publishing method shown in fig. 2 are explained in detail below.
Step S210, receiving a software access request sent from the client 20, and analyzing the software access request to obtain the identity information of the client 20, the software version information when the client 20 accesses the software, and the network address information of the client 20, which are included in the software access request.
In this embodiment, when a software user logs in a corresponding user account at a client 20 to perform software access through the client 20, the client 20 sends a software access request to the release management server 10, where the software access request includes identification information of the client 20, software version information when the client 20 accesses software, and current network address information of the client 20. The identification information is used to indicate an identity of the client 20 independent of other electronic devices, and the identification information may be a physical address (for example, a MAC address) of the client 20, or may be a UUID (universal Unique Identifier) of the client 20; the software version information is version information which is operated on the client 20 and correspondingly matched with a software front end; the network address information is a network address allocated when the client 20 performs network access at the location, and the network address information may be an IP address corresponding to the client 20.
After receiving the software access request from the client 20, the release management server 10 obtains the identity information of the client 20, the software version information when the client 20 accesses the software, and the network address information of the client 20, which are included in the software access request, by analyzing the software access request.
Step S220, searching a gray release strategy correspondingly matched with the software access request according to the identity identification information, the software version information and the network address information.
Fig. 3 is a flowchart illustrating the sub-steps included in step S220 shown in fig. 2. In this embodiment, each of the grayscale release policies stored in the release management server 10 includes an identity matching sub-policy for verifying identity information, a version matching sub-policy for verifying software version information, and a location matching sub-policy for verifying an area in which the client 20 is located. The step S220 may include a substep S221, a substep S222, and a substep S223.
And a substep S221 of analyzing the network address information of the client 20 to obtain the location information corresponding to the client 20.
In this embodiment, after acquiring the network address information of the client 20 sending the software access request from the software access request, the distribution management server 10 analyzes the network address information to obtain the location information of the location of the corresponding client 20.
In the substep S222, the identity matching sub-policy, the version matching sub-policy, and the location matching sub-policy corresponding to each gray scale release policy are respectively compared and matched with the province identification information, the software version information, and the location information of the client 20 one by one.
In this embodiment, the release management server 10 queries whether a gray scale release policy matching the software access request exists in all the gray scale release policies stored in the release management server 10 by comparing and matching the province identification information, the software version information, and the location information of the client 20 sending the software access request with the identity matching sub-policy, the version matching sub-policy, and the location matching sub-policy corresponding to each stored gray scale release policy, respectively.
In the substep S223, if the identity identification information, the software version information, and the location information of the client 20 respectively conform to the identity matching sub-policy, the version matching sub-policy, and the location matching sub-policy corresponding to the same gray scale publishing policy, it is determined that the gray scale publishing policy is the gray scale publishing policy corresponding to the software access request.
In this embodiment, if the identity information, the software version information, and the position information of the client 20 respectively conform to the identity matching sub-policy, the version matching sub-policy, and the position matching sub-policy corresponding to a certain gray scale distribution policy in the gray scale distribution policies stored in the distribution management server 10, that is, the identity information conforms to the identity matching sub-policy corresponding to the same gray scale distribution policy, the software version information conforms to the version matching sub-policy corresponding to the same gray scale distribution policy, and the position information conforms to the position sub-matching policy corresponding to the same gray scale distribution policy, the distribution management server 10 determines the gray scale distribution policy including three matching sub-policies respectively matched with the three information of the client 20 as the gray scale distribution policy corresponding to the software access request.
For example, an identity matching sub-policy of a certain grayscale release policy a requires that the UUID of the client 20 is at the beginning of 1234, a version matching sub-policy corresponding to the grayscale release policy a requires that the software version when the client 20 software accesses is 1.1 version, and a location matching sub-policy corresponding to the grayscale release policy a requires that the location of the client 20 is in the sichuan area. The identity matching sub-policy of another gray release policy B is to require that the UUID of the client 20 starts with 135, the version matching sub-policy corresponding to the gray release policy B is empty (i.e. there is no requirement for the software version when the client 20 software accesses), and the location matching sub-policy corresponding to the gray release policy B is to require that the location of the client 20 is in the guangdong area. If the identification information of the client 20 acquired by the release management server 10 from the software access request is a UUID with 1234 as the beginning, the software version information is 1.1 version, the location information is in the sikawa area, and the three information respectively conform to three matching sub-policies of the gray release policy a, the gray release policy a is correspondingly determined as the gray release policy matched with the software access request. If the identification information of the client 20 acquired by the release management server 10 from the software access request is a UUID with a beginning of 135, the software version information is 1.1 version or 0.6 version, and the location information is in the guangdong area, when the three information corresponding to the client 20 respectively conform to the three matching sub-policies of the gray scale release policy B, the gray scale release policy B is determined as the gray scale release policy matching the software access request.
Referring to fig. 2 again, in step S230, if the matched gray scale distribution policy is found successfully, a target network address information is allocated to the client 20 from the network address information of the gray scale distribution server 30 corresponding to the gray scale distribution policy according to the found gray scale distribution policy.
In this embodiment, the number of the tone distribution servers 30 corresponding to each tone distribution policy stored in the distribution management server 10 is at least one, and the number of times each tone distribution server 30 is assigned is recorded in the distribution management server 10.
If the release management server 10 successfully finds the gray scale release policy corresponding to the software access request and the number of the gray scale release servers 30 corresponding to the gray scale release policy that is successfully found is only one, the step of allocating a target network address information to the client 20 from the network address information of the gray scale release server 30 corresponding to the gray scale release policy according to the found gray scale release policy includes:
the gray scale distribution server 30 corresponding to the gray scale distribution strategy is directly allocated to the client 20, and the network address information of the gray scale distribution server 30 is used as the target network address information corresponding to the client 20.
If the release management server 10 successfully finds the gray scale release policy corresponding to the software access request and the number of the gray scale release servers 30 corresponding to the gray scale release policy that is successfully found is multiple, the step of allocating a target network address information to the client 20 from the network address information of the gray scale release server 30 corresponding to the gray scale release policy according to the found gray scale release policy includes:
selecting the gray scale releasing server 30 with the least distribution frequency to distribute to the client 20 according to the distributed frequency of each gray scale releasing server 30 corresponding to the gray scale releasing strategy, and using the network address information of the selected gray scale releasing server 30 as the target network address information corresponding to the client 20, so that the gray scale releasing servers 30 corresponding to the gray scale releasing strategy are mutually load balanced when being in communication connection with the client 20.
Step S240, correspondingly sending the allocated target network address information to the client 20, so that the client 20 fixedly accesses software content running on a server corresponding to the target network address information based on the acquired target network address information.
In this embodiment, after fixedly allocating network address information of a software server to the client 20 that sends the software access request as target network address information matched with the client 20, the distribution management server 10 sends the target network address information allocated to the client 20, so that the client 20 fixedly accesses software content running on the software server corresponding to the target network address information based on the acquired target network address information.
If the target network address information allocated by the release management server 10 to the client 20 is the network address information of the grayscale release server 30, the client 20 will fixedly access the new version software content running on the grayscale release server 30 corresponding to the target network address information according to the acquired target network address information.
If the target network address information allocated by the release management server 10 to the client 20 is the network address information of the regular server 40, the client 20 will fixedly access the original version software content running on the regular server 40 corresponding to the target network address information according to the acquired target network address information.
Fig. 4 is a schematic flow chart of a software gray scale publishing method according to an embodiment of the present invention. In the embodiment of the present invention, the distribution management server 10 further stores network address information of each regular server 40 corresponding to the software, and the number of times each regular server 40 is allocated. Before the step S240, the method further includes a step S250, where the step S250 and the step S230 are parallel to each other and have no execution precedence relationship.
In step S250, if the matched gray scale distribution policy is not found, the conventional server 40 with the least number of distribution times is distributed to the client 20 according to the number of distribution times of each conventional server 40, and the network address information of the conventional server 40 is used as the target network address information corresponding to the client 20.
In this embodiment, if there is no gray scale distribution policy matching the software access request in all the gray scale distribution policies stored in the distribution management server 10, that is, at least one matching sub-policy of the three identity matching sub-policies, the version matching sub-policy, and the location matching sub-policy corresponding to each gray scale distribution policy stored in the distribution management server 10 does not match the client 20, the distribution management server 10 determines that the gray scale distribution policy matching the software access request is not found, the distribution management server 10 distributes the regular server 40 with the least distribution frequency to the client 20 according to the stored distribution frequency of each regular server 40, and uses the network address information of the regular server 40 as the target network address information corresponding to the client 20, so that the client 20 accesses the software running on the corresponding and matching regular server 40 based on the target network address information The contents.
Fig. 5 is a schematic flow chart of a third method for software gray scale publishing according to an embodiment of the present invention. In this embodiment of the present invention, before the step S210, the software gray scale issuing method may further include a step S209.
Step S209 is to configure each gray scale distribution policy and establish a connection between the gray scale distribution policy and the gray scale distribution server 30.
In this embodiment, after deploying the software content of the new version software on the grayscale issuing server 30, the software producer configures the corresponding grayscale issuing policy for the grayscale issuing server 30 with the new version software on the issuing management server 10, thereby completing the configuration work of each grayscale issuing policy and establishing the connection between the grayscale issuing policy and the grayscale issuing server 30.
Fig. 6 is a first block diagram of the software gray scale publishing device 100 shown in fig. 1 according to an embodiment of the present invention. In the embodiment of the present invention, the release management server 10 includes a software gray scale distribution device 100, and the release management server 10 implements the software gray scale distribution by executing the software gray scale distribution method shown in fig. 2 to 5 by the software gray scale distribution device 100. The software gray scale publishing device 100 comprises a request parsing module 110, a policy searching module 120, an address assigning module 130 and an address sending module 140.
The request analysis module 110 is configured to receive a software access request sent from a client 20, and analyze the software access request to obtain identity information of the client 20, software version information when the client 20 accesses software, and network address information of the client 20, where the identity information is included in the software access request.
In this embodiment, the request parsing module 110 may execute step S210 in fig. 2, and the specific execution process may refer to the above detailed description of step S210.
The policy searching module 120 is configured to search a gray release policy corresponding to the software access request according to the identity information, the software version information, and the network address information.
Referring to fig. 7, a block diagram of the policy lookup module 120 shown in fig. 6 is shown. In this embodiment, the policy searching module 120 includes a location obtaining sub-module 121, a matching verification sub-module 122, and a policy determining sub-module 123.
The location obtaining sub-module 121 is configured to analyze and process the network address information of the client 20 to obtain location information corresponding to the client 20.
The matching verification sub-module 122 is configured to compare and match the identity matching sub-policy, the version matching sub-policy, and the location matching sub-policy corresponding to each gray scale release policy with the province identification information, the software version information, and the location information of the client 20 one by one.
The policy determining sub-module 123 is configured to determine that the grayscale release policy is a grayscale release policy corresponding to the software access request if the identity identification information, the software version information, and the location information of the client 20 respectively conform to the identity matching sub-policy, the version matching sub-policy, and the location matching sub-policy corresponding to the same grayscale release policy.
In this embodiment, the position obtaining sub-module 121, the matching verification sub-module 122 and the policy determining sub-module 123 may respectively perform the sub-steps S221, S222 and S223 in fig. 3, and the specific implementation process may refer to the detailed description of the sub-steps S221, S222 and S223 above.
Referring to fig. 6 again, the address allocating module 130 is configured to, if the matched gray scale distribution policy is found successfully, allocate a piece of target network address information to the client 20 from the network address information of the gray scale distribution server 30 corresponding to the gray scale distribution policy according to the found gray scale distribution policy.
The address allocating module 130 is further configured to, if the matched gray scale distribution policy is not found, allocate the conventional server 40 with the smallest allocation frequency to the client 20 according to the allocation frequency of each conventional server 40, and use the network address information of the conventional server 40 as the target network address information corresponding to the client 20.
In this embodiment, the address assignment module 130 may execute step S230 in fig. 2 and step S250 shown in fig. 4, and the specific execution process may refer to the above detailed description of step S230 and step S250.
The address sending module 140 is configured to correspondingly send the allocated target network address information to the client 20, so that the client 20 fixedly accesses software content running on a server corresponding to the target network address information based on the acquired target network address information.
In this embodiment, the address sending module 140 may execute step S240 in fig. 2, and the specific execution process may refer to the above detailed description of step S240.
Fig. 8 is a second block diagram of the software gray scale publishing device 100 shown in fig. 1 according to an embodiment of the present invention. In the embodiment of the present invention, the software gray scale issuing apparatus 100 may further include a policy configuration module 150.
The policy configuration module 150 is configured to configure each gray scale publishing policy and establish a relationship between the gray scale publishing policy and the gray scale publishing server 30.
In this embodiment, the policy configuration module 150 may execute step S209 in fig. 5, and the specific execution process may refer to the above detailed description of step S209.
In summary, in the software grayscale publishing method and apparatus provided in the embodiments of the present invention, the software grayscale publishing method is low in implementation cost, low in implementation difficulty and low in implementation workload, and can quickly and flexibly fixedly allocate an appropriate grayscale publishing server to a client, so that the client is fixedly connected to the corresponding grayscale publishing server for software access. The release management server applied by the method is in communication connection with the client, and a plurality of gray release strategies corresponding to the software and network address information of the gray release servers corresponding to the gray release strategies are stored in the release management server. Firstly, after receiving a software access request sent by a client, the method analyzes the software access request to obtain the identity information of the client, the software version information when the client accesses the software and the network address information of the client, wherein the identity information of the client, the software version information and the network address information are included in the software access request. Then, the method searches a gray scale release strategy which is correspondingly matched with the software access request in the gray scale release server according to the identity identification information, the software version information and the network address information. Then, after the gray scale release strategy matched with the software access request is successfully found, a target network address information is distributed to the client side from the network address information of the gray scale release server corresponding to the gray scale release strategy according to the found gray scale release strategy. Finally, the method correspondingly sends the distributed target network address information to the client, so that the client fixedly accesses the software content running on the server corresponding to the target network address information based on the obtained target network address information, and a gray scale release server is fixedly distributed to the client meeting a gray scale release strategy, so that the client can be directly and fixedly accessed to the corresponding gray scale release server for software access according to the target network address information of the correspondingly distributed gray scale release server without inquiring gray scale control logic again in the online software access process, the realization cost of the whole software gray scale release process is low, the realization difficulty is low, and the realization workload is small.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A software tone distribution method applied to a distribution management server communicatively connected to a client, the distribution management server storing therein a plurality of tone distribution policies corresponding to the software and network address information of tone distribution servers corresponding to the respective tone distribution policies, the method comprising:
receiving a software access request sent by a client, and analyzing the software access request to obtain identity identification information of the client, software version information when the client accesses software and network address information of the client, wherein the identity identification information of the client, the software version information when the client accesses the software, and the network address information of the client are included in the software access request;
searching a gray release strategy correspondingly matched with the software access request according to the identity identification information, the software version information and the network address information;
if the matched gray scale release strategy is successfully found, distributing target network address information for the client from the network address information of the gray scale release server corresponding to the gray scale release strategy according to the found gray scale release strategy;
and correspondingly sending the distributed target network address information to the client so that the client fixedly accesses software content running on a server corresponding to the target network address information based on the acquired target network address information.
2. The method according to claim 1, wherein each of the grayscale release policies includes an identity matching sub-policy for verifying identity information, a version matching sub-policy for verifying software version information, and a location matching sub-policy for verifying an area where a client is located, and the step of searching for the grayscale release policy corresponding to the software access request according to the identity information, the software version information, and the network address information includes:
analyzing and processing the network address information of the client to obtain the position information corresponding to the client;
comparing and matching the identity matching sub-strategy, the version matching sub-strategy and the position matching sub-strategy corresponding to each gray scale release strategy with the identity identification information, the software version information and the position information of the client side one by one respectively;
and if the identity identification information, the software version information and the position information of the client respectively accord with an identity matching sub-strategy, a version matching sub-strategy and a position matching sub-strategy corresponding to the same gray scale release strategy, judging that the gray scale release strategy is a gray scale release strategy correspondingly matched with the software access request.
3. The method according to claim 2, wherein if the number of the successfully found grayscale distribution servers corresponding to the grayscale distribution policy is only one, the step of allocating a target network address information to the client from the network address information of the grayscale distribution server corresponding to the grayscale distribution policy according to the found grayscale distribution policy comprises:
and directly distributing the gray scale release server corresponding to the gray scale release strategy to the client, and taking the network address information of the gray scale release server as the target network address information corresponding to the client.
4. The method according to claim 2, wherein the distribution management server records the number of times each gray scale distribution server is allocated, and if the number of gray scale distribution servers corresponding to the gray scale distribution policy that is successfully found is plural, the step of allocating a target network address information to the client from the network address information of the gray scale distribution server corresponding to the gray scale distribution policy according to the found gray scale distribution policy comprises:
and selecting the gray scale publishing server with the least distribution frequency to distribute to the client according to the distribution frequency of each gray scale publishing server corresponding to the gray scale publishing strategy, and taking the network address information of the selected gray scale publishing server as the target network address information corresponding to the client so as to balance the load of each gray scale publishing server corresponding to the gray scale publishing strategy.
5. The method according to any one of claims 1 to 4, wherein the distribution management server further stores therein network address information of each regular server corresponding to the software, and the number of times each regular server is allocated, and before the step of correspondingly sending the allocated target network address information to the client, the method further includes:
and if the matched gray scale release strategy is not found, distributing the conventional server with the minimum distribution frequency to the client according to the distribution frequency of each conventional server, and taking the network address information of the conventional server as the target network address information corresponding to the client.
6. The method of claim 5, further comprising:
and configuring each gray scale release strategy, and establishing a relation between the gray scale release strategy and the gray scale release server.
7. A software tone distribution apparatus applied to a distribution management server communicatively connected to a client, the distribution management server storing therein a plurality of tone distribution policies corresponding to the software and network address information of tone distribution servers corresponding to the respective tone distribution policies, the apparatus comprising:
the software access request analysis module is used for receiving a software access request sent by a client and analyzing the software access request to obtain the identity information of the client, the software version information when the client accesses software and the network address information of the client, wherein the identity information of the client, the software version information when the client accesses the software, and the network address information of the client are included in the software access request;
the strategy searching module is used for searching a gray release strategy correspondingly matched with the software access request according to the identity identification information, the software version information and the network address information;
the address allocation module is used for allocating target network address information to the client from the network address information of the gray scale issuing server corresponding to the gray scale issuing strategy according to the searched gray scale issuing strategy if the matched gray scale issuing strategy is successfully searched;
and the address sending module is used for correspondingly sending the allocated target network address information to the client so that the client accesses software content running on a server corresponding to the target network address information based on the acquired target network address information.
8. The apparatus of claim 7, wherein each of the grayscale release policies includes an identity matching sub-policy for verifying identity information, a version matching sub-policy for verifying software version information, and a location matching sub-policy for verifying an area where the client is located, and the policy lookup module includes:
the position acquisition submodule is used for analyzing and processing the network address information of the client to obtain the position information corresponding to the client;
the matching verification sub-module is used for comparing and matching the identity matching sub-strategy, the version matching sub-strategy and the position matching sub-strategy corresponding to each gray scale release strategy with the identity identification information, the software version information and the position information of the client side one by one;
and the strategy judgment sub-module is used for judging that the gray scale release strategy is the gray scale release strategy correspondingly matched with the software access request if the identity identification information, the software version information and the position information of the client respectively accord with the identity matching sub-strategy, the version matching sub-strategy and the position matching sub-strategy corresponding to the same gray scale release strategy.
9. The apparatus according to claim 7 or 8, wherein the release management server further stores therein network address information of each regular server corresponding to the software, and the number of times each regular server is assigned;
and the address allocation module is further configured to allocate the conventional server with the least allocation times to the client according to the allocation times of the conventional servers if the matched gray scale distribution strategy is not found, and use network address information of the conventional server as target network address information corresponding to the client.
10. The apparatus of claim 9, further comprising:
and the strategy configuration module is used for configuring each gray scale release strategy and establishing the relation between the gray scale release strategy and the gray scale release server.
CN201810439354.4A 2018-05-09 2018-05-09 Software gray level release method and device Active CN108632374B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810439354.4A CN108632374B (en) 2018-05-09 2018-05-09 Software gray level release method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810439354.4A CN108632374B (en) 2018-05-09 2018-05-09 Software gray level release method and device

Publications (2)

Publication Number Publication Date
CN108632374A CN108632374A (en) 2018-10-09
CN108632374B true CN108632374B (en) 2021-06-18

Family

ID=63692473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810439354.4A Active CN108632374B (en) 2018-05-09 2018-05-09 Software gray level release method and device

Country Status (1)

Country Link
CN (1) CN108632374B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683936B (en) * 2018-12-20 2023-03-14 恒生电子股份有限公司 Gray scale distribution method and device, storage medium and electronic equipment
CN111381845B (en) * 2018-12-28 2023-09-01 广州市百果园信息技术有限公司 Software gray scale upgrading method, device, storage medium, terminal and server
CN109992273B (en) * 2019-01-03 2022-12-20 蔚来(安徽)控股有限公司 Gray scale publishing method and gray scale publishing system
CN109787830B (en) * 2019-01-21 2023-03-07 北京京东尚科信息技术有限公司 Gray scale distribution control method, device, system, electronic device and storage medium
CN109871224A (en) * 2019-02-13 2019-06-11 北京炎黄新星网络科技有限公司 A kind of gray scale dissemination method, system, medium and equipment based on user identifier
CN110442361B (en) * 2019-06-27 2024-02-09 五八有限公司 Gray release method and device and electronic equipment
CN112181475A (en) * 2019-07-04 2021-01-05 深圳市观麦网络科技有限公司 Gray scale publishing method and device
CN110647336A (en) * 2019-08-13 2020-01-03 平安普惠企业管理有限公司 Gray scale distribution method and device, computer equipment and storage medium
CN110912734B (en) * 2019-10-31 2022-07-22 北京浪潮数据技术有限公司 Method and device for realizing multi-dimensional gray scale release of container application by cloud management platform
CN111090452B (en) * 2019-11-11 2023-04-28 福建天泉教育科技有限公司 Service environment switching method and computer readable storage medium
CN111723003A (en) * 2020-05-18 2020-09-29 五八有限公司 Gray scale testing method and device, electronic equipment and storage medium
CN111782260B (en) * 2020-06-29 2024-01-26 中国工商银行股份有限公司 Gray level distribution method and gray level distribution device
CN111897571A (en) * 2020-08-04 2020-11-06 上海非码网络科技有限公司 Gray scale publishing method and system based on Spring Cloud
CN112532602A (en) * 2020-11-20 2021-03-19 中国联合网络通信集团有限公司 Gray scale publishing method, equipment and server
CN112486550A (en) * 2020-11-25 2021-03-12 上海中通吉网络技术有限公司 Method, device and system for publishing gray scale of WEB terminal
CN113382051A (en) * 2021-06-01 2021-09-10 中国民航信息网络股份有限公司 Full-link gray scale publishing method and gray scale publishing system
CN113791805B (en) * 2021-09-17 2022-08-12 马上消费金融股份有限公司 Micro-service gray level publishing method and device
CN115357280A (en) * 2022-08-09 2022-11-18 湖南木屋网络科技有限公司 Software version management method, device, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297472A (en) * 2012-03-01 2013-09-11 上海盛霄云计算技术有限公司 Redirection method and content distribution node applied to content distribution network
CN105808274A (en) * 2014-12-30 2016-07-27 航天信息股份有限公司 Software upgrading method and system as well as corresponding clients and servers
CN105871961A (en) * 2015-01-23 2016-08-17 中国移动通信集团浙江有限公司 Gray release routing method and device
CN106685687A (en) * 2016-09-23 2017-05-17 北京五八信息技术有限公司 Gray release method and gray release device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777064A (en) * 2009-01-12 2010-07-14 鸿富锦精密工业(深圳)有限公司 Image searching system and method
CN103095743A (en) * 2011-10-28 2013-05-08 阿里巴巴集团控股有限公司 Handling method and system of grey release
CN103176790B (en) * 2011-12-26 2016-04-20 阿里巴巴集团控股有限公司 Application dissemination method and system
CN104378304B (en) * 2013-08-14 2019-04-02 腾讯科技(深圳)有限公司 The control method of gray scale publication, apparatus and system
CN104156246B (en) * 2014-08-12 2017-06-16 小米科技有限责任公司 The method and device of gray scale upgrading
CN107957888B (en) * 2016-10-14 2022-03-18 北京国双科技有限公司 Application program gray scale upgrading method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297472A (en) * 2012-03-01 2013-09-11 上海盛霄云计算技术有限公司 Redirection method and content distribution node applied to content distribution network
CN105808274A (en) * 2014-12-30 2016-07-27 航天信息股份有限公司 Software upgrading method and system as well as corresponding clients and servers
CN105871961A (en) * 2015-01-23 2016-08-17 中国移动通信集团浙江有限公司 Gray release routing method and device
CN106685687A (en) * 2016-09-23 2017-05-17 北京五八信息技术有限公司 Gray release method and gray release device

Also Published As

Publication number Publication date
CN108632374A (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN108632374B (en) Software gray level release method and device
CN110535777B (en) Access request control method and device, electronic equipment and readable storage medium
CN105791341B (en) Application release processing method, device and system
CN103391312B (en) Resource offline method for down loading and device
CN110225039B (en) Authority model obtaining method, authority authentication method, gateway, server and storage medium
CN110213290B (en) Data acquisition method, API gateway and storage medium
CN110781015A (en) Message queue distribution method, device, equipment and computer readable storage medium
CN112954040B (en) Method, system, device and storage medium for embedding application release server
CN112333289A (en) Reverse proxy access method, device, electronic equipment and storage medium
CN114301990A (en) Node scheduling method, device and storage medium based on content distribution network
CN113791759A (en) Code development processing method and device, electronic equipment and storage medium
CN107277188B (en) Method, client, server and service system for determining IP address attribution information
CN110750780B (en) User role permission fusion method, device and equipment based on multi-service system
CN105872082B (en) Fine granularity resource response system based on container cluster load-balancing algorithm
CN111221565A (en) Step gray release control method of software application program
CN111885190A (en) Service request processing method and system
CN116633771A (en) Gray release method, device and medium
CN108696557B (en) Information processing system, method and device
CN114257503A (en) Method, server, system and storage medium for accelerating domain name deployment
CN111866203B (en) Domain name resolution method and device, readable storage medium and equipment
CN114237633A (en) Application configuration method, device, equipment and storage medium
CN113821495A (en) Database cluster implementation system and method
CN112799849A (en) Data processing method, device, equipment and storage medium
CN111666155A (en) Resource configuration file management method, device, equipment and medium
CN111338758A (en) Resource management 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190201

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: HENGDA WISDOM TECHNOLOGY Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant before: XINGLUO TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221129

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee after: Jinbi Smart Life Technology (Shenzhen) Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: HENGDA WISDOM TECHNOLOGY Co.,Ltd.