WO2016041446A1 - Resource allocation method, apparatus and device - Google Patents

Resource allocation method, apparatus and device Download PDF

Info

Publication number
WO2016041446A1
WO2016041446A1 PCT/CN2015/089050 CN2015089050W WO2016041446A1 WO 2016041446 A1 WO2016041446 A1 WO 2016041446A1 CN 2015089050 W CN2015089050 W CN 2015089050W WO 2016041446 A1 WO2016041446 A1 WO 2016041446A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
service application
attribute information
reserved
time
Prior art date
Application number
PCT/CN2015/089050
Other languages
French (fr)
Chinese (zh)
Inventor
甘嘉栋
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016041446A1 publication Critical patent/WO2016041446A1/en

Links

Images

Definitions

  • the present invention relates to the field of resource allocation technologies, and in particular, to a resource allocation method, apparatus, and device.
  • the layered architecture of the business application layer and management layer is widely used in solutions that require dynamic resource allocation.
  • the business application sends a service resource request to the infrastructure management system to request the infrastructure resources needed to process a particular business to run its instance.
  • the resource specification requested by the infrastructure management system for the service resource request sent by the service application (the resource specification may be, for example, a physical specification such as a CPU, a memory, and a network connection, or other quality attribute requirements), and a resource distribution available in the system. Situation, comprehensive analysis and allocation of resources.
  • the infrastructure management system allocates resources, it is preferred to select the enabled infrastructure resource entities for resource allocation, and try not to use the unenabled infrastructure resource entities and select the infrastructure resources.
  • the resource resource entity with the least remaining resources is preferentially selected in the entity to allocate resources. After the time taken by the service application is reached, the resource is released.
  • the above process of resource allocation can improve resource utilization to a certain extent.
  • different service applications occupy different resources at different times.
  • the resource (1/2) on the infrastructure resource entity 1 in FIG. 1 is after a short time. Released, however resources on infrastructure resource entity 1 (1/4) and resources on infrastructure resource entity 2 (1/2) need to be occupied for a long time, although resources (1/4) occupy resources of infrastructure resource entities There are fewer, but still need to run the infrastructure resource entity 1, so it is necessary to run the infrastructure resource entity 1 and the infrastructure resource entity 2 at the same time, and the resource utilization in the infrastructure management system is difficult to maintain an optimized state for a long time.
  • Embodiments of the present invention provide a resource allocation method, device, and device to optimize infrastructure management Resource utilization in the system.
  • a resource allocation method including:
  • lifecycle attribute information of the service application where the lifecycle attribute information reflects time information that the service application expects to occupy resources
  • the reservation resource is allocated to the service application when the start time of the service application expected to occupy resources is reached.
  • the method further includes:
  • the reserved resources are re-subscribed under the premise that the resource utilization meets the further optimization conditions in the subsequent expected time.
  • the acquiring the lifecycle attribute information of the service application includes:
  • the service resource request interface carries the service application lifecycle attribute information function to obtain the lifecycle attribute information of the service application.
  • determining, according to the lifecycle attribute information, an reserved resource that can optimize resource utilization in a subsequent predictable time including:
  • an reserved resource capable of optimizing resource utilization in a subsequent predictable time is preferentially selected.
  • a resource allocation apparatus including an obtaining unit, a reservation unit, and an allocating unit, wherein:
  • the obtaining unit is configured to obtain lifecycle attribute information of the service application, where the lifecycle attribute information reflects time information that the service application expects to occupy resources;
  • the reservation unit is configured to determine, according to the lifecycle attribute information acquired by the acquiring unit, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application;
  • the allocating unit is configured to allocate, by the reservation unit, the reserved resource to the service application when the start time of the service application expected to occupy the resource is reached.
  • the apparatus further includes a re-subscribing unit, wherein:
  • the re-subscribing unit is configured to re-subscribe the reserved resource before the reservation unit reserves the reserved resource for the service application, on the premise that the resource utilization meets the further optimization condition in the subsequent predictable time.
  • the acquiring unit is specifically configured to obtain lifecycle attribute information of the service application as follows:
  • the service resource request interface carries the service application lifecycle attribute information function to obtain the lifecycle attribute information of the service application.
  • the scheduling unit is specifically configured to determine, according to the lifecycle attribute information, an appointment that can optimize resource utilization in a subsequent predictable time according to the following manner. Resources:
  • an reserved resource capable of optimizing resource utilization in a subsequent predictable time is preferentially selected.
  • a resource allocation device including a communication interface, a memory, and a processor, wherein:
  • the memory is configured to store program code executed by the processor
  • the processor is configured to invoke the program code stored in the memory to implement the following functions:
  • the life cycle attribute information of the service application is obtained by using the communication interface, where the life cycle attribute information reflects time information that the service application expects to occupy the resource, and determines, according to the life cycle attribute information, the reserved resource that can optimize the resource utilization rate in the subsequent expected time. Dedicating the pre-order for the business application The resource is allocated to the service application when the start time of the resource occupied by the service application is reached.
  • the processor is further configured to:
  • the reserved resource is re-subscribed before the reserved resource is reserved for the service application.
  • the resource allocation method, device and device provided by the embodiment of the present invention obtain the life cycle attribute information of the service application, and the life cycle attribute information can reflect the time information of the expected resource occupation of the service application, so that the resource in the subsequent predictable time can be known in advance. The time taken. And determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application, and when the time at which the service application expects to occupy the resource is reached, the reserved resource is used. Assignment to business applications enables resource utilization in the infrastructure management system to be optimized for the expected time and maintained in an optimized state.
  • FIG. 3 is a schematic structural diagram of a resource allocation device according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a resource allocation method according to an embodiment of the present invention.
  • FIG. 5A is a schematic diagram of an existing resource allocation process
  • FIG. 5B is a schematic diagram of a resource allocation process according to an embodiment of the present invention.
  • 6A is a schematic structural diagram of a resource allocation apparatus according to an embodiment of the present invention.
  • FIG. 6B is a schematic structural diagram of another resource allocation apparatus according to an embodiment of the present invention.
  • a service resource request interface of an infrastructure management system has a service resource request function for acquiring a service application, and an infrastructure management system.
  • the resource request and the management module obtain the service resource request of the service application, and the resource allocation and management module selects the resource for the service application in the resource pool based on the obtained service resource request.
  • the function of the service resource requesting interface is extended to obtain the lifecycle attribute information of the service application, and the lifecycle attribute information of the service application is obtained, and the lifecycle attribute information reflects the time information of the expected resource occupation of the service application. .
  • the resource allocation and management module performs resource allocation based on the acquired lifecycle attribute information to achieve the purpose of optimizing resource utilization in the infrastructure management system within an expected time.
  • resource allocation method provided in the embodiment of the present invention is not limited to the system architecture diagram shown in FIG. 2, for example, the resource allocation function and the resource management function may be applied to two separate entities in the embodiment of the present invention. Module implementation.
  • the embodiment of the present invention provides a resource allocation device 300.
  • the resource allocation device 300 includes a communication interface 301, a memory 302, and a processor 303.
  • the resource allocation device 300 provided in the embodiment of the present invention may further include a communication bus, which is not limited by the embodiment of the present invention.
  • the communication interface 301 communicates with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc., using devices such as transceivers.
  • devices or communication networks such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc., using devices such as transceivers.
  • the memory 302 in the embodiment of the present invention may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or a storable memory.
  • ROM read-only memory
  • RAM random access memory
  • EEPROM Electro Scientific Erasable Programmable Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory
  • disc storage including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.
  • disk storage media or other magnetic storage devices or can be used for Any other medium that carries or stores the desired program code in the form of an instruction or data structure and that can be accessed by a computer, but is not limited thereto.
  • the processor 303 in the embodiment of the present invention may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more program programs for controlling the present invention. Execution of the integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the memory 302 is used to store the program code executed by the processor 303 in the embodiment of the present invention.
  • the processor 303 is configured to call the program code stored in the memory 302 to implement the following functions:
  • the life cycle attribute information of the service application is obtained through the communication interface 301, and the life cycle attribute information reflects time information that the service application expects to occupy the resource.
  • the processor 303 is further configured to:
  • the reserved resource is re-subscribed before the reserved resource is reserved for the service application; wherein the further optimization condition is that the subsequent candidate can be expected
  • the resource allocation in the time is tuned, for example, the overall resource utilization can be maximized.
  • the communication interface 301 may be a service resource request interface, where the service resource request interface has an extended function that carries the service application lifecycle attribute information, and the processor 303 may invoke the service resource request interface to carry the service application lifecycle attribute.
  • the processor 303 may determine, according to the lifecycle attribute information, an reserved resource that can optimize resource utilization in a subsequent expected time period:
  • the set resource set in the embodiment of the present invention may be all resources in the infrastructure management system, and also It can be part of the resources in the infrastructure management system.
  • part of the resources are preferably set in the infrastructure management system, and the resource allocation is performed based on the life cycle attribute information, so that the infrastructure management system can simultaneously support the original allocation mechanism (ie, the life cycle of the resource occupation is not considered). ), and mechanisms for resource allocation based on lifecycle information.
  • the resource allocation is performed based on the lifecycle information, and the uncertainty of the original resource allocation mechanism may be avoided to affect the resource allocation based on the lifecycle attribute information.
  • the reserved resource capable of optimizing resource utilization in the subsequent expected time is preferentially selected.
  • the enabled infrastructure resource entity may be selected in the subsequent expected time when the resource occupation time is similar to the expected resource occupation time in the life cycle attribute information, and the unallocated resource meets the resource condition required by the service application. Resources as an appointment resource.
  • the resource allocation device 300 provided by the embodiment of the present invention may be an infrastructure management system or a component in the infrastructure management system, which is not limited in the embodiment of the present invention.
  • the resource allocation device 300 of the embodiment of the present invention obtains the life cycle attribute information of the service application, where the life cycle attribute information can reflect the time information of the expected resource occupation of the service application, so that the resource can be occupied in the expected expected time. time. And determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application, and when the time at which the service application expects to occupy the resource is reached, the reserved resource is used. Assignment to business applications enables resource utilization in the infrastructure management system to be optimized for the expected time and maintained in an optimized state.
  • Embodiments of the Present Invention A method for implementing a resource allocation method will be described in detail below.
  • FIG. 4 is a flowchart of a method for implementing a resource allocation method according to an embodiment of the present invention.
  • the execution body of the method shown in FIG. 4 may be, for example, an infrastructure management system or a component of an infrastructure management system, which is not implemented in the embodiment of the present invention. limited.
  • the method includes:
  • the lifecycle attribute information reflects time information that the service application expects to occupy resources.
  • the scalable resource requesting interface has the function of carrying the service lifecycle attribute information of the service application, and the service resource requesting interface carries the service application lifecycle attribute information function to obtain the lifecycle attribute information of the service application.
  • the life cycle attribute information in the embodiment of the present invention may be represented by, for example, the structure shown in Table 1 below.
  • lifecycle attribute information in the embodiment of the present invention is not limited to several examples listed in Table 1, and should also include any manner that can be used to describe the time when the resource is expected to be occupied. For example, it can also be a time list for listing the expected usage time of each irregularity (non-repetitive period).
  • S102 Determine, according to the lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the determined reserved resource for the service application.
  • the reserved resource determined by the service application reservation is not actually allocated and occupied, but the reserved resource cannot be reserved or allocated to the current reserved time within the reserved time.
  • Other business applications other than business applications.
  • the resource resource fragmentation and the enabled infrastructure resource may be used.
  • the at least one of the minimum number of entities and the optimized state for a long time is an optimization target, and the determination of the reserved resources is performed.
  • the process of determining the reserved resource that can optimize the resource utilization rate in the subsequent expected time based on the lifecycle attribute information may be as follows:
  • S103 Allocate the reserved resource to the service application when the start time of the resource occupied by the service application is reached.
  • the resource allocation method provided by the embodiment of the present invention obtains the life cycle attribute information of the service application, where the life cycle attribute information can reflect the time information of the expected resource occupation of the service application, so that the time when the resource is occupied in the subsequent expected time can be known in advance. . And determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application, and when the time at which the service application expects to occupy the resource is reached, the reserved resource is used. Assignment to business applications enables resource utilization in the infrastructure management system to be optimized for the expected time and maintained in an optimized state.
  • the reservation resource based on the life cycle attribute information of the service application is reserved for the service application, and is not actually allocated and occupied. Therefore, in the embodiment of the present invention, another basis can be realized by changing the reservation information.
  • the resource reservation of the facility resource entity is applied to the business application without any resource migration technology, and the technology implementation is simple and easy.
  • the reserved resources may be re-subscribed, wherein, further optimization is performed.
  • Conditions for example, can be to reduce resource fragmentation, minimize the number of enabled infrastructure resource entities, or enable the foundation in an infrastructure management system Facility resource entities can be optimized for a long time.
  • the reserved resource may be on the current infrastructure resource entity, and the resource occupation time in the subsequent predictable time is similar to the time expected by the current service application, and the unallocated resource of the current infrastructure resource entity does not satisfy the current
  • the reserved resource on the current infrastructure resource entity is re-subscribed, and the reserved resource and the resource required by the current application are allocated to the same infrastructure resource entity to optimize resource utilization.
  • the resource specifications for business application applications are 0.25S, 0.5S, or 0.75S (the actual resource specifications are multi-dimensional).
  • FIG. 5A is a schematic diagram of resource allocation according to an original allocation mechanism that does not consider lifecycle attribute information
  • FIG. 5B is a schematic diagram of resource allocation based on lifecycle attribute information according to an embodiment of the present invention.
  • the resources are allocated on the infrastructure resource entity that is preferentially allocated from the existing partial resources, that is, the new infrastructure resource entity is enabled as much as possible.
  • the resource resource allocation is preferentially selected by the infrastructure resource entity with the least remaining resources and the least allocated business resources. The role of this is to avoid "fragmentation" of resources and improve resource utilization.
  • the resource utilization the total amount of resources allocated/the total amount of resources of the enabled infrastructure resource entity, the simple calculation can obtain the overall resource utilization rate during the period from t1 to t6 is only about 56%. If the allocation has not changed after t6, the utilization will remain at a low level of about 33% for a long time.
  • rA and rC made resource reservations in advance. Although the expected resource occupation time of the two is very different, there is no other resource distribution that can be optimally allocated at the time, so they are all reserved to s1 (resources are not Really allocated occupancy, still in the power-off state).
  • rA allocates resources according to the original reservation, and s1 powers up.
  • the system analyzes that rB and rC are basically the same in the expected long-term occupation of resources, and the allocation together can bring long-term resource optimization effects. Therefore, start s2 to allocate rB resources, and re-subscribe rC to s2.
  • the rE is processed at t4, and the s3 should be allocated according to the general policy without considering the lifecycle attribute information.
  • rE and rB that is, rC
  • the time is basically the same (all long-running), so the allocation strategy is appropriately adjusted, and the allocation is specified by s2.
  • the result of the method of the present invention in the example is that the resource utilization rate is 67.5% (originally 56%) from t1 to t6; Long-running resource utilization is 100%.
  • the resource allocation method provided by the embodiment of the present invention obtains the life cycle attribute information of the service application, where the life cycle attribute information can reflect the time information of the expected resource occupation of the service application, so that the time when the resource is occupied in the subsequent expected time can be known in advance. . And determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application, and when the time at which the service application expects to occupy the resource is reached, the reserved resource is used. Assignment to business applications enables resource utilization in the infrastructure management system to be optimized for the expected time and maintained in an optimized state. Further, in the embodiment of the present invention, a simple risk-free "re-reservation" adjustment can be performed when necessary, and finally the use of the overall resource can be maintained in an optimized state for a predictable period of time, and the technical implementation is simple.
  • the resource on the infrastructure resource entity in the infrastructure management system may be a resource or a group used by the upper layer service application managed by the infrastructure management system.
  • it may be network resources (network connection and communication bandwidth, etc.), storage resources, certain types of special processing capabilities (such as data encryption and decryption processing capabilities provided by special hardware), and the like.
  • the form of resource allocation is also diverse.
  • the allocated resource forms are not limited to virtual machines using virtualization technology, and may include any part of physical resources or
  • the overall form provided to the applicant, such as the CGroups technology provided by the Linux kernel can divide an OS-managed resource (generally a physical server) into multiple entities with certain resources.
  • the infrastructure resource entity is also diverse.
  • the physical resource entity does not necessarily refer to a physical server, but can provide any computing resource. Physical or logical collection. For example, it may be a plurality of blade servers in a chassis, a server in a machine room, or a server logically divided into a cluster, and the like.
  • the resource allocation method provided by the foregoing embodiment of the present invention can flexibly apply the resource allocation method based on the lifecycle attribute information to the current infrastructure management system according to actual conditions, for example:
  • users such as personnel within the department
  • the infrastructure management system in order to maximize the effect of the method of the present invention, will allocate resources in strict accordance with the life cycle specified by its users (such as personnel in the department) when requesting resources, ie The user cannot access the resource at a time outside the pre-specified lifecycle.
  • the constraint needs to be notified to the user in advance by using, for example, a specification.
  • the method for resource allocation based on the lifecycle attribute information provided by the embodiment of the present invention may be applied only to the setting part of the infrastructure resource management entity in the infrastructure management system, and the original resource allocation method is applied in the remaining part.
  • a typical example would be that the infrastructure management system is externally available.
  • the resource request carries or does not carry lifecycle information, but internally classifies the two types of requests, and uses the method of the present invention to allocate and optimize resources for the request carrying the lifecycle information, and assigns a dedicated one to it.
  • the collection of resources; the remaining requests continue to use the original allocation mechanism (ie, regardless of the life cycle of resource occupancy), and specify another resource collection to assume resource allocation.
  • the advantage of distinguishing the two is that the resource allocation of the former is analyzed and optimized based on the life cycle of the resource, which avoids the influence of the resource allocation and the uncertainty of the use of the latter (regardless of the life cycle of resource occupation) on the former. .
  • the embodiment of the present invention further provides a resource allocation apparatus 600.
  • the resource allocation apparatus 600 includes an obtaining unit 601, a reservation unit 602, and an allocating unit 603, where:
  • the obtaining unit 601 is configured to obtain lifecycle attribute information of the service application, where the lifecycle attribute information reflects time information that the service application expects to occupy the resource.
  • the reservation unit 602 is configured to determine, according to the lifecycle attribute information acquired by the obtaining unit 601, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve an reserved resource for the service application.
  • the allocating unit 603 is configured to allocate the reserved resource reserved by the reservation unit 602 to the service application when the start time of the service application expected resource occupation is reached.
  • the resource allocation device 600 further includes a re-subscribing unit 604, as shown in FIG. 6B, in which:
  • the re-subscribing unit 604 is configured to re-subscribe the reserved resources before the reservation unit 602 reserves the reserved resources for the service application on the premise that the resource utilization meets the further optimization condition in the subsequent predictable time.
  • the obtaining unit 601 is specifically configured to obtain lifecycle attribute information of the service application as follows:
  • the service resource request interface is invoked to carry the service application lifecycle attribute information function.
  • the service resource request interface carries the service application lifecycle attribute information function to obtain the lifecycle attribute information of the service application.
  • the reservation unit 602 is specifically configured to determine, according to the lifecycle attribute information, an reserved resource that can optimize resource utilization in a subsequent predictable time according to the following manner:
  • the reserved resource capable of optimizing resource utilization in the subsequent expected time is preferentially selected.
  • the resource allocation device 600 provided by the embodiment of the present invention may be an infrastructure management system or a component in the infrastructure management system, which is not limited in the embodiment of the present invention.
  • the resource allocation device 600 obtains the life cycle attribute information of the service application, and the life cycle attribute information can reflect the time information of the expected resource occupation of the service application, so that the resource can be occupied in the expected expected time. time. And determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application, and when the time at which the service application expects to occupy the resource is reached, the reserved resource is used. Assignment to business applications enables resource utilization in the infrastructure management system to be optimized for the expected time and maintained in an optimized state. Further, in the embodiment of the present invention, a simple risk-free "re-reservation" adjustment can be performed when necessary, and finally the use of the overall resource can be maintained in an optimized state for a predictable period of time, and the technical implementation is simple.
  • the resource allocation apparatus 600 provided by the embodiment of the present invention can be used to implement the resource allocation method of FIG. 4 and FIG. 5B. Therefore, the resource allocation apparatus 600 is not described in detail in the embodiment of the present invention, and may refer to related manners. The description of the embodiments will not be repeated here.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed are a resource allocation method, apparatus and device. In the present invention, the life cycle attribute information of a service application is obtained, and the life cycle attribute information indicates the time information of the resource expected to be occupied by the service application; a reserve resource capable of optimizing the resource utilization rate within a subsequent predictable period is determined on the basis of the life cycle attribute information, and the reserve resource is reserved for the service application; upon reaching the starting time when the resource is expected to be occupied by the service application, the reserve resource is allocated to the service application. By the present invention, the resource utilization rate in an infrastructure management system could be optimized in a predictable period and maintain the optimized state.

Description

一种资源分配方法、装置及设备Resource allocation method, device and device 技术领域Technical field
本发明涉及资源分配技术领域,尤其涉及一种资源分配方法、装置及设备。The present invention relates to the field of resource allocation technologies, and in particular, to a resource allocation method, apparatus, and device.
背景技术Background technique
随着云概念的推广,业务应用层与管理层的分层架构广泛应用于要求资源动态分配的解决方案中。With the promotion of the cloud concept, the layered architecture of the business application layer and management layer is widely used in solutions that require dynamic resource allocation.
业务应用向基础设施管理系统发送业务资源请求,以申请处理特定业务所需的基础设施资源以运行其实例。基础设施管理系统针对业务应用发送的业务资源请求中请求的资源规格(资源规格例如可以是CPU、内存和网络连接等物理规格,也可以是其它一些质量属性要求),以及系统内可用的资源分布情况,进行综合分析并进行资源的分配。The business application sends a service resource request to the infrastructure management system to request the infrastructure resources needed to process a particular business to run its instance. The resource specification requested by the infrastructure management system for the service resource request sent by the service application (the resource specification may be, for example, a physical specification such as a CPU, a memory, and a network connection, or other quality attribute requirements), and a resource distribution available in the system. Situation, comprehensive analysis and allocation of resources.
目前,基础设施管理系统进行资源分配时,在满足资源规格的前提下,优先选取已启用的基础设施资源实体进行资源分配,尽量不使用未启用的基础设施资源实体,并在选取的基础设施资源实体中优先选择剩余资源最少的基础设施资源实体进行资源分配,在业务应用占用资源时间达到后,资源被释放。At present, when the infrastructure management system allocates resources, it is preferred to select the enabled infrastructure resource entities for resource allocation, and try not to use the unenabled infrastructure resource entities and select the infrastructure resources. The resource resource entity with the least remaining resources is preferentially selected in the entity to allocate resources. After the time taken by the service application is reached, the resource is released.
上述进行资源分配的过程在一定程度上能够提高资源利用率,然而,不同业务应用占用资源的时间不尽相同,例如图1中基础设施资源实体1上的资源(1/2)在短时间后被释放,然而基础设施资源实体1上的资源(1/4)和基础设施资源实体2上的资源(1/2)需要长期被占用,虽然资源(1/4)占用基础设施资源实体的资源较少,但是还是需要运行基础设施资源实体1,故需要同时运行基础设施资源实体1和基础设施资源实体2,基础设施管理系统中的资源利用率很难在长时间内保持优化的状态。The above process of resource allocation can improve resource utilization to a certain extent. However, different service applications occupy different resources at different times. For example, the resource (1/2) on the infrastructure resource entity 1 in FIG. 1 is after a short time. Released, however resources on infrastructure resource entity 1 (1/4) and resources on infrastructure resource entity 2 (1/2) need to be occupied for a long time, although resources (1/4) occupy resources of infrastructure resource entities There are fewer, but still need to run the infrastructure resource entity 1, so it is necessary to run the infrastructure resource entity 1 and the infrastructure resource entity 2 at the same time, and the resource utilization in the infrastructure management system is difficult to maintain an optimized state for a long time.
发明内容Summary of the invention
本发明实施例提供一种资源分配方法、装置及设备,以优化基础设施管理 系统中的资源利用率。Embodiments of the present invention provide a resource allocation method, device, and device to optimize infrastructure management Resource utilization in the system.
第一方面,提供一种资源分配方法,包括:In a first aspect, a resource allocation method is provided, including:
获取业务应用的生命周期属性信息,所述生命周期属性信息反映所述业务应用预期占用资源的时间信息;Obtaining lifecycle attribute information of the service application, where the lifecycle attribute information reflects time information that the service application expects to occupy resources;
基于所述生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,并为所述业务应用预约所述预约资源;Determining, according to the lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and scheduling the reserved resource for the service application;
在达到所述业务应用预期占用资源的起始时间时,将所述预约资源分配给所述业务应用。The reservation resource is allocated to the service application when the start time of the service application expected to occupy resources is reached.
结合第一方面,在第一种实现方式中,为所述业务应用预约所述预约资源之前,所述方法还包括:With reference to the first aspect, in a first implementation manner, before the reservation resource is reserved for the service application, the method further includes:
在后继可预期时间内资源利用率满足进一步优化条件的前提下,对已预约资源进行重预约。The reserved resources are re-subscribed under the premise that the resource utilization meets the further optimization conditions in the subsequent expected time.
结合第一方面或者第一方面的第一种实现方式,在第二种实现方式中,所述获取业务应用的生命周期属性信息,包括:With reference to the first aspect, or the first implementation manner of the first aspect, in the second implementation manner, the acquiring the lifecycle attribute information of the service application includes:
调用业务资源请求接口携带业务应用生命周期属性信息功能;Invoking a service resource request interface to carry a service application lifecycle attribute information function;
通过调用的业务资源请求接口携带业务应用生命周期属性信息功能,获取业务应用的生命周期属性信息。The service resource request interface carries the service application lifecycle attribute information function to obtain the lifecycle attribute information of the service application.
结合第一方面的上述任一种实现方式,在第三种实现方式中,基于所述生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,包括:With reference to any one of the foregoing implementation manners of the first aspect, in a third implementation manner, determining, according to the lifecycle attribute information, an reserved resource that can optimize resource utilization in a subsequent predictable time, including:
在设定的部分资源集合中,基于所述生命周期属性信息,优先选择能够优化后继可预期时间内资源利用率的预约资源。In the set partial resource set, based on the lifecycle attribute information, an reserved resource capable of optimizing resource utilization in a subsequent predictable time is preferentially selected.
第二方面,提供一种资源分配装置,包括获取单元、预约单元和分配单元,其中:In a second aspect, a resource allocation apparatus is provided, including an obtaining unit, a reservation unit, and an allocating unit, wherein:
所述获取单元,用于获取业务应用的生命周期属性信息,所述生命周期属性信息反映所述业务应用预期占用资源的时间信息; The obtaining unit is configured to obtain lifecycle attribute information of the service application, where the lifecycle attribute information reflects time information that the service application expects to occupy resources;
所述预约单元,用于基于所述获取单元获取的所述生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,并为所述业务应用预约所述预约资源;The reservation unit is configured to determine, according to the lifecycle attribute information acquired by the acquiring unit, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application;
所述分配单元,用于在达到所述业务应用预期占用资源的起始时间时,将所述预约单元预约的预约资源分配给所述业务应用。The allocating unit is configured to allocate, by the reservation unit, the reserved resource to the service application when the start time of the service application expected to occupy the resource is reached.
结合第二方面,在第一种实现方式中,所述装置还包括重预约单元,其中:In conjunction with the second aspect, in a first implementation, the apparatus further includes a re-subscribing unit, wherein:
所述重预约单元,用于在后继可预期时间内资源利用率满足进一步优化条件的前提下,在所述预约单元为所述业务应用预约所述预约资源之前,对已预约资源进行重预约。And the re-subscribing unit is configured to re-subscribe the reserved resource before the reservation unit reserves the reserved resource for the service application, on the premise that the resource utilization meets the further optimization condition in the subsequent predictable time.
结合第二方面或者第二方面的第一种实现方式,在第二种实现方式中,所述获取单元,具体用于按如下方式获取业务应用的生命周期属性信息:With reference to the second aspect or the first implementation manner of the second aspect, in the second implementation manner, the acquiring unit is specifically configured to obtain lifecycle attribute information of the service application as follows:
调用业务资源请求接口携带业务应用生命周期属性信息功能;Invoking a service resource request interface to carry a service application lifecycle attribute information function;
通过调用的业务资源请求接口携带业务应用生命周期属性信息功能,获取业务应用的生命周期属性信息。The service resource request interface carries the service application lifecycle attribute information function to obtain the lifecycle attribute information of the service application.
结合第二方面的任一种实现方式,在第三种实现方式中,所述预约单元,具体用于按如下方式基于所述生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源:With reference to any implementation of the second aspect, in a third implementation manner, the scheduling unit is specifically configured to determine, according to the lifecycle attribute information, an appointment that can optimize resource utilization in a subsequent predictable time according to the following manner. Resources:
在设定的部分资源集合中,基于所述生命周期属性信息,优先选择能够优化后继可预期时间内资源利用率的预约资源。In the set partial resource set, based on the lifecycle attribute information, an reserved resource capable of optimizing resource utilization in a subsequent predictable time is preferentially selected.
第三方面,提供一种资源分配设备,包括通信接口、存储器和处理器,其中:In a third aspect, a resource allocation device is provided, including a communication interface, a memory, and a processor, wherein:
所述存储器,用于存储所述处理器执行的程序代码;The memory is configured to store program code executed by the processor;
所述处理器,用于调用所述存储器存储的程序代码,实现如下功能:The processor is configured to invoke the program code stored in the memory to implement the following functions:
通过通信接口获取业务应用的生命周期属性信息,所述生命周期属性信息反映业务应用预期占用资源的时间信息,并基于所述生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,为所述业务应用预约所述预 约资源,在达到业务应用预期占用资源的起始时间时,将所述预约资源分配给所述业务应用。The life cycle attribute information of the service application is obtained by using the communication interface, where the life cycle attribute information reflects time information that the service application expects to occupy the resource, and determines, according to the life cycle attribute information, the reserved resource that can optimize the resource utilization rate in the subsequent expected time. Dedicating the pre-order for the business application The resource is allocated to the service application when the start time of the resource occupied by the service application is reached.
结合第三方面,在第一种实现方式中,所述处理器,还用于:With reference to the third aspect, in a first implementation manner, the processor is further configured to:
在后继可预期时间内资源利用率满足进一步优化条件的前提下,在为所述业务应用预约所述预约资源之前,对已预约资源进行重预约。Under the premise that the resource utilization meets the further optimization condition in the subsequent expected time, the reserved resource is re-subscribed before the reserved resource is reserved for the service application.
本发明实施例提供的资源分配方法、装置及设备,获取业务应用的生命周期属性信息,该生命周期属性信息中能够反映业务应用预期占用资源的时间信息,故可预先获知后继可预期时间内资源被占用的时间。然后基于获取的生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,为业务应用预约所述预约资源,在达到业务应用预期占用资源的起始时间时,将所述预约资源分配给业务应用,能够使得基础设施管理系统中的资源利用率在可预期时间内得到优化,并保持优化状态。The resource allocation method, device and device provided by the embodiment of the present invention obtain the life cycle attribute information of the service application, and the life cycle attribute information can reflect the time information of the expected resource occupation of the service application, so that the resource in the subsequent predictable time can be known in advance. The time taken. And determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application, and when the time at which the service application expects to occupy the resource is reached, the reserved resource is used. Assignment to business applications enables resource utilization in the infrastructure management system to be optimized for the expected time and maintained in an optimized state.
附图说明DRAWINGS
图1为现有技术中资源分配示意图;1 is a schematic diagram of resource allocation in the prior art;
图2为本发明实施例可应用的系统架构图;2 is a system architecture diagram of an applicable embodiment of the present invention;
图3为为本发明实施例提供的资源分配设备构成示意图;3 is a schematic structural diagram of a resource allocation device according to an embodiment of the present invention;
图4为本发明实施例提供的资源分配方法流程图;4 is a flowchart of a resource allocation method according to an embodiment of the present invention;
图5A为现有资源分配过程示意图;FIG. 5A is a schematic diagram of an existing resource allocation process; FIG.
图5B为本发明实施例提供的资源分配过程示意图;FIG. 5B is a schematic diagram of a resource allocation process according to an embodiment of the present invention; FIG.
图6A为本发明实施例提供的资源分配装置构成示意图;6A is a schematic structural diagram of a resource allocation apparatus according to an embodiment of the present invention;
图6B为本发明实施例提供的另一资源分配装置构成示意图。FIG. 6B is a schematic structural diagram of another resource allocation apparatus according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,并不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, one of ordinary skill in the art does not create All other embodiments obtained under the premise of sexual labor are within the scope of protection of the present invention.
图2所示为本发明实施例提供的资源分配方法可应用的系统架构示意图,如图2所示,基础设施管理系统的业务资源请求接口具有获取业务应用的业务资源请求功能,基础设施管理系统通过资源请求接口获取业务应用的业务资源请求,资源分配与管理模块基于获取的业务资源请求,在资源池中选择资源为业务应用分配。本发明实施例中可扩展业务资源请求接口的功能,使其具有获取业务应用的生命周期属性信息的功能,获取业务应用的生命周期属性信息,生命周期属性信息反映业务应用预期占用资源的时间信息。资源分配与管理模块基于获取的生命周期属性信息进行资源分配,以达到在预期时间内对基础设施管理系统中的资源利用率进行优化的目的。2 is a schematic diagram of a system architecture applicable to a resource allocation method according to an embodiment of the present invention. As shown in FIG. 2, a service resource request interface of an infrastructure management system has a service resource request function for acquiring a service application, and an infrastructure management system. The resource request and the management module obtain the service resource request of the service application, and the resource allocation and management module selects the resource for the service application in the resource pool based on the obtained service resource request. In the embodiment of the present invention, the function of the service resource requesting interface is extended to obtain the lifecycle attribute information of the service application, and the lifecycle attribute information of the service application is obtained, and the lifecycle attribute information reflects the time information of the expected resource occupation of the service application. . The resource allocation and management module performs resource allocation based on the acquired lifecycle attribute information to achieve the purpose of optimizing resource utilization in the infrastructure management system within an expected time.
需要说明的是,本发明实施例中提供的资源分配方法并不局限于图2所示的系统架构图,例如本发明实施例中还可应用于资源分配功能与资源管理功能通过两个单独的模块实现。It should be noted that the resource allocation method provided in the embodiment of the present invention is not limited to the system architecture diagram shown in FIG. 2, for example, the resource allocation function and the resource management function may be applied to two separate entities in the embodiment of the present invention. Module implementation.
本发明实施例提供一种资源分配设备300,如图3所示该资源分配设备300包括通信接口301、存储器302和处理器303。当然根据实际情况,本发明实施例中提供的资源分配设备300可能还包括通信总线,本发明实施例不做限定。The embodiment of the present invention provides a resource allocation device 300. As shown in FIG. 3, the resource allocation device 300 includes a communication interface 301, a memory 302, and a processor 303. Of course, the resource allocation device 300 provided in the embodiment of the present invention may further include a communication bus, which is not limited by the embodiment of the present invention.
本发明实施例中通信接口301,使用诸如收发器一类的装置,与其他设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。In the embodiment of the present invention, the communication interface 301 communicates with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc., using devices such as transceivers.
本发明实施例中存储器302,可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于 携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 302 in the embodiment of the present invention may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or a storable memory. Other types of dynamic storage devices for information and instructions, or Electro Scientific Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or Other disc storage, disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, or can be used for Any other medium that carries or stores the desired program code in the form of an instruction or data structure and that can be accessed by a computer, but is not limited thereto.
本发明实施例中处理器303,可以是一个通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本发明方案程序执行的集成电路。The processor 303 in the embodiment of the present invention may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more program programs for controlling the present invention. Execution of the integrated circuit.
本发明实施例中存储器302,用于存储处理器303执行的程序代码。The memory 302 is used to store the program code executed by the processor 303 in the embodiment of the present invention.
处理器303,用于调用存储器302存储的程序代码,实现如下功能:The processor 303 is configured to call the program code stored in the memory 302 to implement the following functions:
通过通信接口301获取业务应用的生命周期属性信息,该生命周期属性信息反映业务应用预期占用资源的时间信息。The life cycle attribute information of the service application is obtained through the communication interface 301, and the life cycle attribute information reflects time information that the service application expects to occupy the resource.
基于获取的生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,并为业务应用预约该确定的预约资源;在达到业务应用预期占用资源的起始时间时,将确定的预约资源分配给业务应用。Determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserves the determined reserved resource for the service application; when the start time of the service application is expected to occupy the resource, the determined reservation is determined. Resources are allocated to business applications.
在一种实现方式中,本发明实施例中处理器303还用于:In an implementation manner, the processor 303 is further configured to:
在后继可预期时间内资源利用率满足进一步优化条件的前提下,在为所述业务应用预约所述预约资源之前,对已预约资源进行重预约;其中,进一步优化条件是指可以对后继可预期时间内的资源分配进行调优,例如可以使整体资源利用率最高。Under the premise that the resource utilization meets the further optimization condition in the subsequent expected time, the reserved resource is re-subscribed before the reserved resource is reserved for the service application; wherein the further optimization condition is that the subsequent candidate can be expected The resource allocation in the time is tuned, for example, the overall resource utilization can be maximized.
具体的,本发明实施例中通信接口301可以是业务资源请求接口,该业务资源请求接口具有携带业务应用生命周期属性信息的扩展功能,处理器303可调用业务资源请求接口携带业务应用生命周期属性信息功能;通过调用的业务资源请求接口携带业务应用生命周期属性信息功能,获取业务应用的生命周期属性信息。Specifically, in the embodiment of the present invention, the communication interface 301 may be a service resource request interface, where the service resource request interface has an extended function that carries the service application lifecycle attribute information, and the processor 303 may invoke the service resource request interface to carry the service application lifecycle attribute. The information function: the service resource request interface carries the service application life cycle attribute information function, and obtains the life cycle attribute information of the service application.
具体的,本发明实施例中处理器303可采用如下方式基于所述生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源:Specifically, in the embodiment of the present invention, the processor 303 may determine, according to the lifecycle attribute information, an reserved resource that can optimize resource utilization in a subsequent expected time period:
A:确定设定资源集合中已启用基础设施资源实体。A: Determine that the infrastructure resource entity is enabled in the set resource collection.
本发明实施例中设定资源集合可以是基础设施管理系统中的全部资源,也 可以是基础设施管理系统中的部分资源。The set resource set in the embodiment of the present invention may be all resources in the infrastructure management system, and also It can be part of the resources in the infrastructure management system.
本发明实施例中优选在基础设施管理系统中设定部分资源,进行基于生命周期属性信息进行资源分配,以使基础设施管理系统对外可同时支持原有分配机制(即不考虑资源占用的生命周期),以及基于生命周期信息进行资源分配的机制。并且本发明实施例中设定部分资源进行基于生命周期信息进行资源分配,可避免原有资源分配机制的不确定性对基于生命周期属性信息进行资源分配的影响。In the embodiment of the present invention, part of the resources are preferably set in the infrastructure management system, and the resource allocation is performed based on the life cycle attribute information, so that the infrastructure management system can simultaneously support the original allocation mechanism (ie, the life cycle of the resource occupation is not considered). ), and mechanisms for resource allocation based on lifecycle information. In the embodiment of the present invention, the resource allocation is performed based on the lifecycle information, and the uncertainty of the original resource allocation mechanism may be avoided to affect the resource allocation based on the lifecycle attribute information.
B:在设定的部分资源集合中,基于生命周期属性信息,优先选择能够优化后继可预期时间内资源利用率的预约资源。B: In the set partial resource set, based on the life cycle attribute information, the reserved resource capable of optimizing resource utilization in the subsequent expected time is preferentially selected.
本发明实施例中,例如可以选择在后继可预期时间内资源被占用时间与生命周期属性信息中预期占用资源时间相近、且未分配资源满足业务应用所需资源条件的已启用基础设施资源实体上的资源,作为预约资源。In the embodiment of the present invention, for example, the enabled infrastructure resource entity may be selected in the subsequent expected time when the resource occupation time is similar to the expected resource occupation time in the life cycle attribute information, and the unallocated resource meets the resource condition required by the service application. Resources as an appointment resource.
本发明实施例上述提供的资源分配设备300,可以是基础设施管理系统,也可以是基础设施管理系统中的部件,本发明实施例不做限定。The resource allocation device 300 provided by the embodiment of the present invention may be an infrastructure management system or a component in the infrastructure management system, which is not limited in the embodiment of the present invention.
本发明实施例提供的资源分配设备300,获取业务应用的生命周期属性信息,该生命周期属性信息中能够反映业务应用预期占用资源的时间信息,故可预先获知后继可预期时间内资源被占用的时间。然后基于获取的生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,为业务应用预约所述预约资源,在达到业务应用预期占用资源的起始时间时,将所述预约资源分配给业务应用,能够使得基础设施管理系统中的资源利用率在可预期时间内得到优化,并保持优化状态。The resource allocation device 300 of the embodiment of the present invention obtains the life cycle attribute information of the service application, where the life cycle attribute information can reflect the time information of the expected resource occupation of the service application, so that the resource can be occupied in the expected expected time. time. And determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application, and when the time at which the service application expects to occupy the resource is reached, the reserved resource is used. Assignment to business applications enables resource utilization in the infrastructure management system to be optimized for the expected time and maintained in an optimized state.
本发明实施例以下将对资源分配方法的实现方法进行详细说明。Embodiments of the Present Invention A method for implementing a resource allocation method will be described in detail below.
图4所示为本发明实施例提供的资源分配方法实现流程图,图4所示方法的执行主体例如可以是基础设施管理系统,也可以是基础设施管理系统的部件,本发明实施例不做限定。如图4所示,该方法包括:FIG. 4 is a flowchart of a method for implementing a resource allocation method according to an embodiment of the present invention. The execution body of the method shown in FIG. 4 may be, for example, an infrastructure management system or a component of an infrastructure management system, which is not implemented in the embodiment of the present invention. limited. As shown in FIG. 4, the method includes:
S101:获取业务应用的生命周期属性信息。 S101: Obtain lifecycle attribute information of the service application.
本发明实施例中生命周期属性信息反映业务应用预期占用资源的时间信息。In the embodiment of the present invention, the lifecycle attribute information reflects time information that the service application expects to occupy resources.
本发明实施例中可扩展资源请求接口具有携带业务应用生命周期属性信息的功能,通过调用业务资源请求接口携带业务应用生命周期属性信息功能,获取业务应用的生命周期属性信息。In the embodiment of the present invention, the scalable resource requesting interface has the function of carrying the service lifecycle attribute information of the service application, and the service resource requesting interface carries the service application lifecycle attribute information function to obtain the lifecycle attribute information of the service application.
本发明实施例中生命周期属性信息例如可采用如下表1所示的结构进行表示,The life cycle attribute information in the embodiment of the present invention may be represented by, for example, the structure shown in Table 1 below.
Figure PCTCN2015089050-appb-000001
Figure PCTCN2015089050-appb-000001
表1Table 1
需要说明的是,本发明实施例中生命周期属性信息并不限于表1所列举的若干例子,还应包括任何可用于描述资源预期被占用的时间的方式。例如还可以是一个时间列表用于列出预期的各个不规则(非重复性周期)的使用时间。It should be noted that the lifecycle attribute information in the embodiment of the present invention is not limited to several examples listed in Table 1, and should also include any manner that can be used to describe the time when the resource is expected to be occupied. For example, it can also be a time list for listing the expected usage time of each irregularity (non-repetitive period).
S102:基于生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,并为业务应用预约该确定的预约资源。S102: Determine, according to the lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the determined reserved resource for the service application.
本发明实施例中为业务应用预约确定的预约资源,该被预约的预约资源没有真正被分配并占用,但是该预约资源在被预约的时间内,不能再被预约或分配给除当前被预约的业务应用以外的其它业务应用。In the embodiment of the present invention, the reserved resource determined by the service application reservation is not actually allocated and occupied, but the reserved resource cannot be reserved or allocated to the current reserved time within the reserved time. Other business applications other than business applications.
本发明实施例中基于生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源过程中,可采用以减少资源碎片、启用的基础设施资源 实体数目最少、长时间处于优化状态中的至少一个为优化目标,进行预约资源的确定。In the embodiment of the present invention, in the process of determining the reserved resource that can optimize resource utilization in the subsequent expected time period based on the lifecycle attribute information, the resource resource fragmentation and the enabled infrastructure resource may be used. The at least one of the minimum number of entities and the optimized state for a long time is an optimization target, and the determination of the reserved resources is performed.
例如,本发明实施例中基于生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源的过程,可采用如下方式:For example, in the embodiment of the present invention, the process of determining the reserved resource that can optimize the resource utilization rate in the subsequent expected time based on the lifecycle attribute information may be as follows:
确定设定资源集合中已启用基础设施资源实体,并确定已启用基础设施资源实体上已分配资源和已预约资源预期占用资源的时间。Determines that the infrastructure resource entity is enabled in the set resource collection and determines when the allocated resources on the infrastructure resource entity and the resources expected by the reserved resources are enabled.
优先选择在后继可预期时间内资源被占用时间与所述生命周期属性信息中预期占用资源时间相近、且未分配资源满足业务应用所需资源条件的已启用基础设施资源实体上的资源,作为预约资源。Preferentially selecting resources on the enabled infrastructure resource entity whose resource occupation time is similar to the expected resource occupation time in the life cycle attribute information, and the unallocated resource meets the resource condition required by the service application, as an appointment Resources.
S103:在达到业务应用预期占用资源的起始时间时,将预约资源分配给业务应用。S103: Allocate the reserved resource to the service application when the start time of the resource occupied by the service application is reached.
本发明实施例提供的资源分配方法,获取业务应用的生命周期属性信息,该生命周期属性信息中能够反映业务应用预期占用资源的时间信息,故可预先获知后继可预期时间内资源被占用的时间。然后基于获取的生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,为业务应用预约所述预约资源,在达到业务应用预期占用资源的起始时间时,将所述预约资源分配给业务应用,能够使得基础设施管理系统中的资源利用率在可预期时间内得到优化,并保持优化状态。The resource allocation method provided by the embodiment of the present invention obtains the life cycle attribute information of the service application, where the life cycle attribute information can reflect the time information of the expected resource occupation of the service application, so that the time when the resource is occupied in the subsequent expected time can be known in advance. . And determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application, and when the time at which the service application expects to occupy the resource is reached, the reserved resource is used. Assignment to business applications enables resource utilization in the infrastructure management system to be optimized for the expected time and maintained in an optimized state.
本发明实施例中基于业务应用的生命周期属性信息为业务应用进行资源预约的预约资源,未被真正分配并占用,故本发明实施例中通过对预约信息的更改,即可实现将另一基础设施资源实体的资源预约给业务应用,而不涉及任何资源迁移技术,技术实现简单易行。In the embodiment of the present invention, the reservation resource based on the life cycle attribute information of the service application is reserved for the service application, and is not actually allocated and occupied. Therefore, in the embodiment of the present invention, another basis can be realized by changing the reservation information. The resource reservation of the facility resource entity is applied to the business application without any resource migration technology, and the technology implementation is simple and easy.
可选的,本发明实施例中为了进一步达到基础设施管理系统中资源长时间内处于优化状态,即资源利用率满足进一步优化条件的前提下,可对已预约资源进行重预约,其中,进一步优化条件,例如可以是能够减少资源碎片、能够使启用的基础设施资源实体数目最少或者能够使基础设施管理系统中的基础 设施资源实体能够在长时间内处于优化状态。Optionally, in the embodiment of the present invention, in order to further achieve that the resources in the infrastructure management system are in an optimized state for a long time, that is, the resource utilization rate satisfies the further optimization condition, the reserved resources may be re-subscribed, wherein, further optimization is performed. Conditions, for example, can be to reduce resource fragmentation, minimize the number of enabled infrastructure resource entities, or enable the foundation in an infrastructure management system Facility resource entities can be optimized for a long time.
例如本发明实施例中可在当前基础设施资源实体上已预约资源在后继可预期时间内资源占用时间与当前业务应用预期占用资源的时间相近、且当前基础设施资源实体的未分配资源不满足当前业务应用所需资源的情况下,对当前基础设施资源实体上已预约资源进行重预约,将已预约的资源和当前应用所需的资源分配到同一基础设施资源实体上,优化资源利用率。For example, in the embodiment of the present invention, the reserved resource may be on the current infrastructure resource entity, and the resource occupation time in the subsequent predictable time is similar to the time expected by the current service application, and the unallocated resource of the current infrastructure resource entity does not satisfy the current In the case of the resource required by the service application, the reserved resource on the current infrastructure resource entity is re-subscribed, and the reserved resource and the resource required by the current application are allocated to the same infrastructure resource entity to optimize resource utilization.
本发明实施例以下将结合实际应用对上述进行资源分配的过程进行详细说明。Embodiments of the Invention The process of resource allocation described above will be described in detail below in conjunction with actual applications.
本发明实施例中假设基础设施管理系统中的基础设施资源实体的资源规格相同,资源总量记为1S,3个基础设施资源实体对应的资源分别为Sn,n=1、2和3。业务应用申请的资源规格为0.25S、0.5S或0.75S三种(现实中资源规格是多维度的)。假设基础设施管理系统需要依次处理5次资源请求rX(X=A、B、C、D、E),其请求的资源规格和时序关系如图5A和图5B所示,其中相邻两个时刻间的间隔均为时间T,且rA和rD对应的资源在使用一段时间后被释放,rB、rC和rE则继续长期占用。In the embodiment of the present invention, it is assumed that the resource resource entities in the infrastructure management system have the same resource specifications, and the total resources are recorded as 1S, and the resources corresponding to the three infrastructure resource entities are Sn, n=1, 2, and 3. The resource specifications for business application applications are 0.25S, 0.5S, or 0.75S (the actual resource specifications are multi-dimensional). It is assumed that the infrastructure management system needs to process the resource requests rX (X=A, B, C, D, E) five times in sequence, and the requested resource specifications and timing relationships are as shown in FIG. 5A and FIG. 5B, wherein two adjacent moments are shown. The interval between the two is time T, and the resources corresponding to rA and rD are released after a period of use, and rB, rC and rE continue to occupy for a long time.
图5A为按照不考虑生命周期属性信息的原有分配机制进行资源分配的示意图,图5B为按照本发明实施例提供的基于生命周期属性信息进行资源分配的示意图。FIG. 5A is a schematic diagram of resource allocation according to an original allocation mechanism that does not consider lifecycle attribute information, and FIG. 5B is a schematic diagram of resource allocation based on lifecycle attribute information according to an embodiment of the present invention.
图5A中,在无法预计后继可预期时间内的资源被占用时间的情况下,按照优先从已有部分资源被分配的基础设施资源实体上分配资源,也即尽量启用新的基础设施资源实体,以及在满足上述条件下,优先选择剩余资源最少、已被分配业务资源最少的基础设施资源实体进行资源分配。这点的作用是避免资源“碎片化”,提高资源利用率。按照资源利用率=实际分配的资源总量/已启用基础设施资源实体的资源总量的确定方式,简单计算可得到t1~t6期间总体资源利用率只有约56%。在t6之后如果分配情况没有改变,则利用率将长期维持在约33%的低水平。 In FIG. 5A, in the case where it is impossible to predict the resource occupation time in the subsequent expected time, the resources are allocated on the infrastructure resource entity that is preferentially allocated from the existing partial resources, that is, the new infrastructure resource entity is enabled as much as possible. And, under the above conditions, the resource resource allocation is preferentially selected by the infrastructure resource entity with the least remaining resources and the least allocated business resources. The role of this is to avoid "fragmentation" of resources and improve resource utilization. According to the resource utilization=the total amount of resources allocated/the total amount of resources of the enabled infrastructure resource entity, the simple calculation can obtain the overall resource utilization rate during the period from t1 to t6 is only about 56%. If the allocation has not changed after t6, the utilization will remain at a low level of about 33% for a long time.
图5B中,按照本发明实施例提供的基于生命周期属性信息进行资源分配的过程如下:In FIG. 5B, the process of resource allocation based on lifecycle attribute information according to an embodiment of the present invention is as follows:
A:在t1之前,rA和rC提前进行了资源预约,虽然两者的预期占用资源的时间差异很大,但当时并没有其它资源分布可进行优化调配,所以它们都被预约到s1(资源未真正分配占用,仍处于下电状态)。A: Before t1, rA and rC made resource reservations in advance. Although the expected resource occupation time of the two is very different, there is no other resource distribution that can be optimally allocated at the time, so they are all reserved to s1 (resources are not Really allocated occupancy, still in the power-off state).
B:t1时,rA按照原来的预约进行了资源的分配,s1上电。而在处理rB时,系统分析到rB与rC在后继长时间的预期占用资源的时间基本相同,分配到一起能带来长期的资源优化效果。因此,启动s2分配rB资源,并将rC重预约到s2。B: At t1, rA allocates resources according to the original reservation, and s1 powers up. When processing rB, the system analyzes that rB and rC are basically the same in the expected long-term occupation of resources, and the allocation together can bring long-term resource optimization effects. Therefore, start s2 to allocate rB resources, and re-subscribe rC to s2.
C:t4时处理rE,在不考虑生命周期属性信息的情况下,按照通用策略应该用s3分配。但由于rE和rB即rC在后继可预期时间内预期占用资源的时间基本相同(均长时间运行),所以对分配策略进行适当调整,指定由s2分配。C: The rE is processed at t4, and the s3 should be allocated according to the general policy without considering the lifecycle attribute information. However, since rE and rB, that is, rC, are expected to occupy resources in the same expected time, the time is basically the same (all long-running), so the allocation strategy is appropriately adjusted, and the allocation is specified by s2.
通过上述资源分配方式,按照前述资源利用率的计算方式,采用本发明方法的在该示例中的结果是,t1~t6时间内,资源利用率为67.5%(原来为56%);t6后的长时间运行的资源利用率为100%。According to the above resource allocation method, according to the foregoing method for calculating the resource utilization rate, the result of the method of the present invention in the example is that the resource utilization rate is 67.5% (originally 56%) from t1 to t6; Long-running resource utilization is 100%.
本发明实施例提供的资源分配方法,获取业务应用的生命周期属性信息,该生命周期属性信息中能够反映业务应用预期占用资源的时间信息,故可预先获知后继可预期时间内资源被占用的时间。然后基于获取的生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,为业务应用预约所述预约资源,在达到业务应用预期占用资源的起始时间时,将所述预约资源分配给业务应用,能够使得基础设施管理系统中的资源利用率在可预期时间内得到优化,并保持优化状态。进一步的,本发明实施例中还可在必要时执行简单的无风险的“重预约”调整,最终使总体资源的使用能在可预期的一段时间内保持优化状态,技术实现简单。The resource allocation method provided by the embodiment of the present invention obtains the life cycle attribute information of the service application, where the life cycle attribute information can reflect the time information of the expected resource occupation of the service application, so that the time when the resource is occupied in the subsequent expected time can be known in advance. . And determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application, and when the time at which the service application expects to occupy the resource is reached, the reserved resource is used. Assignment to business applications enables resource utilization in the infrastructure management system to be optimized for the expected time and maintained in an optimized state. Further, in the embodiment of the present invention, a simple risk-free "re-reservation" adjustment can be performed when necessary, and finally the use of the overall resource can be maintained in an optimized state for a predictable period of time, and the technical implementation is simple.
需要说明的是,本发明实施例中基础设施管理系统中的基础设施资源实体上的资源可以是基础设施管理系统所管理上层业务应用使用的资源或其组 合,例如可以是网络资源(网络连接和通信带宽等)、存储资源、某类特殊处理能力(例如特殊硬件提供的数据加解密处理能力)等等。并且,资源分配的形式也是多样的,例如以计算资源为例(其它类型资源类似),所分配的资源形式也不只限于使用虚拟化技术的虚拟机,还可包括任何可将物理资源的部分或整体提供给申请者使用的形式,例如Linux内核提供的CGroups技术即能将一个OS管理下的资源(一般为一个物理服务器)划分为多个含有一定资源的实体。进一步的,基础设施资源实体也是多样的,以计算资源为例(其它类型资源类似),其物理资源实体所指的范围也不一定为一台物理服务器,而可以是任何能提供一定量计算资源的物理或逻辑集合。例如可以是一个机框内若干刀片服务器、一个机房内的服务器,或者被逻辑划分到一个集群内的服务器等等。It should be noted that, in the embodiment of the present invention, the resource on the infrastructure resource entity in the infrastructure management system may be a resource or a group used by the upper layer service application managed by the infrastructure management system. For example, it may be network resources (network connection and communication bandwidth, etc.), storage resources, certain types of special processing capabilities (such as data encryption and decryption processing capabilities provided by special hardware), and the like. Moreover, the form of resource allocation is also diverse. For example, taking computing resources as an example (other types of resources are similar), the allocated resource forms are not limited to virtual machines using virtualization technology, and may include any part of physical resources or The overall form provided to the applicant, such as the CGroups technology provided by the Linux kernel, can divide an OS-managed resource (generally a physical server) into multiple entities with certain resources. Further, the infrastructure resource entity is also diverse. Taking computing resources as an example (other types of resources are similar), the physical resource entity does not necessarily refer to a physical server, but can provide any computing resource. Physical or logical collection. For example, it may be a plurality of blade servers in a chassis, a server in a machine room, or a server logically divided into a cluster, and the like.
进一步的,基于本发明实施例上述提供的资源分配方法,可根据实际情况将基于生命周期属性信息进行资源分配的方式灵活运用于目前的基础设施管理系统中,例如:Further, the resource allocation method provided by the foregoing embodiment of the present invention can flexibly apply the resource allocation method based on the lifecycle attribute information to the current infrastructure management system according to actual conditions, for example:
A:生命周期属性信息作为必选属性A: Lifecycle attribute information as a mandatory attribute
例如在一些企业或部门内部的基础设施管理系统,为了最大程度地获得本发明方法的效果,可能会要求其用户(如部门内人员)必须在提出资源申请时提供其对应的预计的生命周期信息。For example, in some enterprise or departmental infrastructure management systems, in order to maximize the effectiveness of the method of the present invention, users (such as personnel within the department) may be required to provide their corresponding estimated lifecycle information when requesting resources. .
还例如在一些企业或部门内部的基础设施管理系统,为了最大程度地获得本发明方法的效果,会严格按照其用户(如部门内人员)在提出资源申请时指定的命周期来分配资源,即在所预先指定的生命周期范围外的时间,用户不能访问使用该资源。当然采用此种方式需要将该约束条件通过使用例如规范等方式提前知会用户。Also for example, in some enterprises or departments, the infrastructure management system, in order to maximize the effect of the method of the present invention, will allocate resources in strict accordance with the life cycle specified by its users (such as personnel in the department) when requesting resources, ie The user cannot access the resource at a time outside the pre-specified lifecycle. Of course, in this way, the constraint needs to be notified to the user in advance by using, for example, a specification.
B:生命周期属性信息作为可选属性B: Lifecycle attribute information as an optional attribute
本发明实施例提供的基于生命周期属性信息进行资源分配的方式可以只应用于基础设施管理系统中的设定部分基础设施资源管理实体,而在其余部分应用原有的资源分配方法。一个典型的例子可以是,基础设施管理系统对外可 同时支持资源请求携带或不携带生命周期信息的情况,但在内部将两类请求区分处理,对携带了生命周期信息的请求使用本发明的方法进行资源分配和优化,并为其指定一个专用的资源集合;其余请求继续使用原有分配机制(即不考虑资源占用的生命周期),并指定另外一个资源集合承担资源分配。将两者区分处理的好处是,前者的资源分配均基于资源生命周期进行分析和优化,避免了后者(不考虑资源占用的生命周期)的资源分配和使用的不确定性对前者效果的影响。The method for resource allocation based on the lifecycle attribute information provided by the embodiment of the present invention may be applied only to the setting part of the infrastructure resource management entity in the infrastructure management system, and the original resource allocation method is applied in the remaining part. A typical example would be that the infrastructure management system is externally available. At the same time, the resource request carries or does not carry lifecycle information, but internally classifies the two types of requests, and uses the method of the present invention to allocate and optimize resources for the request carrying the lifecycle information, and assigns a dedicated one to it. The collection of resources; the remaining requests continue to use the original allocation mechanism (ie, regardless of the life cycle of resource occupancy), and specify another resource collection to assume resource allocation. The advantage of distinguishing the two is that the resource allocation of the former is analyzed and optimized based on the life cycle of the resource, which avoids the influence of the resource allocation and the uncertainty of the use of the latter (regardless of the life cycle of resource occupation) on the former. .
基于上述实施例提供的资源分配方法,本发明实施例还提供一种资源分配装置600,如图6A所示,该资源分配装置600包括获取单元601、预约单元602和分配单元603,其中:Based on the resource allocation method provided by the foregoing embodiment, the embodiment of the present invention further provides a resource allocation apparatus 600. As shown in FIG. 6A, the resource allocation apparatus 600 includes an obtaining unit 601, a reservation unit 602, and an allocating unit 603, where:
获取单元601,用于获取业务应用的生命周期属性信息,其中,生命周期属性信息反映业务应用预期占用资源的时间信息。The obtaining unit 601 is configured to obtain lifecycle attribute information of the service application, where the lifecycle attribute information reflects time information that the service application expects to occupy the resource.
预约单元602,用于基于获取单元601获取的生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,并为业务应用预约预约资源。The reservation unit 602 is configured to determine, according to the lifecycle attribute information acquired by the obtaining unit 601, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve an reserved resource for the service application.
分配单元603,用于在达到业务应用预期占用资源的起始时间时,将预约单元602预约的预约资源分配给业务应用。The allocating unit 603 is configured to allocate the reserved resource reserved by the reservation unit 602 to the service application when the start time of the service application expected resource occupation is reached.
在第一种实现方式中,资源分配装置600还包括重预约单元604,如图6B所示,其中:In a first implementation, the resource allocation device 600 further includes a re-subscribing unit 604, as shown in FIG. 6B, in which:
重预约单元604,用于在后继可预期时间内资源利用率满足进一步优化条件的前提下,在预约单元602为业务应用预约预约资源之前,对已预约资源进行重预约。The re-subscribing unit 604 is configured to re-subscribe the reserved resources before the reservation unit 602 reserves the reserved resources for the service application on the premise that the resource utilization meets the further optimization condition in the subsequent predictable time.
在第二种实现方式中,获取单元601,具体用于按如下方式获取业务应用的生命周期属性信息:In the second implementation manner, the obtaining unit 601 is specifically configured to obtain lifecycle attribute information of the service application as follows:
调用业务资源请求接口携带业务应用生命周期属性信息功能。The service resource request interface is invoked to carry the service application lifecycle attribute information function.
通过调用的业务资源请求接口携带业务应用生命周期属性信息功能,获取业务应用的生命周期属性信息。 The service resource request interface carries the service application lifecycle attribute information function to obtain the lifecycle attribute information of the service application.
在第三种实现方式中,预约单元602,具体用于按如下方式基于生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源:In a third implementation manner, the reservation unit 602 is specifically configured to determine, according to the lifecycle attribute information, an reserved resource that can optimize resource utilization in a subsequent predictable time according to the following manner:
在设定的部分资源集合中,基于生命周期属性信息,优先选择能够优化后继可预期时间内资源利用率的预约资源。In the set partial resource set, based on the life cycle attribute information, the reserved resource capable of optimizing resource utilization in the subsequent expected time is preferentially selected.
本发明实施例上述提供的资源分配装置600,可以是基础设施管理系统,也可以是基础设施管理系统中的部件,本发明实施例不做限定。The resource allocation device 600 provided by the embodiment of the present invention may be an infrastructure management system or a component in the infrastructure management system, which is not limited in the embodiment of the present invention.
本发明实施例提供的资源分配装置600,获取业务应用的生命周期属性信息,该生命周期属性信息中能够反映业务应用预期占用资源的时间信息,故可预先获知后继可预期时间内资源被占用的时间。然后基于获取的生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,为业务应用预约所述预约资源,在达到业务应用预期占用资源的起始时间时,将所述预约资源分配给业务应用,能够使得基础设施管理系统中的资源利用率在可预期时间内得到优化,并保持优化状态。进一步的,本发明实施例中还可在必要时执行简单的无风险的“重预约”调整,最终使总体资源的使用能在可预期的一段时间内保持优化状态,技术实现简单。The resource allocation device 600 provided by the embodiment of the present invention obtains the life cycle attribute information of the service application, and the life cycle attribute information can reflect the time information of the expected resource occupation of the service application, so that the resource can be occupied in the expected expected time. time. And determining, according to the acquired lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and reserve the reserved resource for the service application, and when the time at which the service application expects to occupy the resource is reached, the reserved resource is used. Assignment to business applications enables resource utilization in the infrastructure management system to be optimized for the expected time and maintained in an optimized state. Further, in the embodiment of the present invention, a simple risk-free "re-reservation" adjustment can be performed when necessary, and finally the use of the overall resource can be maintained in an optimized state for a predictable period of time, and the technical implementation is simple.
需要说明的是,本发明实施例提供的资源分配装置600,可用于实现图4、图5B的资源分配方法,故本发明实施例中对资源分配装置600描述不够详尽的地方,可参考相关方式实施例的描述,在此不再赘述。It should be noted that the resource allocation apparatus 600 provided by the embodiment of the present invention can be used to implement the resource allocation method of FIG. 4 and FIG. 5B. Therefore, the resource allocation apparatus 600 is not described in detail in the embodiment of the present invention, and may refer to related manners. The description of the embodiments will not be repeated here.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims (10)

  1. 一种资源分配方法,其特征在于,包括:A resource allocation method, comprising:
    获取业务应用的生命周期属性信息,所述生命周期属性信息反映所述业务应用预期占用资源的时间信息;Obtaining lifecycle attribute information of the service application, where the lifecycle attribute information reflects time information that the service application expects to occupy resources;
    基于所述生命周期属性信息,确定能够优化后继可预期时间内资源利用率的预约资源,并为所述业务应用预约所述预约资源;Determining, according to the lifecycle attribute information, a reserved resource that can optimize resource utilization in a subsequent predictable time, and scheduling the reserved resource for the service application;
    在达到所述业务应用预期占用资源的起始时间时,将所述预约资源分配给所述业务应用。The reservation resource is allocated to the service application when the start time of the service application expected to occupy resources is reached.
  2. 如权利要求1所述的方法,其特征在于,为所述业务应用预约所述预约资源之前,所述方法还包括:The method of claim 1, wherein before the requesting the reserved resource for the service application, the method further comprises:
    在后继可预期时间内资源利用率满足进一步优化条件的前提下,对已预约资源进行重预约。The reserved resources are re-subscribed under the premise that the resource utilization meets the further optimization conditions in the subsequent expected time.
  3. 如权利要求1或2所述的方法,其特征在于,所述获取业务应用的生命周期属性信息,包括:The method of claim 1 or 2, wherein the obtaining the lifecycle attribute information of the service application comprises:
    调用业务资源请求接口携带业务应用生命周期属性信息功能;Invoking a service resource request interface to carry a service application lifecycle attribute information function;
    通过调用的业务资源请求接口携带业务应用生命周期属性信息功能,获取业务应用的生命周期属性信息。The service resource request interface carries the service application lifecycle attribute information function to obtain the lifecycle attribute information of the service application.
  4. 如权利要求1至3任一项所述的方法,其特征在于,基于所述生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,包括:The method according to any one of claims 1 to 3, wherein the predetermined resource capable of optimizing resource utilization in a subsequent predictable time period is determined based on the lifecycle attribute information, including:
    在设定的部分资源集合中,基于所述生命周期属性信息,优先选择能够优化后继可预期时间内资源利用率的预约资源。In the set partial resource set, based on the lifecycle attribute information, an reserved resource capable of optimizing resource utilization in a subsequent predictable time is preferentially selected.
  5. 一种资源分配装置,其特征在于,包括:A resource allocation device, comprising:
    获取单元,用于获取业务应用的生命周期属性信息,所述生命周期属性信息反映所述业务应用预期占用资源的时间信息;An obtaining unit, configured to obtain lifecycle attribute information of the service application, where the lifecycle attribute information reflects time information that the service application expects to occupy resources;
    预约单元,用于基于所述获取单元获取的所述生命周期属性信息确定能够 优化后继可预期时间内资源利用率的预约资源,并为所述业务应用预约所述预约资源;a reservation unit, configured to determine, according to the lifecycle attribute information acquired by the acquiring unit, Optimizing a reserved resource of a resource utilization rate in a predetermined time period, and scheduling the reserved resource for the service application;
    分配单元,用于在达到所述业务应用预期占用资源的起始时间时,将所述预约单元预约的预约资源分配给所述业务应用。And an allocating unit, configured to allocate the reserved resource reserved by the reserved unit to the service application when a start time of the service application expected to occupy resources is reached.
  6. 如权利要求5所述的装置,其特征在于,所述装置还包括重预约单元,用于在后继可预期时间内资源利用率满足进一步优化条件的前提下,在所述预约单元为所述业务应用预约所述预约资源之前,对已预约资源进行重预约。The apparatus according to claim 5, wherein said apparatus further comprises a re-subscribing unit for providing said service in said reservation unit on the premise that resource utilization meets further optimization conditions in a subsequent predictable time Before the application reserves the reserved resources, the reserved resources are re-subscribed.
  7. 如权利要求5或6所述的装置,其特征在于,所述获取单元,具体用于按如下方式获取业务应用的生命周期属性信息:The device according to claim 5 or 6, wherein the obtaining unit is specifically configured to obtain lifecycle attribute information of the service application as follows:
    调用业务资源请求接口携带业务应用生命周期属性信息功能;Invoking a service resource request interface to carry a service application lifecycle attribute information function;
    通过调用的业务资源请求接口携带业务应用生命周期属性信息功能,获取业务应用的生命周期属性信息。The service resource request interface carries the service application lifecycle attribute information function to obtain the lifecycle attribute information of the service application.
  8. 如权利要求5至7任一项所述的方法,其特征在于,所述预约单元,具体用于按如下方式基于所述生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源:The method according to any one of claims 5 to 7, wherein the reservation unit is specifically configured to determine, according to the lifecycle attribute information, an appointment resource capable of optimizing resource utilization in a subsequent predictable time according to the following manner. :
    在设定的部分资源集合中,基于所述生命周期属性信息,优先选择能够优化后继可预期时间内资源利用率的预约资源。In the set partial resource set, based on the lifecycle attribute information, an reserved resource capable of optimizing resource utilization in a subsequent predictable time is preferentially selected.
  9. 一种资源分配设备,其特征在于,包括通信接口、存储器和处理器,其中:A resource allocation device, comprising: a communication interface, a memory, and a processor, wherein:
    所述存储器,用于存储所述处理器执行的程序代码;The memory is configured to store program code executed by the processor;
    所述处理器,用于调用所述存储器存储的程序代码,实现如下功能:The processor is configured to invoke the program code stored in the memory to implement the following functions:
    通过通信接口获取业务应用的生命周期属性信息,所述生命周期属性信息反映业务应用预期占用资源的时间信息,并基于所述生命周期属性信息确定能够优化后继可预期时间内资源利用率的预约资源,为所述业务应用预约所述预约资源,在达到业务应用预期占用资源的起始时间时,将所述预约资源分配给所述业务应用。 The life cycle attribute information of the service application is obtained by using the communication interface, where the life cycle attribute information reflects time information that the service application expects to occupy the resource, and determines, according to the life cycle attribute information, the reserved resource that can optimize the resource utilization rate in the subsequent expected time. And the reserved resource is reserved for the service application, and the reserved resource is allocated to the service application when a start time of the service application expected to occupy the resource is reached.
  10. 如权利要求9所述的设备,其特征在于,所述处理器,还用于:The device according to claim 9, wherein the processor is further configured to:
    在后继可预期时间内资源利用率满足进一步优化条件的前提下,在为所述业务应用预约所述预约资源之前,对已预约资源进行重预约。 Under the premise that the resource utilization meets the further optimization condition in the subsequent expected time, the reserved resource is re-subscribed before the reserved resource is reserved for the service application.
PCT/CN2015/089050 2014-09-17 2015-09-07 Resource allocation method, apparatus and device WO2016041446A1 (en)

Applications Claiming Priority (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
CN201410476386.3 2014-09-17

Publications (1)

Publication Number Publication Date
WO2016041446A1 true WO2016041446A1 (en) 2016-03-24

Family

ID=52320829

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089050 WO2016041446A1 (en) 2014-09-17 2015-09-07 Resource allocation method, apparatus and device

Country Status (2)

Country Link
CN (1) CN104301257B (en)
WO (1) WO2016041446A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011845A (en) * 2021-03-18 2021-06-22 中国建设银行股份有限公司 Equipment full life cycle management system

Families Citing this family (7)

* Cited by examiner, † Cited by third party
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 安一恒通(北京)科技有限公司 Management method and device of virtual equipment
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 (4)

* 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
CN102083208A (en) * 2009-11-30 2011-06-01 普天信息技术研究院有限公司 Resource allocation method and device
CN102349340A (en) * 2009-06-09 2012-02-08 Lg电子株式会社 Method and device for transmitting and receiving data in wireless network
CN104301257A (en) * 2014-09-17 2015-01-21 华为技术有限公司 Resource distribution method, device and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035013A (en) * 2006-03-08 2007-09-12 中兴通讯股份有限公司 Resource receiving control method and system
CN103713955B (en) * 2013-12-31 2017-02-15 曙光云计算技术有限公司 Method and device for managing resource dynamic allocation

Patent Citations (4)

* 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
CN102349340A (en) * 2009-06-09 2012-02-08 Lg电子株式会社 Method and device for transmitting and receiving data in wireless network
CN102083208A (en) * 2009-11-30 2011-06-01 普天信息技术研究院有限公司 Resource allocation method and device
CN104301257A (en) * 2014-09-17 2015-01-21 华为技术有限公司 Resource distribution method, device and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011845A (en) * 2021-03-18 2021-06-22 中国建设银行股份有限公司 Equipment full life cycle management system

Also Published As

Publication number Publication date
CN104301257A (en) 2015-01-21
CN104301257B (en) 2018-01-02

Similar Documents

Publication Publication Date Title
WO2016041446A1 (en) Resource allocation method, apparatus and device
CN107491351B (en) Resource allocation method, device and equipment based on priority
US10609129B2 (en) Method and system for multi-tenant resource distribution
US8751657B2 (en) Multi-client storage system and storage system management method
US11582166B2 (en) Systems and methods for provision of a guaranteed batch
CN108667867B (en) Data storage method and device
JP6254949B2 (en) Pricing resources in virtual machine pools
US8756599B2 (en) Task prioritization management in a virtualized environment
US9244742B2 (en) Distributed demand-based storage quality of service management using resource pooling
WO2018113472A1 (en) Method for scheduling resource, and server
EP3293632B1 (en) Dynamically varying processing capacity entitlements
US10338970B2 (en) Multi-platform scheduler for permanent and transient applications
WO2018120845A1 (en) Resource allocation method and resource manager
CN105718316A (en) Job scheduling method and apparatus
WO2017088393A1 (en) Bandwidth allocation method and system
WO2016101799A1 (en) Service allocation method and device based on distributed system
CN107251007B (en) Cluster computing service ensuring device and method
JP2021504780A (en) Application Prioritization for Automatic Diagonal Scaling in a Distributed Computing Environment
US10643193B2 (en) Dynamic workload capping
US9680657B2 (en) Cost optimization in dynamic workload capping
WO2020024207A1 (en) Service request processing method, device and storage system
US9575795B2 (en) Reverting a virtual resource to its base configuration using the snapshot image based on frequency the virtual resource is requested
US9213575B2 (en) Methods and systems for energy management in a virtualized data center
US10956228B2 (en) Task management using a virtual node
KR20160063430A (en) Method for managing and assigning available resourse by reservation of virtual machine

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15842131

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15842131

Country of ref document: EP

Kind code of ref document: A1