Specific embodiment
It is specifically real below in conjunction with the application to make purpose, technical scheme and the advantage of the application clearer
Apply example and corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, it is described
Embodiment is only some embodiments of the present application, rather than the embodiment of whole.Based on the enforcement in the application
Example, the every other enforcement that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of the application protection.
As shown in figure 1, the embodiment of the present application provides a kind of resource allocation process, following steps are specifically included:
S101:Determine the stock number needed for Added Business.
Just it has been observed that under practical application scene, service provider is various in order to ensure to provide the user
The service of change, can constantly increase different types of business (that is, Added Business) newly on the basis of original business.
When putting into operation, service provider will be Added Business distribution resource to Added Business, so as to subsequently can be just
Often operation.In the embodiment of the present application, described resource can be the process money of the equipment such as server, terminal
Source is (such as:Internal memory usage amount, Center Processing Unit Utilization etc.), can also be typing in a management system
Personal information etc..Here the restriction to the application is not constituted.
Stability and efficiency when many major generals of above-mentioned resource run on Added Business produces impact, so, it is
Added Business can will determine Added Business institute with trouble-free operation in above-mentioned steps in guarantee subsequent process
The quantity (that is, stock number) of the resource for needing, to distribute appropriate money for Added Business in subsequent process
Source.
S102:Determine that all business of having run distinguish corresponding resource.
For service provider, it will usually which operation has a number of business (that is, business having been run),
These business are when putting into operation, it is also desirable to using a number of resource, just it has been observed that providing in service
Side is internal, and the total amount of its resource for possessing is typically limited, and the business run may take great majority
Or the resource of whole, in order to be directed to the resource of Added Business distribution respective numbers it is necessary to determine this
A little resources run shared by business.
S103:Stock number according to needed for the Added Business and respectively the corresponding resource of business has been run, from
Respectively calling resource in the corresponding resource of business has been run, and distribute to the Added Business.
Wherein, business has been run for arbitrary, from after calling resource in the resource that this has run business, this is
The corresponding stock number of operation business is not less than this and has run the corresponding default stock number threshold value of business.
The different quantity for running the shared resource in running of business is generally different, at this
In a little resources run corresponding to business, if therefrom transferring a small amount of resource, can't affect to have run industry
The normal operation of business, so as to also just can be from service provider run in the resource of business is transferred
Go out appropriate resource allocation to Added Business, so that the Added Business obtains the resource of its resource requirement amount,
So as to ensure that Added Business can normally run.
It should be noted that for operation business, the resource transferred from operation business is not
Can be excessive, otherwise will affect to have run the normal operation of business, it is each to run as described in this step
Business is usually constructed with each self-corresponding default stock number threshold value, and default stock number threshold value is reflected each transports
The stock number that industry is done honest work often needed for operation.Therefore in order to ensure after the transferring of resource is carried out, industry have been run
Business still can normally run, and for arbitrary business has been run, from after calling resource in the resource that this has run business,
This has run the corresponding stock number of business and has been not less than this and has run the corresponding default stock number threshold value of business.
Above-mentioned resource allocation process, specifically can have centralized management, distribution work(by service provider inside
Can system realize, that is, the system can be from running calling resource in the corresponding resource of business, and for new
Increasing business carries out resource allocation.Wherein, as a kind of possible mode, described system can be by with pipe
The server cluster of reason function is constituted, and certainly, the restriction to the application is not constituted here.
By above-mentioned steps, when Added Business puts into operation in service provider, corresponding management system meeting
Determine the stock number needed for the Added Business, and each self-corresponding resource determined in all business of operation,
The corresponding resource of business has been run often there is certain more than needed, therefore resource that can be according to needed for Added Business
And each resource for having run business, distribute to newly-increased industry from calling resource in the corresponding resource of business is run
Business.Unlike prior art, using the method for salary distribution in the application, efficiently utilize and run
Resource more more than needed in business, is allocating resources to Added Business so that what the Added Business normally ran
Meanwhile, business has been run still has been able to normal operation, utilization rate of the significant increase to resource, additionally, using
The method of salary distribution in the application can also at utmost be reduced and run closing down for business.
In actual applications, generally have between the different quantity for running the resource corresponding to business certain
Difference:It is more that some have run the corresponding resource of business, and some are then less.For possessing compared with multiple resource
The business of operation for, if therefrom transferring a number of resource, can't also affect this to run business
Normal operation, conversely, for for the business of operation for possessing fewer resource, therefrom calling resource may
The normal operation for having run business can be affected.That is, distributing for Added Business
During resource, the number of resource that can be according to corresponding to running business is determining to carry out resource tune
The operation business of institute's prioritizing selection when taking.
This is based on, in the embodiment of the present application, from respectively having run calling resource in the corresponding resource of business,
Specifically include:According to default each interval, determine respectively run what the corresponding stock number of business was fallen into respectively
Interval, it is interval for each successively according to different interval priority high order on earth again, from stock number
Fall into running in the resource of business for the interval, calling resource, until the total resources transferred is not less than
Till stock number needed for the Added Business.
Interval described in the embodiment of the present application is to be carried out dividing the different steppings of formation according to stock number, can be with
Think, by way of demarcation interval, the quantity that the resource corresponding to business has respectively been run can be divided into difference
Gear.Certainly, the interval quantity for being divided can be adjusted according to the needs of practical application, here
The restriction to the application is not constituted.
Under a kind of mode in the embodiment of the present application, the numerical value in interval can represent stock number, that is, number
The big interval expression stock number of value is more, and its priority is also higher;And the little interval of numerical value also means that resource
Amount is few, and its priority is also lower.So, when carrying out resource and transferring, by preferentially from the interval that numerical value is big
Corresponding to have run in the resource of business, calling resource distributes to Added Business.Now, if distributed to new
The quantity of the resource of increasing business and the stock number not up to needed for the Added Business, then, just according to priority
Sequentially, run in the resource of business from next interval is corresponding, calling resource distributes to Added Business.With
This analogizes, till the stock number that the total resources transferred is not less than needed for the Added Business.
Under another way in the embodiment of the present application, the numerical value in interval can also represent resource surplus capacity,
That is, the numerical value in interval is bigger, represent that resource surplus capacity is also more, correspondingly priority is also higher;
Conversely, resource surplus capacity is also fewer, its priority is also lower.In this mode, resource surplus capacity
It is determined that, can run the corresponding stock number threshold value of business itself and obtained according to each, such as:Certain runs
The stock number threshold value of business is 10 (representing that this has run the resource that 10 units are needed when business is normally run),
Assume that the current quantity for having run the corresponding resource of business is 15, it is clear that for this operation business,
Its resource surplus capacity is 5.Here only it is a kind of example, does not constitute the restriction to the application.Similarly,
Priority orders when resource is transferred are carried out under which, it is similar with a upper mode, therefore will not be described here.
It is each interval interior in view of practical application, some different operation business are often correspond to, and
In actual applications, the different grades of service for running business is often different:Some business are more important,
So, its grade of service is higher;And some significance levels for having run business are relatively low, correspondingly, its business
Grade is relatively low.So, carrying out during resource transfers, preferentially to run from business is junior
Calling resource in business, if stock number of the total resources transferred needed for reach Added Business, then,
Just no longer transfer the high operation business of the grade of service.
Therefore, in the embodiment of the present application, specifically, the operation business in the interval is fallen into from stock number
Resource in, calling resource is specifically included:Determine that stock number falls into each of the interval and run business
The grade of service, according to grade of service order from low to high, falls into each of the interval and has transported from stock number
Industry is engaged in corresponding resource, calling resource.
In view of in practical application, Added Business often also has the grade of service, then, transfer in resource
During, from calling resource in the business of operation of the grade of service higher than Added Business, and can't only can
Calling resource in the business of operation matched from the grade of service with Added Business, so, as the application
A kind of mode in embodiment, calling resource in each resource for having run business in the interval is fallen into from stock number,
Specifically include:Determine the grade of service of the Added Business, fall into the interval from stock number, and business etc.
Level is not higher than calling resource in each resource for having run business of the grade of service of the Added Business.
For the above, now it is described in detail with a concrete application example:
In this example, it is assumed that the grade of service in service provider is specifically divided into:High, medium and low three kinds etc.
Level;
Assume it is interval according to resource surplus capacity number divided, according to the order of numerical values recited, obtain three
Plant interval:Q1 (resource surplus capacity >=6), Q2 (6>Resource surplus capacity >=1), Q3 (resource surplus capacities<1).
Wherein, interval Q1 represents that resource surplus capacity is larger, even if the business of operation in the interval is transferred
A number of resource, still also is able to normal operation;Interval Q2 represents that resource surplus capacity is less, in this
The business of operation in interval has been transferred after a number of resource, it is possible to the normal fortune to running business
Row produces a certain degree of impact;Interval Q3 represents that resource surplus capacity is seldom possibly even deficient in resources (Q3
In numerical value can be negative value, represent the quantity that is deficient in resources), run business in the interval
Running status is unstable, if the calling resource again from these operation business, it is possible to cause the business can not
Operation.
Simultaneously, it is assumed that current altogether operation has three to run business Y1, Y2, Y3 in service provider.
These three have run whole resources that business has occupied service provider itself, now have an Added Business to incite somebody to action
Put into operation, therefore the system in service provider will be the Added Business from calling resource in operation business
Distribution resource, specifically:
Management system in service provider first by determine Added Business needed for stock number (assume needed for
Stock number be 10), and the Added Business the grade of service (assume the grade of service be:In).
Management system will determine that stock number falls into each of interval Q1~Q3 and run business, it is clear that right
For interval Q1, the corresponding stock number for having run business in the interval is more, therefore will preferentially from interval Q1
Calling resource in the corresponding resource for having run business.
Corresponding some business of having run have the different grades of service in interval Q1, it is assumed that specific as follows
Shown in table 1:
Table 1
It is visible in table 1, in interval Q1, contain three and run business:Y1, Y2 and Y3,
Wherein, the grade of service for business Y1 having been run is:Low and current resource surplus capacity is 8;Run
The grade of service of business Y2 is:In, and current resource surplus capacity is 7;The business of business Y3 has been run
Grade is:Height, and current resource surplus capacity is 10.
Just it has been observed that the grade of service is higher, then, the business is also more important, in order to ensure the grade of service
The high business of operation can normally be run, so, by the preferentially tune from the grade of service low business of operation
Resource, and the order according to the grade of service from low to high are taken, the operation industry of different business grade is transferred respectively
The resource of business.So, when transferring to three resources for having run business shown in table 1, will
Follow grade of service order from low to high.That is, preferentially being adjusted from the resource run in business Y1
Take.
Specifically, the process of transferring in this example for having run business in the Q1 of interval is:Preferentially from
In the resource of operation business Y1,2 resources are transferred out, then from running in the resource of business Y2, adjusted
Take 1 resource.For business Y3 is run, because its grade of service is higher than the business of Added Business
Grade, therefore can't be from calling resource in the resource for running business Y3.
Current time, the total resources that Added Business is obtained is 3, and the stock number 10 not up to needed for it,
So, calling resource will be continued:Continue to transfer 1 money respectively from running in business Y1 and Y2
Source, distributes to Added Business (total resources for now distributing to Added Business is 5).So, transport
Industry business Y1 and Y2 Current resource surplus capacities are respectively less than 6, i.e., less than the minimum of interval Q1, so,
It is interval that the front resource surplus capacity for running business Y1 and Y2 now is just reduced to Q2, as shown in table 2.
Table 2
The state for running business in for table 2, will preferentially from run calling resource in business Y1 (and
Ensure after calling resource, the minimum of the stock number less than interval Q2 of business Y1 run), that is,
4 resources are transferred from running in business Y1, Added Business is distributed to, now, Added Business is distributed to
Total resources be 9, the still stock number 10 not up to needed for it, therefore, then from running in business Y2
1 resource is transferred, Added Business is distributed to.
So far, the total resources that Added Business is obtained is 10, the stock number being not less than needed for it, then,
The Added Business can normally run.Also, above-mentioned business Y1 and Y2 run can also keep fortune
OK.
Examples detailed above be only in order to clearly describe the example of resource allocation process in the application, in actual applications,
Examples detailed above is not limited to the method for salary distribution of resource, for example:Stock number needed for Added Business is larger, Jing
After above-mentioned process is crossed for the Added Business distribution resource, the total resources of distribution is thought to reach Added Business institute
The stock number for needing, then, the business of operation that can be by low business-level and in interval Q3 is closed down,
This has been run again all resource allocations of business to Added Business.It can be seen that, in actual applications, can be with root
According to the needs of practical application, the mode of resource allocation is adjusted, the above does not constitute the restriction to the application.
Additionally, in practical application, the resource needed for the resource and Added Business shared by business has been run,
There may be plurality of classes, if a business can normally be run, generally require propping up for different classes of resource
Hold.By taking resource behaviour person's information as an example:In this case, different classes of resource can be just inhomogeneity
Other personal information is (such as:Tester's information, developer's information, architect information etc.).
In arbitrary business, for different classes of resource, the resource of each classification has respective money
Source is measured, therefore, in the embodiment of the present application, above-mentioned steps S101 determine the stock number needed for Added Business,
Specifically include:Determine the stock number of each class resource needed for Added Business.Above-mentioned steps S103, according to institute
State the stock number needed for Added Business and respectively run the corresponding resource of business, it is corresponding from business has respectively been run
Resource in calling resource, specifically include:Each class resource needed for for the Added Business, according to institute
The stock number of such resource needed for Added Business is stated, and has respectively run the corresponding resource of business, from respectively
Calling resource in corresponding such resource of operation business.
For each class resource in arbitrary business of operation, run in corresponding such resource of business from this
After calling resource, such stock number is not less than the default stock number that this has run the corresponding each class resource of business
Threshold value.
That is, having run each class resource of business, corresponding stock number threshold value is designed with, if newly
Increasing business is also required to such resource, and service provider can transfer such resource from this operation business, also,
After transferring, the quantity that such remaining resource of business has been run is not less than default stock number threshold value,
If distributing to the total amount of such resource of Added Business to reach its resource requirement amount, then, then from other
Such resource is transferred in operation business.
It can be seen that, by above-mentioned steps, adopt the method for salary distribution of the application can also accurately for Added Business institute
The different classes of resource for needing, is deployed into the resource of the classification that matches.
In sum, the distribution method of the application is applied to the scene of all kinds of business resource requirements, also including item
Mesh administrative center (Project Management Office, PMO) system is different in PMO systems
Resource needed for business item is personal information, by the method for salary distribution in the application, item can be run from
It is that new projects distribute different classes of personal information in personal information shared by mesh, after being assigned,
In the way of to allocate announcement information, the allotment of personnel is realized.For personal information assigning process with it is above-mentioned
Content is similar, therefore here is not excessively repeated.
The resource allocation methods for providing for the embodiment of the present application above, based on same thinking, the application is implemented
Example also provides a kind of resource allocation device, as shown in Figure 2.Described device includes:
First determining module 201, the stock number needed for for determining Added Business.
Second determining module 202, for determining that all business of having run distinguish corresponding resource.
Distribute module 203, for the stock number according to needed for the Added Business and has respectively run business pair
The resource answered, from respectively having run calling resource in the corresponding resource of business, and distributes to the Added Business.
Wherein, business has been run for arbitrary, from after calling resource in the resource that this has run business, this is
The corresponding stock number of operation business is not less than this and has run the corresponding default stock number threshold value of business.
The distribute module 203, specifically for according to default each interval, determining respectively run business respectively
The interval that corresponding stock number is fallen into, according to different interval priority order from high to low, pin successively
It is interval to each, fall into the running in the resource of business of the interval, calling resource, Zhi Daosuo from stock number
Till the total resources transferred is not less than the stock number needed for the Added Business.
The distribute module 203, specifically for determining that stock number falls into each of the interval business has been run
The grade of service, according to grade of service order from low to high, falls into each of the interval and has transported from stock number
Calling resource in the resource of industry business.
The distribute module 203, the grade of service specifically for determining the Added Business, falls from stock number
Enter in the interval, and the grade of service is not higher than each money for having run business of the grade of service of the Added Business
Calling resource in source.
First determining module 201, the resource of each class resource needed for specifically for determining Added Business
Amount;
The distribute module 203, each class resource needed for specifically for being directed to the Added Business, according to
The stock number of such resource needed for the Added Business, and respectively run the corresponding resource of business, from each
Calling resource in corresponding such resource of business has been run.
Wherein, for each class resource in arbitrary business of operation, from this run business it is corresponding such
In resource after calling resource, such stock number is not less than this and has run the default of the corresponding each class resource of business
Stock number threshold value.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read-only storage (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by appointing
What method or technique is realizing information Store.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read-only storage (ROM), electrically erasable are read-only
Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated
The information that equipment is accessed.Define according to herein, computer-readable medium does not include temporary computer-readable matchmaker
The data-signal and carrier wave of body (transitory media), such as modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant are intended to non-row
His property is included, so that a series of process, method, commodity or equipment including key elements not only includes
Those key elements, but also including other key elements being not expressly set out, or also include for this process,
The intrinsic key element of method, commodity or equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that including the process of the key element, method, commodity or setting
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or with reference to software and
The form of the embodiment of hardware aspect.And, the application can be adopted and wherein include calculating at one or more
Machine usable program code computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM,
Optical memory etc.) on implement computer program form.
Embodiments herein is the foregoing is only, the application is not limited to.For this area skill
For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle
Any modification, equivalent substitution and improvements of work etc., within the scope of should be included in claims hereof.