1. Homepage
  2. Exam
  3. [2022] COMP5349 Cloud Computing - Main Exam S1- Q3 Resource Allocation and scheduling

[2022] COMP5349 Cloud Computing - Main Exam S1- Q3 Resource Allocation and scheduling

This question has been solved
Engage in a Conversation

Question 3 Resource Allocation and scheduling (25 points) CourseNana.COM

Assume a YARN cluster consists of ten EC2 c4.xlarge instances. The cluster has one master node and nine core nodes. An EC2 c4.xlarge instance has 4 vCPU and 7.5G memory. Assume YARN can use 6G memory on each node. YARN is configured to use a fair scheduler and each user’s applications are submitted to its own queue. CourseNana.COM

The default resource configuration for MapReduce application is: CourseNana.COM

·       Application Master: 1G CourseNana.COM

·       Mapper: 3G CourseNana.COM

·       Reducer: 4G CourseNana.COM

For simplicity, we assume containers for reducer will be requested after all map tasks in the same job are completed. CourseNana.COM

The default resource configuration for Spark application is: CourseNana.COM

·       Application Master: 1G CourseNana.COM

·       Executor Memory: 6G CourseNana.COM

·       Executor Core: 4 CourseNana.COM

For simplicity, we assume all executors will be requested at the same time and stay throughout the life cycle of the application. CourseNana.COM

Note that containers requested at the same time may not be allocated at the same time. Containers will be allocated by the scheduler algorithm based on the available resources in the cluster. CourseNana.COM

Consider the following scenario of application execution. We assume the time order is: t0< t1 < t2 < t3 CourseNana.COM

User A submitted a MapReduce application M at t0. There is no other application running in the cluster when M is submitted. M contains two jobs. The first job has an input of 10 blocks. It uses four reduce tasks. The second job has three reduce tasks. CourseNana.COM

User B submitted a Spark application S at t1. It requires three executors. The application will start one job with three stages. Each stage has 10 tasks. CourseNana.COM

At t2, five map tasks of M’s first job have completed. At t3, all map tasks of M’s first job have completed. CourseNana.COM

1.     [2 points] What is the total number of vCPU and total size of memory YARN can allocate? CourseNana.COM

2.     [2 points] Describe the queues and their respective resource capacity at t0 and t1 respectively. CourseNana.COM

3.     [5 points] Describe the containers M requested and allocated before t3 and their respective resource allocation. CourseNana.COM

4.     [4 points] Describe the containers M will request after t3 and the sequence of requesting them. CourseNana.COM

5.     [6 points] Describe the sequence of requesting and allocating containers for application S. You can make assumptions on how containers are allocated on different nodes. CourseNana.COM

6.     [6 points] Describe a possible way of allocating tasks to the executors for application S. CourseNana.COM

  CourseNana.COM

Get the Solution to This Question

WeChat WeChat
Whatsapp WhatsApp
The University of Sydney代写,COMP5349代写,Cloud Computing代写,The University of Sydney代编,COMP5349代编,Cloud Computing代编,The University of Sydney代考,COMP5349代考,Cloud Computing代考,The University of Sydneyhelp,COMP5349help,Cloud Computinghelp,The University of Sydney作业代写,COMP5349作业代写,Cloud Computing作业代写,The University of Sydney编程代写,COMP5349编程代写,Cloud Computing编程代写,The University of Sydneyprogramming help,COMP5349programming help,Cloud Computingprogramming help,The University of Sydneyassignment help,COMP5349assignment help,Cloud Computingassignment help,The University of Sydneysolution,COMP5349solution,Cloud Computingsolution,