RTUComputer ScienceYr 2024 · Sem 62024

Q19Cloud Computing

Question

10 marks

Discuss Resource Management and Scheduling in Cloud Computing. Explain any two task scheduling algorithms used in cloud environments.

Answer

A massive theoretical exposition on Cloud Resource Management. Violently analyzes the algorithmic complexity of Task Scheduling, detailing the mathematical execution of Max-Min and Min-Min heuristics in distributed environments.

In a massive Hyperscale Data Center containing 100,000 physical servers, users dynamically submit millions of tasks requiring CPU, RAM, and Disk I/O. If the Cloud OS randomly assigns tasks, servers will suffer catastrophic bottlenecks while others sit idle. Resource Management is the strict architectural discipline of mathematically mapping incoming virtual tasks to optimal physical hardware to guarantee absolute Maximum Throughput and Minimum Makespan (total execution time).

The Architectural Complexity of Cloud Scheduling

Cloud scheduling is mathematically proven to be an NP-Hard problem. There is no algorithm that can calculate the absolute perfect schedule in polynomial time. Therefore, the cloud scheduler must utilize highly aggressive, heuristic-based Task Scheduling algorithms to generate an optimized, "good enough" matrix in milliseconds.

1. The Min-Min Scheduling Algorithm

A highly aggressive heuristic designed to violently clear out small tasks to minimize overall wait times.

  • Phase 1 (The Matrix Calculation): The scheduler mathematically calculates the exact Expected Completion Time (ECT) for every single unmapped task on every single available virtual machine. It generates a massive matrix.
  • Phase 2 (The First Minimum): For every task, it scans the row and identifies the specific VM that will execute it the absolute fastest (Minimum Completion Time).
  • Phase 3 (The Second Minimum): It then scans all those minimum times and violently selects the task with the absolute smallest overall time (the "Min-Min" task).
  • Phase 4 (Execution): That tiny task is instantly mapped to its optimal VM. The matrix is updated, and the loop repeats.
  • Demerit: While brilliant for small tasks, massive, heavy-compute tasks are mathematically starved, constantly pushed to the back of the queue, resulting in poor load balancing if the workload is highly heterogeneous.

2. The Max-Min Scheduling Algorithm

Engineered as the absolute mathematical counter to Min-Min to solve the starvation of massive tasks.

  • Phase 1 & 2: Identical to Min-Min. It calculates the ECT matrix and finds the optimal VM for every single task.
  • Phase 3 (The Maximum): Instead of picking the smallest task, it violently selects the task with the absolute LARGEST minimum completion time (the massive, heavy task).
  • Phase 4 (Execution): The massive task is assigned to its optimal VM immediately.
  • Merit: It mathematically forces the longest tasks to execute concurrently with smaller tasks. Because the massive task gets its optimal high-speed VM first, the total overall Makespan of the entire batch of tasks is drastically reduced, resulting in vastly superior load balancing across the data center.
Back to Paper