Research Article
An Energy-Efficient Strategy and Secure VM Placement Algorithm in Cloud Computing
| Input: ACTH = {acth1, acth2, …, acthk} ⟶ Hosts which are in active state, | | ACTV = {actv11, actv12, …, actv21, actv22, …, actv2p} ⟶ VMs which are in active state. | | Output: ACTH Updated. | (1) | for each host in active state acthi ∈ ACTH from acthk to acth1 then do | (2) | if acth1 is in no working/idle state then | (3) | convert host acthi from no working/idle state to sleep state | (4) | end if loop | (5) | end for loop | (6) | StatusofVM = 0 | (7) | for each host in active state acthi ∈ ACTH from acthk to acth1 then do | (8) | for each VM actvij ∈ acthi then do | (9) | if migration of actvij to ACTH—acthi then | (10) | StatusofVM = StatusofVM + 1 | (11) | migrationij ← Host ID which is being targeted | (12) | end if loop | (13) | end for loop | (14) | if StatusofVM = j − 1 then | (15) | migrate all VMs using migrationij | (16) | convert host acthi from no working/idle state to sleep state | (17) | end if loop | (18) | end for loop |
|