Embodiments associate software applications with computing resource containers based on placement rules. A placement rule indicates that a first software application is to be co-located with a second software application during execution of the first and second software applications and second placement rule indicates that the first software application is to be separated from the second software application when the second placement rule is violated by enforcing the first placement rule. The placement rule also indicates that the first software application is to be separated from the second software application during execution of the first and second software applications and the second placement rule indicates the first software application is to be co-located with the second software application when the second placement rule is violated by enforcing the first placement rule.
|
8. A method comprising:
receiving, by a management device, a first placement rule and a second placement rule, the first placement rule indicating one of the following: that a first virtual machine (vm) is to be co-located with a second vm during execution of the first and a second vm, or that the first vm is to be separated from the second vm during execution of the first and second VMs;
when the first vm is to be co-located with the second vm under the first placement rule, separating the first vm from the second vm when the second placement rule is violated by enforcing the first placement rule; and
when the first vm is to be separated from the second vm under the first placement rule, co-locating the first vm with the second vm when the second placement rule is violated by enforcing the first placement rule.
1. A system for associating a virtual machine (vm) with a computing resource, the system comprising:
a memory for storing at least a first placement rule and a second placement rule, the first placement rule indicating one of the following: that a first virtual machine (vm) is to be co-located with a second vm during execution of the first and a second vm, or that the first vm is to be separated from the second vm during execution of the first and second VMs; and
a processor programmed to:
when the first vm is to be co-located with the second vm under the first placement rule, separate the first vm from the second vm when the second placement rule is violated by enforcing the first placement rule; and
when the first vm is to be separated from the second vm under the first placement rule, co-locate the first vm with the second vm when the second placement rule is violated by enforcing the first placement rule.
14. One or more computer-readable storage media having computer-executable instructions stored thereon, that when executed by a processor, instruct the processor to:
receive a first placement rule and a second placement rule, the first placement rule indicating one of the following: that a first virtual machine (vm) is to be co-located with a second vm during execution of the first and a second vm, or that the first vm is to be separated from the second vm during execution of the first and second VMs;
when the first vm is to be co-located with the second vm under the first placement rule, separate the first vm from the second vm when the second placement rule is violated by enforcing the first placement rule; and
when the first vm is to be separated from the second vm under the first placement rule, co-locate the first vm with the second vm when the second placement rule is violated by enforcing the first placement rule.
2. The system of
3. The system of
4. The system of
wherein when the first vm is to be separated from the second vm by placing the second vm in the second computing resource container under the first placement rule, co-locate the first vm with the second vm in the first computing resource container when a computing resource load on the second computing resource container would exceed a threshold level if the second vm was added to the second computing resource container.
6. The system of
9. The method of
10. The method of
11. The method of
12. The method of
13. The method of
15. The computer-readable storage media of
16. The computer-readable storage media of
17. The computer-readable storage media of
18. The computer-readable storage media of
19. The computer-readable storage media of
20. The computer-readable storage media of
|
This application is a continuation of U.S. application Ser. No. 13/273,064, filed Oct. 13, 2011, which issued on Jul. 15, 2014 as U.S. Pat. No. 8,782,242, which is incorporated by reference herein.
Software applications, such as virtual machines (VMs), may be executed by a group or “cluster” of host computing devices. A management device may coordinate execution of the software applications by hosts, ensuring, for example, that at least one instance of a particular software application is available whenever possible, or that the computing load associated with execution of software applications is distributed across hosts in the cluster.
A management device may control which host(s) executes, and/or stores data related to, a software application, also known as the “placement” of the software application. Further, software application placement may be governed by placement rules that specify a desired placement of a software application with respect to another software application. For example, an affinity rule specifies that a software application should be co-located with one or more other software applications, whereas an anti-affinity rule specifies that a software application should be separated from one or more other software applications.
Placement rules may be enforced against specific computing resources, such as hosts or storage devices. For example, an anti-affinity rule may be enforced by preventing two VMs from being placed on the same host. However, the goal of a placement rule—that two instances of the same software application not be associated with the same point of failure, for example—may not be consistently achieved by simply placing the software applications on different resources. For example, different resources may be correlated in terms of failures and/or performance, such that a failure or performance degradation associated with one resource is likely to be concurrent with a similar failure or performance degradation of another resource.
Further, in some scenarios, a management device may have limited access to computing resources, such that enforcement of placement rules by the management device alone may be infeasible. For example, computing resources such as distributed computing resources and data storage resources, may be managed by a computing resource container that allocates computing resource utilization among a plurality of hardware devices and prevents direct access to such hardware devices by the management device. In such scenarios, the management device may attempt to satisfy an affinity rule by placing affined software applications in the same computing resource container, for example. Similarly, the management device may attempt to satisfy an anti-affinity rule by ensuring that anti-affined software applications are never placed in the same computing resource container. Such approaches may result in undesired consequences, such as affined software applications being placed on different hardware devices by the computing resource container, or a portion of anti-affined software applications not being placed on any computing resource when a limited quantity of computing resource containers is available.
One or more embodiments described herein facilitate enforcing software application placement rules even when computing resources are managed by computing resource containers and not directly accessible to a management device.
A placement rule may include an affinity rule indicating that a first software application is to be co-located with a second software application during execution of the first and second software applications, or an anti-affinity rule indicating that the first software application is to be separated from the second software application during execution of the first and second software applications. A target computing resource container is selected based on the placement rule and a computing resource container that is associated with the first software application. The second software application is associated with the target computing resource container. When the second software application is associated with the same computing resource container that is associated with the first software application, the placement rule may be provided to the target computing resource container, such that the target computing resource container may enforce the placement rule.
This summary introduces a selection of concepts that are described in more detail below. This summary is not intended to identify essential features, nor to limit in any way the scope of the claimed subject matter.
Embodiments described herein facilitate enforcing placement rules based on information about failure correlation between computing resources and/or by delegating enforcement of a placement rule to a computing resource container in which software applications are placed.
In exemplary embodiments, failure correlations between computing resources are determined, and “anti-affined” software applications (e.g., software applications that are to be separated per an anti-affinity rule) are placed on computing resources with relatively low failure correlation. Further, the failure correlations may be repeatedly determined, and changes in failure correlation may result in the migration of software applications. For example, a software application may be migrated from a first computing resource to a second computing resource based on an increase in the failure correlation between the first computing resource and the computing resource on which an anti-affined software application is placed.
Further, in exemplary embodiments, a placement rule is provided to a computing resource container when placing affined or anti-affined software applications in the same computing resource container. The computing resource container enforces the placement rule when allocating the software applications to computing resources managed by the computing resource container, enabling the placement rule to be satisfied even though the individual computing resources may be inaccessible outside the computing resource container. For example, the computing resource container may ensure that affined software applications are associated with the same computing resource, and that anti-affined software applications are associated with different computing resources.
Computing device 100 also includes at least one presentation device 106 for presenting information to a user 108. Presentation device 106 is any component capable of conveying information to user 108. Presentation device 106 may include, without limitation, a display device (e.g., a liquid crystal display (LCD), organic light emitting diode (OLED) display, or “electronic ink” display) and/or an audio output device (e.g., a speaker or headphones). In some embodiments, presentation device 106 includes an output adapter, such as a video adapter and/or an audio adapter. An output adapter is operatively coupled to processor 102 and configured to be operatively coupled to an output device, such as a display device or an audio output device.
The computing device 100 may include a user input device 110 for receiving input from user 108. User input device 110 may include, for example, a keyboard, a pointing device, a mouse, a stylus, a touch sensitive panel (e.g., a touch pad or a touch screen), a gyroscope, an accelerometer, a position detector, and/or an audio input device. A single component, such as a touch screen, may function as both an output device of presentation device 106 and user input device 110.
Computing device 100 also includes a network communication interface 112, which enables computing device 100 to communicate with a remote device (e.g., another computing device 100) via a communication medium, such as a wired or wireless packet network. For example, computing device 100 may transmit and/or receive data via network communication interface 112. User input device 110 and/or network communication interface 112 may be referred to as an input interface 114 and may be configured to receive information from a user.
Computing device 100 further includes a storage interface 116 that enables computing device 100 to communicate with one or more datastores, which store virtual disk images, software applications, data associated with software applications, and/or any other data suitable for use with the methods described herein. In exemplary embodiments, storage interface 116 couples computing device 100 to a storage area network (SAN) (e.g., a Fibre Channel network) and/or to a network-attached storage (NAS) system (e.g., via a packet network). The storage interface 116 may be integrated with network communication interface 112.
In exemplary embodiments, memory 104 stores computer-executable instructions for performing one or more of the operations described herein. Memory 104 may include one or more computer-readable storage media that have computer-executable components embodied thereon. In the example of
When executed by processor 102, correlation component 120 causes processor 102 to determine a plurality of failure correlations between a plurality of computing resources. Each failure correlation corresponds to a pair of computing resources and is determined based on a failure correlation received from a user, a failure correlation received from a resource manager associated with the pair of computing resources, a configuration hierarchy indicating hardware associated with the pair of computing resources, and/or performance metrics associated with the pair of computing resources.
When executed by processor 102, rule component 122 causes processor 102 to receive via an input interface a placement rule, such as an affinity rule indicating that a first software application is to be co-located with a second software application during execution of the first and second software applications, or an anti-affinity rule indicating that the first software application is to be separated from the second software application during execution of the first and second software applications. Rule component 122 also causes processor 102 to select failure correlations corresponding to a first computing resource, which is associated with the first software application, and to select one of the plurality of computing resources other than the first computing resource that corresponds to a lowest failure correlation among the selected failure correlations. In addition, or alternatively, rule component 122 causes processor 102 to select a target computing resource container based on the placement rule and a computing resource container that is associated with the first software application.
When executed by processor 102, placement component 124 causes processor 102 to associate the second software application with the selected computing resource based on the anti-affinity rule. In addition, or alternatively, placement component 124 may cause processor 102 to transmit a placement request associated with the second software application to the target computing resource container via a communication interface, and to transmit the placement rule to the target computing resource container via the communication interface.
Embodiments are described herein with reference to virtual machines (VMs). However, it is contemplated that the methods described may be applied to any type of software application.
The virtualization software layer supports a virtual machine execution space 230 within which multiple virtual machines (VMs 2351-235N) may be concurrently instantiated and executed. Hypervisor 210 includes a device driver layer 215, and maps physical resources of hardware platform 205 (e.g., processor 102, memory 104, network communication interface 112, and/or user input device 110) to “virtual” resources of each of VMs 2351-235N such that each of VMs 2351-235N has its own virtual hardware platform (e.g., a corresponding one of virtual hardware platforms 2401-240N), each virtual hardware platform having its own emulated hardware (such as a processor 245, a memory 250, a network communication interface 255, a user input device 260 and other emulated I/O devices in VM 2351).
In some embodiments, memory 250 in first virtual hardware platform 2401 includes a virtual disk that is associated with or “mapped to” one or more virtual disk images stored in memory 104 (e.g., a hard disk or solid state disk) of computing device 100. The virtual disk image represents a file system (e.g., a hierarchy of directories and files) used by first virtual machine 2351 in a single file or in a plurality of files, each of which includes a portion of the file system. In addition, or alternatively, virtual disk images may be stored in memory 104 of one or more remote computing devices 100, such as a datastore or a data storage container (e.g., in a storage area network, or SAN, configuration). In such embodiments, any quantity of virtual disk images may be stored by the remote computing devices 100.
Device driver layer 215 includes, for example, a communication interface driver 220 that interacts with network communication interface 112 to receive and transmit data from, for example, a local area network (LAN) connected to computing device 100. Communication interface driver 220 also includes a virtual bridge 225 that simulates the broadcasting of data packets in a physical network received from one communication interface (e.g., network communication interface 112) to other communication interfaces (e.g., the virtual communication interfaces of VMs 2351-235N). Each virtual communication interface for each VM 2351-235N, such as network communication interface 255 for first VM 2351, may be assigned a unique virtual Media Access Control (MAC) address that enables virtual bridge 225 to simulate the forwarding of incoming data packets from network communication interface 112. In an embodiment, network communication interface 112 is an Ethernet adapter that is configured in “promiscuous mode” such that all Ethernet packets that it receives (rather than just Ethernet packets addressed to its own physical MAC address) are passed to virtual bridge 225, which, in turn, is able to further forward the Ethernet packets to VMs 2351-235N. This configuration enables an Ethernet packet that has a virtual MAC address as its destination address to properly reach the VM in computing device 100 with a virtual communication interface that corresponds to such virtual MAC address.
Virtual hardware platform 2401 may function as an equivalent of a standard x86 hardware architecture such that any x86-compatible desktop operating system (e.g., Microsoft WINDOWS brand operating system, LINUX brand operating system, SOLARIS brand operating system, NETWARE, or FREEBSD) may be installed as guest operating system (OS) 265 in order to execute applications 270 for an instantiated VM, such as first VM 2351. Virtual hardware platforms 2401-240N may be considered to be part of virtual machine monitors (VMM) 2751-275N which implement virtual system support to coordinate operations between hypervisor 210 and corresponding VMs 2351-235N. Those with ordinary skill in the art will recognize that the various terms, layers, and categorizations used to describe the virtualization components in
Hosts 305 communicate with each other via a network 315. Cluster system 300 also includes one or more management devices 320, which are coupled in communication with hosts 305 via network 315. In exemplary embodiments, a management device 320 monitors and controls hosts 305. For example, management device 320 may monitor performance metrics (e.g., application performance metrics and/or host performance metrics) associated with hosts 305 and may further coordinate the execution of VMs and/or other software applications by hosts 305 based on the performance metrics. One or more client devices 325 are coupled in communication with network 315, such that client devices 325 may submit requests to hosts 305. For example, hosts 305 may execute instances of software applications that provide data in response to requests from client devices 325.
Although management device 320 is shown outside fault domain 310, the functions of management device 320 may be incorporated into fault domain 310. For example, management device 320 may be included in fault domain 310. Alternatively, the functions described with reference to management device 320 may be performed by one or more hosts 305, or VMs 235 executed by one or more hosts 305, in fault domain 310. Hosts 305, management device 320, and/or client device 325 may be computing devices 100.
Cluster system 300 includes a first datastore 330, a second datastore 335, and a third datastore 340. In exemplary embodiments, datastores 330, 335, 340 are stored in memory 104 (shown in
Cluster system 300 may also include a resource manager 350 that is coupled to network 315 and/or to storage network 345. Resource manager 350 is associated with (e.g., monitors and/or manages) computing resources, such as hosts 305 and/or datastores 330, 335, 340. In exemplary embodiments, resource manager 350 maintains, and provides to management device 320, a configuration hierarchy that indicates hardware associated with computing resources monitored and/or managed by resource manager 350. For example, a configuration hierarchy may indicate the datacenters included in a facility, the server racks included in a datacenter, the server enclosures included in a rack, the hosts included in a server enclosure, and the disks included in a host. Similarly, a configuration hierarchy may indicate communication links (e.g., network paths) that are used by computing resources.
Referring to
Management device 320 determines 410 a plurality of failure correlations between a plurality of computing resources in cluster system 300, such as hosts 305 and/or datastores 330, 335, 340. Each failure correlation corresponds to a pair of computing resources and represents a probability that a failure of the first computing resource in the pair will be concurrent with a failure of the second computing resource in the pair.
A failure correlation may be expressed as a value between a minimum value, representing no correlation of failures between the pair of computing resources, and a maximum value, representing a highest possible correlation of failures between the pair of computing resources. For example, a failure correlation may be expressed as a binary value, with false or zero representing no correlation of failures, and true or one representing a correlation of failures. As another example, a failure correlation may be expressed as a real number (e.g., an integer or a floating point value) and/or as an element of an enumeration (e.g., values such as low, medium, and high) within a range specified by the minimum value and the maximum value. Whether binary, real, or enumerated, failure correlations corresponding to two pairs of computing resources may be compared, with the lower failure correlation indicating a lower probability that failures are correlated between the corresponding pair of computing resources.
In exemplary embodiments, management device 320 determines 410 a failure correlation between a pair of computing resources based on a failure correlation (e.g., a manually entered value) received from a user, a failure correlation from a resource manager associated with the pair of computing resources, a configuration hierarchy indicating hardware associated with the pair of computing resources, and/or performance metrics associated with the pair of computing resources.
In some embodiments, management device 320 determines 407 (e.g., accesses and/or receives) a configuration hierarchy that indicates hardware associated with the pair of computing resources. For example, hosts included in the same server enclosure or in the same server rack may share a power source and/or a communication link to network 315. Accordingly, failures between such hosts may be more highly correlated than failures between either of such hosts and a host in another server rack or another datacenter. Similarly, failures between datastores provided by the same disk or disk array may be more highly correlated than failures between either of such datastores and a datastore provided by another disk array or another datacenter. In some embodiments, a highest level in the hierarchy at which the computing resources are associated with the same hardware is determined, and the failure correlation is positively correlated with (e.g., proportional to) the distance from this level to the top of the configuration hierarchy.
In some embodiments, management device determines 407 (e.g., accesses and/or receives) performance metrics associated with a pair of computing resources and determines 410 a failure correlation based on the performance metrics. For example, a performance correlation indicated by such performance metrics (e.g., concurrent performance degradations) may be used to infer a failure correlation. Performance metrics may include input/output (I/O) latency, I/O throughput, network latency, network bandwidth, and/or any other measurement indicating the performance of a computing resource. Performance metrics may be collected during normal operation of a computing resource. In addition, or alternatively, performance metrics may be collected while intentionally inducing a performance degradation of one or more computing resources, such as by saturating a communication link used by a computing resource with I/O traffic and/or network traffic. In some embodiments, a performance correlation corresponding to a first computing resource and a second computing resource is calculated by creating a parallel time series of the first and second performance metrics associated with the first and second computing resources, respectively. The failure correlation may be determined 410 based on (e.g., may be equal to) the performance correlation.
In some embodiments, management device 320 determines 410 a failure correlation between a first computing resource and a second computing resource using one of the techniques described above in an order of preference. In one example, when a failure correlation corresponding to the first and second computing resources is indicated by a user, management device 320 determines the failure correlation based on the failure correlation indicated by the user. When no failure correlation corresponding to the first and second computing resources is indicated by a user, and a failure correlation is indicated by a resource manager associated with the first and second computing resources, management device 320 determines the failure correlation based on the failure correlation indicated by the resource manager. When no failure correlation corresponding to the first and second computing resources is indicated by a user or by a resource manager, management device 320 determines the failure correlation based on performance metrics associated with the first and second computing resources.
Management device 320 identifies 415 the computing resource(s) associated with first VM 2351. For example, management device 320 may store associations of software applications with computing resources and/or may receive such associations from resource manager 350. In the scenario described, first VM 2351 is associated with a first computing resource, such as first datastore 330 or first host 3051. For example, a virtual disk associated with first VM 2351 may be stored in first datastore 330 and/or first VM 2351 may be currently executed by first host 3051.
Management device 320 selects 420, from the determined failure correlations, the failure correlations corresponding to the first computing resource. For example, if the first computing resource is first datastore 330, management device 320 selects 420 second datastore 335 and third datastore 340.
In exemplary embodiments, management device 320 selects 425 the computing resource that corresponds to a lowest failure correlation among the plurality of failure correlations selected 420. For example, if failure correlations are expressed as binary values, management device 320 selects 425 a computing resource corresponding to a failure correlation of zero (also referred to as false) over a computing resource corresponding to a failure correlation of one (also referred to as true). As another example, if failure correlations are expressed as real numbers or enumerated values, management device 320 selects 425 a computing resource corresponding to a failure correlation closest to a predetermined minimum value (e.g., a failure correlation with a numerically lowest value) within the selected correlation values.
Based on the anti-affinity rule indicating that the first software application (e.g., first VM 2351) is to be separated from the second software application (e.g., second VM 2352), management device 320 associates 430 the second software application with the selected available computing resource. For example, if second VM 2352 is not currently associated with a computing resource, management device 320 may associate 430 second VM 2352 with the second computing resource by copying data associated with the second VM 2352 to a datastore or by instructing a host 305 to execute second VM 2352. Further, if second VM 2352 is currently associated with a computing resource, management device 320 may migrate second VM 2352 from a currently associated computing resource (e.g., second datastore 335) to the selected computing resource (e.g., third datastore 340), such as by deleting data associated with second VM 2352 from a datastore or by instructing a host 305 to terminate second VM 2352.
Some embodiments facilitate “soft” enforcement of an anti-affinity rule. In such embodiments, before associating 430 second VM 2352 with the selected computing resource, management device 320 determines 427 whether such an association 430 will violate a rule other than the anti-affinity rule being applied. The other rule may include another anti-affinity rule, an affinity rule, a rule governing the load (e.g., resource utilization) associated with the selected computing resource, and/or any other rule enforced by management device 320. If no other rule will be violated, management device 320 proceeds to associate 430 second VM 2352 with the selected computing resource. If another rule will be violated, and more computing resources are available, management device 320 disregards the selected computing resource and selects 425 the computing resource corresponding to the next lowest failure correlation.
If another rule will be violated and no more computing resources are available, management device 320 reports 428 a placement error. For example, management device 320 may store the placement error in a database, provide the placement error in a cluster management user interface, and/or transmit a notification of the placement error to another device (e.g., client device 325). Management device 320 proceeds to again determine 410 failure correlations, optionally determining 407 a configuration hierarchy and/or performance metrics, as described above. Accordingly, management device 320 may subsequently determine 427 that associating 430 the second VM with the selected computing resource will no longer violate a rule other than the anti-affinity rule and proceed to perform such an association 430.
Further, in some embodiments, a separation level is associated with the anti-affinity rule. The separation level indicates a level in a configuration hierarchy below which the first software application and the second application are to be separated. In such embodiments, management device 320 selects 425 the computing resource based further on determining that the selected computing resource is separate from the first computing resource at or above the separation level.
In exemplary embodiments, management device 320 performs method 400 repeatedly (e.g., periodically, continually, and/or upon request). Repeatedly performing method 400 facilitates detecting and responding to changing circumstances in cluster system 300. For example, management device 320 may determine 410 updated failure correlations indicating a change in the failure correlation between a particular pair of computing resources. As another example, management device 320 may identify 415 a change in the computing resource with which a software application is associated. Such changes may result in a violation of an anti-affinity rule, which can be corrected by management device 320, as described above.
In some embodiments, individual computing resources are not accessible by management device 320. For example, a computing resource container may allocate computing resource utilization among a plurality of computing resources (e.g., hardware devices) and prevent direct access to such computing resources by management device 320. A computing resource container may include, for example, a distributed computing container and/or a data storage container, such as a disk array controller and/or a cloud storage system.
Management device 320 is coupled in communication with first computing resource container 505 and second computing resource container 510 via network 315. In exemplary embodiments, management device 320 receives container information, such as available capacity (e.g., computing capacity and/or data storage capacity) from first computing resource container 505 and second computing resource container 510 but may not be capable of directly associating software applications with computing resources 515. Rather, to perform placement of a software application, management device 320 requests that first computing resource container 505, for example, associate the software application with some computing resource 515 to be selected by the first computing resource container 505.
Management device 320 identifies 610 the computing resource container that is associated with the first software application. For example, management device 320 may store associations of software applications and computing resource containers and/or may receive such associations from first computing resource container 505 and/or second computing resource container 510. In the scenario described, the first software application is associated with first computing resource container 505. For example, data (e.g., a virtual disk) associated with the first software application may be stored in first computing resource container 505, or the first software application may be currently executed by first computing resource container 505.
Management device 320 selects a target computing resource container based on the placement rule and the computing resource container identified 610 as associated with the first software application (e.g., first computing resource container 505).
In exemplary embodiments, when the first software application is to be co-located with the second software application (e.g., the placement rule is an affinity rule), management device 320 selects 615 the computing resource container that is associated with the first software application as the target computing resource container. Management device 320 associates 620 the second software application with the target computing resource container, such as by transmitting a placement request referencing the second software application to the target computing resource container, and provides 625 (e.g., transmits) the placement rule to the target computing resource container, such that the target computing resource container can associate the second software application with the same computing resource 515 with which the first software application is already associated.
When the first software application is to be separated from the second VM, management device 320 determines 630 whether a computing resource container other than the computing resource container that is associated with the first software application is available for placement of the second software application. For example, management device 320 may determine 630 whether another computing resource container has sufficient capacity to accommodate the second software application.
If another computing resource container is available, management device selects 635 the other computing resource container as the target computing resource container and associates 640 the second software application with the target computing resource container. In exemplary embodiments, placing the second software application in a computing resource container different from the one in which the first software application guarantees that the first software application and the second software application will be associated with different computing resources 515.
When the first VM is to be separated from the second VM, and no second computing resource container is available, management device 320 selects 615 the computing resource container associated with the first software application as the target computing resource container and associates 620 the second software application with the target computing resource container, as described above. In addition, management device 320 provides 625 the placement rule to the target computing resource container. Accordingly, even though the first and second software applications are placed in the same computing resource container, the computing resource container may enforce the placement rule by ensuring that the first and second software applications are associated with different computing resources 515, such as by performing method 400, described above with reference to
Some embodiments facilitate recovering from errors in software application placement. For example, after associating 640 the second software application with a first target computing resource container, management device 320 may determine 645 that a placement error is received from the first target computing resource container in response to the placement request. In such a scenario, management device 320 determines 630 whether a computing resource container other than the computing resource container associated with the first software application is available for placement of the second software application, disregarding the first target computing resource container. Based on the determination 630, management device 320 proceeds as described above. For example, if the first target computing resource container is the only container other than the computing resource container associated with the first software application, management device 320 selects 615 the computing resource container associated with the first software application as a second target computing resource container.
As described above with reference to method 400 (shown in
When the placement rule is an anti-affinity rule, before associating 640 the second software application with the target computing resource container, management device 320 determines 637 whether such an association 640 will violate a rule other than the anti-affinity rule being applied. If no other rule will be violated, management device 320 proceeds to associate 640 the second software application with the target computing resource container. If another rule will be violated, management device 320 disregards the target computing resource container and proceeds to determine 630 whether another computing resource container other than the computing resource container that is associated with the first software application is available for placement of the second software application, as described above. Computing resource containers that have previously been selected 635, and for which placement of the second software application has been determined 637 to violate another rule, are considered unavailable. Accordingly, if placement of the second software application at each computing resource container other than the computing resource container that is associated with the first software application will result in a violation of a rule, management device 320 selects 615 the computing resource container that is associated with the first software application as the target computing resource container.
In exemplary embodiments, management device 320 performs method 600 repeatedly (e.g., periodically, continually, and/or upon request). Repeatedly performing method 600 facilitates detecting and responding to changing circumstances in cluster system 500. For example, management device 320 may determine 630 that a previously unavailable computing resource container has become available, or that a rule other than the placement rule will no longer be violated by placement of a software application at a particular computing resource container. As another example, management device 320 may identify 610 a change in the computing resource container with which a software application is associated. Such changes may result in a violation of a placement rule, which can be corrected by management device 320, as described above.
The methods described may be performed by computing devices 100 (shown in
Exemplary Operating Environment
The operations described herein may be performed by a computer or computing device. A computer or computing device may include one or more processors or processing units, system memory, and some form of computer readable media. Exemplary computer readable media include flash memory drives, digital versatile discs (DVDs), compact discs (CDs), floppy disks, and tape cassettes. By way of example and not limitation, computer readable media comprise computer-readable storage media and communication media. Computer-readable storage media are tangible and non-transitory and store information such as computer readable instructions, data structures, program modules, or other data. Communication media, in contrast, typically embody computer readable instructions, data structures, program modules, or other data in a transitory modulated data signal such as a carrier wave or other transport mechanism and include any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
Although described in connection with an exemplary computing system environment, embodiments of the disclosure are operative with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with aspects of the disclosure include, but are not limited to, mobile computing devices, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, gaming consoles, microprocessor-based systems, set top boxes, programmable consumer electronics, mobile telephones, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
Embodiments of the disclosure may be described in the general context of computer-executable instructions, such as program modules, executed by one or more computers or other devices. The computer-executable instructions may be organized into one or more computer-executable components or modules. Generally, program modules include, but are not limited to, routines, programs, objects, components, and data structures that perform particular tasks or implement particular abstract data types. Aspects of the disclosure may be implemented with any number and organization of such components or modules. For example, aspects of the disclosure are not limited to the specific computer-executable instructions or the specific components or modules illustrated in the figures and described herein. Other embodiments of the disclosure may include different computer-executable instructions or components having more or less functionality than illustrated and described herein.
Aspects of the disclosure transform a general-purpose computer into a special-purpose computing device when programmed to execute the instructions described herein.
The operations illustrated and described herein may be implemented as software instructions encoded on a computer-readable medium, in hardware programmed or designed to perform the operations, or both. For example, aspects of the disclosure may be implemented as a system on a chip.
The order of execution or performance of the operations in embodiments of the disclosure illustrated and described herein is not essential, unless otherwise specified. That is, the operations may be performed in any order, unless otherwise specified, and embodiments of the disclosure may include additional or fewer operations than those disclosed herein. For example, it is contemplated that executing or performing a particular operation before, contemporaneously with, or after another operation is within the scope of aspects of the disclosure.
When introducing elements of aspects of the disclosure or the embodiments thereof, the articles “a,” “an,” “the,” and “said” are intended to mean that there are one or more of the elements. The terms “comprising,” “including,” and “having” are intended to be inclusive and mean that there may be additional elements other than the listed elements.
Having described aspects of the disclosure in detail, it will be apparent that modifications and variations are possible without departing from the scope of aspects of the disclosure as defined in the appended claims. As various changes could be made in the above constructions, products, and methods without departing from the scope of aspects of the disclosure, it is intended that all matter contained in the above description and shown in the accompanying drawings shall be interpreted as illustrative and not in a limiting sense.
Holler, Anne Marie, Ahmad, Irfan, Uysal, Mustafa
Patent | Priority | Assignee | Title |
10346189, | Dec 05 2016 | Red Hat, Inc. | Co-locating containers based on source to improve compute density |
Patent | Priority | Assignee | Title |
7620953, | Oct 05 2004 | Azul Systems, Inc | System and method for allocating resources of a core space among a plurality of core virtual machines |
7757116, | Apr 04 2007 | PRECISELY SOFTWARE INCORPORATED | Method and system for coordinated multiple cluster failover |
7934035, | Dec 30 2003 | Computer Associates Think, Inc | Apparatus, method and system for aggregating computing resources |
7971047, | Sep 10 2007 | VMware LLC | Operating system environment and installation |
7996719, | Oct 24 2008 | Microsoft Technology Licensing, LLC | Expressing fault correlation constraints |
8112527, | May 24 2006 | ZOOM VIDEO COMMUNICATIONS, INC | Virtual machine management apparatus, and virtual machine management method and program |
8209687, | Aug 31 2007 | Cirba Inc | Method and system for evaluating virtualized environments |
8261282, | Sep 30 2008 | NetApp, Inc. | System and method for virtual machine host load protection |
8352611, | Jun 29 2010 | International Business Machines Corporation | Allocating computer resources in a cloud environment |
8423998, | Jun 04 2010 | International Business Machines Corporation | System and method for virtual machine multiplexing for resource provisioning in compute clouds |
8510590, | Mar 17 2010 | VMware LLC | Method and system for cluster resource management in a virtualized computing environment |
8533724, | Dec 20 2010 | Amazon Technologies, Inc.; Amazon Technologies, Inc | Virtual resource provisioning by assigning colors to virtual resources in multi-tenant resource pool |
8918378, | Aug 31 2011 | NetApp, Inc | Cloning using an extent-based architecture |
20020173984, | |||
20060136761, | |||
20080244569, | |||
20090007099, | |||
20090037572, | |||
20090037585, | |||
20090070771, | |||
20090210527, | |||
20090300414, | |||
20110214005, | |||
20110225277, | |||
20110231696, | |||
20110238803, | |||
20110246627, | |||
20110246992, | |||
20110296429, | |||
20110302578, | |||
20120042311, | |||
20120102199, | |||
20120123825, | |||
20120180039, | |||
20120266166, | |||
20120324071, | |||
20120324112, | |||
20130042003, | |||
20130047006, | |||
20130067277, | |||
20130097601, | |||
20130263120, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jul 15 2014 | VMware, Inc. | (assignment on the face of the patent) | / | |||
Nov 21 2023 | VMWARE, INC | VMware LLC | CHANGE OF NAME SEE DOCUMENT FOR DETAILS | 067102 | /0395 |
Date | Maintenance Fee Events |
Mar 21 2019 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Mar 22 2023 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Date | Maintenance Schedule |
Oct 06 2018 | 4 years fee payment window open |
Apr 06 2019 | 6 months grace period start (w surcharge) |
Oct 06 2019 | patent expiry (for year 4) |
Oct 06 2021 | 2 years to revive unintentionally abandoned end. (for year 4) |
Oct 06 2022 | 8 years fee payment window open |
Apr 06 2023 | 6 months grace period start (w surcharge) |
Oct 06 2023 | patent expiry (for year 8) |
Oct 06 2025 | 2 years to revive unintentionally abandoned end. (for year 8) |
Oct 06 2026 | 12 years fee payment window open |
Apr 06 2027 | 6 months grace period start (w surcharge) |
Oct 06 2027 | patent expiry (for year 12) |
Oct 06 2029 | 2 years to revive unintentionally abandoned end. (for year 12) |