Invention content
In view of this, the embodiment of the present application is designed to provide a kind of license resources dispatching method and system, it can
License resources are unified for shared resource pond by dispatch server and share to multiple users' uses, user is solved and needs to taste
The problem of multiple license servers just can request that required license resources is tried, the utilization rate of license resources is improved.
In a first aspect, the embodiment of the present application provides a kind of license resources dispatching method, it is applied to dispatch server, packet
It includes:
Receive the license resources request that at least one terminal device is sent;The license resources request, which carries, to be described
The first resource information of the required license resources of user;
For the license resources request that each terminal device is sent, carried according to license resources request
The contrast relationship table and preset resource tune of first resource information and preset resource information with license server address
Degree strategy, from least one license server for being currently able to provide the license resources that the first resource information describes
First object license resources server address is selected in location;
The first object license resources server address of selection is sent to corresponding terminal device, so as to the terminal
Equipment is based on the first object license resources server address and obtains license resources.
With reference to first aspect, the embodiment of the present application provides the first possible embodiment of first aspect, wherein institute
It states license resources request and also carries user information;The preset resource dispatching strategy includes resource quota management strategy;
It is described from least one license server address for being currently able to provide the license resources that the first resource information describes
Before middle selection first object license resources server address, further include:
For the license resources request that each terminal device is sent, by first in license resources request
Resource information default resource information corresponding with user information in license resources request is compared;
If the first resource information meets the corresponding default resource information of the user information, execute from being currently able to
It provides at least one license server address of the license resources of the first resource information description and selects first object
The step of license resources server address.
With reference to first aspect or the first possible embodiment of first aspect, the embodiment of the present application provide first
Second of possible embodiment of aspect, wherein the preset resource dispatching strategy further includes the shared scheduling of resource fairness
Strategy;After the license resources request for receiving at least one terminal device transmission, further include:
If the license resources request of multiple terminal devices transmission is received in predetermined time period, according to each
The use letter of the corresponding shared class information of user information and license resources in the license resources request that terminal device is sent
Breath, determines the shared precedence information of the corresponding terminal device of each user information;
According to the sequence of the corresponding shared precedence information of multiple terminal devices from big to small, multiple institutes are responded successively
State the license resources request of terminal device transmission.
With reference to first aspect, the embodiment of the present application provides the third possible embodiment of first aspect, wherein institute
It further includes Network Priority scheduling strategy to state preset resource dispatching strategy;First carried according to license resources request
The contrast relationship table of resource information and preset resource information and license server address, from being currently able to provide described
First object license resources are selected at least one license server address of the license resources of one resource information description
Server address, including:
First resource information and preset resource information and the licensing carried according to license resources request takes
The contrast relationship table of business device address, from the license server address to prestore, lookup is currently able to provide the first resource
At least one license server address of the license resources of information description;
Network segment information where at least one license server address and license resources request
Target network segment information where corresponding terminal device, selection is in described from least one license server address
License server address in target network segment information is as the first object license resources server address.
With reference to first aspect, the embodiment of the present application provides the 4th kind of possible embodiment of first aspect, wherein institute
It further includes fragment priority scheduling strategy to state preset resource dispatching strategy;First carried according to license resources request
The contrast relationship table of resource information and preset resource information and license server address, from being currently able to provide described
First object license resources are selected at least one license server address of the license resources of one resource information description
Server address, including:
First resource information and preset resource information and the licensing carried according to license resources request takes
The contrast relationship table of business device address, from the license server address to prestore, lookup is currently able to provide the first resource
At least one license server address of the license resources of information description;
According to the license resources of the description of first resource information described at least one license server address
Use information selects the minimum number of the remaining license resources from least one license server address
License server address is as the first object license resources server address.
The third possible embodiment with reference to first aspect or the 4th kind of possible embodiment, the embodiment of the present application
Provide the 5th kind of possible embodiment of first aspect, wherein the preset resource dispatching strategy further includes that resource is closed
And use scheduling strategy;After the license resources request for receiving at least one terminal device transmission, further include:
If there is no be currently able to provide the first resource information description in the license server address to prestore
License resources at least one license server address, then according to the license resources request carry first resource
The contrast relationship table of information and preset resource information and license server address, determine it is currently stored have it is described first money
The license resources of source information description and multiple license server addresses there are the not used license resources;
Described the will be corresponded in the multiple license server address and the multiple license server address
The surplus resources quantity of the license resources of one resource information description, which is sent to the license resources, asks corresponding terminal to set
It is standby.
The third possible embodiment with reference to first aspect or the 4th kind of possible embodiment, the embodiment of the present application
Provide the 6th kind of possible embodiment of first aspect, wherein the preset resource dispatching strategy further includes priority
Seize scheduling strategy;After the license resources request for receiving at least one terminal device transmission, further include:
If there is no be currently able to provide the first resource information description in the license server address to prestore
License resources at least one license server address, then from the license server address to prestore, lookup can
There is provided the license resources of first resource information description but occupied at least one license server address;
By the class information of the occupancy user information of at least one license server address respectively with the license
The class information for the user information that card resource request carries is compared;
The license server address that class information is occupied less than the occupancy user information of the user information is released
It puts.
The possible embodiment of with reference to first aspect the first, the embodiment of the present application provide the 7th kind of first aspect
Possible embodiment, wherein described from being currently able to provide license resources that the first resource information describes at least
First object license resources server address is selected in one license server address, including:
The user information and preset user information and license server carried according to license resources request
The contrast relationship table of address searches the second target licensing corresponding with user information from the license server address to prestore
Resource Server address;
If the second target license resources server address is capable of providing the license of the first resource information description
Resource is demonstrate,proved, then as the first object license resources server using the second target license resources server address
Location;
If the second target license resources server address cannot be satisfied the license of the first resource information description
Resource is demonstrate,proved, then is permitted corresponding to first resource information description according in the second target license resources server address
The Secondary resource information of resource and the first resource information of the required license resources of user can be demonstrate,proved, determines the licensing
The information resources information of resource;
According to the contrast relationship table, the licensing money for being currently able to provide the information resources information description is searched
At least one license server address in source;
It is taken from least one licensing for being currently able to provide the license resources that the information resources information describes
It is engaged in selecting third target license resources server address in device address;
By the second target license resources server address and the third target license resources server address
As the first object license resources server address.
Second aspect, the embodiment of the present application also provides a kind of license resources to dispatch system, including:Terminal device, tune
Spend server and license resources server;
The terminal device, for sending license resources request to the dispatch server;
The dispatch server, the license resources request sent for receiving at least one terminal device;The license
Card resource request carries the resource information for being described the required license resources of user;Each terminal device is sent
The license resources request, resource information and preset resource information and the license carried according to license resources request
The contrast relationship table for demonstrate,proving server address, from being currently able to provide at least one of license resources that the resource information describes
Selection target license resources server address in license server address;By the target license resources server of selection
Location is sent to corresponding terminal device;
The terminal device is additionally operable to license server hair corresponding to the target license resources server address
The license resources are sent to ask;
The license resources server, for after receiving license resources request, by the money of storage
The license resources of source information description return to the terminal device.
In conjunction with second aspect, the embodiment of the present application provides the first possible embodiment of second aspect, wherein institute
It is multiple to state dispatch server;
Multiple dispatch servers share external virtual address, the terminal device can by it is described externally virtually
Location accesses multiple dispatch servers;
Multiple dispatch server shared file storage systems, when a dispatch server failure, other tune
Degree server is able to access that the shared file storage system.
A kind of license resources dispatching method provided by the embodiments of the present application and system are applied to dispatch server, scheduling
License resources are unified for shared resource pond by server, and the license resources are shared to multiple users while being used.It adjusts
Degree server is currently able to provide above-mentioned license from resource pool after receiving the license resources request of terminal device transmission
In at least one license server address for demonstrate,proving the license resources of resource request description, first object license resources are selected
Server address simultaneously returns to corresponding terminal device, so that the terminal device is from first object license resources server address
It goes to search required license resources, in this way, the license resources request of user only needs to be sent to dispatch server, by adjusting
Degree server is uniformly handled, and is realized the shared of license resources, is avoided user and need to attempt multiple license services
Device just can request that the problem of required license resources, improve the utilization rate of license resources.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
Middle attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only
It is some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is real
Applying the component of example can be arranged and designed with a variety of different configurations.Therefore, below to the application's for providing in the accompanying drawings
The detailed description of embodiment is not intended to limit claimed scope of the present application, but is merely representative of the selected reality of the application
Apply example.Based on embodiments herein, institute that those skilled in the art are obtained without making creative work
There is other embodiment, shall fall in the protection scope of this application.
As shown in Figure 1, be a kind of application scenarios schematic diagram of license resources dispatching method provided by the embodiments of the present application,
Including license server, license resources dispatch server and terminal device;License resources generation is provided on terminal device
Reason, license resources dispatch server are that license resources unify access interface, and terminal device can pass through license resources tune
The corresponding address (the 17000@10.225.21.180 of address in such as Fig. 1) of server is spent to send out to license resources dispatch server
License resources are sent to ask, license resources dispatch server carries out United Dispatching point based on the license resources request received
Match, by license resources dispatch server according to the negative of the license server of license resources distribution situation and internal registration
Situation is carried to provide most suitable license resources.
Wherein, above-mentioned license server address information is registered in advance in license resources dispatch server, licensing
State, load and the license resources that resource allocation server can monitor all license servers in real time can use situation, and
The distribution and scheduling of resource are carried out according to the resource allocation rule of administrative department's formulation.
As shown in Fig. 2, the embodiment of the present application provides a kind of license resources dispatching method, it is applied to dispatch server,
Including:
S101, the license resources request that at least one terminal device is sent is received;The license resources request carries
It is described the first resource information of the required license resources of user.
In the embodiment of the present application, above-mentioned license resources are specially the sequence number of licensing, and above-mentioned first resource information can
Think the type, number and use duration etc. of license resources.
S102, the license resources that each terminal device is sent are asked, is asked according to the license resources
The first resource information and preset resource information of carrying and the contrast relationship table of license server address and preset
Resource dispatching strategy takes from least one licensing for being currently able to provide the license resources that the first resource information describes
It is engaged in selecting first object license resources server address in device address.
In the embodiment of the present application, it is previously stored with license server address in license resources dispatch server and is permitted
The contrast relationship table of server address and preset resource information can be demonstrate,proved, above-mentioned preset resource information is for describing above-mentioned license
The license resources that card server address is capable of providing.Here license server address may include license server
Internet protocol address (Internet Protocol Address, IP address) and port.
For the license resources request from each terminal device, dispatch server lookup disclosure satisfy that the licensing
Then the preset resource information for the first resource information that resource request carries is searching above-mentioned preset resource according to the table of comparisons
The corresponding license server address of information, wherein the license server address found is capable of providing the first resource
The license resources of information description, then, dispatch server selects one from the above-mentioned license server address found
License resources server address, as first object license resources server address.
Here, first object license resources server address is selected from the above-mentioned license server address found
Selection Strategy have very much, such as:Local first strategy, such as fragment preference strategy, day major project preference strategy, such as in proportion
Sharing policy etc..
S103, the first object license resources server address of selection is sent to corresponding terminal device, with toilet
It states terminal device and is based on first object license resources server address acquisition license resources.
Here, dispatch server by first object license resources server address after being sent to terminal device, eventually
End equipment is based on this first object license resources server address from the corresponding first object license resources clothes in the address
It is engaged in obtaining the required license resources of user in device.
A kind of license resources dispatching method provided by the embodiments of the present application is applied to dispatch server, dispatch server
License resources are unified for shared resource pond, and the license resources are shared into multiple users while being used.Dispatch service
Device is currently able to provide above-mentioned license resources from resource pool after receiving the license resources request of terminal device transmission
In at least one license server address for asking the license resources of description, first object license resources server is selected
Address simultaneously returns to corresponding terminal device, so that the terminal device goes to search from first object license resources server address
Required license resources, in this way, the license resources request of user only needs to be sent to dispatch server, by dispatch service
Device is uniformly handled, and is realized the shared of license resources, is avoided user and need to attempt multiple license server ability
The problem of asking required license resources improves the utilization rate of license resources.
In order to realize the shared of license server address resource, resource quota management strategy is based in the embodiment of the present application
Realize that the scheduling of license resources, concrete scheme are as follows:For each type of license resources, the licensing based on the type
The feature of resource for the license resources usage quantity of user setting the type and uses duration, user's list can also be arranged
The maximum number of secondary request license resources.In addition, in order to ensure the normal operation of license server, it is contemplated that licensing takes
The loading condition of business device, can also pre-set while using user's maximum number of license resources and making for license resources
With total duration, setting is more than that the license request of setting quota is rejected.Wherein, above-mentioned user includes but not limited to following a kind of
Or it is a variety of:Personal user, department and project.
As shown in figure 3, in license resources dispatching method provided by the embodiments of the present application, the license resources request is also
Carry user information;The preset resource dispatching strategy includes resource quota management strategy;Step 102, described from current
It is capable of providing at least one license server address of the license resources of the first resource information description and selects first
Before target license resources server address, further include:
S201, the license resources that each terminal device is sent are asked, during which is asked
First resource information and the license resources ask in the corresponding default resource information of user information be compared.
Here, the corresponding default resource information of each user information is provided in resource allocation server in advance, here,
The corresponding default resource information of different types of user information is different, and the different type of user information includes:Personal user, department
User and project user etc..Under normal conditions, the configuration quantity and configuration duration of resource information is followed successively by project use from big to small
Family, department user and personal user.Specifically such as, personal user's license resources usage quantity is 5, personal using duration 1 month
The maximum number of user's single request license resources is 5;Department user license resources usage quantity is 20, uses duration 2
A month, the maximum number of personal user's single request license resources was 20.
If S202, the first resource information meet the corresponding default resource information of the user information, execute from working as
Before be capable of providing first resource information description license resources at least one license server address in select the
The step of one target license resources server address.
Here, if first resource information is unsatisfactory for the corresponding default resource information of user information, such as first resource letter
The type mismatch of license resources closes the type of the license resources in the corresponding default resource information of the user information in breath, or
Person, in first resource information license resources be more than using number the preconfigured license resources of the user information
Number, dispatch server will return to corresponding terminal device and ask illegal prompt message.
In order to avoid license resources are all occupied by some user, department or project, cause other people that can not obtain perhaps
The case where resource can be demonstrate,proved, may be used resource fairness and share scheduling strategy, as shown in figure 4, license provided by the embodiments of the present application
It demonstrate,proves in resource regulating method, step 101, after receiving the license resources request that at least one terminal device is sent, further includes:
If S301, the license resources request for receiving multiple terminal devices transmission in predetermined time period, basis
The corresponding shared class information of user information and license resources in the license resources request that each terminal device is sent
Use information determines the shared precedence information of the corresponding terminal device of each user information.
In the embodiment of the present application, dispatch server is that (this is shared for the shared class information of different types of user setting in advance
Class information is specially a fair share fairshare value), what personal user, department user or project user were arranged
Fairshare value such as " user1=10:User2=25:User3=50 ", dispatch server receive in predetermined time period
When multiple license resources from different terminal equipment are asked, dispatch server is asked current according to transmission license resources
The service condition of the corresponding license resources of user and the fairshare values of configuration determine to respond the shared preferential of these requests
Grade information, response here is specifically, ask the priority of distribution license card server address for license resources.
Wherein, a kind of specific implementation mode for sharing precedence information can be as follows:The user asked with license resources
The license resources quantity occupied or duration of the corresponding fairshare values of information divided by the user information, obtain each use
The shared priority value of the corresponding terminal device of family information.
S302, the sequence according to the corresponding shared precedence information of multiple terminal devices from big to small, respond successively
The license resources request that multiple terminal devices are sent.
In the embodiment of the present application, the shared priority for the corresponding terminal device of each user information that step 301 is obtained
Value is ranked up according to sequence from big to small, and responds being permitted for above-mentioned multiple terminal devices transmission successively according to the result of sequence
Resource request can be demonstrate,proved, i.e., is preferably these license resources request distribution license card server address successively according to ranking results.
Wherein, the shared priority value of user is bigger, and corresponding priority is higher, more demonstrate,proves resource by preferential distribution license.
During license resources use, the terminal device of user side will keep the net between license server
Network links or communication heartbeat, and network interruption will result directly in the failure of the application operation on the terminal device of user side.Therefore terminal
The stability needs of equipment to the network between license server fully consider, therefore, in the embodiment of the present application, preset
Resource dispatching strategy further include Network Priority scheduling strategy, be also based in step 102 Network Priority scheduling strategy (namely
The strategy of local first distribution) selection first object license resources server address, as shown in figure 5, in step 102, according to
The first resource information and preset resource information that license resources request carries are compareed with license server address
Relation table, from least one license server for being currently able to provide the license resources that the first resource information describes
First object license resources server address is selected in location, including:
S401, the first resource information carried and preset resource information and license are asked according to the license resources
The contrast relationship table for demonstrate,proving server address, from the license server address to prestore, lookup is currently able to provide described first
At least one license server address of the license resources of resource information description.
For the license resources request from any one terminal device, dispatch server lookup disclosure satisfy that the licensing
At least one preset resource information for the first resource information that resource request carries, then, dispatch server is according to the table of comparisons
Searching the corresponding at least one license server address of above-mentioned at least one preset resource information, wherein find
License server address is capable of providing the license resources of the first resource information description.
S402, according to where at least one license server address network segment information and the license resources
The target network segment information where corresponding terminal device is asked, selects to be in from least one license server address
The license server address of the target network segment information is as the first object license resources server address.
In the actual scene of certain large sizes, user side terminal device and license server are often distributed in multiple regions
With with multiple network segments, need to accomplish network aware, dispatch server automatic identification user in the dispatching distribution of license resources
The network segment where terminal and license server, under the premise of all meeting resource request, preferential distribution and the end for sending out request
Hold the license server resource in the same network segment or region.
In the embodiment of the present application, any license resources are asked, dispatch server is asked according to the license resources
The table of comparisons of the source IP address of carrying and preset IP address and the network segment determines that the license resources ask corresponding terminal to set
The target network segment information at standby place.For the license server address for asking to find based on any license resources, scheduling
Server determines the license server according to the license server address and the table of comparisons of preset IP address and the network segment
Network segment information where ground, then, dispatch server are searched based on the network segment information where at least one license server ground
The license server address in target network segment information.
If dispatch server is found based on the network segment information where at least one license server ground in target network
License server address in segment information is then provided the license server address found as the first object licensing
Source server address.
If dispatch server is not found based on the network segment information where at least one license server ground in mesh
License server address in network segment information is marked, then can randomly choose a first object license resources server address,
It can also be based on that subsequent fragment is preferential, major project priority scheduling other policy selection first object license resources servers
Location.
Due to company buying historical reasons, often same license resources can be stored in multiple license servers
In, it also is difficult to integrate in the short time.In this way, during dispatching distribution, remaining licensing money in each license server
Source quantity is had nothing in common with each other, and therefore, as shown in fig. 6, in the embodiment of the present application, fragment priority scheduling plan can be based in step 102
First object license resources server address is slightly selected, step 102, first carried according to license resources request
The contrast relationship table of resource information and preset resource information and license server address, from being currently able to provide described
First object license resources are selected at least one license server address of the license resources of one resource information description
Server address, including:
S501, the first resource information carried and preset resource information and license are asked according to the license resources
The contrast relationship table for demonstrate,proving server address, from the license server address to prestore, lookup is currently able to provide described first
At least one license server address of the license resources of resource information description.
For the license resources request from any one terminal device, dispatch server lookup disclosure satisfy that the licensing
At least one preset resource information for the first resource information that resource request carries, then, dispatch server is according to the table of comparisons
Searching the corresponding at least one license server address of above-mentioned at least one preset resource information, wherein find
License server address is capable of providing the license resources of the first resource information description.
S502, it is provided according to the licensing of the description of first resource information described at least one license server address
The use information in source selects the quantity of the remaining license resources most from least one license server address
Few license server address is as the first object license resources server address.
In the embodiment of the present application, the scheduling strategy that fragment preferentially distributes can meet license resources number needed for user
Under equal conditions, the license resources in license server that preferentially volume residual can be used few reduce licensing money to the greatest extent
Source fragment, to retain the license server more than license resources quantity, in case other have the request of high-volume license resources
The user of demand uses.
In the embodiment of the present application, the preset resource dispatching strategy further includes that resource merges using scheduling strategy, step
Resource can be based in 102 to merge using scheduling strategy selection first object license resources server address, as shown in fig. 7,
Receive what at least one terminal device was sent in license resources dispatching method provided by the embodiments of the present application, described in step S101
After license resources request, further include:
If there is no be currently able to provide the first resource information in S601, the license server address to prestore
At least one license server address of the license resources of description, then first carried according to license resources request
The contrast relationship table of resource information and preset resource information and license server address, determining currently stored has described
The license resources of one resource information description and multiple license server addresses there are the not used license resources.
For the license resources request from any one terminal device, if the license server address to prestore does not have
It disclosure satisfy that the license server address of first resource information, then, dispatch server lookup is stored with the license resources
Multiple preset resource informations of the first resource information carried are asked, then, dispatch server is according to the table of comparisons in lookup
State the corresponding multiple license server addresses of multiple preset resource informations, here, each license service found
The type of the corresponding license resources for being stored with the description of first resource information in device address, but quantity available is insufficient for the
The quantity of one resource information description.
S602, institute will be corresponded in the multiple license server address and the multiple license server address
The surplus resources quantity for stating the license resources of first resource information description is sent to the license resources request corresponding end
End equipment.
In the embodiment of the present application, selected in multiple license server addresses that dispatch server is found from step 601
Select the multiple license server addresses that disclosure satisfy that first resource information, then, by this multiple license server address with
And correspond to the surplus resources number of the license resources of first resource information description in this multiple license server address
Amount is sent to the license resources and asks corresponding terminal device, in this way, terminal device can be according to return as a result, respectively
Granting resources request is sent to address above mentioned, here, the first resource information that the granting resources request that terminal device is sent carries
The quantity for including is equal to the quantity of the license resources of the same type in corresponding license server address.
Here, the license resources that large-scale application needs quantity many on startup, it is often none of at that time to be permitted
Can demonstrate,prove has enough resources to start and fail for its use on server.In this case license resources dispatch server being capable of root
According to the distribution situation of current desired license resources, the address and port of multiple license servers are returned to application, such as:
1700@hostA:3200@hostB:1900@hostC, to ensure that application can successfully start up.
Further, the preset resource dispatching strategy further includes that priority seizes scheduling strategy;The embodiment of the present application
In, scheduling strategy selection first object license resources server can be seized in step 102 based on granting resources priority
Location further includes as shown in figure 8, after receiving the license resources request that at least one terminal device is sent described in step S101:
If there is no be currently able to provide the first resource information in S701, the license server address to prestore
It is searched then from the license server address to prestore at least one license server address of the license resources of description
Be capable of providing the license resources of first resource information description but occupied at least one license server
Location.
S702, by the class information of the occupancy user information of at least one license server address respectively with it is described
The class information for the user information that license resources request carries is compared.
S703, by class information less than the user information occupancys user information occupancy license server address into
Row release.
In conjunction with step 701 to step 703, in the embodiment of the present application, in order to ensure that certain emergent projects can obtain immediately
Required license resources may be used granting resources priority and seize scheduling strategy, when high-priority users or item request
When licensing, if not enough licensings at that time, by being permitted for the automatic interrupts low-priority user of licensing gateway or project
Connection can be demonstrate,proved, licensing is released and is used for high-priority users or project.
In the actual use environment, some license resources are that some department purchases, and department user needs are ensureing
Partial licenses resource-sharing is taken out under the premise of its own business is unaffected to other departments.For such case, scheduling
Server can be that license server configuration retains resource quantity, and only the licensing other than reservation resource quantity is taken out
It participates in dispatching, shares to other users use.As shown in figure 9, from being currently able to provide first money described in step S102
First object license resources service is selected at least one license server address of the license resources of source information description
Device address, including:
S801, the user information carried according to license resources request and preset user information and licensing take
The contrast relationship table of business device address, lookup the second target corresponding with user information is permitted from the license server address to prestore
Resource Server address can be demonstrate,proved.
User information and the dedicated license of the user information are previously stored in the embodiment of the present application, in dispatch server
The contrast relationship table for demonstrate,proving server address judges what license resources request carried after receiving license resources request
Whether user information has the dedicated second target license resources server address, specific judgment method to be, according to user information,
The second target license resources server address corresponding with user information is searched from the license server address to prestore.
If S802, the second target license resources server address are capable of providing the first resource information description
License resources, then using the second target license resources server address as the first object license resources service
Device address.
Here, dispatch server is if it is determined that the user information that the request of above-mentioned license resources carries has dedicated second target
It is above-mentioned then further to judge whether the second target license resources server address is capable of providing for license resources server address
The license resources of first resource information description described in license resources request, if so, the second target licensing provides
Source server address is as the first object license resources server address.
If S803, the second target license resources server address cannot be satisfied the first resource information description
License resources are then described according in the second target license resources server address corresponding to the first resource information
License resources Secondary resource information and the required license resources of user first resource information, determine described permitted
The information resources information of resource can be demonstrate,proved.
Here, if above-mentioned second target license resources server address is capable of being permitted for the type of first resource information description
The quantity for the license resources that resource can be demonstrate,proved, but be capable of providing cannot be satisfied the number of the license resources of first resource information description
Amount determines the volume residual of the license resources of the type of first resource information description.
S804, according to the contrast relationship table, search and be currently able to provide the described of information resources information description and permitted
At least one license server address of resource can be demonstrate,proved.
According to above-mentioned contrast relationship table, the licensing for the type for being currently able to provide the first resource information description is searched
At least one license server address of the volume residual of resource.
S805, from least one license for being currently able to provide the license resources that the information resources information describes
It demonstrate,proves and selects third target license resources server address in server address.
Here, the method for selection third target license resources server address can be with selection first object licensing money
The method of source server address is identical, such as is based on local first strategy.
S806, by the second target license resources server address and the third target license resources server
Address is as the first object license resources server address.
A kind of license resources dispatching method provided by the embodiments of the present application is applied to dispatch server, dispatch server
License resources are unified for shared resource pond, and the license resources are shared into multiple users while being used.Dispatch service
Device is currently able to provide above-mentioned license resources from resource pool after receiving the license resources request of terminal device transmission
In at least one license server address for asking the license resources of description, first object license resources server is selected
Address simultaneously returns to corresponding terminal device, so that the terminal device goes to search from first object license resources server address
Required license resources, in this way, the license resources request of user only needs to be sent to dispatch server, by dispatch service
Device is uniformly handled, and is realized the shared of license resources, is avoided user and need to attempt multiple license server ability
The problem of asking required license resources improves the utilization rate of license resources.
As shown in Figure 10, the embodiment of the present application also provides a kind of license resources dispatching devices, including:
Receiving module 11, the license resources request sent for receiving at least one terminal device;The licensing money
Source request carries the first resource information for being described the required license resources of user;
Selecting module 12, the license resources for being sent for each terminal device are asked, according to the license
The contrast relationship table of first resource information and preset resource information and license server address that resource request carries is demonstrate,proved,
It is selected from least one license server address for being currently able to provide the license resources that the first resource information describes
Select first object license resources server address;
The first object license resources server address of selection is sent to corresponding terminal device by sending module 13.
Optionally, the license resources request also carries user information;Above-mentioned license resources dispatching device also wraps
It includes:
Comparison module is used in being asked with the license resources for the first resource information in asking the license resources
Information corresponding default resource information in family is compared;
Selecting module 12 is believed specifically for meeting the corresponding default resource of the user information in the first resource information
When breath, from least one license server address for the license resources for being currently able to provide the first resource information description
Middle selection first object license resources server address.
Optionally, described device further includes:
Determining module, if the license resources for receiving multiple terminal devices transmission in predetermined time period are asked
It asks, then the corresponding shared class information of user information and license in being asked according to the license resources that each terminal device is sent
The use information for demonstrate,proving resource, determines the shared precedence information of the corresponding terminal device of each user information;
Respond module, for the sequence according to the corresponding shared precedence information of multiple terminal devices from big to small,
The license resources request that multiple terminal devices are sent is responded successively.
Optionally, selecting module 12 are specifically used for:
The first resource information and preset resource information and license service carried according to license resources request
The contrast relationship table of device address, from the license server address to prestore, lookup is currently able to provide the first resource letter
Cease at least one license server address of the license resources of description;
Network segment information where at least one license server address and license resources request
Target network segment information where corresponding terminal device, selection is in described from least one license server address
The license server address of target network segment information is as the first object license resources server address.
Optionally, selecting module 12 is specifically used for:
The first resource information and preset resource information and license service carried according to license resources request
The contrast relationship table of device address, from the license server address to prestore, lookup is currently able to provide the first resource letter
Cease at least one license server address of the license resources of description;
According to the license resources of the description of first resource information described at least one license server address
Use information selects the minimum number of the remaining license resources from least one license server address
License server address is as the first object license resources server address.
Optionally, the determining module, if being additionally operable to that current energy is not present in the license server address to prestore
At least one license server address for enough providing the license resources of the first resource information description, then permitted according to described
The first resource information of resource request carrying and the contrast relationship of preset resource information and license server address can be demonstrate,proved
Table determines the currently stored license resources for having the first resource information to describe and there are the not used license resources
Multiple license server addresses;
Sending module 13 is additionally operable to by the multiple license server address and the multiple license server
The surplus resources quantity for corresponding to the license resources of first resource information description in location is sent to the license resources
Ask corresponding terminal device.
Optionally, the license resources dispatching device further includes:
Searching module, for there is no to be currently able to provide described first in the license server address to prestore
When at least one license server address of the license resources of resource information description, from the license server address to prestore
In, lookup is capable of providing the license resources of the first resource information description but occupied at least one licensing clothes
Business device address;
The comparison module is additionally operable to the grade of the occupancy user information of at least one license server address
The class information for the user information that information is carried with license resources request respectively is compared;
Release module, for the license service by class information less than the occupancy user information occupancy of the user information
Device address is discharged.
Optionally, in the license resources dispatching device,
Selecting module 12 is specifically used for the user information carried according to license resources request and preset user
The contrast relationship table of information and license server address is searched and user information pair from the license server address to prestore
The the second target license resources server address answered;
The determining module is additionally operable to be capable of providing described first in the second target license resources server address
When the license resources of resource information description, using the second target license resources server address as the first object
License resources server address;
The determining module is additionally operable to cannot be satisfied described first in the second target license resources server address
When the license resources of resource information description, according to corresponding to described the in the second target license resources server address
The Secondary resource information of the license resources of one resource information description and the first resource of the required license resources of user
Information determines the information resources information of the license resources;
The searching module is additionally operable to according to the contrast relationship table, and lookup is currently able to provide the information resources letter
Cease at least one license server address of the license resources of description;
Selecting module, be additionally operable to from be currently able to provide license resources that the information resources information describes to
Third target license resources server address is selected in a few license server address;
Sending module 13 is additionally operable to permit the second target license resources server address and the third target
Resource Server address is demonstrate,proved as the first object license resources server address.
A kind of license resources dispatching device provided by the embodiments of the present application is applied to dispatch server, dispatch server
License resources are unified for shared resource pond, and the license resources are shared into multiple users while being used.Dispatch service
Device is currently able to provide above-mentioned license resources from resource pool after receiving the license resources request of terminal device transmission
In at least one license server address for asking the license resources of description, first object license resources server is selected
Address simultaneously returns to corresponding terminal device, so that the terminal device goes to search from first object license resources server address
Required license resources, in this way, the license resources request of user only needs to be sent to dispatch server, by dispatch service
Device is uniformly handled, and is realized the shared of license resources, is avoided user and need to attempt multiple license server ability
The problem of asking required license resources improves the utilization rate of license resources.
As shown in figure 11, the embodiment of the present application is a kind of license resources scheduling system, including:Terminal device 20 is (specific
Illustrate three terminal devices in Figure 11, be followed successively by terminal device 20a, terminal device 20b and terminal device 20c), scheduling clothes
Business device 30 and license resources server 40 (illustrate three license resources servers, are followed successively by license in specific Figure 11
Demonstrate,prove Resource Server 40a, license resources server 40b and license resources server 40c);
Terminal device 20, for sending license resources request to dispatch server 30;
Dispatch server 30, the license resources request for receiving the transmission of at least one terminal device 10;The license
Card resource request carries the resource information for being described the required license resources of user;Each terminal device 10 is sent
The license resources request, according to the license resources request carry resource information and preset resource information with permitted
The contrast relationship table that server address can be demonstrate,proved, from least the one of the license resources for being currently able to provide the resource information description
Selection target license resources server address in a license server address;By selection target license resources server
Location is sent to corresponding terminal device 10;
Terminal device 10 is additionally operable to send to the corresponding license server of the target license resources server address
The license resources request;
License resources server 40, for after receiving license resources request, by the resource of storage
The license resources of information description return to terminal device 10.
The embodiment of the present application license resources according to claim 9 dispatch system, and dispatch server 30 is multiple;
Multiple dispatch servers 30 share external virtual address, and terminal device 10 can be visited by the external virtual address
Ask multiple dispatch servers 30;
30 shared file storage system of multiple dispatch servers, when 30 failure of dispatch server, other scheduling clothes
Business device 30 is able to access that the shared file storage system.
In this way, the unified interface that dispatch server 30 is asked as license resources, once there is event in dispatch server 30
Barrier, the disaster that will cause user that can not use any license resources.Therefore license resources dispatch server is in operation system
In be a very basic and crucial service interface, it is necessary to accomplish High Availabitity.
In the actual use environment, 2 or multiple dispatch servers 30 can be disposed, using multiserver cluster and virtually
The technology of mapping network addresses realizes that the standby server of the master-of dispatch server 30 automatically switches, or master-master server dynamic
Load balancing, to ensure the High Availabitity of scheduling of resource.
License resources dispatching method provided by the embodiments of the present application, apparatus and system, have the advantages that:
1, licensing unifies access interface:All license servers are by dispatch server unified monitoring, all types
License resources request all submit to dispatch server and be uniformly processed, user requires no knowledge about where specific license server
Address, suitable license server is automatically found by dispatch server, resource is provided.
2, license resources United Dispatching distributes:The resource allocation rule definition license that can be formulated according to administrative department
The quotas administered of resource and scheduling strategy, and with reference to the loading condition of license server, license resources are carried out rational
Scheduling and using distribution, including granting resources quotas administered, granting resources Fairshare, granting resources local first distribution, it is broken
Piece preferentially distributes and multiple scheduling strategies such as granting resources priority is seized.
3, license resources, which merge, uses:The same license resources in multiple license servers can be will be distributed over
Be combined be supplied to it is large-scale using solving the problems, such as large-scale using can not start under resource fragmentation scene.
Figure 12 is the structural schematic diagram for the computer equipment that one embodiment of the application provides, as shown in figure 12, for executing
License resources dispatching method in Fig. 2, the equipment include memory 401, processor 402 and are stored on the memory 401
And the computer program that can be run on the processor 402, wherein above-mentioned processor 402 executes real when above computer program
The step of existing above-mentioned license resources dispatching method.
Specifically, above-mentioned memory 401 and processor 402 can be general memory and processor, do not do have here
Body limits, and when the computer program of 402 run memory 401 of processor storage, is able to carry out above-mentioned license resources scheduling
Method.
Corresponding to the license resources dispatching method in Fig. 2, computer-readable deposited the embodiment of the present application also provides a kind of
Storage media is stored with computer program on the computer readable storage medium, which executes when being run by processor
The step of above-mentioned license resources dispatching method.
Specifically, which can be general storage medium, such as mobile disk, hard disk, on the storage medium
Computer program when being run, be able to carry out above-mentioned license resources dispatching method.In this way, the license resources request of user
It only needs to be sent to dispatch server, uniformly be handled by dispatch server, realize the shared of license resources, avoid
User needs to attempt the problem of multiple license servers just can request that required license resources, improves licensing money
The utilization rate in source.
The device for the license resources scheduling that the embodiment of the present application is provided can be specific hardware or peace in equipment
Loaded on the software or firmware etc. in equipment.The technique effect of the device that the embodiment of the present application is provided, realization principle and generation
Identical with preceding method embodiment, to briefly describe, device embodiment part does not refer to place, can refer to preceding method embodiment
Middle corresponding contents.It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description is
The specific work process of system, device and unit can refer to the corresponding process in above method embodiment, no longer superfluous herein
It states.
In embodiment provided herein, it should be understood that disclosed device and method, it can be by others side
Formula is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only one kind are patrolled
Volume function divides, formula that in actual implementation, there may be another division manner, in another example, multiple units or component can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some communication interfaces, device or unit
It connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in embodiment provided by the present application can be integrated in a processing unit, also may be used
It, can also be during two or more units be integrated in one unit to be that each unit physically exists alone.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of step.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
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, in addition, term " the
One ", " second ", " third " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Finally it should be noted that:Embodiment described above, the only specific implementation mode of the application, to illustrate the application
Technical solution, rather than its limitations, the protection domain of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen
It please be described in detail, it will be understood by those of ordinary skill in the art that:Any one skilled in the art
In the technical scope that the application discloses, it can still modify to the technical solution recorded in previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution.The protection in the application should all be covered
Within the scope of.Therefore, the protection domain of the application should be based on the protection scope of the described claims.