Skip to main content

FaaStest - Machine Learning Based Cost and Performance FaaS Optimization

  • Conference paper
  • First Online:
Economics of Grids, Clouds, Systems, and Services (GECON 2018)

Part of the book series: Lecture Notes in Computer Science ((LNCCN,volume 11113))

Abstract

With the emergence of Function-as-a-Service (FaaS) in the cloud, pay-per-use pricing models became available along with the traditional fixed price model for VMs and increased the complexity of selecting the optimal platform for a given service. We present FaaStest - an autonomous solution for cost and performance optimization of FaaS services by taking a hybrid approach - learning the behavioral patterns of the service and dynamically selecting the optimal platform. Moreover, we combine a prediction based solution for reducing cold starts of FaaS services. Experiments present a reduction of over 50% in cost and over 90% in response time for FaaS calls.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Amazon On-Demand Pricing. https://aws.amazon.com/ec2/pricing/

  2. Amazon Web Services pricing. https://aws.amazon.com/lambda/pricing/

  3. Dealing with cold starts in AWS Lambda. https://medium.com/thundra/dealing-with-cold-starts-in-aws-lambda-a5e3aa8f532

  4. Does coding language memory or package size affects colds tarts of AWS Lambda. https://read.acloud.guru/does-coding-language-memory-or-package-size-affect-cold-starts-of-aws-lambda-a15e26d12c76

  5. Economics of serverless computing. https://451research.com/report-long?icid=4406?utm_source=trending_topics&utm_term=cloud_pricing

  6. Fission official documentation. https://docs.fission.io/0.7.2/

  7. Fission serverless function as a service for kubernetes. https://kubernetes.io/blog/2017/01/fission-serverless-functions-as-service-for-kubernetes/

  8. From Containers to AWS Lambda. https://blog.travelex.io/from-containers-to-aws-lambda-23f712f9e925

  9. Function as a Service (FaaS) - why you should care and what you need to know. https://www.redhat.com/files/summit/session-assets/2017/S109151-serverless.pdf

  10. Function-as-a-Service Market Global Forecast to 2021. https://www.researchandmarkets.com/research/nfq5pr/functionasaserv

  11. Gartner Forecasts Worldwide Public Cloud Services Revenue to Reach $260 Billion in 2017. https://www.gartner.com/newsroom/id/3815165

  12. Get functional! 5 open source frameworks for serverless computing. https://www.infoworld.com/article/3193119/open-source-tools/get-functional-5-open-source-frameworks-for-serverless-computing.html

  13. Go Serverless - pros and cons. https://devops.com/go-serverless-pros-cons/

  14. Keep your lambdas warm (interval based solution). https://serverless.com/blog/keep-your-lambdas-warm/

  15. Node Cellar source code. https://github.com/ccoenraets/nodecellar

  16. Open source project suggesting Warmup support for AWS Lambda functions to prevent cold starts. https://github.com/thundra-io/thundra-lambda-warmup/blob/master/README.md

  17. Resolving cold start in AWS Lambda. https://medium.com/@lakshmanLD/resolving-cold-start

  18. Serverless, a new cloud trend. https://medium.com/slalom-engineering/serverless-the-new-cloud-trend-e2f163433431

  19. Serverless challenges (cold start). https://hackernoon.com/the-key-challenges-serverless-will-have-to-overcome-to-succeed-in-2018-af3132ed4995

  20. The Financial Case for Moving to the Cloud. gartner.com/smarterwithgartner/the-financial-case-for-moving-to-the-cloud/

  21. The hidden costs of Serverless. https://medium.com/@amiram_26122/the-hidden-costs-of-serverless-6ced7844780b

  22. Worldwide Public Cloud Services Spending Forecast to Reach \$160 Billion This Year, According to IDC. https://www.idc.com/getdoc.jsp?containerId=prUS43511618

  23. Baldini, I., et al.: Serverless computing: current trends and open problems. In: Chaudhary, S., Somani, G., Buyya, R. (eds.) Research Advances in Cloud Computing, pp. 1–20. Springer, Singapore (2017). https://doi.org/10.1007/978-981-10-5026-8_1

    Chapter  Google Scholar 

  24. Bhattacherjee, A., Park, S.C.: Why end-users move to the cloud: a migration-theoretic analysis. Eur. J. Inf. Syst. 23(3), 357–372 (2014)

    Article  Google Scholar 

  25. Boza, E.F., Abad, C.L., Villavicencio, M., Quimba, S., Plaza, J.A.: Reserved, on demand or serverless: model-based simulations for cloud budget planning. In: 2017 IEEE Ecuador Technical Chapters Meeting (ETCM), pp. 1–6. IEEE (2017)

    Google Scholar 

  26. Buyya, R., Yeo, C.S., Venugopal, S., Broberg, J., Brandic, I.: Cloud computing and emerging it platforms: vision, hype, and reality for delivering computing as the 5th utility. Future Gener. Comput. Syst. 25(6), 599–616 (2009)

    Article  Google Scholar 

  27. Eivy, A.: Be wary of the economics of “serverless” cloud computing. IEEE Cloud Comput. 4(2), 6–12 (2017)

    Article  Google Scholar 

  28. Hendrickson, S., Sturdevant, S., Harter, T., Venkataramani, V., Arpaci-Dusseau, A.C., Arpaci-Dusseau, R.H.: Serverless computation with OpenLambda. Elastic 60, 80 (2016)

    Google Scholar 

  29. Lee, H., Satyam, K., Fox, G.C.: Evaluation of production serverless computing environments. In: 3rd International Workshop on Serverless Computing (WoSC) (2018)

    Google Scholar 

  30. Lynn, T., Rosati, P., Lejeune, A., Emeakaroha, V.: A preliminary review of enterprise serverless cloud computing (Function-as-a-Service) platforms. In: 2017 IEEE International Conference on Cloud Computing Technology and Science (CloudCom), pp. 162–169. IEEE (2017)

    Google Scholar 

  31. Oakes, E., Yang, L., Houck, K., Harter, T., Arpaci-Dusseau, A.C., Arpaci-Dusseau, R.H.: Pipsqueak: lean Lambdas with large libraries. In: 2017 IEEE 37th International Conference on Distributed Computing Systems Workshops (ICDCSW), pp. 395–400. IEEE (2017)

    Google Scholar 

  32. Panetta, K.: Top trends in the gartner hype cycle for emerging technologies (2017). https://www.gartner.com/smarterwithgartner/top-trends-in-the-gartner-hype-cycle-for-emerging-technologies-2017/

  33. Shillaker, S.: A provider-friendly serverless framework for latency-critical applications. In: 12th Eurosys Doctoral Workshop, Porto, Portugal (2018)

    Google Scholar 

  34. Varghese, B., Buyya, R.: Next generation cloud computing: new trends and research directions. Future Gener. Comput. Syst. 79, 849–861 (2018)

    Article  Google Scholar 

  35. Villamizar, M., et al.: Cost comparison of running web applications in the cloud using monolithic, microservice, and AWS Lambda architectures. SOCA 11(2), 233–247 (2017)

    Article  Google Scholar 

  36. Wang, L., Li, M., Zhang, Y., Ristenpart, T., Swift, M.: Peeking behind the curtains of serverless platforms. In: 2018 USENIX Annual Technical Conference (USENIX ATC 2018), pp. 133–146. USENIX Association (2018)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shay Horovitz .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Horovitz, S., Amos, R., Baruch, O., Cohen, T., Oyar, T., Deri, A. (2019). FaaStest - Machine Learning Based Cost and Performance FaaS Optimization. In: Coppola, M., Carlini, E., D’Agostino, D., Altmann, J., Bañares, J. (eds) Economics of Grids, Clouds, Systems, and Services. GECON 2018. Lecture Notes in Computer Science(), vol 11113. Springer, Cham. https://doi.org/10.1007/978-3-030-13342-9_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-13342-9_15

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-13341-2

  • Online ISBN: 978-3-030-13342-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics