Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3185768.3186294acmconferencesArticle/Chapter ViewAbstractPublication PagesicpeConference Proceedingsconference-collections
research-article

Package-Aware Scheduling of FaaS Functions

Published: 02 April 2018 Publication History

Abstract

We consider the problem of scheduling small cloud functions on serverless computing platforms. Fast deployment and execution of these functions is critical, for example, for microservices architectures. However, functions that require large packages or libraries are bloated and start slowly. A solution is to cache packages at the worker nodes instead of bundling them with the functions. However, existing FaaS schedulers are vanilla load balancers, agnostic of any packages that may have been cached in response to prior function executions, and cannot reap the benefits of package caching (other than by chance). To address this problem, we propose a package-aware scheduling algorithm that tries to assign functions that require the same package to the same worker node. Our algorithm increases the hit rate of the package cache and, as a result, reduces the latency of the cloud functions. At the same time, we consider the load sustained by the workers and actively seek to avoid imbalance beyond a configurable threshold. Our preliminary evaluation shows that, even with our limited exploration of the configuration space so-far, we can achieve 66% performance improvement at the cost of a (manageable) higher node imbalance.

References

[1]
Abad, C., Yuan, M., Cai, C., Lu, Y., Roberts, N., and Campbell, R. Generating request streams on big data using clustered renewal processes. Performance Evaluation 70, 10 (2013).
[2]
Beaumont, O., Carter, L., Ferrante, J., Legrand, A., Marchal, L., and Robert, Y. Centralized versus distributed schedulers for bag-of-tasks applications. IEEE Transactions on Parallel and Distributed Systems 19, 5 (2008).
[3]
Cardellini, V., Casalicchio, E., Colajanni, M., and Yu, P. The state of the art in locally distributed Web-server systems. ACM Comput. Surv. 34, 2 (2002).
[4]
Cherkasova, L., and Ponnekanti, S. Optimizing a content-aware load balancing strategy for shared web hosting service. In Intl. Symp. Model., Anal. and Sim. of Comp. and Telecomm. Sys. (MASCOTS) (2000).
[5]
Feitelson, D. Job scheduling in multiprogrammed parallel systems. Tech. rep., 1997. IBM Research Report 19790.
[6]
Ferreira, J., Cello, M., and Iglesias, J. More sharing, more benefits? A study of library sharing in container-based infrastructures. In Intl. Conf. Par. Distrib. Comp. (Euro-Par) (2017).
[7]
Gupta, V., Harchol Balter, M., Sigman, K., and Whitt, W. Analysis of Join-the-Shortest-Queue Routing for Web server farms. Perform. Eval. 64 (2007).
[8]
Hendrickson, S., Sturdevant, S., Harter, T., Venkataramani, V., Arpaci-Dusseau, A., and Arpaci-Dusseau, R. Serverless computation with OpenLambda. In USENIX Work. Hot Topics in Cloud Comp. (HotCloud) (2016).
[9]
Karger, D., Sherman, A., Berkheimer, A., Bogstad, B., Dhanidina, R., Iwamoto, K., Kim, B., Matkins, L., and Yerushalmi, Y. Web caching with consistent hashing. Comp. Netw. 31, 11 (1999).
[10]
Lloyd, W., Ramesh, S., Chinthalapati, S., Ly, L., and Pallickara, S. Serverless computing: An investigation of factors influencing microservice performance. In IEEE Intl. Conf. Cloud Eng. (ICPE), to appear (2018).
[11]
Lu, Y., Xie, Q., Kliot, G., Geller, A., Larus, J., and Greenberg, A. Join-Idle-Queue: A novel load balancing algorithm for dynamically scalable Web services. Perform. Eval. 68, 11 (2011).
[12]
Mitzenmacher, M. The power of two choices in randomized load balancing. IEEE Trans. Par. Distrib. Sys. 12, 10 (2001).
[13]
Oakes, E., Yang, L., Houck, K., Harter, T., Arpaci-Dusseau, A., and Arpaci-Dusseau, R. Pipsqueak: Lean Lambdas with large libraries. In IEEE Intl. Conf. Distrib. Comp. Sys. Workshops (ICDCSW) (2017).
[14]
Oakes, E., Yang, L., Houck, K., Harter, T., Arpaci-Dusseau, A., and Arpaci-Dusseau, R. Pipsqueak: Lean Lambdas with large libraries, 2017. (Presentation given at the) Workshop on Serverless Computing (WoSC).
[15]
Pai, V., Aron, M., Banga, G., Svendsen, M., Druschel, P., Zwaenepoel, W., and Nahum, E. Locality-aware request distribution in cluster-based network servers. SIGOPS Oper. Syst. Rev. 32, 5 (1998).
[16]
Sampé, J., Sánchez-Artigas, M., Garc'ıa-López, P., and Parıs, G. Data-driven serverless functions for object storage. In ACM/IFIP/USENIX Middleware (2017).
[17]
Torrellas, J., Tucker, A., and Gupta, A. Evaluating the performance of cache-affinity scheduling in shared-memory multiprocessors. Journal of Parallel and Distributed Computing 24, 2 (1995).
[18]
van Eyk, E., Iosup, A., Abad, C. L., Grohmann, J., and Eismann, S. A SPEC RG cloud group's vision on the performance challenges of FaaS cloud architectures. In (Under review) (2018).
[19]
van Eyk, E., Iosup, A., Seif, S., and Thömmes, M. The SPEC cloud group's research vision on FaaS and serverless architectures. In Intl. Workshop on Serverless Comp. (WoSC) (2017).
[20]
Wang, W., Zhu, K., Ying, L., Tan, J., and Zhang, L. MapTask scheduling in MapReduce with data locality: Throughput and heavy-traffic optimality. IEEE/ACM Trans. Netw. 24, 1 (2016).
[21]
Xie, Q., and Lu, Y. Priority algorithm for near-data scheduling: Throughput and heavy-traffic optimality. In IEEE Conf. Comp. Comm. (INFOCOM) (2015).
[22]
Xie, Q., Pundir, M., Lu, Y., Abad, and Campbell. Pandas: Robust locality-aware scheduling with stochastic delay optimality. IEEE/ACM Trans. Netw. 25, 2 (2017).
[23]
Zaharia, M., Borthakur, D., Sen Sarma, J., Elmeleegy, K., Shenker, S., and Stoica, I. Delay scheduling: A simple technique for achieving locality and fairness in cluster scheduling. In European Conf. Comp. Sys. (EuroSys) (2010).

Cited By

View all
  • (2024)SLO-Aware Function Placement for Serverless Workflows With Layer-Wise Memory SharingIEEE Transactions on Parallel and Distributed Systems10.1109/TPDS.2024.339185835:6(1074-1091)Online publication date: Jun-2024
  • (2024)A Survey on Spatio-Temporal Big Data Analytics Ecosystem: Resource Management, Processing Platform, and ApplicationsIEEE Transactions on Big Data10.1109/TBDATA.2023.334261910:2(174-193)Online publication date: Apr-2024
  • (2024)Joint Optimization of Request Scheduling and Container Prewarming in Serverless ComputingAlgorithms and Architectures for Parallel Processing10.1007/978-981-97-0834-5_10(150-169)Online publication date: 12-Mar-2024
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
ICPE '18: Companion of the 2018 ACM/SPEC International Conference on Performance Engineering
April 2018
212 pages
ISBN:9781450356299
DOI:10.1145/3185768
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 02 April 2018

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. cloud computing
  2. functions-as-a-service
  3. load balancing
  4. scheduling
  5. serverless computing

Qualifiers

  • Research-article

Conference

ICPE '18

Acceptance Rates

Overall Acceptance Rate 252 of 851 submissions, 30%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)42
  • Downloads (Last 6 weeks)1
Reflects downloads up to 09 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2024)SLO-Aware Function Placement for Serverless Workflows With Layer-Wise Memory SharingIEEE Transactions on Parallel and Distributed Systems10.1109/TPDS.2024.339185835:6(1074-1091)Online publication date: Jun-2024
  • (2024)A Survey on Spatio-Temporal Big Data Analytics Ecosystem: Resource Management, Processing Platform, and ApplicationsIEEE Transactions on Big Data10.1109/TBDATA.2023.334261910:2(174-193)Online publication date: Apr-2024
  • (2024)Joint Optimization of Request Scheduling and Container Prewarming in Serverless ComputingAlgorithms and Architectures for Parallel Processing10.1007/978-981-97-0834-5_10(150-169)Online publication date: 12-Mar-2024
  • (2024)Function-as-a-Service Allocation Policies Made FormalLeveraging Applications of Formal Methods, Verification and Validation. REoCAS Colloquium in Honor of Rocce De Nicola10.1007/978-3-031-73709-1_19(306-321)Online publication date: 27-Oct-2024
  • (2024)An OpenWhisk Extension for Topology-Aware Allocation Priority PoliciesCoordination Models and Languages10.1007/978-3-031-62697-5_11(201-218)Online publication date: 17-Jun-2024
  • (2023)A Hypothesis Testing-based Framework for Software Cross-modal Retrieval in Heterogeneous Semantic SpacesACM Transactions on Software Engineering and Methodology10.1145/359186832:5(1-28)Online publication date: 21-Jul-2023
  • (2023)DatAFLow: Toward a Data-flow-guided FuzzerACM Transactions on Software Engineering and Methodology10.1145/358715932:5(1-7)Online publication date: 21-Jul-2023
  • (2023) DatAFLow: Toward a Data-Flow-Guided FuzzerACM Transactions on Software Engineering and Methodology10.1145/358715632:5(1-31)Online publication date: 21-Jul-2023
  • (2023)White-Box Fuzzing RPC-Based APIs with EvoMaster: An Industrial Case StudyACM Transactions on Software Engineering and Methodology10.1145/358500932:5(1-38)Online publication date: 21-Jul-2023
  • (2023)COMET: Coverage-guided Model Generation For Deep Learning Library TestingACM Transactions on Software Engineering and Methodology10.1145/358356632:5(1-34)Online publication date: 21-Jul-2023
  • Show More Cited By

View Options

Get Access

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media