CN104301257A - Resource distribution method, device and equipment - Google Patents

Resource distribution method, device and equipment Download PDF

Info

Publication number
CN104301257A
CN104301257A CN201410476386.3A CN201410476386A CN104301257A CN 104301257 A CN104301257 A CN 104301257A CN 201410476386 A CN201410476386 A CN 201410476386A CN 104301257 A CN104301257 A CN 104301257A
Authority
CN
China
Prior art keywords
resource
service application
lifetime property
reserve
property information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410476386.3A
Other languages
Chinese (zh)
Other versions
CN104301257B (en
Inventor
甘嘉栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410476386.3A priority Critical patent/CN104301257B/en
Publication of CN104301257A publication Critical patent/CN104301257A/en
Priority to PCT/CN2015/089050 priority patent/WO2016041446A1/en
Application granted granted Critical
Publication of CN104301257B publication Critical patent/CN104301257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a resource distribution method, device and equipment. The method includes the steps of obtaining life cycle attribute information of a service application, wherein the life cycle attribute information reflects time information of expected service application occupied resources; determining reserved resources capable of optimizing the resource utilization rate within subsequent expected time on the basis of the life cycle attribute information, reserving the reserved resources for the service application, and distributing the reserved resources to the service application when the start time of the expected service application occupied resources is reached. By means of the resource distribution method, device and equipment, the resource utilization rate of an infrastructure management system can be optimized within the expected time, and the optimization state is kept.

Description

A kind of resource allocation methods, device and equipment
Technical field
The present invention relates to resource allocation techniques field, particularly relate to a kind of resource allocation methods, device and equipment.
Background technology
Along with the popularization of cloud concept, the layer architecture of service application layer and management level is widely used in the solution of requirement Resource dynamic allocation.
Service application sends service resources request to infrastructure management system, to apply for processing infrastructure resources needed for specific transactions to run the example.(resource specification can be such as the physical specifications such as CPU, internal memory and network connection to the resource specification of asking in the service resources request that infrastructure management system sends for service application, also can be that some other qualitative attribute requires), and available resource distribution situation in system, comprehensively analyze and carry out the distribution of resource.
At present, when infrastructure management system carries out Resourse Distribute, under the prerequisite meeting resource specification, preferentially choose enabled infrastructure resources entity and carry out Resourse Distribute, do not use the infrastructure resources entity of not enabled as far as possible, and the infrastructure resources entity that prioritizing selection surplus resources is minimum in the infrastructure resources entity chosen carries out Resourse Distribute, take after resource time reaches in service application, resource is released.
Above-mentioned process of carrying out Resourse Distribute can improve resource utilization to a certain extent, but, the time that different business application takies resource is not quite similar, resource (1/2) such as, in Fig. 1 on infrastructure resources entity 1 is released after a short period of time, but the resource (1/4) on infrastructure resources entity 1 and the resource (1/2) on infrastructure resources entity 2 need occupied for a long time, although the resource that resource (1/4) takies infrastructure resources entity is less, but still need to run infrastructure resources entity 1, therefore need to run infrastructure resources entity 1 and infrastructure resources entity 2 simultaneously, resource utilization in infrastructure management system is difficult to the state keeping optimizing in for a long time.
Summary of the invention
The embodiment of the present invention provides a kind of resource allocation methods, device and equipment, to optimize the resource utilization in infrastructure management system.
First aspect, provides a kind of resource allocation methods, comprising:
Obtain the lifetime property information of service application, service application expection described in described lifetime property message reflection takies the temporal information of resource;
Based on described lifetime property information determine to optimize follow-up can the reserve resource of resource utilization in expeced time, and preengage described reserve resource for described service application;
When reaching the expection of described service application and taking the initial time of resource, described reserve resource is distributed to described service application.
In conjunction with first aspect, in the first implementation, before described service application preengages described reserve resource, described method also comprises:
Follow-up can under in expeced time, resource utilization meets the prerequisite of further optimal conditions, reserve resource is heavily preengage.
In conjunction with the first implementation of first aspect or first aspect, in the second implementation, the lifetime property information of described acquisition service application, comprising:
Call service resources request interface and carry service application lifetime property informational function;
Carry service application lifetime property informational function by the service resources request interface called, obtain the lifetime property information of service application.
In conjunction with any one implementation above-mentioned of first aspect, in the third implementation, based on described lifetime property information determine to optimize follow-up can the reserve resource of resource utilization in expeced time, comprising:
In the part resource set of setting, based on described lifetime property information, prioritizing selection can optimize follow-up can the reserve resource of resource utilization in expeced time.
Second aspect, provides a kind of resource allocation device, comprises acquiring unit, appointment unit and allocation units, wherein:
Described acquiring unit, for obtaining the lifetime property information of service application, service application expection described in described lifetime property message reflection takies the temporal information of resource;
Described appointment unit, the described lifetime property information for obtaining based on described acquiring unit determine to optimize follow-up can the reserve resource of resource utilization in expeced time, and preengage described reserve resource for described service application;
Described allocation units, for when reaching the expection of described service application and taking the initial time of resource, distribute to described service application by the reserve resource that described appointment unit is preengage.
In conjunction with second aspect, in the first implementation, described device also comprises heavy appointment unit, wherein:
Described heavy appointment unit, for follow-up can under in expeced time, resource utilization meets the prerequisite of further optimal conditions, be before described service application preengages described reserve resource in described appointment unit, reserve resource is heavily preengage.
In conjunction with the first implementation of second aspect or second aspect, in the second implementation, described acquiring unit, specifically for obtaining the lifetime property information of service application as follows:
Call service resources request interface and carry service application lifetime property informational function;
Carry service application lifetime property informational function by the service resources request interface called, obtain the lifetime property information of service application.
In conjunction with any one implementation of second aspect, in the third implementation, described appointment unit, specifically for as follows based on described lifetime property information determine to optimize follow-up can the reserve resource of resource utilization in expeced time:
In the part resource set of setting, based on described lifetime property information, prioritizing selection can optimize follow-up can the reserve resource of resource utilization in expeced time.
The third aspect, provides a kind of resource allocation apparatus, comprises communication interface, memory and processor, wherein:
Described memory, for storing the program code that described processor performs;
Described processor, for calling the program code that described memory stores, realizes following function:
The lifetime property information of service application is obtained by communication interface, described lifetime property message reflection service application expection takies the temporal information of resource, and based on described lifetime property information determine to optimize follow-up can the reserve resource of resource utilization in expeced time, for described service application preengages described reserve resource, when reaching service application expection and taking the initial time of resource, described reserve resource is distributed to described service application.
In conjunction with the third aspect, in the first implementation, described processor, also for:
Follow-up can under in expeced time, resource utilization meets the prerequisite of further optimal conditions, before preengaging described reserve resource for described service application, reserve resource is heavily preengage.
The resource allocation methods that the embodiment of the present invention provides, device and equipment, obtain the lifetime property information of service application, can reflect in this lifetime property information that service application expection takies the temporal information of resource, thus can know in advance follow-up can resource occupied time in expeced time.Then based on the lifetime property information obtained determine to optimize follow-up can the reserve resource of resource utilization in expeced time, for service application preengages described reserve resource, when reaching service application expection and taking the initial time of resource, described reserve resource is distributed to service application, the resource utilization in infrastructure management system can be made can be optimized in expeced time, and keep Optimal State.
Accompanying drawing explanation
Fig. 1 is Resourse Distribute schematic diagram in prior art;
Fig. 2 is the applicable system architecture diagram of the embodiment of the present invention;
The resource allocation apparatus formation schematic diagram of Fig. 3 for providing for the embodiment of the present invention;
The resource allocation methods flow chart that Fig. 4 provides for the embodiment of the present invention;
Fig. 5 A is existing resource assigning process schematic diagram;
The resource allocation process schematic diagram that Fig. 5 B provides for the embodiment of the present invention;
The resource allocation device that Fig. 6 A provides for the embodiment of the present invention forms schematic diagram;
Another resource allocation device that Fig. 6 B provides for the embodiment of the present invention forms schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, is not whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Figure 2 shows that the applicable system architecture schematic diagram of resource allocation methods that the embodiment of the present invention provides, as shown in Figure 2, the service resources request interface of infrastructure management system has the service resources request function obtaining service application, infrastructure management system obtains the service resources request of service application by resource request interface, Resourse Distribute and administration module, based on the service resources request obtained, select resource to be that service application is distributed in resource pool.The function of easily extensible service resources request interface in the embodiment of the present invention, make it have the function of the lifetime property information obtaining service application, obtain the lifetime property information of service application, the expection of lifetime property message reflection service application takies the temporal information of resource.Resourse Distribute and administration module carry out Resourse Distribute based on the lifetime property information obtained, to reach within the scheduled time to the object that the resource utilization in infrastructure management system is optimized.
It should be noted that, the resource allocation methods provided in the embodiment of the present invention is not limited to the system architecture diagram shown in Fig. 2, such as, also can be applicable to resource allocation function and resource management function in the embodiment of the present invention and is realized by two independent modules.
The embodiment of the present invention provides a kind of resource allocation apparatus 300, and this resource allocation apparatus 300 comprises communication interface 301, memory 302 and processor 303 as shown in Figure 3.Certainly according to actual conditions, the resource allocation apparatus 300 provided in the embodiment of the present invention also may comprise communication bus, and the embodiment of the present invention does not limit.
Communication interface 301 in the embodiment of the present invention, uses the device of such as transceiver one class, with other equipment or communication, as Ethernet, wireless access network (RAN), WLAN (wireless local area network) (Wireless Local Area Networks, WLAN) etc.
Memory 302 in the embodiment of the present invention, can be read-only memory (read-only memory, ROM) static storage device of the other types of static information and instruction can maybe be stored, random access memory (random access memory, or the dynamic memory of other types of information and instruction can be stored RAM), also can be EEPROM (Electrically Erasable Programmable Read Only Memo) (Electrically Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read-Only Memory, or other optical disc storage CD-ROM), laser disc stores and (comprises compression laser disc, laser dish, laser disc, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus, or the program code that can be used in carrying or storing the expectation with instruction or data structure form also can by any other medium of computer access, but be not limited thereto.
Processor 303 in the embodiment of the present invention, it can be a general central processor (CPU), microprocessor, ASIC(Application Specific Integrated Circuit) (application-specific integrated circuit, ASIC), or one or more for control the present invention program's program perform integrated circuit.
Memory 302 in the embodiment of the present invention, for the program code that storage of processor 303 performs.
Processor 303, for calling the program code that memory 302 stores, realizes following function:
Obtained the lifetime property information of service application by communication interface 301, the expection of this lifetime property message reflection service application takies the temporal information of resource.
Based on the lifetime property information obtained determine to optimize follow-up can the reserve resource of resource utilization in expeced time, and preengage this reserve resource determined for service application; When reaching service application expection and taking the initial time of resource, the reserve resource determined is distributed to service application.
In one implementation, in the embodiment of the present invention processor 303 also for:
Follow-up can under in expeced time, resource utilization meets the prerequisite of further optimal conditions, before preengaging described reserve resource for described service application, reserve resource is heavily preengage; Wherein, further optimal conditions refers to can carry out tuning by the Resourse Distribute in expeced time to follow-up, such as, overall resource utilization can be made the highest.
Concrete, in the embodiment of the present invention, communication interface 301 can be service resources request interface, this service resources request interface has the expanded function of carrying service application lifetime property information, and processor 303 can call service resources request interface and carry service application lifetime property informational function; Carry service application lifetime property informational function by the service resources request interface called, obtain the lifetime property information of service application.
Concrete, in the embodiment of the present invention processor 303 can in the following way based on described lifetime property information determine to optimize follow-up can the reserve resource of resource utilization in expeced time:
A: determine to have enabled infrastructure resources entity in setting resource collection.
Setting resource collection in the embodiment of the present invention can be whole resources in infrastructure management system, also can be the part resource in infrastructure management system.
Preferred setting section resource in infrastructure management system in the embodiment of the present invention, carry out carrying out Resourse Distribute based on lifetime property information, to make infrastructure management system externally can support original distribution mechanism (namely not considering the life cycle of resource occupation) simultaneously, and carry out the mechanism of Resourse Distribute based on life cycle information.And setting section resource carries out carrying out Resourse Distribute based on life cycle information in the embodiment of the present invention, the uncertainty of original resource allocation mechanism can be avoided the impact carrying out Resourse Distribute based on lifetime property information.
B: in the part resource set of setting, based on lifetime property information, prioritizing selection can optimize follow-up can the reserve resource of resource utilization in expeced time.
In the embodiment of the present invention, such as can select follow-up can expect in resource occupied time and lifetime property information in expeced time take the resource of enabling on infrastructure resources entity that the close and unallocated resource of resource time meets service application resource requirement condition, as reserve resource.
The above-mentioned resource allocation apparatus 300 provided of the embodiment of the present invention, can be infrastructure management system, also can be the parts in infrastructure management system, the embodiment of the present invention limit.
The resource allocation apparatus 300 that the embodiment of the present invention provides, obtain the lifetime property information of service application, can reflect in this lifetime property information that service application expection takies the temporal information of resource, thus can know in advance follow-up can resource occupied time in expeced time.Then based on the lifetime property information obtained determine to optimize follow-up can the reserve resource of resource utilization in expeced time, for service application preengages described reserve resource, when reaching service application expection and taking the initial time of resource, described reserve resource is distributed to service application, the resource utilization in infrastructure management system can be made can be optimized in expeced time, and keep Optimal State.
Be described in detail to the implementation method of resource allocation methods below the embodiment of the present invention.
Figure 4 shows that the resource allocation methods realization flow figure that the embodiment of the present invention provides, the executive agent of method shown in Fig. 4 can be such as infrastructure management system, and also can be the parts of infrastructure management system, the embodiment of the present invention limit.As shown in Figure 4, the method comprises:
S101: the lifetime property information obtaining service application.
In the embodiment of the present invention, the expection of lifetime property message reflection service application takies the temporal information of resource.
In the embodiment of the present invention, expandable resource request interface has the function of carrying service application lifetime property information, carrying service application lifetime property informational function by calling service resources request interface, obtaining the lifetime property information of service application.
In the embodiment of the present invention, lifetime property information such as can adopt structure as shown in table 1 below to represent,
Table 1
It should be noted that, in the embodiment of the present invention, lifetime property information is not limited to the some examples cited by table 1, also should comprise any mode that can be used for describing the resource intends occupied time.Can also be such as that a time list is for listing the service time in each irregular (non-repeatability cycle) of expection.
S102: based on lifetime property information determine to optimize follow-up can the reserve resource of resource utilization in expeced time, and preengage this reserve resource determined for service application.
For service application preengages the reserve resource determined in the embodiment of the present invention, this is not really assigned with by the reserve resource preengage and takies, but this reserve resource is by time of preengaging, can not be preengage again or be distributed to except current by other service application except the service application of preengaging.
In the embodiment of the present invention based on lifetime property information determine to optimize follow-up can in expeced time resource utilization reserve resource process in, can adopt to reduce resource fragmentation, the infrastructure resources number of entities of enabling minimum, for a long time at least one being in Optimal State be optimization aim, carry out the determination of reserve resource.
Such as, in the embodiment of the present invention based on lifetime property information determine to optimize follow-up can the process of the reserve resource of resource utilization in expeced time, can in the following way:
Determine to have enabled infrastructure resources entity in setting resource collection, and to determine to enable on infrastructure resources entity Resources allocation and reserve resource expect the time taking resource.
Prioritizing selection follow-up can expect in resource occupied time and described lifetime property information in expeced time take the resource of enabling on infrastructure resources entity that the close and unallocated resource of resource time meets service application resource requirement condition, as reserve resource.
S103: when reaching service application expection and taking the initial time of resource, reserve resource is distributed to service application.
The resource allocation methods that the embodiment of the present invention provides, obtain the lifetime property information of service application, can reflect in this lifetime property information that service application expection takies the temporal information of resource, thus can know in advance follow-up can resource occupied time in expeced time.Then based on the lifetime property information obtained determine to optimize follow-up can the reserve resource of resource utilization in expeced time, for service application preengages described reserve resource, when reaching service application expection and taking the initial time of resource, described reserve resource is distributed to service application, the resource utilization in infrastructure management system can be made can be optimized in expeced time, and keep Optimal State.
Be the reserve resource that service application carries out resource reservation based on the lifetime property information of service application in the embodiment of the present invention, really do not distributed and taken, therefore by the change to subscription information in the embodiment of the present invention, can realize the resource reservation of another infrastructure resources entity to service application, and not relating to any resource migration technology, technology realizes simple.
Optionally, Optimal State is in reach resource in infrastructure management system further for a long time in the embodiment of the present invention, namely under resource utilization meets the prerequisite of further optimal conditions, heavily can preengage reserve resource, wherein, further optimal conditions can be such as can reduce resource fragmentation, the infrastructure resources number of entities of enabling can be made minimum or the infrastructure resources entity in infrastructure management system can be enable in long-time to be in Optimal State.
Such as, in the embodiment of the present invention can on current infrastructure resource entity reserve resource follow-up can in expeced time resource occupation time and current business apply expect that the time taking resource is close and the unallocated resource of current infrastructure resource entity does not meet current business application resource requirement, to on current infrastructure resource entity reserve resource heavily preengage, by the Resourse Distribute needed for the resource of having preengage and current application on same foundation facility resource entity, optimize resource utilization.
The embodiment of the present invention is described in detail to above-mentioned process of carrying out Resourse Distribute below with reference to practical application.
Suppose in the embodiment of the present invention that the resource specification of the infrastructure resources entity in infrastructure management system is identical, total resources is designated as 1S, and the resource that 3 infrastructure resources entities are corresponding is respectively Sn, n=1,2 and 3.The resource specification of service application application is 0.25S, 0.5S or 0.75S tri-kinds (in reality, resource specification is various dimensions).Suppose that infrastructure management system needs to process 5 resource request rX (X=A, B, C, D, E) successively, the resource specification of its request and sequential relationship are as fig. 5 a and fig. 5b, interval wherein between adjacent two moment is time T, and resource corresponding to rA and rD is released in use for some time, rB, rC and rE then continue to take for a long time.
Fig. 5 A is according to not considering that original distribution mechanism of lifetime property information carries out the schematic diagram of Resourse Distribute, the schematic diagram that based on lifetime property information carry out Resourse Distribute of Fig. 5 B for providing according to the embodiment of the present invention.
In Fig. 5 A, when cannot estimate follow-up can resource occupied time in expeced time, according to preferential from Resources allocation the infrastructure resources entity that existing part resource is assigned with, also namely enable new infrastructure resources entity as far as possible, and meeting under above-mentioned condition, prioritizing selection surplus resources infrastructure resources entity that is minimum, that be assigned with service resources minimum carries out Resourse Distribute.Resource " fragmentation " is avoided in the effect of this point, improves resource utilization.According to the determination mode of total resources/ the enabled total resources of infrastructure resources entity of resource utilization=actual allocated, during simple computation can obtain t1 ~ t6, overall resource utilization only has an appointment 56%.If distribution condition does not change after t6, then utilance by long term maintenance about 33% low-level.
In Fig. 5 B, according to the embodiment of the present invention provide to carry out the process of Resourse Distribute based on lifetime property information as follows:
A: before t1, rA and rC has carried out resource reservation in advance, although the time difference that both expections take resource is very large, other resource distribution can not be optimized allotment at that time, so they all by reservation to s1 (resource really distribution take, be still in power-down state).
During B:t1, rA has carried out the distribution of resource according to original reservation, and s1 powers on.And when processing rB, the time that network analysis takies resource to rB and rC in follow-up long expection is substantially identical, is assigned to and can brings long-term resource optimization effect together.Therefore, start s2 and distribute rB resource, and rC is heavily preengage s2.
Processing rE during C:t4, when not considering lifetime property information, should distribute with s3 according to general policies.But because rE with rB and rC can expect in expeced time the time taking resource substantially identical (equal long-play) follow-up, so suitably adjust allocation strategy, specify and distributed by s2.
By above-mentioned resource distribution mode, according to the account form of aforementioned resource utilization, adopt the inventive method in this example as a result, in t1 ~ t6 time, resource utilization is 67.5% (being 56% originally); Long playing resource utilization after t6 is 100%.
The resource allocation methods that the embodiment of the present invention provides, obtain the lifetime property information of service application, can reflect in this lifetime property information that service application expection takies the temporal information of resource, thus can know in advance follow-up can resource occupied time in expeced time.Then based on the lifetime property information obtained determine to optimize follow-up can the reserve resource of resource utilization in expeced time, for service application preengages described reserve resource, when reaching service application expection and taking the initial time of resource, described reserve resource is distributed to service application, the resource utilization in infrastructure management system can be made can be optimized in expeced time, and keep Optimal State.Further, also can perform " heavily preengaging " adjustment of simple devoid of risk in the embodiment of the present invention where necessary, finally make the use of aggregate resource can keep Optimal State within expected a period of time, technology realizes simple.
It should be noted that, resource on infrastructure resources entity in the embodiment of the present invention in infrastructure management system can be infrastructure management system manage the resource or its combination that upper-layer service application uses, can be such as Internet resources (network connect and communication bandwidth etc.), storage resources, certain class special processing ability (the data encrypting and deciphering disposal ability that such as special hardware provides) etc.And, the form of Resourse Distribute is also various, such as computational resource (other resource type is similar), the resource form distributed is not only limited to the virtual machine using Intel Virtualization Technology yet, also can comprise any form that a part or whole part of physical resource can be supplied to applicant and use, the resource (being generally a physical server) under an OS management can be divided into multiple entity containing certain resource by the CGroups technology that such as linux kernel provides.Further, infrastructure resources entity is also various, for computational resource (other resource type is similar), the scope of its physical resource entity indication also differs and is decided to be a physical server, and can be any physics or logical collection that can provide a certain amount of computational resource.Can be such as the server in some blade servers in a machine frame, a machine room, or by logical partitioning to server in a cluster etc.
Further, based on the above-mentioned resource allocation methods provided of the embodiment of the present invention, according to actual conditions, the mode of carrying out Resourse Distribute based on lifetime property information can be applied in a flexible way in current infrastructure
In management system, such as:
A: lifetime property information is as essential attribute
Such as in the infrastructure management system of some enterprises or department inside, in order to farthest obtain the effect of the inventive method, may require that its user (as personnel in department) must provide the life cycle information of the expectation of its correspondence when proposing resource bid.
Also such as in the infrastructure management system of some enterprises or department inside, in order to farthest obtain the effect of the inventive method, the life cycle Resources allocation can specified when proposing resource bid in strict accordance with its user (as personnel in department), namely in the preassigned life cycle extraneous time, user can not access and use this resource.Certain employing this kind of mode needs this constraints to notify user in advance by using the modes such as such as specification.
B: lifetime property information is as optional attribute
The mode of carrying out Resourse Distribute based on lifetime property information that the embodiment of the present invention provides only can be applied to the setting section infrastructure resources management entity in infrastructure management system, and applies original resource allocation methods at remainder.A typical example can be, infrastructure management system externally can support resource request be carried or not carry the situation of life cycle information simultaneously, but in inside by two class request differentiating and processing, use method of the present invention to carry out Resourse Distribute and optimization to the request carrying life cycle information, and specify a special resource collection for it; All the other requests continue to use original distribution mechanism (namely not considering the life cycle of resource occupation), and specify another one resource collection to bear Resourse Distribute.Be that the former Resourse Distribute all carries out analyzing and optimizing based on resource life cycle by the benefit of both differentiating and processing, the uncertainty of the Resourse Distribute and use that avoid the latter's (not considering the life cycle of resource occupation) is on the impact of the former effect.
Based on the resource allocation methods that above-described embodiment provides, the embodiment of the present invention also provides a kind of resource allocation device 600, and as shown in Figure 6A, this resource allocation device 600 comprises acquiring unit 601, appointment unit 602 and allocation units 603, wherein:
Acquiring unit 601, for obtaining the lifetime property information of service application, wherein, the expection of lifetime property message reflection service application takies the temporal information of resource.
Appointment unit 602, the lifetime property information for obtaining based on acquiring unit 601 determine to optimize follow-up can the reserve resource of resource utilization in expeced time, and be service application reservation reserve resource.
Allocation units 603, for when reaching service application expection and taking the initial time of resource, distribute to service application by the reserve resource that appointment unit 602 is preengage.
In the first implementation, resource allocation device 600 also comprises heavy appointment unit 604, as shown in Figure 6B, wherein:
Heavy appointment unit 604, for follow-up can under in expeced time, resource utilization meets the prerequisite of further optimal conditions, before appointment unit 602 is for service application reservation reserve resource, reserve resource is heavily preengage.
In the second implementation, acquiring unit 601, specifically for obtaining the lifetime property information of service application as follows:
Call service resources request interface and carry service application lifetime property informational function.
Carry service application lifetime property informational function by the service resources request interface called, obtain the lifetime property information of service application.
In the third implementation, appointment unit 602, specifically for as follows based on lifetime property information determine to optimize follow-up can the reserve resource of resource utilization in expeced time:
In the part resource set of setting, based on lifetime property information, prioritizing selection can optimize follow-up can the reserve resource of resource utilization in expeced time.
The above-mentioned resource allocation device 600 provided of the embodiment of the present invention, can be infrastructure management system, also can be the parts in infrastructure management system, the embodiment of the present invention limit.
The resource allocation device 600 that the embodiment of the present invention provides, obtain the lifetime property information of service application, can reflect in this lifetime property information that service application expection takies the temporal information of resource, thus can know in advance follow-up can resource occupied time in expeced time.Then based on the lifetime property information obtained determine to optimize follow-up can the reserve resource of resource utilization in expeced time, for service application preengages described reserve resource, when reaching service application expection and taking the initial time of resource, described reserve resource is distributed to service application, the resource utilization in infrastructure management system can be made can be optimized in expeced time, and keep Optimal State.Further, also can perform " heavily preengaging " adjustment of simple devoid of risk in the embodiment of the present invention where necessary, finally make the use of aggregate resource can keep Optimal State within expected a period of time, technology realizes simple.
It should be noted that, the resource allocation device 600 that the embodiment of the present invention provides, can be used for the resource allocation methods realizing Fig. 4, Fig. 5 B, therefore describes place detailed not to resource allocation device 600 in the embodiment of the present invention, with reference to the description of relevant way embodiment, can not repeat them here.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a resource allocation methods, is characterized in that, comprising:
Obtain the lifetime property information of service application, service application expection described in described lifetime property message reflection takies the temporal information of resource;
Based on described lifetime property information, determine to optimize follow-up can the reserve resource of resource utilization in expeced time, and preengage described reserve resource for described service application;
When reaching the expection of described service application and taking the initial time of resource, described reserve resource is distributed to described service application.
2. the method for claim 1, is characterized in that, before described service application preengages described reserve resource, described method also comprises:
Follow-up can under in expeced time, resource utilization meets the prerequisite of further optimal conditions, reserve resource is heavily preengage.
3. method as claimed in claim 1 or 2, it is characterized in that, the lifetime property information of described acquisition service application, comprising:
Call service resources request interface and carry service application lifetime property informational function;
Carry service application lifetime property informational function by the service resources request interface called, obtain the lifetime property information of service application.
4. the method as described in any one of claims 1 to 3, is characterized in that, based on described lifetime property information determine to optimize follow-up can the reserve resource of resource utilization in expeced time, comprising:
In the part resource set of setting, based on described lifetime property information, prioritizing selection can optimize follow-up can the reserve resource of resource utilization in expeced time.
5. a resource allocation device, is characterized in that, comprising:
Acquiring unit, for obtaining the lifetime property information of service application, service application expection described in described lifetime property message reflection takies the temporal information of resource;
Appointment unit, the described lifetime property information for obtaining based on described acquiring unit determine to optimize follow-up can the reserve resource of resource utilization in expeced time, and preengage described reserve resource for described service application;
Allocation units, for when reaching the expection of described service application and taking the initial time of resource, distribute to described service application by the reserve resource that described appointment unit is preengage.
6. device as claimed in claim 5, it is characterized in that, described device also comprises heavy appointment unit, for follow-up can under in expeced time, resource utilization meets the prerequisite of further optimal conditions, be before described service application preengages described reserve resource in described appointment unit, reserve resource is heavily preengage.
7. the device as described in claim 5 or 6, is characterized in that, described acquiring unit, specifically for obtaining the lifetime property information of service application as follows:
Call service resources request interface and carry service application lifetime property informational function;
Carry service application lifetime property informational function by the service resources request interface called, obtain the lifetime property information of service application.
8. the method as described in any one of claim 5 to 7, is characterized in that, described appointment unit, specifically for as follows based on described lifetime property information determine to optimize follow-up can the reserve resource of resource utilization in expeced time:
In the part resource set of setting, based on described lifetime property information, prioritizing selection can optimize follow-up can the reserve resource of resource utilization in expeced time.
9. a resource allocation apparatus, is characterized in that, comprises communication interface, memory and processor, wherein:
Described memory, for storing the program code that described processor performs;
Described processor, for calling the program code that described memory stores, realizes following function:
The lifetime property information of service application is obtained by communication interface, described lifetime property message reflection service application expection takies the temporal information of resource, and based on described lifetime property information determine to optimize follow-up can the reserve resource of resource utilization in expeced time, for described service application preengages described reserve resource, when reaching service application expection and taking the initial time of resource, described reserve resource is distributed to described service application.
10. equipment as claimed in claim 9, is characterized in that, described processor, also for:
Follow-up can under in expeced time, resource utilization meets the prerequisite of further optimal conditions, before preengaging described reserve resource for described service application, reserve resource is heavily preengage.
CN201410476386.3A 2014-09-17 2014-09-17 A kind of resource allocation methods, device and equipment Active CN104301257B (en)

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 true CN104301257A (en) 2015-01-21
CN104301257B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354090A (en) * 2015-10-16 2016-02-24 安一恒通(北京)科技有限公司 Management method and device of virtual equipment
CN105357251A (en) * 2015-09-24 2016-02-24 浪潮集团有限公司 Resource pool management system and management method
WO2016041446A1 (en) * 2014-09-17 2016-03-24 华为技术有限公司 Resource allocation method, apparatus and device
CN106911731A (en) * 2015-12-22 2017-06-30 阿里巴巴集团控股有限公司 The dispatching method and device of a kind of internet information resource
CN108616553A (en) * 2016-12-13 2018-10-02 中国移动通信有限公司研究院 Cloud computing resource pool carries out the method and device of scheduling of resource
CN109903023A (en) * 2018-11-22 2019-06-18 阿里巴巴集团控股有限公司 A kind of resource allocation methods and system
WO2022151951A1 (en) * 2021-01-13 2022-07-21 华为技术有限公司 Task scheduling method and management system

Citations (3)

* Cited by examiner, † Cited by third party
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
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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016041446A1 (en) * 2014-09-17 2016-03-24 华为技术有限公司 Resource allocation method, apparatus and device
CN105357251A (en) * 2015-09-24 2016-02-24 浪潮集团有限公司 Resource pool management system and management method
CN105354090A (en) * 2015-10-16 2016-02-24 安一恒通(北京)科技有限公司 Management method and device of virtual equipment
CN105354090B (en) * 2015-10-16 2019-04-16 安一恒通(北京)科技有限公司 The management method and device of virtual unit
CN106911731A (en) * 2015-12-22 2017-06-30 阿里巴巴集团控股有限公司 The dispatching method and device of a kind of internet information resource
CN106911731B (en) * 2015-12-22 2020-05-19 阿里巴巴集团控股有限公司 Scheduling method and device for internet information resources
CN108616553A (en) * 2016-12-13 2018-10-02 中国移动通信有限公司研究院 Cloud computing resource pool carries out the method and device of scheduling of resource
CN109903023A (en) * 2018-11-22 2019-06-18 阿里巴巴集团控股有限公司 A kind of resource allocation methods and system
WO2022151951A1 (en) * 2021-01-13 2022-07-21 华为技术有限公司 Task scheduling method and management system

Also Published As

Publication number Publication date
CN104301257B (en) 2018-01-02
WO2016041446A1 (en) 2016-03-24

Similar Documents

Publication Publication Date Title
US20220045965A1 (en) Simple Integration of an On-Demand Compute Environment
CN104301257A (en) Resource distribution method, device and equipment
US9846595B2 (en) Managed services coordinator
US10114668B2 (en) Managing private use of program execution capacity
JP6254949B2 (en) Pricing resources in virtual machine pools
US9229764B2 (en) Estimating migration costs for migrating logical partitions within a virtualized computing environment based on a migration cost history
EP2802998B1 (en) Assignment of resources in virtual machine pools
US10649796B2 (en) Rolling resource credits for scheduling of virtual computer resources
US8775282B1 (en) Capacity management of draining-state platforms providing network-accessible resources
US20140297868A1 (en) Burst capacity for user-defined pools
JP2010277589A (en) Data center batch job quality of service control
JP2015011716A (en) Task execution by idle resources in grid computing system
US10705873B2 (en) Predictive virtual server scheduling and optimization of dynamic consumable resources to achieve priority-based workload performance objectives
CN110908774B (en) Resource scheduling method, equipment, system and storage medium
JP2021504780A (en) Application Prioritization for Automatic Diagonal Scaling in a Distributed Computing Environment
US10643193B2 (en) Dynamic workload capping
US10310738B2 (en) Avoid out of space outage in a thinly provisioned box
CN114072767B (en) Resource scheduling, application and pricing method, equipment, system and storage medium
TW202121274A (en) Cloud resource management method and apparatus, and electronic device and computer readable storage medium
CN108241535B (en) Resource management method and device and server equipment
CN102523267A (en) Cloud backup system and method
US10230664B1 (en) Strategic resource allocation in a web-based computing system
US10547497B1 (en) Methods and systems for providing predictive rating using a buffer
US11017417B1 (en) Using incentives to manage computing resources
KR20160063430A (en) Method for managing and assigning available resourse by reservation of virtual machine

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