Research Article

Task Classification Based Energy-Aware Consolidation in Clouds

Algorithm 3

Consolidate_VM ( ).
() // for over-utilized hosts
()  Find a with the highest CPU utilization ;
()  for all , ;
()   Check the number of computation-intensive tasks;
()   Find a having the largest number of computation-intensive tasks;
()  end for
()  for all ;
()   Check the number of computation-intensive tasks;
()   Find a having the least number of computation-intensive tasks;
()  end for
()  Migrate to ;
() // for under-utilized hosts
()   for all , ;
()   Find a with the lowest CPU utilization;
()   end for
()   Migrate all VMs to ;
()   Switch off ;