Research Article

Energy-Efficient Resource Allocation and Migration in Private Cloud Data Centre

Algorithm 1

Resource allocation algorithm (overfilled and underfilled VM).
Input: under-fullVMsList and overfilled VMsList
Output: underfullVMsList
  Overfull VMsList
  UnderfullVMsList
  Underloaded VMs. sort. Private cloud data()
  for all LNP in overfull VMs file do
  LNP Overfull Hosts = overfull VMsList − 1
  LNP.VM.type calculation ()
  for all VM in overfull VMs List do
  for all LNP in underfullVMsList do
  LNP under-loaded Hosts = underfullVMsList − LNP
  if (underloadedVM.location == VM.location) then
  if (VM.size ≤ under-fullVM.size) then
  Add VM to underfullVMsList
  Place VM (under-loaded VM, VM)
  Insert standard file (under-loaded VM, VM.ID)
  end if
  else
  if ((VM.size ≤ under-fullVM.volume) && (under-full VMs. LNP. delay. minimum)) then
  set VM (under-full VM, VM)
  count standard file (under-full VM, VM.ID)
  end if
  if ((under-fullVMlist = 0) && (LNP.Overfull private cloud host = 0)) then
  end for
  Revisit underfullVMsList