Cloud Scheduling Algorithms

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

In cloud computing, what is the primary role of scheduling algorithms?

  • To monitor user access privileges.
  • To manage network security protocols.
  • To encrypt data stored in the cloud.
  • To efficiently allocate tasks to resources. (correct)

Which of the following is a key objective of cloud scheduling algorithms?

  • Increasing the physical storage capacity of the servers.
  • Maximizing the number of users connected to the cloud.
  • Enhancing the graphical user interface for cloud applications.
  • Minimizing the execution time of tasks without affecting cloud service. (correct)

What does 'Infrastructure as a Service' (IaaS) provide to its users?

  • A platform for developing and deploying applications.
  • Ready-to-use software applications.
  • Customer relationship management tools.
  • Rent processing, storage, and networking capacity. (correct)

Which cloud service model allows developers to deploy customer-created applications?

<p>Platform as a Service (PaaS). (B)</p> Signup and view all the answers

What is a key characteristic of dynamic scheduling in cloud computing?

<p>It takes into account the current state of Virtual Machines (VMs). (C)</p> Signup and view all the answers

Which of the following is a goal of scheduling tasks on a real-time system?

<p>To complete tasks within strict time constraints. (A)</p> Signup and view all the answers

How does preemptive scheduling differ from non-preemptive scheduling?

<p>Preemptive scheduling allows tasks to be interrupted and moved to another resource. (A)</p> Signup and view all the answers

In workflow scheduling, what do nodes typically represent?

<p>Tasks. (D)</p> Signup and view all the answers

What factor does Job completion time depend on in workflow scheduling?

<p>All of the above. (D)</p> Signup and view all the answers

What is a limitation of simple VM scheduling?

<p>Does not take hypervisor into loop. (C)</p> Signup and view all the answers

In Utility Driven Scheduling, what does 'Relaxed QoS in Overcommitted Scenarios' refer to?

<p>Adjusting service quality to optimize resource utilization during high demand. (D)</p> Signup and view all the answers

Which element is a part of the Utility Scheduler?

<p>Monitor. (D)</p> Signup and view all the answers

What is the gain in CPU Utilization/core achieved?

<p>33% of gain. (C)</p> Signup and view all the answers

In the context of cloud scheduling, what is makespan?

<p>The amount of time to process all tasks. (D)</p> Signup and view all the answers

How can collaboration of fog-cloud affects the QoS?

<p>Can increase the QoS for monetary cost of volunteer requests. (B)</p> Signup and view all the answers

In a volunteer computing system utilizing fog and cloud resources, what does the acronym 'FN' typically stand for?

<p>Fog Node. (D)</p> Signup and view all the answers

What is Min-CCV designed to minimize in task scheduling?

<p>Computation, communication, and violation costs. (D)</p> Signup and view all the answers

What is the primary focus of the Min-V algorithm?

<p>Minimizing delay violations. (C)</p> Signup and view all the answers

Which factor is considered the highest priority by the Min-V algorithm?

<p>QoS. (C)</p> Signup and view all the answers

In the context of the Min-V algorithm, what happens if no nodes can fulfill the deadline requirement of a given task?

<p>The node that offers the minimum violation cost is chosen. (C)</p> Signup and view all the answers

What is the time complexity of Min-CCV?

<p>O(n m). (C)</p> Signup and view all the answers

What is the time complexity of the Min-V algorithm?

<p>O(nlogn + n x m). (D)</p> Signup and view all the answers

In performance evaluation, what parameters are modified?

<p>All of the above. (D)</p> Signup and view all the answers

What does percentage of deadline satisfied tasks (PDST) measure in performance evaluation?

<p>The percentage of tasks completed by their deadlines. (A)</p> Signup and view all the answers

Which type of IoT application is more tolerant for high latency?

<p>Big data analysis and machine learning. (B)</p> Signup and view all the answers

Flashcards

Scheduling Algorithms

Algorithms used to allocate tasks to resources in cloud and fog computing environments.

Cloud

A collection of interconnected and virtualized computer resources presented as one or more unified computing resources.

Software as a Service (SaaS)

Cloud service distribution model where applications are offered as a service.

Platform as a Service (PaaS)

Cloud service distribution model where a platform for developing and deploying applications is provided.

Signup and view all the flashcards

Infrastructure as a Service (IaaS)

Cloud service distribution model where computing infrastructure is provided on demand.

Signup and view all the flashcards

Immediate Scheduling

Scheduling where new tasks are directly assigned to virtual machines upon arrival.

Signup and view all the flashcards

Batch Scheduling

Scheduling where tasks are grouped before being dispatched.

Signup and view all the flashcards

Static Scheduling

Scheduling based on fixed prior information about the system and VMs states.

Signup and view all the flashcards

Dynamic Scheduling

Scheduling that considers current VMs state without needing prior global system info.

Signup and view all the flashcards

Preemptive Scheduling

Scheduling where task execution can be interrupted and moved to another resource.

Signup and view all the flashcards

Non-preemptive Scheduling

Scheduling where VMs are not re-allocated until the current task is complete.

Signup and view all the flashcards

First Come, First Serve (FCFS)

Job scheduling strategy where jobs are processed in the order they arrive.

Signup and view all the flashcards

Workflow Scheduling

Job scheduling where jobs arranged as workflows with dependencies.

Signup and view all the flashcards

Utility-Driven Scheduling

Scheduling focused on optimizing multiple factors like resource utilization and power consumption.

Signup and view all the flashcards

Makespan

The total time required to process all tasks in a scheduling system.

Signup and view all the flashcards

Metaheuristic Algorithms

Algorithms that perform a random search for efficient solutions to an optimization problem.

Signup and view all the flashcards

Min-V Algorithm

An algorithm that gives higher priority to Quality of Service compared to other things like cost.

Signup and view all the flashcards

Percentage of Deadline Satisfied Tasks (PDST)

Parameter used to evalute the effectiveness of the proposed algorithms.

Signup and view all the flashcards

Study Notes

Cloud and Virtualization: Scheduling Algorithms

  • Scheduling algorithms in cloud and fog computing are explored
  • Material sourced from a talk by Mudit Verma & Radovan Zvonček, with supervision from Luis Veiga

Motivation

  • The goal is to minimize the time it takes to reach a classroom using different modes of transport, considering waiting times
    • Bus (15 minutes + waiting time)
    • Tuk-tuk (30 minutes)

A Similar Problem

  • Addresses scheduling for three machines with specific CPU and memory requirements
  • Involves tasks waiting in a queue and execution time, with the aim of a relaxed execution time

Quick Review: Cloud Definition

  • A cloud is an interconnected and virtualized computer collection
  • Resources presented as unified computing resources
  • Based on Service Level Agreements (SLAs) negotiated between providers and consumers

Cloud Service Models

  • Software as a Service (SaaS) is shown via providers and applications like SalesForce CRM and Google App
  • Platform as a Service (PaaS) allows deploying customer-created applications
  • Infrastructure as a Service (IaaS) involves renting processing, storage, network capacity, and computing resources, exemplified by Amazon Web Services and Rackspace

Areas for Improvement in Clouds

  • Resource management needs enhancement
  • Task scheduling optimization is required

Cloud and Fog Computing

  • Data centers/clouds are connected to the edge via LAN/WAN
  • The edge consists of sensors and controllers

Introduction to Scheduling

  • Scheduling is central to distributed computing
  • PaaS model: Workflow (job) scheduling
  • IaaS model: Virtual Machines (VM) scheduling
  • Schedulers decide which job/VM runs on which machine
  • Effective schedulers reduce operational costs
  • They reduce queue waiting time
  • They increase resource utilization

Scheduling Definition

  • It is a mapping mechanism from user tasks to resource selection and execution
  • It's considered a challenging issue
  • The goal is to spread load, maximize processor use, and minimize execution time
  • Involves ordering jobs under transaction constraints
  • Emphasis on high throughput and minimal execution time

Scheduling Goals

  • Manage cloud computing performance and QoS
  • Manage memory and CPU resources
  • Maximize resource use while minimizing task execution time
  • Improve fairness across all tasks
  • Increase the number of successfully completed tasks
  • Schedule tasks on real-time systems
  • High system throughput is critical
  • Improve load balance

Different Types of Task Scheduling

  • Immediate Scheduling: Tasks scheduled directly to VMs upon arrival
  • Batch Scheduling: Tasks grouped before dispatch, also known as mapping events
  • Static Scheduling: Relies on prior global system state, divides traffic evenly
  • Dynamic Scheduling:Considers current VM states, allocates tasks based on capacity
  • Preemptive Scheduling: Tasks can be interrupted and moved during execution
  • Non-preemptive Scheduling: VMs aren't reassigned until the current task finishes

Static Task Scheduling Algorithms

  • First Come First Serve
  • Prioritized Scheduling

Workflow Scheduling

  • Jobs are arranged as workflows, typically defined as Directed Acyclic Graphs (DAG)
  • DAG nodes represent tasks
  • Edges represent flow
  • Job completion time depends on DAG design and parallelism scope
  • There is a wait time in the queue
  • No prior knowledge of resource availability

VM Scheduling

  • Simple with a single priority
  • There is no guarantee of optimized resource utilization
  • Dynamic VM scheduling and migration are used
  • Hypervisor is not considered into the loop

Job Scheduling

  • It is illustrated with a 10x10 Job Shop Scheduling Problem

Utility Driven Scheduling

  • Goals: optimized resource utilization and relaxed QoS in overcommitted scenarios
  • Approach: partial utility function and continuous resource monitoring & feedback

Partial Utility Function Example

  • Includes job details, user, priority, CPU, memory, disk usage and relaxation values for different tasks

Utility Scheduler

  • Utilizes a monitor and scheduler
  • Considers CPU, memory, disk resources across a cluster of nodes (N1-N7)

Test Bed Setup

  • Utilizes a Condor Cluster with 13 machines (52 cores) and 8 GB Physical Memory/machine
  • A scheduler experiment setup uses 4 machines (16 cores) with 8 GB Physical Memory/machine

Result 1

  • Aims to demonstrate a gain of 33% in CPU utilization/core
  • Able to run roughly 1.5 times more jobs

Result 2

  • Illustrates memory utilization

Conclusion

  • Partial Utility is good to optimize resources and reduce operational costs
  • More jobs can run in parallel
  • Reducing queue waiting time is important
  • QoS may degrade during execution but provides better long-run results

Scheduling for Volunteer Cloud Resources

  • Focus on QoS-aware and cost-efficient task scheduling
  • Includes latency-sensitive IoT applications like autonomous cars and industrial robotics
  • Also includes latency-tolerant IoT applications like big data analysis

Motivation - Others

  • Considers priority of tasks, violation cost, deadline constraints and network latency
  • Can scheduling policies mitigate costs and QoS of volunteer requests?
  • Can proposed methods improve QoS for real-time fog-cloud tasks?
  • How does fog-cloud collaboration affect the QoS and monetary cost of volunteer requests?

Problem Statement

  • To assign tasks that minimizes Computation, Communication, and Violation costs
  • While maintaining high QoS by ensuring tasks meet deadlines with low computation and communication costs

Two Heuristic Scheduling Algorithms

  • Min-CCV (minimize Computation, Communication and Violation costs)
  • Min-V (minimize Violation cost)

Evaluation Criteria

  • Evaluating algorithms through QoS in terms of makespan (total task time) and total cost
  • Metaheuristic algorithms are performing a random search to find scheduling problem solution

Min-CCV Algorithm

  • A Task scheduling algorithm using computation, communication, and violation awareness to minimize cost

Min-V Algorithm

  • Designed for batch mode to minimize delay violations, prioritizing QoS

Complexity Analysis

  • Min-CCV algorithm has a time complexity of O(n × m) and space complexity of O(n + m)
  • Min-V algorithm has a time complexity of O(nlogn + n x m) and space complexity of O(n + m)

Performance Evaluation - simulation settings

Experiment one: varying the number of tasks from 50 to 300, fixing fog and cloud nodes to 30 and 15 respectively - Experiment two: with 200 tasks and 15 cloud nodes, varying the number of fog nodes from 10 to 50 - Experiment three: varying the number of cloud nodes, while the tasks and fog nodes were fixed to 200 and 30

Simulation Metrics

  • Computation, communication, and violation cost
  • Percentage of deadline satisfied tasks (PDST)
  • Makespan (The makespan is the amount of time to process all of the tasks.)

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Scheduling Algorithms in Operating Systems
43 questions
Scheduling Algorithms Overview
44 questions
Scheduling Algorithms Research Paper Quiz
56 questions
Use Quizgecko on...
Browser
Browser