FaaSRank: Learning to Schedule Functions in Serverless Platforms

Hanfei Yu, Athirai A. Irissappane, Hao Wang, Wes J. Lloyd

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

35 Scopus citations

Abstract

Current serverless Function-as-a-Service (FaaS) platforms generally use simple, classic scheduling algorithms for distributing function invocations while ignoring FaaS characteristics such as rapid changes in resource utilization and the freeze-thaw life cycle. In this paper, we present FaaSRank, a function scheduler for serverless FaaS platforms based on information monitored from servers and functions. FaaSRank automatically learns scheduling policies through experience using reinforcement learning (RL) and neural networks supported by our novel Score-Rank-Select architecture. We implemented FaaSRank in Apache OpenWhisk, an open source FaaS platform, and evaluated performance against other baseline schedulers including OpenWhisk's default scheduler on two 13-node OpenWhisk clusters. For training and evaluation, we adapted real-world serverless workload traces provided by Microsoft Azure. For the duration of test workloads, FaaSRank sustained on average a lower number of inflight invocations 59.62 % and 70.43 % as measured on two clusters respectively. We also demonstrate the generalizability of FaaSRank for any workload. When trained using a composite of 50 episodes each for 10 distinct random workloads, FaaSRank reduced average function completion time by 23.05% compared to OpenWhisk's default scheduler.

Original languageEnglish
Title of host publicationProceedings - 2021 IEEE International Conference on Autonomic Computing and Self-Organizing Systems, ACSOS 2021
EditorsEsam El-Araby, Vana Kalogeraki, Danilo Pianini, Frederic Lassabe, Barry Porter, Sona Ghahremani, Ingrid Nunes, Mohamed Bakhouya, Sven Tomforde
Pages31-40
Number of pages10
ISBN (Electronic)9781665412612
DOIs
StatePublished - 2021
Event2nd IEEE International Conference on Autonomic Computing and Self-Organizing Systems, ACSOS 2021 - Virtual, Online, United States
Duration: 27 Sep 20211 Oct 2021

Publication series

NameProceedings - 2021 IEEE International Conference on Autonomic Computing and Self-Organizing Systems, ACSOS 2021

Conference

Conference2nd IEEE International Conference on Autonomic Computing and Self-Organizing Systems, ACSOS 2021
Country/TerritoryUnited States
CityVirtual, Online
Period27/09/211/10/21

Keywords

  • Cloud-Computing
  • Machine-Learning
  • Reinforcement-Learning
  • Scheduling
  • Serverless-Computing

Fingerprint

Dive into the research topics of 'FaaSRank: Learning to Schedule Functions in Serverless Platforms'. Together they form a unique fingerprint.

Cite this