Research Article
An Energy-Efficient Strategy and Secure VM Placement Algorithm in Cloud Computing
| | Input: VM-type, | | | ACTH = {acth1, acth2, …, acthk} ⟶ Hosts which are in active state, | | | SLPH = {slph1, slph2, …, slphk} ⟶ Hosts which are in sleep state. | | | Output: Desired Host | | | Algorithm: Host Selection | | (1) | for each acthi ∈ ACTH then do | | (2) | if VM of VM-type is able to fit in acthi then | | (3) | Host ← acthi | | (4) | Return Host then stop | | (5) | end if loop | | (6) | end for loop | | (7) | for each slphi ∈ SLPH then do | | (8) | if VM of VM-type is able to fit in slphi then, | | (9) | Host ← slphi | | (10) | Convert the state of slphi from sleep/non active state to active state | | (11) | Return Host then stop | | (12) | end if loop | | (13) | end for loop |
|