Research Article
SLA Aware Task-Scheduling Algorithm in Cloud Computing Using Whale Optimization Algorithm
Algorithm 1
Proposed task-scheduling algorithm using whale optimization.
| Input: set of tasks , set of VMs , set of hosts , Set of datacenters | | Output: Scheduling of tasks mapped to VMs while minimizing makespan, SLA Violation. | | Start | | Populate whale population randomly | | Calculation of priorities of using equation (5). | | Calculation of priorities of using equation (6). | | Calculation of fitness function using equation (11). | | if (probability < 0.5) | | if (|E| < 1) | | calculate search agent position using equation (13). | | else if (|E| < 1) | | calculate search agent position using equation (19). | | End if | | End if | | If (probability ≥ 0.5) | | Calculate position of search agent using equation (16). | | End if | | Calculate makespan, SLA violation using equations (7) and (10). | | If (agent moves outside region) | | Calculate | | Update iterations | | End if | | End |
|