μConAdapter: Reinforcement Learning-based Fast Concurrency Adaptation for Microservices in Cloud

Jianshu Liu, Shungeng Zhang, Qingyang Wang

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

6 Scopus citations
10 Downloads (Pure)

Abstract

Modern web-facing applications such as e-commerce comprise tens or hundreds of distributed and loosely coupled microservices that promise to facilitate high scalability. While hardware resource scaling approaches [28] have been proposed to address response time fluctuations in critical microservices, little attention has been given to the scaling of soft resources (e.g., threads or database connections), which control hardware resource concurrency. This paper demonstrates that optimal soft resource allocation for critical microservices significantly impacts overall system performance, particularly response time. This suggests the need for fast and intelligent runtime reallocation of soft resources as part of microservices scaling management. We introduce μConAdapter, an intelligent and efficient framework for managing concurrency adaptation. It quickly identifies optimal soft resource allocations for critical microservices and adjusts them to mitigate violations of service-level objectives (SLOs). μConAdapter utilizes fine-grained online monitoring metrics from both the system and application levels and a Deep Q-Network (DQN) to quickly and adaptively provide optimal concurrency settings for critical microservices. Using six realistic bursty workload traces and two representative microservices-based benchmarks (SockShop and SocialNetwork), our experimental results show that μConAdapter can effectively mitigate large response time fluctuation and reduce the tail latency at the 99th percentile by 3× on average when compared to the hardware-only scaling strategies like Kubernetes Autoscaling and FIRM [28], and by 1.6× to the state-of-the-art concurrency-aware system scaling strategy like ConScale [21].

Original languageEnglish
Title of host publicationSoCC 2023 - Proceedings of the 2023 ACM Symposium on Cloud Computing
Pages427-442
Number of pages16
ISBN (Electronic)9798400703874
DOIs
StatePublished - 30 Oct 2023
Externally publishedYes
Event14th ACM Symposium on Cloud Computing, SoCC 2023 - Santa Cruz, United States
Duration: 30 Oct 20231 Nov 2023

Publication series

NameSoCC 2023 - Proceedings of the 2023 ACM Symposium on Cloud Computing

Conference

Conference14th ACM Symposium on Cloud Computing, SoCC 2023
Country/TerritoryUnited States
CitySanta Cruz
Period30/10/231/11/23

Keywords

  • Auto-scaling
  • Microservices
  • Scalability
  • Soft Resource

Fingerprint

Dive into the research topics of 'μConAdapter: Reinforcement Learning-based Fast Concurrency Adaptation for Microservices in Cloud'. Together they form a unique fingerprint.

Cite this