Research Article
Energy-Efficient Scientific Workflow Scheduling Algorithm in Cloud Environment
Algorithm 4
Pseudocode to deploy new VM (scaleUp()).
1. select type to execute the task within its deadline; | 2. sort all the hosts in the list in decreasing order as per their utilization level; | 3. ; | 4. for all in | 5. if host utilization does not exceed the upper threshold limit after VM allocation then | 6. deploy ; break; | 7. end if | 8. end for | 9. if then | 10. select the which has minimum utilization level; | 11. select the from which has minimum CPU capacity; | 12. if cab be migrated to another host except then | 13. migrate ; | 14. end if | 15. if utilization does not exceed the upper threshold limit after allocation then | 16. deploy on ; | 17. ; | 18. end if | 19. end if | 20. if then | 21. start a new host and add it to ; | 22. deploy on the newly started host; | 23. ; | 24. end if | 25. allocate to and remove from ; | 26. update the ready time and transfer time; |
|