CN104301257B - A kind of resource allocation methods, device and equipment - Google Patents
A kind of resource allocation methods, device and equipment Download PDFInfo
- Publication number
- CN104301257B CN104301257B CN201410476386.3A CN201410476386A CN104301257B CN 104301257 B CN104301257 B CN 104301257B CN 201410476386 A CN201410476386 A CN 201410476386A CN 104301257 B CN104301257 B CN 104301257B
- Authority
- CN
- China
- Prior art keywords
- resource
- service application
- time
- reserve
- expected
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of resource allocation methods, device and equipment, the lifetime property information of service application is obtained in the present invention, service application described in the lifetime property message reflection is expected to take the temporal information of resource;It is determined to optimize the reserve resource of resource utilization in the follow-up expectable time based on the lifetime property information, and the reserve resource is preengage for the service application;When reaching the initial time of the service application expection occupancy resource, the reserve resource is distributed into the service application.Enable to the resource utilization in infrastructure management system to be optimized within the expectable time by the present invention, and keep Optimal State.
Description
Technical field
The present invention relates to resource allocation techniques field, more particularly to a kind of resource allocation methods, device and equipment.
Background technology
With the popularization of cloud concept, the layer architecture of service application layer and management level is widely used in requirement resource dynamic point
In the solution matched somebody with somebody.
Service application sends service resources request to infrastructure management system, with the base needed for application processing specific transactions
Infrastructure resource is to run the example.Asked in the service resources request that infrastructure management system is sent for service application
Resource specification (resource specification physical specification or some other quality such as can be CPU, internal memory and network connection
Attribute specification), and available resource distribution situation in system, carry out comprehensive analysis and carry out the distribution of resource.
At present, it is preferential to choose on the premise of resource specification is met when infrastructure management system carries out resource allocation
The infrastructure resources entity enabled carries out resource allocation, as far as possible without using the infrastructure resources entity of not enabled, and is selecting
The infrastructure resources entity that prioritizing selection surplus resources are minimum in the infrastructure resources entity taken carries out resource allocation, in industry
After business application occupancy resource time reaches, resource is released.
The process of above-mentioned carry out resource allocation can improve resource utilization to a certain extent, however, different business should
With take resource time be not quite similar, such as the resource (1/2) in Fig. 1 on infrastructure resources entity 1 after a short period of time by
Release, but the resource (1/2) in the resource (1/4) and infrastructure resources entity 2 on infrastructure resources entity 1 needs to grow
Phase is occupied, although the resource that resource (1/4) takes infrastructure resources entity is less, still needs to run infrastructure
Resource entity 1, therefore need to run infrastructure resources entity 1 and infrastructure resources entity 2, infrastructure management system simultaneously
In resource utilization be difficult keep in a long time optimization state.
The content of the invention
The embodiment of the present invention provides a kind of resource allocation methods, device and equipment, to optimize in infrastructure management system
Resource utilization.
First aspect, there is provided a kind of resource allocation methods, including:
The lifetime property information of service application is obtained, service application described in the lifetime property message reflection is pre-
Phase takes the temporal information of resource;
It is determined to optimize the reservation of resource utilization in the follow-up expectable time based on the lifetime property information
Resource, and preengage the reserve resource for the service application;
When reaching the initial time of the service application expection occupancy resource, the reserve resource is distributed into the industry
Business application.
With reference in a first aspect, in the first implementation, before preengaging the reserve resource for the service application, institute
Stating method also includes:
On the premise of resource utilization meets further optimal conditions within the follow-up expectable time, reserve resource is entered
Row reappoints.
With reference to the first of first aspect or first aspect implementation, in second of implementation, the acquisition
The lifetime property information of service application, including:
Service resources request interface is called to carry service application lifetime property informational function;
Service application lifetime property informational function is carried by the service resources request interface of calling, obtaining business should
Lifetime property information.
With reference to any of the above-described kind of implementation of first aspect, in the third implementation, based on the life cycle
Attribute information is determined to optimize the reserve resource of resource utilization in the follow-up expectable time, including:
In the part resource set of setting, based on the lifetime property information, prioritizing selection can optimize follow-up
The reserve resource of resource utilization in the expectable time.
Second aspect, there is provided a kind of resource allocation device, including acquiring unit, appointment unit and allocation unit, wherein:
The acquiring unit, for obtaining the lifetime property information of service application, the lifetime property information
Reflect that the service application is expected to take the temporal information of resource;
The appointment unit, it is excellent for being determined to based on the lifetime property information that the acquiring unit obtains
Change the reserve resource of resource utilization in the follow-up expectable time, and the reserve resource is preengage for the service application;
The allocation unit, will be described pre- for when reaching the service application and being expected to take the initial time of resource
The reserve resource of about unit reservation distributes to the service application.
With reference to second aspect, in the first implementation, described device also includes reappointing unit, wherein:
It is described to reappoint unit, before resource utilization meets further optimal conditions within the follow-up expectable time
Put, be that before the service application preengages the reserve resource, reserve resource is reappointed in the appointment unit.
With reference to the first of second aspect or second aspect implementation, in second of implementation, the acquisition
Unit, the lifetime property information specifically for obtaining service application as follows:
Service resources request interface is called to carry service application lifetime property informational function;
Service application lifetime property informational function is carried by the service resources request interface of calling, obtaining business should
Lifetime property information.
With reference to any implementation of second aspect, in the third implementation, the appointment unit, it is specifically used for
It is determined to optimize the pre- of resource utilization in the follow-up expectable time based on the lifetime property information as follows
About resource:
In the part resource set of setting, based on the lifetime property information, prioritizing selection can optimize follow-up
The reserve resource of resource utilization in the expectable time.
The third aspect, there is provided a kind of resource allocation apparatus, including communication interface, memory and processor, wherein:
The memory, for storing the program code of the computing device;
The processor, for calling the program code of the memory storage, implement function such as:
The lifetime property information of service application, the lifetime property message reflection industry are obtained by communication interface
The expected temporal information for taking resource of business application, and based on the lifetime property information be determined to optimize follow-up expectable
The reserve resource of resource utilization in time, the reserve resource is preengage for the service application, be expected reaching service application
When taking the initial time of resource, the reserve resource is distributed into the service application.
With reference to the third aspect, in the first implementation, the processor, it is additionally operable to:
On the premise of resource utilization meets further optimal conditions within the follow-up expectable time, answered for the business
With before preengaging the reserve resource, reserve resource is reappointed.
Resource allocation methods, device and equipment provided in an embodiment of the present invention, obtain the lifetime property of service application
It information, can reflect that service application is expected to take the temporal information of resource in the lifetime property information, therefore can know in advance
The resource occupied time in the follow-up expectable time.After the lifetime property information for being then based on obtaining is determined to optimization
After the reserve resource of resource utilization in the expectable time, the reserve resource is preengage for service application, is reaching service application
It is expected that when taking the initial time of resource, the reserve resource is distributed into service application, enables to infrastructure management system
Resource utilization in system is optimized within the expectable time, and keeps Optimal State.
Brief description of the drawings
Fig. 1 is resource allocation schematic diagram in the prior art;
Fig. 2 is the applicable system architecture diagram of the embodiment of the present invention;
Fig. 3 is that resource allocation apparatus provided in an embodiment of the present invention forms schematic diagram;
Fig. 4 is resource allocation methods flow chart provided in an embodiment of the present invention;
Fig. 5 A are existing resource assigning process schematic diagram;
Fig. 5 B are resource allocation process schematic diagram provided in an embodiment of the present invention;
Fig. 6 A are that resource allocation device provided in an embodiment of the present invention forms schematic diagram;
Fig. 6 B form schematic diagram for another resource allocation device provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, is not whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Fig. 2 show the applicable system architecture schematic diagram of resource allocation methods provided in an embodiment of the present invention, such as Fig. 2 institutes
Show, the service resources request interface of infrastructure management system has the service resources request function for obtaining service application, basis
The service resources that facilities management system obtains service application by resource request interface are asked, and resource allocation is based on management module
The service resources request of acquisition, selects resource to be distributed for service application in resource pool.Expansible business in the embodiment of the present invention
The function of resource request interface, the function for the lifetime property information for obtaining service application is made it have, obtain service application
Lifetime property information, lifetime property message reflection service application be expected take resource temporal information.Resource point
With resource allocation is carried out with lifetime property information of the management module based on acquisition, basis is set within the scheduled time with reaching
Apply the purpose that the resource utilization in management system optimizes.
It should be noted that the resource allocation methods provided in the embodiment of the present invention are not limited to the system shown in Fig. 2
Resource allocation function is applied also in Organization Chart, such as the embodiment of the present invention and passes through two single moulds with resource management function
Block is realized.
The embodiment of the present invention provides a kind of resource allocation apparatus 300, and the resource allocation apparatus 300 as shown in Figure 3 includes logical
Believe interface 301, memory 302 and processor 303.Certainly according to actual conditions, the resource allocation that is provided in the embodiment of the present invention
Equipment 300 may also include communication bus, and the embodiment of the present invention does not limit.
Communication interface 301 in the embodiment of the present invention, using a kind of device of such as transceiver, with other equipment or communication network
Network communicates, such as Ethernet, wireless access network (RAN), WLAN (Wireless Local Area Networks, WLAN)
Deng.
Memory 302 in the embodiment of the present invention can be read-only storage (read-only memory, ROM) or can deposit
Storage static information and the other kinds of static storage device of instruction, random access memory (random access memory,
RAM) or can storage information and the other kinds of read-only storage of dynamic memory or electric erazable programmable of instruction
Device (Electrically Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc
(Compact Disc Read-Only Memory, CD-ROM) or other optical disc storages, laser disc storage (including compression laser disc, swash
Laser disc, laser disc, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can use
In carry or storage with instruction or data structure form desired program code and can by computer access it is any its
His medium, but not limited to this.
Processor 303 in the embodiment of the present invention, can be a general central processors (CPU), and microprocessor is specific to answer
It is used to control with integrated circuit (application-specific integrated circuit, ASIC), or one or more
The integrated circuit that the present invention program program performs.
Memory 302 in the embodiment of the present invention, for storing the program code of the execution of processor 303.
Processor 303, for the program code for calling memory 302 to store, implement function such as:
The lifetime property information of service application, the lifetime property message reflection are obtained by communication interface 301
Service application is expected to take the temporal information of resource.
Lifetime property information based on acquisition is determined to optimize the pre- of resource utilization in the follow-up expectable time
About resource, and be the reserve resource that service application preengages the determination;It is expected to take the initial time of resource reaching service application
When, the reserve resource of determination is distributed into service application.
In one implementation, processor 303 is additionally operable in the embodiment of the present invention:
On the premise of resource utilization meets further optimal conditions within the follow-up expectable time, answered for the business
With before preengaging the reserve resource, reserve resource is reappointed;Wherein, refer to can be to rear for further optimal conditions
Tuning is carried out after the resource allocation in the expectable time, such as overall resource utilization highest can be made.
Specifically, communication interface 301 can be service resources request interface in the embodiment of the present invention, the service resources are asked
Interface has the expanded function for carrying service application lifetime property information, and processor 303 can call service resources request to connect
Mouth carries service application lifetime property informational function;Service application life is carried by the service resources request interface of calling
Cyclic attributes informational function, obtain the lifetime property information of service application.
Specifically, processor 303 can be based on the lifetime property information in the following way in the embodiment of the present invention
It is determined to optimize the reserve resource of resource utilization in the follow-up expectable time:
A:It is determined that infrastructure resources entity is enabled in setting resource collection.
Set in the embodiment of the present invention resource collection can be whole resources in infrastructure management system or
Part resource in infrastructure management system.
In the embodiment of the present invention preferably in infrastructure management system setting section resource, carry out being based on life cycle category
Property information carry out resource allocation so that infrastructure management system can externally support original distribution mechanism (not consider to provide simultaneously
The life cycle that source takes), and the mechanism based on life cycle information progress resource allocation.And set in the embodiment of the present invention
Determine part resource to carry out carrying out resource allocation based on life cycle information, the uncertain right of original resource allocation mechanism can be avoided
The influence of resource allocation is carried out based on lifetime property information.
B:In the part resource set of setting, based on lifetime property information, prioritizing selection can optimize it is follow-up can
The reserve resource of resource utilization in expeced time.
In the embodiment of the present invention, such as resource occupied time and life cycle within the follow-up expectable time can be selected
It is expected in attribute information to take that resource time is close and what unallocated resource met resources supplIes needed for service application has enabled base
Resource on Infrastructure resource entity, as reserve resource.
The resource allocation apparatus 300 of the above-mentioned offer of the embodiment of the present invention, can be infrastructure management system or
Part in infrastructure management system, the embodiment of the present invention do not limit.
Resource allocation apparatus 300 provided in an embodiment of the present invention, obtain the lifetime property information of service application, the life
It can reflect that service application is expected to take the temporal information of resource in life cyclic attributes information, therefore can know in advance follow-up expectable
The resource occupied time in time.When the lifetime property information for being then based on obtaining is determined to optimize follow-up expectable
The reserve resource of interior resource utilization, the reserve resource is preengage for service application, be expected to take money reaching service application
During the initial time in source, the reserve resource is distributed into service application, enables to the resource in infrastructure management system
Utilization rate is optimized within the expectable time, and keeps Optimal State.
The implementation method of resource allocation methods will be described in detail below the embodiment of the present invention.
Fig. 4 show resource allocation methods implementation process figure provided in an embodiment of the present invention, the execution master of method shown in Fig. 4
Body for example can be the part of infrastructure management system or infrastructure management system, and the embodiment of the present invention is not done
Limit.As shown in figure 4, this method includes:
S101:Obtain the lifetime property information of service application.
Lifetime property message reflection service application is expected to take the temporal information of resource in the embodiment of the present invention.
Expandable resource request interface has the work(for carrying service application lifetime property information in the embodiment of the present invention
Can, by calling service resources request interface to carry service application lifetime property informational function, obtain the life of service application
Order cyclic attributes information.
Lifetime property information can be for example indicated using structure as shown in table 1 below in the embodiment of the present invention,
Table 1
It should be noted that lifetime property information is not limited to some examples cited by table 1 in the embodiment of the present invention
Son, it should also include any mode that can be used for description resource to be expected the occupied time.Such as it can also be a time list
For listing the usage time in expected each irregular (non-repeatability cycle).
S102:It is determined to optimize the reservation of resource utilization in the follow-up expectable time based on lifetime property information
Resource, and be the reserve resource that service application preengages the determination.
The reserve resource determined in the embodiment of the present invention for service application reservation, the reserve resource that this is reserved be not real
It is allocated and takes, but the reserve resource is within the time being reserved, it is impossible to is reserved or distributes to again except being currently reserved
Service application beyond other service applications.
It is determined to optimize resource profit in the follow-up expectable time based on lifetime property information in the embodiment of the present invention
During the reserve resource of rate, when the infrastructure resources number of entities that can use to reduce resource fragmentation, enable is minimum, long
Between be in Optimal State in it is at least one be optimization aim, carry out the determination of reserve resource.
For example, based on lifetime property information it is determined to optimize the follow-up expectable time in the embodiment of the present invention domestic-investment
The process of the reserve resource of source utilization rate, can be in the following way:
It is determined that having enabled infrastructure resources entity in setting resource collection, and determine to have enabled infrastructure resources entity
On distributed resource and reserve resource be expected take resource time.
Prioritizing selection is expected within the follow-up expectable time in resource occupied time and the lifetime property information
Take that resource time is close and what unallocated resource met resources supplIes needed for service application has enabled infrastructure resources entity
On resource, as reserve resource.
S103:When reaching the initial time of service application expection occupancy resource, reserve resource is distributed into service application.
Resource allocation methods provided in an embodiment of the present invention, obtain the lifetime property information of service application, the life
When can reflect that service application is expected to take the temporal information of resource in cyclic attributes information, therefore can know follow-up expectable in advance
The interior resource occupied time.The lifetime property information for being then based on obtaining is determined to optimize the follow-up expectable time
The reserve resource of interior resource utilization, the reserve resource is preengage for service application, be expected to take resource reaching service application
Initial time when, the reserve resource is distributed into service application, enable in infrastructure management system resource profit
Optimized with rate within the expectable time, and keep Optimal State.
The lifetime property information based on service application is that service application carries out resource reservation in the embodiment of the present invention
Reserve resource, really do not distributed and taken, therefore pass through the change to reservation information in the embodiment of the present invention, you can realizing will be another
The resource reservation of one infrastructure resources entity is to service application, and without regard to any resource migration technology, technology is realized simple
It is easy.
Optionally, it is in the embodiment of the present invention in order to further reach in infrastructure management system in resource long-time
On the premise of Optimal State, i.e. resource utilization meet further optimal conditions, reserve resource can be reappointed, its
In, further optimal conditions, such as can reduce resource fragmentation, the infrastructure resources number of entities that enables can be made
At least or the infrastructure resources entity in infrastructure management system can be enable to be in Optimal State in a long time.
Such as in the embodiment of the present invention can on current infrastructure resource entity reserve resource when follow-up expectable
Interior resource occupation time is close with the time of the expected occupancy resource of current business application and current infrastructure resource entity
In the case that unallocated resource is unsatisfactory for resource needed for current business application, to having preengage money on current infrastructure resource entity
Source is reappointed, by the resource allocation needed for the resource preengage and current application to same foundation facility resource entity,
Optimize resource utilization.
The process of above-mentioned carry out resource allocation is described in detail below with reference to practical application for the embodiment of the present invention.
Assume that the resource specification of the infrastructure resources entity in infrastructure management system is identical in the embodiment of the present invention,
Total resources is designated as 1S, and resource corresponding to 3 infrastructure resources entities is respectively Sn, n=1,2 and 3.Service application application
Resource specification is tri- kinds of 0.25S, 0.5S or 0.75S (resource specification is various dimensions in reality).Assuming that infrastructure management system
System need to handle 5 resource request rX (X=A, B, C, D, E) successively, its ask resource specification and sequential relationship such as Fig. 5 A and
Shown in Fig. 5 B, wherein the interval between the two neighboring moment is time T, and resource corresponding to rA and rD is in use for some time
It is released, rB, rC and rE then continue to take for a long time.
Fig. 5 A are to carry out the schematic diagram of resource allocation, figure according to the original distribution mechanism for not considering lifetime property information
5B is according to the schematic diagram provided in an embodiment of the present invention that resource allocation is carried out based on lifetime property information.
In Fig. 5 A, can not in the case of the resource occupied time in the estimated follow-up expectable time, according to preferentially from
The allocated infrastructure resources of existing part resource physically distribute resource, namely enable new infrastructure resources reality as far as possible
Body, and in the case where meeting above-mentioned condition, prioritizing selection surplus resources are minimum, the minimum infrastructure of allocated service resources has provided
Source entity carries out resource allocation.The effect of this point is to avoid resource " fragmentation ", improves resource utilization.According to resource utilization
=total resources actually distributed/has enabled the determination mode of the total resources of infrastructure resources entity, and simple computation can obtain
There was only about 56% to overall resource utilization during t1~t6.If distribution condition does not change after t6, then utilization rate will
About 33% low-level is maintained for a long time.
In Fig. 5 B, the process of resource allocation is carried out such as based on lifetime property information according to provided in an embodiment of the present invention
Under:
A:Before t1, rA and rC have carried out resource reservation in advance, although both expected time differences for taking resource
It is very big, but other resource distributions can not optimize allotment at that time, and so they are all reserved s1, (resource is not divided really
With occupancy, still in power-down state).
B:During t1, rA has carried out the distribution of resource, the upper electricity of s1 according to original reservation.And when handling rB, network analysis
Essentially identical in the time of follow-up prolonged expected occupancy resource to rB and rC, being assigned to can bring long-term resource excellent together
Change effect.Therefore, start s2 distribution rB resources, and rC is reappointed into s2.
C:RE is handled during t4, in the case where not considering lifetime property information, s3 points should be used according to general policies
Match somebody with somebody.But because rE and rB are rC expected time essentially identical (long-time fortune for taking resource within the follow-up expectable time
OK), so suitably being adjusted to allocation strategy, specify and distributed by s2.
By above-mentioned resource distribution mode, according to the calculation of foregoing resource utilization, existed using the inventive method
It is in the example as a result, in t1~t6 times, resource utilization is 67.5% (being 56% originally);Long-play after t6
Resource utilization be 100%.
Resource allocation methods provided in an embodiment of the present invention, obtain the lifetime property information of service application, the life
When can reflect that service application is expected to take the temporal information of resource in cyclic attributes information, therefore can know follow-up expectable in advance
The interior resource occupied time.The lifetime property information for being then based on obtaining is determined to optimize the follow-up expectable time
The reserve resource of interior resource utilization, the reserve resource is preengage for service application, be expected to take resource reaching service application
Initial time when, the reserve resource is distributed into service application, enable in infrastructure management system resource profit
Optimized with rate within the expectable time, and keep Optimal State.Further, can also be when necessary in the embodiment of the present invention
" reappointing " adjustment of simple devoid of risk is performed, the use of aggregate resource is kept within expected a period of time
Optimal State, technology are realized simple.
It should be noted that the money of infrastructure resources physically in the embodiment of the present invention in infrastructure management system
Source can be infrastructure management system manage upper-layer service using resource or its combination, such as can be network money
(such as the data that special hardware provides add solution for source (network connection and communication bandwidth etc.), storage resource, certain class specially treated ability
Close disposal ability) etc..Also, the form of resource allocation is also various, such as (other resource types by taking computing resource as an example
It is similar), the resource form distributed also is not limited solely to the virtual machine using virtualization technology, and may also include any can provide physics
The a part or whole part in source is supplied to the form that applicant uses, such as the CGroups technologies that linux kernel provides can be by one
Resource (a generally physical server) under OS management is divided into multiple entities containing certain resource.Further, base
Infrastructure resource entity is also various, and by taking computing resource as an example (other resource types are similar), its physical resource entity is signified
Scope also differ and be set to a physical server, and can be any physically or logically collection that a certain amount of computing resource can be provided
Close.Such as can be some blade servers in a machine frame, the server in a computer room, or by logical partitioning to one
Server in cluster etc..
Further, the resource allocation methods based on the above-mentioned offer of the embodiment of the present invention, be able to will be based on according to actual conditions
The mode that lifetime property information carries out resource allocation flexibly applies to current infrastructure
In management system, such as:
A:Lifetime property information is as essential attribute
Such as the infrastructure management system inside some enterprises or department, in order to farthest obtain present invention side
The effect of method, may may require that its user (such as personnel in department) must propose to provide during resource bid corresponding to it is estimated
Life cycle information.
Infrastructure management system also for example inside some enterprises or department, in order to farthest obtain the present invention
The effect of method, money can be distributed in the life cycle for proposing to specify during resource bid in strict accordance with its user (such as personnel in department)
Source, i.e., time outside preassigned life cycle scope, user can not access using the resource.Certainly such a side is used
Formula needs the constraints notifying user in advance by using the mode such as specification.
B:Lifetime property information is as optional attribute
The mode provided in an embodiment of the present invention that resource allocation is carried out based on lifetime property information can be only applied to
Setting section infrastructure resources management entity in infrastructure management system, and in remainder using original resource point
Method of completing the square.One typical example can be that infrastructure management system can externally support resource request to carry or do not take simultaneously
Situation with life cycle information, but internally make the request differentiation processing of two classes to the request for carrying life cycle information
Resource allocation and optimization are carried out with the method for the present invention, and a special resource collection is specified for it;Remaining request continues to make
With original distribution mechanism (life cycle for not considering resource occupation), and another resource collection is specified to undertake resource point
Match somebody with somebody.Both are distinguished to the benefit of processing is, the former resource allocation is based on resource life cycle and is analyzed and optimized, and avoids
The resource allocation of the latter (life cycle for not considering resource occupation) and the uncertain influence to the former effect used.
The resource allocation methods provided based on above-described embodiment, the embodiment of the present invention also provide a kind of resource allocation device
600, as shown in Figure 6A, the resource allocation device 600 includes acquiring unit 601, appointment unit 602 and allocation unit 603, its
In:
Acquiring unit 601, for obtaining the lifetime property information of service application, wherein, lifetime property information
Reflect that service application is expected to take the temporal information of resource.
Appointment unit 602, the lifetime property information for being obtained based on acquiring unit 601 are determined to optimize follow-up
The reserve resource of resource utilization in the expectable time, and preengage reserve resource for service application.
Allocation unit 603, for reach service application be expected take resource initial time when, by appointment unit 602
The reserve resource of reservation distributes to service application.
In the first implementation, resource allocation device 600 also includes reappointing unit 604, as shown in Figure 6B, its
In:
Unit 604 is reappointed, before resource utilization meets further optimal conditions within the follow-up expectable time
Put, be that before service application preengages reserve resource, reserve resource is reappointed in appointment unit 602.
In second of implementation, acquiring unit 601, the Life Cycle specifically for obtaining service application as follows
Phase attribute information:
Service resources request interface is called to carry service application lifetime property informational function.
Service application lifetime property informational function is carried by the service resources request interface of calling, obtaining business should
Lifetime property information.
In the third implementation, appointment unit 602, specifically for being based on lifetime property information as follows
It is determined to optimize the reserve resource of resource utilization in the follow-up expectable time:
In the part resource set of setting, based on lifetime property information, prioritizing selection can optimize it is follow-up can be pre-
The reserve resource of resource utilization in time phase.
The resource allocation device 600 of the above-mentioned offer of the embodiment of the present invention, can be infrastructure management system or
Part in infrastructure management system, the embodiment of the present invention do not limit.
Resource allocation device 600 provided in an embodiment of the present invention, obtain the lifetime property information of service application, the life
It can reflect that service application is expected to take the temporal information of resource in life cyclic attributes information, therefore can know in advance follow-up expectable
The resource occupied time in time.When the lifetime property information for being then based on obtaining is determined to optimize follow-up expectable
The reserve resource of interior resource utilization, the reserve resource is preengage for service application, be expected to take money reaching service application
During the initial time in source, the reserve resource is distributed into service application, enables to the resource in infrastructure management system
Utilization rate is optimized within the expectable time, and keeps Optimal State.Further, can also be in necessity in the embodiment of the present invention
" reappointing " adjustment of the simple devoids of risk of Shi Zhihang, finally enables the use of aggregate resource be protected within expected a period of time
Optimal State is held, technology is realized simple.
It should be noted that resource allocation device 600 provided in an embodiment of the present invention, available for the money for realizing Fig. 4, Fig. 5 B
Source distribution method, therefore not detailed enough place is described in the embodiment of the present invention to resource allocation device 600, refer to relevant way
The description of embodiment, will not be repeated here.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (10)
- A kind of 1. resource allocation methods, it is characterised in that including:The lifetime property information of service application is obtained, service application described in the lifetime property message reflection is expected to account for With the temporal information of resource;It is determined that having enabled infrastructure resources entity in default resource collection, and infrastructure resources entity is enabled described in determination On distributed resource and reserve resource is expected to take the time of resource, select within the follow-up expectable time described to have enabled base Resource has been distributed on Infrastructure resource entity and reserve resource is expected to take the time of resource and lifetime property letter It is close and described enabled the physically unallocated resource of infrastructure resources that service application described in breath is expected to take resource time Meet the resource of resources supplIes needed for the service application, the reservation is preengage as reserve resource, and for the service application Resource, wherein, the time is close, refers to described enable infrastructure resources and physically distributed resource and reserve resource It is expected that the time for taking resource is expected the difference of occupancy resource time with service application described in the lifetime property information, Less than or equal to about definite value;When reaching the initial time of the service application expection occupancy resource, the reserve resource is distributed into the business should With.
- 2. the method as described in claim 1, it is characterised in that before preengaging the reserve resource for the service application, institute Stating method also includes:On the premise of resource utilization meets further optimal conditions within the follow-up expectable time, weight is carried out to reserve resource Reservation.
- 3. method as claimed in claim 1 or 2, it is characterised in that the lifetime property information for obtaining service application, Including:Service resources request interface is called to carry service application lifetime property informational function;Service application lifetime property informational function is carried by the service resources request interface of calling, obtains service application Lifetime property information.
- 4. the method as described in claim 1, it is characterised in that after being determined to optimization based on the lifetime property information After the reserve resource of resource utilization in the expectable time, including:In the part resource set of setting, based on the lifetime property information, prioritizing selection can optimize it is follow-up can be pre- The reserve resource of resource utilization in time phase.
- A kind of 5. resource allocation device, it is characterised in that including:Acquiring unit, for obtaining the lifetime property information of service application, described in the lifetime property message reflection Service application is expected to take the temporal information of resource;Appointment unit, for determining to have enabled infrastructure resources entity in default resource collection, and base is enabled described in determination Resource has been distributed on Infrastructure resource entity and reserve resource is expected to take the time of resource;Selection is in the follow-up expectable time It is interior it is described enabled infrastructure resources physically distributed resource and reserve resource be expected time of occupancy resource with it is described Acquiring unit obtain the lifetime property information described in service application be expected take resource time it is close and it is described The resource that the physically unallocated resource of infrastructure resources meets resources supplIes needed for the service application is enabled, is provided as reservation Source, and the reserve resource is preengage for the service application, wherein, the time is close, refers to described enable infrastructure Resource has been distributed on resource entity and reserve resource is expected to take the time of resource and institute in the lifetime property information State service application to be expected to take the difference of resource time, less than or equal to about definite value;Allocation unit, it is for when reaching the service application and being expected to take the initial time of resource, the appointment unit is pre- Reserve resource about distributes to the service application.
- 6. device as claimed in claim 5, it is characterised in that described device also include reappoint unit, for it is follow-up can It is that the service application is pre- in the appointment unit on the premise of resource utilization meets further optimal conditions in expeced time Before about described reserve resource, reserve resource is reappointed.
- 7. the device as described in claim 5 or 6, it is characterised in that the acquiring unit, specifically for obtaining as follows The lifetime property information of service application:Service resources request interface is called to carry service application lifetime property informational function;Service application lifetime property informational function is carried by the service resources request interface of calling, obtains service application Lifetime property information.
- 8. device as claimed in claim 5, it is characterised in that the appointment unit, specifically for being based on institute as follows State the reserve resource that lifetime property information is determined to optimize resource utilization in the follow-up expectable time:In the part resource set of setting, based on the lifetime property information, prioritizing selection can optimize it is follow-up can be pre- The reserve resource of resource utilization in time phase.
- A kind of 9. resource allocation apparatus, it is characterised in that including communication interface, memory and processor, wherein:The memory, for storing the program code of the computing device;The processor, for calling the program code of the memory storage, implement function such as:The lifetime property information of service application is obtained by communication interface, the lifetime property message reflection business should With the expected temporal information for taking resource, infrastructure resources entity has been enabled in resource collection it is determined that presetting, and described in determination Enabled infrastructure resources physically distributed resource and reserve resource be expected take resource time, select it is follow-up can In expeced time it is described enabled infrastructure resources physically distributed resource and reserve resource be expected occupancy resource when Between be expected to take that resource time is close and the basis that enabled is set with service application described in the lifetime property information The resource that unallocated resource on resource entity meets resources supplIes needed for the service application is applied, as reserve resource, and is institute State service application and preengage the reserve resource, wherein, the time is close, refers to described enable infrastructure resources physically Resource is distributed and reserve resource is expected to take the time of resource and service application described in the lifetime property information It is expected that take the difference of resource time, less than or equal to about definite value, when reaching service application and being expected to take the initial time of resource, The reserve resource is distributed into the service application.
- 10. equipment as claimed in claim 9, it is characterised in that the processor, be additionally operable to:On the premise of resource utilization meets further optimal conditions within the follow-up expectable time, for the service application it is pre- Before about described reserve resource, reserve resource is reappointed.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410476386.3A CN104301257B (en) | 2014-09-17 | 2014-09-17 | A kind of resource allocation methods, device and equipment |
PCT/CN2015/089050 WO2016041446A1 (en) | 2014-09-17 | 2015-09-07 | Resource allocation method, apparatus and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410476386.3A CN104301257B (en) | 2014-09-17 | 2014-09-17 | A kind of resource allocation methods, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104301257A CN104301257A (en) | 2015-01-21 |
CN104301257B true CN104301257B (en) | 2018-01-02 |
Family
ID=52320829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410476386.3A Active CN104301257B (en) | 2014-09-17 | 2014-09-17 | A kind of resource allocation methods, device and equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104301257B (en) |
WO (1) | WO2016041446A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301257B (en) * | 2014-09-17 | 2018-01-02 | 华为技术有限公司 | A kind of resource allocation methods, device and equipment |
CN105357251A (en) * | 2015-09-24 | 2016-02-24 | 浪潮集团有限公司 | Resource pool management system and management method |
CN105354090B (en) * | 2015-10-16 | 2019-04-16 | 安一恒通(北京)科技有限公司 | The management method and device of virtual unit |
CN106911731B (en) * | 2015-12-22 | 2020-05-19 | 阿里巴巴集团控股有限公司 | Scheduling method and device for internet information resources |
CN108616553B (en) * | 2016-12-13 | 2020-08-04 | 中国移动通信有限公司研究院 | Method and device for resource scheduling of cloud computing resource pool |
CN109903023B (en) * | 2018-11-22 | 2023-07-11 | 创新先进技术有限公司 | Resource allocation method and system |
CN114764371A (en) * | 2021-01-13 | 2022-07-19 | 华为技术有限公司 | Task scheduling method and management system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035013A (en) * | 2006-03-08 | 2007-09-12 | 中兴通讯股份有限公司 | Resource receiving control method and system |
CN103713955A (en) * | 2013-12-31 | 2014-04-09 | 曙光云计算技术有限公司 | Method and device for managing resource dynamic allocation |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040244001A1 (en) * | 2003-05-30 | 2004-12-02 | Haller John Henry | Methods of allocating use of multiple resources in a system |
KR101567829B1 (en) * | 2009-06-09 | 2015-11-20 | 엘지전자 주식회사 | Method of data transmission and data reception and devices in wireless networks |
CN102083208B (en) * | 2009-11-30 | 2013-09-25 | 普天信息技术研究院有限公司 | Resource allocation method and device |
CN104301257B (en) * | 2014-09-17 | 2018-01-02 | 华为技术有限公司 | A kind of resource allocation methods, device and equipment |
-
2014
- 2014-09-17 CN CN201410476386.3A patent/CN104301257B/en active Active
-
2015
- 2015-09-07 WO PCT/CN2015/089050 patent/WO2016041446A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035013A (en) * | 2006-03-08 | 2007-09-12 | 中兴通讯股份有限公司 | Resource receiving control method and system |
CN103713955A (en) * | 2013-12-31 | 2014-04-09 | 曙光云计算技术有限公司 | Method and device for managing resource dynamic allocation |
Also Published As
Publication number | Publication date |
---|---|
CN104301257A (en) | 2015-01-21 |
WO2016041446A1 (en) | 2016-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104301257B (en) | A kind of resource allocation methods, device and equipment | |
CN105204924B (en) | The privately owned of management program executive capability uses | |
US20220237022A1 (en) | System and method for controlled sharing of consumable resources in a computer cluster | |
JP6254949B2 (en) | Pricing resources in virtual machine pools | |
EP2372551B1 (en) | Real time backup storage node assignment | |
EP2802998B1 (en) | Assignment of resources in virtual machine pools | |
CN106681835B (en) | The method and resource manager of resource allocation | |
CN109062658A (en) | Realize dispatching method, device, medium, equipment and the system of computing resource serviceization | |
CN103502944B (en) | Virutal machine memory method of adjustment and equipment | |
CN104040486A (en) | Decoupling PAAS resources, jobs, and scheduling | |
US11102143B2 (en) | System and method for optimizing resource utilization in a clustered or cloud environment | |
CN104040485A (en) | PAAS hierarchial scheduling and auto-scaling | |
JP2010277589A (en) | Data center batch job quality of service control | |
CN106330987A (en) | Dynamic load balancing method | |
CN105718316A (en) | Job scheduling method and apparatus | |
CN108154298B (en) | Distribution task allocation method and device, electronic equipment and computer storage medium | |
CN110597639A (en) | CPU distribution control method, device, server and storage medium | |
TW202121274A (en) | Cloud resource management method and apparatus, and electronic device and computer readable storage medium | |
TWI409713B (en) | A reservation management device, an appointment management method, an appointment management program, and a computer-readable recording medium whose program is memorized | |
CN114116173A (en) | Method, device and system for dynamically adjusting task allocation | |
CN109767057A (en) | Resource allocation methods, device, electronic equipment and storage medium | |
CN112019577A (en) | Exclusive cloud storage implementation method and device, computing equipment and computer storage medium | |
WO2023066035A1 (en) | Resource allocation method and resource allocation apparatus | |
CN114884900A (en) | Resource allocation method, device, equipment and storage medium | |
EP4300892A1 (en) | Resource scheduling method and apparatus, computer device, system, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |