Research Article

Energy-Efficient Cloudlet Management for Privacy Preservation in Wireless Metropolitan Area Networks

Algorithm 3

VM scheduling strategy confirmation.
Input: The running cloudlet set ; VM occupation record
   VM occupation record
Output: The migration composition collection
Sort the cloudlets in the decreasing order of idle VMs
, ,
  while  do
  Get the running VM list in
  Get the hosting task list in
  for each hosted task do
     Get the number of occupied VMs
    Select the destination cloudlet by Algorithms 1 and 2
    end for
   if all the VMs can be migrated away then
   Generate a migration composition
(12)   Update the cloudlet status and VM distribution
(13)  else=1
(14)   Delete the temporal migration strategies
(15)  end if
(16)   ,
(17) end while
(18) for the reserved tasks’ records do
(19)
(20) end for
(21) for to K  do
(22)  Add ~ as a migration composition to
(23)  Get the start time and time of each migration task
(24)   - t
(25)  
(26)  Update the start time and duration time in
(27)  Update task storage record
(28) end for
(29) Return