CoScal: Multifaceted Scaling of Microservices With Reinforcement Learning

被引:29
作者
Xu, Minxian [1 ]
Song, Chenghao [1 ]
Ilager, Shashikant [2 ]
Gill, Sukhpal Singh [3 ]
Zhao, Juanjuan [1 ]
Ye, Kejiang [1 ]
Xu, Chengzhong [4 ]
机构
[1] Shenzhen Inst Adv Technol, Chinese Acad Sci, Shenzhen 518055, Peoples R China
[2] Vienna Univ Technol, Dept Informat, A-1040 Vienna, Austria
[3] Queen Mary Univ London, Sch Elect Engn & Comp Sci, London E14NS, England
[4] Univ Macau, State Key Lab IoTSC, Macau, Peoples R China
来源
IEEE TRANSACTIONS ON NETWORK AND SERVICE MANAGEMENT | 2022年 / 19卷 / 04期
基金
国家重点研发计划; 中国国家自然科学基金;
关键词
Microservice architectures; Quality of service; Cloud computing; Predictive models; Costs; Heuristic algorithms; Reinforcement learning; workload prediction; microservices; reinforcement learning; brownout; scalability;
D O I
10.1109/TNSM.2022.3210211
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The emerging trend towards moving from monolithic applications to microservices has raised new performance challenges in cloud computing environments. Compared with traditional monolithic applications, the microservices are lightweight, fine-grained, and must be executed in a shorter time. Efficient scaling approaches are required to ensure microservices' system performance under diverse workloads with strict Quality of Service (QoS) requirements and optimize resource provisioning. To solve this problem, we investigate the trade-offs between the dominant scaling techniques, including horizontal scaling, vertical scaling, and brownout in terms of execution cost and response time. We first present a prediction algorithm based on gradient recurrent units to accurately predict workloads assisting in scaling to achieve efficient scaling. Further, we propose a multi-faceted scaling approach using reinforcement learning called CoScal to learn the scaling techniques efficiently. The proposed CoScal approach takes full advantage of data-driven decisions and improves the system performance in terms of high communication cost and delay. We validate our proposed solution by implementing a containerized microservice prototype system and evaluated with two microservice applications. The extensive experiments demonstrate that CoScal reduces response time by 19%-29% and decreases the connection time of services by 16% when compared with the state-of-the-art scaling techniques for Sock Shop application. CoScal can also improve the number of successful transactions with 6%-10% for Stan's Robot Shop application.
引用
收藏
页码:3995 / 4009
页数:15
相关论文
共 43 条
  • [1] Abadi M, 2016, PROCEEDINGS OF OSDI'16: 12TH USENIX SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION, P265
  • [2] AI-Enabled Secure Microservices in Edge Computing: Opportunities and Challenges
    Al-Doghman, Firas
    Moustafa, Nour
    Khalil, Ibrahim
    Sohrabi, Nasrin
    Tari, Zahir
    Zomaya, Albert Y.
    [J]. IEEE TRANSACTIONS ON SERVICES COMPUTING, 2023, 16 (02) : 1485 - 1504
  • [3] Chang MA, 2017, Arxiv, DOI arXiv:1711.00618
  • [4] [Anonymous], 2017, SOCK SHOP MICROSERVI
  • [5] A View of Cloud Computing
    Armbrust, Michael
    Fox, Armando
    Griffith, Rean
    Joseph, Anthony D.
    Katz, Randy
    Konwinski, Andy
    Lee, Gunho
    Patterson, David
    Rabkin, Ariel
    Stoica, Ion
    Zaharia, Matei
    [J]. COMMUNICATIONS OF THE ACM, 2010, 53 (04) : 50 - 58
  • [6] Burns B., 2019, Kubernetes Up & Running: Dive into the Future of Infrastructure
  • [7] Chen WY, 2018, INT C PAR DISTRIB SY, P102, DOI [10.1109/ICPADS.2018.00024, 10.1109/PADSW.2018.8644579]
  • [8] Towards Accurate Prediction for High-Dimensional and Highly-Variable Cloud Workloads with Deep Learning
    Chen, Zheyi
    Hu, Jia
    Min, Geyong
    Zomaya, Albert Y.
    El-Ghazawi, Tarek
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2020, 31 (04) : 923 - 934
  • [9] Chung J., 2014, P NIPS, P1, DOI DOI 10.48550/ARXIV.1412.3555
  • [10] Seer: Leveraging Big Data to Navigate the Complexity of Performance Debugging in Cloud Microservices
    Gan, Yu
    Zhang, Yanqi
    Hu, Kelvin
    Cheng, Dailun
    He, Yuan
    Pancholi, Meghna
    Delimitrou, Christina
    [J]. TWENTY-FOURTH INTERNATIONAL CONFERENCE ON ARCHITECTURAL SUPPORT FOR PROGRAMMING LANGUAGES AND OPERATING SYSTEMS (ASPLOS XXIV), 2019, : 19 - 33