Invention content
In order to overcome above-mentioned deficiency in the prior art, the purpose of the present invention is to provide a kind of software gray scale dissemination methods
And device, the cost of implementation of the software gray scale dissemination method is low, realizes that difficulty is low and realizes that workload is few, can be client
The suitable gray scale publisher server of fixed allocation, and fast and flexible client is linked into corresponding gray scale publisher server.
For method, the embodiment of the present invention provides a kind of software gray scale dissemination method, and the method is applied to and client
The release management server of communication connection is held, multiple gray scales corresponding with the software are stored in the release management server
The network address information of gray scale publisher server corresponding to publishing policy and each gray scale publishing policy, the method includes:
The softward interview request sent from client is received, and softward interview request is parsed, obtains institute
The software version information when identification information for the client that softward interview request includes, the client access software is stated,
And the network address information of the client;
It is searched and the software according to the identification information, the software version information and the network address information
The gray scale publishing policy of access request Corresponding matching;
If successful search to matched gray scale publishing policy, according to the gray scale publishing policy found from the ash
It spends in the network address information of the corresponding gray scale publisher server of publishing policy, with distributing a target network for the client
Location information;
The destination network addresses information correspondence of distribution is sent to the client, so that the client is based on obtaining
The destination network addresses information got fixes the software for accessing and being run in the destination network addresses information corresponding server
Content.
For device, the embodiment of the present invention provides a kind of software gray scale distributing device, and described device is applied to and client
The release management server of communication connection is held, multiple gray scales corresponding with the software are stored in the release management server
The network address information of gray scale publisher server corresponding to publishing policy and each gray scale publishing policy, described device include:
Request analysis module for receiving the softward interview request sent from client, and asks the softward interview
It asks and is parsed, obtain the identification information for the client that the softward interview request includes, the client access software
When software version information and the client network address information;
Tactful searching module, for according to the identification information, the software version information and the network address
The gray scale publishing policy of information searching and softward interview request Corresponding matching;
Address assignment module, if for successful search to matched gray scale publishing policy, according to the gray scale found
Publishing policy is the client from the network address information of gray scale publisher server corresponding with the gray scale publishing policy
Distribute a destination network addresses information;
Address sending module, for the destination network addresses information correspondence of distribution to be sent to the client, with
Make the client based on destination network addresses information corresponding with service described in the destination network addresses message reference got
The software content run on device.
In terms of existing technologies, software gray scale dissemination method and device provided in an embodiment of the present invention have with following
Beneficial effect:The cost of implementation of the software gray scale dissemination method is low, realizes that difficulty is low and realizes that workload is few, being capable of fast and flexible
Ground is the suitable gray scale publisher server of client fixed allocation, and client fixation is made to be linked into corresponding gray scale publisher server
Middle carry out softward interview.The release management server of the method application is connect with client communication, the release management service
The gray scale publication clothes corresponding to multiple gray scale publishing policies corresponding with the software and each gray scale publishing policy are stored in device
The network address information of business device.First, the method is after receiving the softward interview sent from client request, by institute
It states softward interview request to be parsed, obtains the identification information for the client that the softward interview request includes, the visitor
The network address information of software version information and the client when access software of family end.Then, the method is according to
Identification information, the software version information and the network address information are searched in the gray scale publisher server and institute
State the gray scale publishing policy of softward interview request Corresponding matching.Then, the method is asked in successful search to the softward interview
After seeking matched gray scale publishing policy, according to the gray scale publishing policy found from corresponding with the gray scale publishing policy
In the network address information of gray scale publisher server, a destination network addresses information is distributed for the client.Finally, described
The destination network addresses information correspondence of distribution is sent to the client by method, so that the client is based on getting
The destination network addresses information fix the software content for accessing and being run in the destination network addresses information corresponding server,
To meet one gray scale publisher server of client fixed allocation of gray scale publishing policy, keep the client online in software
It, just can be directly according to by the mesh of the gray scale publisher server of corresponding distribution without inquiring gray-scale Control logic again in access process
Mark network address information fixation, which is linked into corresponding gray scale publisher server, carries out softward interview, and entire software gray scale was issued
The cost of implementation of journey is low, realizes that difficulty is low and realizes that workload is few.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, present pre-ferred embodiments cited below particularly,
And coordinate appended attached drawing, it is described in detail below.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiments of the present invention, this field is common
The every other embodiment that technical staff is obtained without creative efforts belongs to the model that the present invention protects
It encloses.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.
Below in conjunction with the accompanying drawings, it elaborates to some embodiments of the present invention.In the absence of conflict, following
Feature in embodiment and embodiment can be combined with each other.
Fig. 1 is please referred to, is release management server 10 provided in an embodiment of the present invention, client 20, gray scale issuing service
Interaction schematic diagram between device 30, General Server 40.In embodiments of the present invention, the release management server 10 with it is described
Client 20 communicates to connect, for being that the client 20 distributes a software clothes when the client 20 will carry out softward interview
Business device is accessed in a manner of the software server for keeping the client 20 assigned by fixing access on the software server
Software content.The wherein described software server includes gray scale publisher server 30 and General Server 40, the gray scale publication clothes
Business device 30 is the server for carrying out software gray scale publication that operation has new version software content, and the General Server 40 is
Operation has the server of original version software.
In the present embodiment, the client 20 is to be logged in the terminal device of the corresponding user account of software users, often
A user account corresponds to a software users, and the terminal device may be, but not limited to, smart mobile phone, PC
(Personal Computer, PC), tablet computer, personal digital assistant (Personal Digital Assistant, PDA),
Mobile internet surfing equipment (Mobile Internet Device, MID) etc..
In the present embodiment, whether the release management server 10 to client 20 for carrying out software gray scale publication
Event is managed, and client 20 fixed allocation, one gray scale publisher server 30 of condition is issued to meeting software gray scale,
Make the client 20 during software online access without obtaining new gray scale at the release management server 10 again
The network address information of publisher server 30, just can be directly according to the destination network addresses of assigned gray scale publisher server 30
Information fixation, which is linked into the gray scale publisher server 30, carries out softward interview.
In the present embodiment, the number with the client 20 of the release management server 10 communication connection is at least one
A, the number of the gray scale publisher server 30 in the software server is at least one, the routine in the software server
The number of server 40 is at least one.It can be multiple, i.e., each software that each software server, which is corresponded to the number of distribution,
The number of the corresponding client of server 20 can be multiple.
Fig. 2 is please referred to, is the first flow diagram of software gray scale dissemination method provided in an embodiment of the present invention.At this
In inventive embodiments, the software gray scale dissemination method is applied to the publication pipe communicated to connect with client 20 shown in Fig. 1
Server 10 is managed, multiple gray scale publishing policies corresponding with the software are stored in the release management server 10, and each
The network address information of gray scale publisher server 30 corresponding to gray scale publishing policy, wherein the gray scale publishing policy for pair
Whether client 20 needs to carry out the determination strategy that the publication of software gray scale accesses debugging, the ash corresponding to each gray scale publishing policy
It can be multiple to spend 30 number of publisher server, may also be only one.Below to software gray scale dissemination method shown in Fig. 2
Detailed process and step are described in detail.
Step S210 receives the softward interview request sent from client 20, and asks to carry out to the softward interview
Parsing, when obtaining the identification information for the client 20 that the softward interview request includes, 20 access software of client
Software version information and the client 20 network address information.
In the present embodiment, software users log in corresponding user account at client 20, to pass through the client 20
When carrying out softward interview, the client 20 will send softward interview request to the release management server 10, wherein described
Software version letter when softward interview request includes the identification information of the client 20,20 access software of client
Breath and the current network address information of the client 20.The identification information for indicate the client 20 independently of
The identity of other electronic equipments, the identification information can be the physical address (such as MAC Address) of the client 20,
Can be the UUID (University Unique Identifier, universal unique identifier) of the client 20;The software
Version information is the version information with software front end Corresponding matching run in the client 20;The network address information is
The client 20 carries out network address assigned when network access at present position, and the network address information can be
The 20 corresponding IP address of client.
The release management server 10 is after receiving the softward interview request from client 20, by described soft
The mode that part access request is parsed obtains identification information, the institute for the client 20 that the softward interview request includes
The network address information of software version information and the client 20 when stating 20 access software of client.
Step S220 is searched according to the identification information, the software version information and the network address information
The gray scale publishing policy of Corresponding matching is asked with the softward interview.
Fig. 3 is please referred to, is the flow diagram for the sub-step that step S220 shown in Fig. 2 includes.In the present embodiment,
The each gray scale publishing policy stored in the release management server 10 includes for being verified to identification information
Identities match substrategy, the version match substrategy for being verified to software version information, and for 20 institute of client
In the location matches substrategy that region is verified.The step S220 may include sub-step S221, sub-step S222 and son
Step S223.
Sub-step S221 carries out analyzing processing to the network address information of the client 20, obtains the client 20
Corresponding location information.
In the present embodiment, the release management server 10 is got at the softward interview request described in transmission
After the network address information of the client 20 of softward interview request, by carrying out analyzing processing to the network address information, obtain
To the location information of corresponding 20 present position of the client.
Sub-step S222, by the corresponding identities match substrategy of each gray scale publishing policy, version match substrategy and position
Matching substrategy is set, is carried out one by one with the province identification information of the client 20, software version information and location information respectively
Compare matching.
In the present embodiment, the client 20 that the release management server 10 is asked by that will send the softward interview
Province identification information, software version information and location information, the identity corresponding to each gray scale publishing policy with storage respectively
Matched mode is compared in matching substrategy, version match substrategy and location matches substrategy, inquires the release management
In all gray scale publishing policies that server 10 stores matched gray scale publishing policy is asked with the presence or absence of with the softward interview.
Sub-step S223, if the identification information of the client 20, software version information and location information respectively accord with
The corresponding identities match substrategy of one gray scale publishing policy of contract, version match substrategy and location matches substrategy judge institute
It is the gray scale publishing policy that Corresponding matching is asked with softward interview to state gray scale publishing policy.
In the present embodiment, if the identification information of the client 20, software version information and location information respectively
Meet the identity corresponding to some gray scale publishing policy in each gray scale publishing policy that the release management server 10 stores
Substrategy, version match substrategy and location matches substrategy are matched, i.e., the described identification information meets same gray scale publication
Identities match substrategy corresponding to strategy, the software version information meet the version corresponding to same gray scale publishing policy
With substrategy, and when the location information meets the location matches substrategy corresponding to same gray scale publishing policy, the publication
Management server 10 will be including issuing with three of three kinds of information matches of the client 20 gray scales for matching substrategy respectively
Strategy judges the gray scale publishing policy of the softward interview request Corresponding matching.
For example, the UUID that the identities match substrategy of some gray scale publishing policy A is requirement client 20 is to be with 1234
Beginning, software version when the corresponding version match substrategy of the gray scale publishing policy A is requirement 20 softward interview of client
For 1.1 versions, the corresponding location matches substrategy of the gray scale publishing policy A is that the position of requirement client 20 is in Sichuan area
Domain.The identities match substrategy of another gray scale publishing policy B be the UUID of requirement client 20 be with 135 for beginning, it is described
The corresponding version match substrategies of gray scale publishing policy B are that empty (software version when i.e. to 20 softward interview of client is without wanting
Ask), the corresponding location matches substrategy of the gray scale publishing policy B is that the position of requirement client 20 is in Guangdong region.If
The identification information for the client 20 that the release management server 10 is got from softward interview request is to be with 1234
The UUID of beginning, software version information are 1.1 versions, and location information is in Sichuan region, and three kinds of information respectively meet gray scale hair
When three matching substrategies of cloth strategy A, gray scale publishing policy A will be determined as that the softward interview request is matched by corresponding
Gray scale publishing policy.If the identity for the client 20 that the release management server 10 is got from softward interview request
Information is the UUID for being beginning with 135, and software version information is 1.1 versions or 0.6 version, and location information is in Guangdong region
When, when 20 corresponding three kinds of information of the client respectively meet three matching substrategies of gray scale publishing policy B, gray scale publication
Tactful B will be determined as that the softward interview asks matched gray scale publishing policy by corresponding.
Referring once again to Fig. 2, step S230, if successful search to matched gray scale publishing policy, according to the institute found
Gray scale publishing policy is stated from the network address information of gray scale publisher server corresponding with the gray scale publishing policy 30, for institute
It states client 20 and distributes a destination network addresses information.
In the present embodiment, each corresponding gray scale of gray scale publishing policy that the release management server 10 stores
30 number of publisher server is at least one, and record has each gray scale publisher server 30 to be divided in the release management server 10
The number matched.
If 10 successful search of release management server is issued to the gray scale with softward interview request Corresponding matching
Strategy, and by successful search to the gray scale publishing policy corresponding to the number of gray scale publisher server 30 be only one
When, the gray scale publishing policy that the basis is found is from gray scale publisher server corresponding with the gray scale publishing policy 30
Network address information in, for the client 20 distribute a destination network addresses information the step of include:
The gray scale publisher server 30 corresponding to the gray scale publishing policy is directly distributed into the client 20, and with
The network address information of the gray scale publisher server 30 is as 20 corresponding destination network addresses information of the client.
If 10 successful search of release management server is issued to the gray scale with softward interview request Corresponding matching
Strategy, and the number of the gray scale publisher server 30 corresponding to the gray scale publishing policy arrived by successful search be it is multiple when,
The gray scale publishing policy that the basis is found is from gray scale publisher server corresponding with the gray scale publishing policy 30
In network address information, include for the step of one destination network addresses information of distribution of the client 20:
The number that each gray scale publisher server 30 corresponding to the gray scale publishing policy is assigned, chooses distribution time
The minimum gray scale publisher server 30 of number distributes to the client 20, and the gray scale publisher server to be selected
30 network address information is as 20 corresponding destination network addresses information of the client, so that the gray scale publishing policy pair
Each gray scale publisher server 30 answered mutual load balancing when being communicated to connect by client 20.
The destination network addresses information correspondence of distribution is sent to the client 20, so that described by step S240
Client 20 is fixed based on the destination network addresses information got and accesses the destination network addresses information corresponding with service
The software content run on device.
In the present embodiment, the release management server 10 is solid to send the client 20 that the softward interview is asked
Surely the network address information for distributing a software server will after the 20 matched destination network addresses information of client
The destination network addresses information for distributing to the client 20 is sent to the client 20, so that the client 20 is based on obtaining
The destination network addresses information got is fixed to access and be run on the corresponding software server of the destination network addresses information
Software content.
If it is gray scale publication that the release management server 10, which is the destination network addresses information that the client 20 is distributed,
When the network address information of server 30, the client 20 will be fixed to access according to the destination network addresses information got and will be somebody's turn to do
The new version software content run on the corresponding gray scale publisher server of destination network addresses information 30.
If the release management server 10 is that the destination network addresses information that the client 20 is distributed is regular service
When the network address information of device 40, the client 20 will fix according to the destination network addresses information got and access the target
The original version software content run on the corresponding General Server of network address information 40.
Fig. 4 is please referred to, is second of flow diagram of software gray scale dissemination method provided in an embodiment of the present invention.At this
In inventive embodiments, the net of each General Server corresponding with the software 40 is also stored in the release management server 10
The number that network address information and each General Server 40 are assigned.Before the step S240, the method further includes step
S250, the step S250 and the step S230 are mutually juxtaposed and without the relationships for executing priority.
Step S250, if not finding matched gray scale publishing policy, according to the assigned number of each General Server 40
The minimum General Server 40 of assigned number is distributed into the client 20, and with the network address of the General Server 40
Information is as 20 corresponding destination network addresses information of the client.
In the present embodiment, if the release management server 10 storage all gray scale publishing policies in have no with it is described
Softward interview asks matched gray scale publishing policy, i.e., corresponding to each gray scale publishing policy of the storage of release management server 10
Three identities match substrategies, at least one matching substrategy is not in version match substrategy and location matches substrategy
Meet with the client 20, then judgement is not found and matched with softward interview request by the release management server 10
Gray scale publishing policy, the release management server 10 will be by by the number being assigned according to each General Server 40 of storage
The minimum General Server 40 of distribution number distributes to the client 20, and with the network address information of the General Server 40
As 20 corresponding destination network addresses information of the client, so that the client 20 is believed based on the destination network addresses
The software content run on the General Server 40 of breath access Corresponding matching.
Fig. 5 is please referred to, is the third flow diagram of software gray scale dissemination method provided in an embodiment of the present invention.At this
In inventive embodiments, before the step S210, the software gray scale dissemination method can also include step S209.
Step S209 configures each gray scale publishing policy, and establishes the gray scale publishing policy and sent out with the gray scale
Contact between cloth server 30.
In the present embodiment, software producers dispose the software content of new version software on gray scale publisher server 30
Afterwards, by release management server 10 be deployed with the new version software gray scale publisher server 30 configure it is corresponding
Gray scale publishing policy, to complete to the configuration work of each gray scale publishing policy, and establish complete the gray scale publishing policy with
Contact between the gray scale publisher server 30.
Please refer to Fig. 6, be software gray scale distributing device 100 shown in Fig. 1 provided in an embodiment of the present invention the first
Block diagram.In embodiments of the present invention, the release management server 10 includes software gray scale distributing device 100, described
Release management server 10 executes Fig. 2-software gray scale dissemination methods shown in fig. 5 by the software gray scale distributing device 100,
Realize the gray scale publication of software.The wherein described software gray scale distributing device 100 includes request analysis module 110, strategy lookup mould
Block 120, address assignment module 130 and address sending module 140.
The request analysis module 110, for receiving the softward interview request sent from client 20, and to described soft
Part access request is parsed, and the identification information for the client 20 that the softward interview request includes, the client are obtained
The network address information of software version information and the client 20 when holding 20 access software.
In the present embodiment, the request analysis module 110 can execute the step S210 in Fig. 2, specifically execute
Journey can refer to above to the detailed description of step S210.
The strategy searching module 120, for according to the identification information, the software version information and the net
Network address information searches the gray scale publishing policy with softward interview request Corresponding matching.
Fig. 7 is please referred to, is the block diagram of tactful searching module 120 shown in Fig. 6.In the present embodiment, described
Tactful searching module 120 includes position acquisition submodule 121, matching verification submodule 122 and tactful decision sub-module 123.
The position acquisition submodule 121 carries out analyzing processing for the network address information to the client 20, obtains
To 20 corresponding location information of the client.
Submodule 122 is verified in the matching, is used for the corresponding identities match substrategy of each gray scale publishing policy, version
Match substrategy and location matches substrategy, respectively with province identification information, software version information and the position of the client 20
Confidence breath carries out comparing matching one by one.
The strategy decision sub-module 123, if for the identification information of the client 20, software version information and
Location information respectively meets the corresponding identities match substrategy of same gray scale publishing policy, version match substrategy and location matches
Substrategy judges that the gray scale publishing policy is the gray scale publishing policy that Corresponding matching is asked with softward interview.
In the present embodiment, the position acquisition submodule 121, matching verification submodule 122 and the strategy are sentenced
Stator modules 123 can respectively execute sub-step S221, sub-step S222 and sub-step S223 in Fig. 3, specifically execute
Journey can refer to the detailed description of above sub-paragraphs S221, sub-step S222 and sub-step S223.
Referring once again to Fig. 6, described address distribution module 130, if for successful search to matched gray scale publishing policy,
According to the gray scale publishing policy found from the network of gray scale publisher server corresponding with the gray scale publishing policy 30
In address information, a destination network addresses information is distributed for the client 20.
Described address distribution module 130, if being additionally operable to not find matched gray scale publishing policy, according to each regular service
The minimum General Server 40 of assigned number is distributed to the client 20 by the assigned number of device 40, and is routinely taken with this
The network address information of business device 40 is as 20 corresponding destination network addresses information of the client.
In the present embodiment, described address distribution module 130 can execute shown in step S230 and Fig. 4 in Fig. 2
Step S250, specific implementation procedure can refer to above to the detailed description of step S230 and step S250.
Described address sending module 140, for the destination network addresses information correspondence of distribution to be sent to the visitor
Family end 20, so that the client 20 is fixed with accessing the target network based on the destination network addresses information got
The software content run in the information corresponding server of location.
In the present embodiment, described address sending module 140 can execute the step S240 in Fig. 2, specifically execute
Journey can refer to above to the detailed description of step S240.
Fig. 8 is please referred to, is second of software gray scale distributing device 100 shown in Fig. 1 provided in an embodiment of the present invention
Block diagram.In embodiments of the present invention, the software gray scale distributing device 100 can also include tactful configuration module 150.
The strategy configuration module 150 for being configured to each gray scale publishing policy, and establishes the gray scale publication plan
Slightly contacting between the gray scale publisher server 30.
In the present embodiment, the tactful configuration module 150 can execute the step S209 in Fig. 5, specifically execute
Journey can refer to above to the detailed description of step S209.
In conclusion in software gray scale dissemination method provided in an embodiment of the present invention and device, the software gray scale hair
The cost of implementation of cloth method is low, realizes that difficulty is low and realizes that workload is few, can be closed for client fixed allocation to fast and flexible
Suitable gray scale publisher server makes client fixation be linked into corresponding gray scale publisher server and carries out softward interview.It is described
The release management server of method application is connect with client communication, is stored in the release management server and the software
The network address information of gray scale publisher server corresponding to corresponding multiple gray scale publishing policies and each gray scale publishing policy.
First, the method is after receiving the softward interview sent from client request, by asking to carry out to the softward interview
Parsing, it is soft when obtaining the identification information for the client that softward interview request includes, the client access software
The network address information of part version information and the client.Then, the method is according to the identification information, described
Software version information and the network address information are searched and softward interview request pair in the gray scale publisher server
Answer matched gray scale publishing policy.Then, the method asks matched gray scale publication in successful search to the softward interview
After strategy, according to the gray scale publishing policy found from gray scale publisher server corresponding with the gray scale publishing policy
In network address information, a destination network addresses information is distributed for the client.Finally, the method will be described in distribution
Destination network addresses information correspondence is sent to the client, so that the client is based on the target network got
Location information fixes the software content for accessing and being run in the destination network addresses information corresponding server, to be sent out to meet gray scale
One gray scale publisher server of client fixed allocation of cloth strategy, makes the client be no longer needed to during software online access
Secondary inquiry gray-scale Control logic just can directly be consolidated according to by the destination network addresses information of the gray scale publisher server of corresponding distribution
Surely it being linked into corresponding gray scale publisher server and carries out softward interview, the cost of implementation of entire software gray scale issuing process is low,
It realizes that difficulty is low and realizes that workload is few.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.