A portion of the disclosure of this patent document may contain material, which is subject to copyright protection. The owner has no objection to the facsimile reproduction by any one of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyrights whatsoever.
Certain marks referenced herein may be common law or registered trademarks of the applicant, the assignee or third parties affiliated or unaffiliated with the applicant or the assignee. Use of these marks is for providing an enabling disclosure by way of example and shall not be construed to exclusively limit the scope of the disclosed subject matter to material associated with such marks.
The disclosed subject matter relates generally to optimizing the placement of virtual machines in a computing environment and, more particularly, to a system and method to increase the efficiency of the management of a virtualized computing environment having a plurality of hosts.
In a virtualized computing system, requests for service arrive and are generally analyzed by a placement engine to determine which of the hosts in a cluster of N hosts are better suited in terms of resources and constraints to service a particular request. The placement task can become very complex and lengthy when the number of available hosts N is large, because many factors associated with each host are taken into account to determine which hosts are the most suitable for resource allocation.
For purposes of summarizing, certain aspects, advantages, and novel features have been described herein. It is to be understood that not all such advantages may be achieved in accordance with any one particular embodiment. Thus, the disclosed subject matter may be embodied or carried out in a manner that achieves or optimizes one advantage or group of advantages without achieving all advantages as may be taught or suggested herein.
In accordance with one embodiment, machines, systems and methods for allocating resources to service one or more requests are provided. The method comprises associating with at least one host from among N hosts, in a computing environment, a first value that reflects a probability that servicing a first request will interfere with operations on the host; selecting M hosts out of the N hosts, wherein the N hosts comprise one or more resources for servicing a first request and wherein at least one of the selected M hosts is determined to be at least as suitable as N−M unselected hosts, for the purpose of servicing the first request; and prior to allocation of resources, updating for at least a first host from among the M hosts the corresponding first value to reflect that servicing the first request may interfere with operations pertaining to other previously received requests that are scheduled to be serviced by the first host.
In accordance with one or more embodiments, a system comprising one or more logic units is provided. The one or more logic units are configured to perform the functions and operations associated with the above-disclosed methods. In yet another embodiment, a computer program product comprising a computer readable storage medium having a computer readable program is provided. The computer readable program when executed on a computer causes the computer to perform the functions and operations associated with the above-disclosed methods.
One or more of the above-disclosed embodiments in addition to certain alternatives are provided in further detail below with reference to the attached figures. The disclosed subject matter is not, however, limited to any particular embodiment disclosed.
The disclosed embodiments may be better understood by referring to the figures in the attached drawings, as provided below.
Features, elements, and aspects that are referenced by the same numerals in different figures represent the same, equivalent, or similar features, elements, or aspects, in accordance with one or more embodiments.
In the following, numerous specific details are set forth to provide a thorough description of various embodiments. Certain embodiments may be practiced without these specific details or with some variations in detail. In some instances, certain features are described in less detail so as not to obscure other aspects. The level of detail associated with each of the elements or features should not be construed to qualify the novelty or importance of one feature over the others.
Referring to
In accordance with one embodiment, the efficiency of the placement engine 120 may be increased by reducing the workload on the placement engine 120 in a manner such that instead of having to analyze all the variable elements noted above with respect to placement and allocation for a large plurality of N hosts in a cluster, a subset of the hosts (i.e., M hosts out of the total N hosts in the cluster) that are among the most suitable to service the request are selected. The selected M hosts are then presented to the placement engine 120 and the placement engine selects one or more of the M hosts to service the request.
Using the screening results, a placement engine 120 may calculate a placement plan for allocating resource to one or more servicing entities (e.g., virtual machines or VMs) by placing the VMs on one or more hosts 130 that have the resources for servicing the incoming requests. Some of the pertinent factors that are examined by the placement engine 120 may include: the individual or collective hosting resources, the actually used or remaining capacity of each host for handling new allocations, the collocation constraints associated with the hosted VMs, the projected capacity of a host's resources based on currently scheduled requests for that host's resources, and other types of details and constraints associated with the deployment or allocation of virtual resources in a computing environment.
Referring to
In one embodiment, the general suitability for a host may be determined and tracked based on the standard attributes associated with a host (e.g., the host's total capacity for a target resource needed to service a request, the dynamic levels of resources requested by the various VMs or certain constraints associated with the host's resources, collocation constraints, parallel processing capabilities, compatibility issues, etc.). The generally defined attributes of each host, typically, are not dependent on the concurrently active or prescheduled resource allocation or deployment activities of the host or other hosts.
To determine the suitability of a host, screening unit 110 may also take into account relative suitability factors such as whether potential concurrency constraints limit the speed at which the computed placement plans may be executed. Furthermore, the relative suitability of a host may be determined and tracked based on certain attributes associated with a host, such as the host's available capacity for a target resource needed to service a request, or certain constraints that may change over time depending on the concurrently active or prescheduled resource allocation or deployment activities of the host or other hosts in computing environment 120.
In one implementation, a relative suitability attribute for a host may be defined as an index associated with the probability that operations needed for handling a particular request by a target host may interfere with operations pertaining to other concurrently processed management requests for the same host or other hosts. The relative suitability of a host may be referred to, for the purpose of example and brevity, as the host's temperature. A host temperature may be tracked by assigning a numeric value (e.g., 0) to the host, if allocating one or more resources available on the host does not interfere with the successful or timely operation of other requests that may be already active or pending for that host or another host.
Referring back to
It is noteworthy that the temperature of a host may be a function of the remaining concurrency level as opposed to the absolute number of operations that are running or pending against a host. For example, consider two hosts: H1 and H2, where H1 is limited to a maximum of four concurrent operations and H2 is limited to a maximum of eight concurrent operations. In this example, assume that two operations are executing or pending against H1 and three against H2.
In the above scenario, the temperature of H1 will be designated as higher than the temperature of H2, because due to its capacity factor H2 is capable of supporting five more operations, whereas H1 is capable of supporting only two additional operations, for example. As noted earlier, the temperature of a host or temperatures or certain resources of a host may be decreased, if the host or one or more of its resources are no longer a candidate for servicing a request or placement (S240).
Referring back to
Advantageously, having access to the information stored in repository 140, when a request arrives, screening unit 110 is able to select M hosts out of the total N hosts 130 that are the most suitable for servicing the request. For example, M hosts may be selected from among M+L hosts with the coolest temperatures in the cluster (i.e., based on the relative suitability attributes of the M+L hosts matching the services required by the request). L of said hosts may be eliminated from the list by the virtue of L of said hosts not being suitable due to, for example, the general attributes for such host not being sufficient to satisfy the required services or resources associated with a request in a meaningful way.
Once the M suitable hosts from a total of N hosts in the cluster are selected by screening unit 110, the temperature associated with those M hosts is increased by a certain value to indicate that using said M hosts for servicing a future request may likely interfere with the servicing of the current request. The M hosts are referred to the placement engine 120. The placement engine 120 then selects one or more of the M hosts to service the request. If less than all the M hosts (e.g., only P hosts) are scheduled or deployed for servicing the request, then the temperature of the hosts (from among the M selected hosts) that are not selected is decreased by a certain value.
As noted earlier, the increase and decrease in the temperature of the hosts is reflected in the data stored in the repository 140 at predetermined intervals or each time an event (e.g., selection as candidate for future deployment or selection for active deployment) takes place. It is noteworthy that, depending on implementation, the tracking of the temperatures may take place either at the host level or at the resource level so that the repository 140 includes the general and relative suitability information for the hosts or the resources for said hosts as provided in further detail in the examples that follow.
In one example scenario, hosts H0, H1, H2, H3, H4 H5 may be in a cluster with host H0 hosting the following VMs: v, w, x. In this scenario, a new request may arrive for a VM z to be deployed on a host in the subject cluster. At the time of arrival of the new request, there may already exist a first computed placement plan which requires v to be relocated to H1 and w to H2. It is assumed in this example that H0 has sufficient capacity to accommodate v and w and z and that H0 can deal with up to two concurrent operations (e.g., relocations or deployments) and that z cannot be placed on host H3 for compatibility reasons.
When the first computed placement plan is submitted for execution, the temperature of H0, H1 and H2 are increased. The screening unit 110 takes the hosts temperatures into account and also the compatibility constraint noted above and therefore will issue a deployment plan for z that will return a target area covering hosts H4, and H5. H0, H1 and H2 are not included in the target area because of their higher temperature and as such the concurrency limitations associated with Ho are taken into account.
Referring to
Using the above information in addition to placement constraints such as compatibility information, screening unit 110 outputs a proposed target area which has a good chance of supporting the successful processing of the request and produces minimal interference between processing the request and other pending requests. In one implementation, an optional time limit may be considered to instructs the placement engine 120 to limit its search for a solution placement to a given maximum time.
The temperature of the hosts of the computed target area is increased to reflect said hosts may be involved in servicing the request. A placement plan for servicing the request is then computed by the placement engine 120 (possibly concurrently with other plan computations). In one example, the input of the placement engine is the request, the target area, the optional time limit, constraints affecting the placement and other related factors.
The output of the placement engine 120 based on the above example input may be a calculated placement plan to service the request. If no suitable host is found, the output may so advise. Otherwise, if a placement plan is successfully computed then the temperature of the hosts in the target area that would not be involved in the placement is decreased. The temperature of the hosts in the target area that would be involved in the placement, optionally, is further increased, in one embodiment. Ultimately, the computed placement plan is scheduled for execution.
In accordance with one example, screening unit 110 may be utilized to compute the target area by focusing on the coldest hosts in the target area first and optionally taking into account the high level management policy for the placement engine. For instance, if the management policy is to load balance the hosts in a cluster, the screening unit 110 may prefer underloaded hosts in the target areas. On the contrary, if the management policy is to consolidate VMs into a lower number of hosts, the screening unit 110 may prefer to include hosts which are more loaded than the average in the target area.
Depending on implementation, screening unit 110 may output partially overlapping target areas for concurrent requests. In such a scenario, the probability of interference may be kept to a minimum by having the placement engine 120 use the temperature of the hosts as an optimization parameter, so that the probability of a host being chosen to be part of the placement decreases with its temperature, thus minimizing inferences between the target areas. As shown in
In the embodiments disclosed, the temperature concept may be generalized to other shared resources, as provided earlier. For instance, assuming that multiple local area networks (LANs) may be used for relocations, each LAN may be associated with a temperature indicator which may reflect the degree with which a LAN resource is currently used or about to be used. This may be taken into account by the screening unit 110 and by the placement engine 120 in order to favor the output of placement plans in order to promote balanced usage of the LANs.
Depending on implementation, the screening unit 110 may implement as a backup to handle the failure to compute a placement plan by the placement engine 120, for example. In case of a global optimization request (such as load balancing for instance), a global cluster optimization may not be inherently scalable. Therefore, the global optimization of a hosts cluster may be optimized by way of breaking down the optimization task into frequent subtasks, instead of optimizing the full cluster infrequently.
In the above example, the subtasks may each deal with a subset of the cluster. Each such subtask may favor the coldest hosts, and hosts which have not participated for the longest time in an optimization, for example. Optionally, the target area for the next optimization may be selected to intersect with the target area of previous optimizations to maintain the continuity of the optimization goal.
References in this specification to “an embodiment”, “one embodiment”, “one or more embodiments” or the like, mean that the particular element, feature, structure or characteristic being described is included in at least one embodiment of the disclosed subject matter. Occurrences of such phrases in this specification should not be particularly construed as referring to the same embodiment, nor should such phrases be interpreted as referring to embodiments that are mutually exclusive with respect to the discussed features or elements.
In different embodiments, the claimed subject matter may be implemented as a combination of both hardware and software elements, or alternatively either entirely in the form of hardware or entirely in the form of software. Further, computing systems and program software disclosed herein may comprise a controlled computing environment that may be presented in terms of hardware components or logic code executed to perform methods and processes that achieve the results contemplated herein. Said methods and processes, when performed by a general purpose computing system or machine, convert the general purpose machine to a specific purpose machine.
Referring to
Referring to
A computer readable storage medium may be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor medium, system, apparatus or device. The computer readable storage medium may also be implemented in a propagation medium, without limitation, to the extent that such implementation is deemed statutory subject matter. Examples of a computer readable storage medium may include a semiconductor or solid-state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk, an optical disk, or a carrier wave, where appropriate. Current examples of optical disks include compact disk, read only memory (CD-ROM), compact disk read/write (CD-RAY), digital video disk (DVD), high definition video disk (HD-DVD) or Blue-ray™ disk.
In one embodiment, processor 1101 loads executable code from storage media 1106 to local memory 1102. Cache memory 1104 optimizes processing time by providing temporary storage that helps reduce the number of times code is loaded for execution. One or more user interface devices 1105 (e.g., keyboard, pointing device, etc.) and a display screen 1107 may be coupled to the other elements in the hardware environment 1110 either directly or through an intervening I/O controller 1103, for example. A communication interface unit 1108, such as a network adapter, may be provided to enable the hardware environment 1110 to communicate with local or remotely located computing systems, printers and storage devices via intervening private or public networks (e.g., the Internet). Wired or wireless modems and Ethernet cards are a few of the exemplary types of network adapters.
It is noteworthy that hardware environment 1110, in certain implementations, may not include some or all the above components, or may comprise additional components to provide supplemental functionality or utility. Depending on the contemplated use and configuration, hardware environment 1110 may be a machine such as a desktop or a laptop computer, or other computing device optionally embodied in an embedded system such as a set-top box, a personal digital assistant (PDA), a personal media player, a mobile communication unit (e.g., a wireless phone), or other similar hardware platforms that have information processing or data storage capabilities.
In some embodiments, communication interface 1108 acts as a data communication port to provide means of communication with one or more computing systems by sending and receiving digital, electrical, electromagnetic or optical signals that carry analog or digital data streams representing various types of information, including program code. The communication may be established by way of a local or a remote network, or alternatively by way of transmission over the air or other medium, including without limitation propagation over a carrier wave.
As provided here, the disclosed software elements that are executed on the illustrated hardware elements are defined according to logical or functional relationships that are exemplary in nature. It should be noted, however, that the respective methods that are implemented by way of said exemplary software elements may be also encoded in said hardware elements by way of configured and programmed processors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) and digital signal processors (DSPs), for example.
Referring to
In other words, application software 1122 may be implemented as program code embedded in a computer program product in form of a machine-usable or computer readable storage medium that provides program code for use by, or in connection with, a machine, a computer or any instruction execution system. Moreover, application software 1122 may comprise one or more computer programs that are executed on top of system software 1121 after being loaded from storage media 1106 into local memory 1102. In a client-server architecture, application software 1122 may comprise client software and server software. For example, in one embodiment, client software may be executed on a client computing system that is distinct and separable from a server computing system on which server software is executed.
Software environment 1120 may also comprise browser software 1126 for accessing data available over local or remote computing networks. Further, software environment 1120 may comprise a user interface 1124 (e.g., a graphical user interface (GUI)) for receiving user commands and data. It is worthy to repeat that the hardware and software architectures and environments described above are for purposes of example. As such, one or more embodiments may be implemented over any type of system architecture, functional or logical platform or processing environment.
It should also be understood that the logic code, programs, modules, processes, methods and the order in which the respective processes of each method are performed are purely exemplary. Depending on implementation, the processes or any underlying sub-processes and methods may be performed in any order or concurrently, unless indicated otherwise in the present disclosure. Further, unless stated otherwise with specificity, the definition of logic code within the context of this disclosure is not related or limited to any particular programming language, and may comprise one or more modules that may be executed on one or more processors in distributed, non-distributed, single or multiprocessing environments.
As will be appreciated by one skilled in the art, a software embodiment may include firmware, resident software, micro-code, etc. Certain components including software or hardware or combining software and hardware aspects may generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, the subject matter disclosed may be implemented as a computer program product embodied in one or more computer readable storage medium(s) having computer readable program code embodied thereon. Any combination of one or more computer readable storage medium(s) may be utilized. The computer readable storage medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing.
In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Computer program code for carrying out the disclosed operations may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages.
The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Certain embodiments are disclosed with reference to flowchart illustrations or block diagrams of methods, apparatus (systems) and computer program products according to embodiments. It will be understood that each block of the flowchart illustrations or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, a special purpose machinery, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions or acts specified in the flowchart or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable storage medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable storage medium produce an article of manufacture including instructions which implement the function or act specified in the flowchart or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer or machine implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions or acts specified in the flowchart or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur in any order or out of the order noted in the figures.
For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, may be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The claimed subject matter has been provided here with reference to one or more features or embodiments. Those skilled in the art will recognize and appreciate that, despite of the detailed nature of the exemplary embodiments provided here, changes and modifications may be applied to said embodiments without limiting or departing from the generally intended scope. These and various other adaptations and combinations of the embodiments provided here are within the scope of the disclosed subject matter as defined by the claims and their full set of equivalents.