Skip to main content

Multi-objective Hybrid Autoscaling of Microservices in Kubernetes Clusters

  • Conference paper
  • First Online:
Euro-Par 2022: Parallel Processing (Euro-Par 2022)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13440))

Included in the following conference series:

Abstract

The cloud community has accepted microservices as the dominant architecture for implementing cloud native applications. To efficiently execute microservice-based applications, application owners need to carefully scale the required resources, considering the dynamic workload of individual microservices. The complexity of resource provisioning for such applications highlights the crucial role of autoscaling mechanisms. Kubernetes, the common orchestration framework for microservice-based applications, mainly proposes a horizontal pod autoscaling (HPA) mechanism, which, however, lacks efficiency. To hinder resource wastage and still achieve the requested average response time of microservices, we propose a multi-objective autoscaling mechanism. Based on machine learning techniques, we introduce a toolchain for hybrid autoscaling of microservices in Kubernetes. Comparing several machine learning techniques and also our in-house performance modeling tool, called Extra-P, we propose the most adequate model for solving the problem. Our extensive evaluation on a real-world benchmark application shows a significant reduction of resource consumption while still meeting the average response time specified by the user, which outperforms the results of common HPA in Kubernetes.

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 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.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

Notes

  1. 1.

    https://github.com/Angi2412/PodAutoscalingKubernetes.

  2. 2.

    From the Scikit-learn package (https://scikit-learn.org/).

  3. 3.

    https://prometheus.io.

  4. 4.

    https://linkerd.io.

  5. 5.

    https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/.

  6. 6.

    https://scikit-learn.org/.

  7. 7.

    https://scikit-criteria.readthedocs.io/.

  8. 8.

    m stands for millicore.

  9. 9.

    Mi stands for mebibyte.

  10. 10.

    https://github.com/instana/robot-shop.

  11. 11.

    https://github.com/helidon-sockshop/sockshop.

  12. 12.

    https://github.com/DescartesResearch/TeaStore.

  13. 13.

    https://jmeter.apache.org/.

  14. 14.

    https://cloud.google.com/kubernetes-engine/pricing.

References

  1. Balla, D., Simon, C., Maliosz, M.: Adaptive scaling of Kubernetes pods. In: NOMS 2020–2020 IEEE/IFIP Network Operations and Management Symposium, pp. 1–5 (2020)

    Google Scholar 

  2. Botchkarev, A.: A new typology design of performance metrics to measure errors in machine learning regression algorithms. Interdiscip. J. Inf. Knowl. Manag. 14, 45–76 (2019)

    Google Scholar 

  3. Calotoiu, A.: Automatic empirical performance modeling of parallel programs. Ph.D. thesis, Technische Universität Darmstadt (2018)

    Google Scholar 

  4. Dang-Quang, N.M., Yoo, M.: Deep learning-based autoscaling using bidirectional long short-term memory for Kubernetes. Appl. Sci. 11(9) (2021)

    Google Scholar 

  5. Fard, H.M., Prodan, R., Wolf, F.: A container-driven approach for resource provisioning in edge-fog cloud. In: Brandic, I., Genez, T.A.L., Pietri, I., Sakellariou, R. (eds.) ALGOCLOUD 2019. LNCS, vol. 12041, pp. 59–76. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-58628-7_5

    Chapter  Google Scholar 

  6. Fard, H.M., Prodan, R., Wolf, F.: Dynamic multi-objective scheduling of microservices in the cloud. In: IEEE/ACM 13th International Conference on Utility and Cloud Computing (UCC), pp. 386–393 (2020)

    Google Scholar 

  7. Imdoukh, M., Ahmad, I., Alfailakawi, M.G.: Machine learning-based auto-scaling for containerized applications. Neural Comput. Appl. 32(13), 9745–9760 (2019). https://doi.org/10.1007/s00521-019-04507-z

    Article  Google Scholar 

  8. Von Kistowski, J., Eismann, S., Schmitt, N., Bauer, A., Grohmann, J., Kounev, S.: Teastore: a micro-service reference application for benchmarking, modeling and resource management research. In: 2018 IEEE 26th International Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems (MASCOTS), pp. 223–236 (2018)

    Google Scholar 

  9. Kolios, A., Mytilinou, V., Lozano-Minguez, E., Salonitis, K.: A comparative study of multiple-criteria decision-making methods under stochastic inputs. Energies 9(7) (2016)

    Google Scholar 

  10. Midigudla, D.: Performance analysis of the impact of vertical scaling on application containerized with Docker, Kubernetes on Amazon web services EC2 (2019)

    Google Scholar 

  11. Nielsen, J.: Usability Engineering. Morgan Kaufmann, Burlington (1994)

    Google Scholar 

  12. Qu, C., Calheiros, R.N., Buyya, R.: Auto-scaling web applications in clouds: a taxonomy and survey. ACM Comput. Surv. 51(4), 1–33 (2018)

    Article  Google Scholar 

  13. Rossi, F., Nardelli, M., Cardellini, V.: Horizontal and vertical scaling of container-based applications using reinforcement learning. In: 2019 IEEE 12th International Conference on Cloud Computing (CLOUD), pp. 329–338 (2019)

    Google Scholar 

  14. Rzadca, K., et al.: Autopilot: workload autoscaling at google, pp. 1–16. EuroSys 2020, Association for Computing Machinery, New York, NY, USA (2020)

    Google Scholar 

  15. Toka, L., Dobreff, G., Fodor, B., Sonkoly, B.: Machine learning-based scaling management for Kubernetes edge clusters. IEEE Trans. Netw. Serv. Manag. 18(1), 958–972 (2021)

    Article  Google Scholar 

  16. Zhao, A., Huang, Q., Huang, Y., Zou, L., Chen, Z., Song, J.: Research on resource prediction model based on Kubernetes container auto-scaling technology. In: IOP Conference Series: Materials Science and Engineering, vol. 569, pp. 1–8. IOP Publishing (2019)

    Google Scholar 

Download references

Acknowledgements

We acknowledge the support of the European Commission and the German Federal Ministry of Education and Research (BMBF) under the EuroHPC Programme ADMIRE (GA No. 956748, BMBF funding No. 16HPC006K). The EuroHPC Joint Undertaking (JU) receives support from the European Union’s Horizon 2020 research and innovation programme and GER, FRA, ESP, ITA, POL and SWE. This research was also supported by the EBRAINS research infrastructure, funded by the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific GA No. 945539 (Human Brain Project SGA3), and is partly funded by the Federal Ministry of Education and Research (BMBF) and the state of Hesse as part of the NHR Program.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Angelina Horn .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Horn, A., Fard, H.M., Wolf, F. (2022). Multi-objective Hybrid Autoscaling of Microservices in Kubernetes Clusters. In: Cano, J., Trinder, P. (eds) Euro-Par 2022: Parallel Processing. Euro-Par 2022. Lecture Notes in Computer Science, vol 13440. Springer, Cham. https://doi.org/10.1007/978-3-031-12597-3_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-12597-3_15

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-12596-6

  • Online ISBN: 978-3-031-12597-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics