Patent ID: 8065560

Claim:
A method comprising: providing high availability in a datacenter by optimizing power consumption of the datacenter, wherein the optimizing comprises upon execution of an application at a target node from a plurality of nodes in the datacenter, selecting a failover target node from the plurality of nodes, wherein the application is failed over to the failover target node, if a failure in the target node is detected, the execution results in the application being one of a plurality of online applications, and each of the online applications is online by virtue of being executed on at least one of the plurality of nodes, and reserving a failover capacity of at least one resource at the failover target node, wherein the failover capacity is one of a plurality of failover capacities, and each of the plurality of failover capacities corresponds to one of the plurality of online applications, consolidating the plurality of failover capacities, and releasing a free node of the at least one of the plurality of nodes, if the consolidating results in none of the online applications executing on the free node and none of the plurality of failover capacities being reserved on the free node, wherein the releasing results in the node being powered down.