SHOWAR: Right-Sizing And Efficient Scheduling of Microservices

被引:43
作者
Baarzi, Ataollah Fatahi [1 ]
Kesidis, George [1 ]
机构
[1] Penn State Univ, University Pk, PA 16802 USA
来源
PROCEEDINGS OF THE 2021 ACM SYMPOSIUM ON CLOUD COMPUTING (SOCC '21) | 2021年
基金
美国国家科学基金会;
关键词
autoscaling; microservices; cloud computing;
D O I
10.1145/3472883.3486999
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Microservices architecture have been widely adopted in designing distributed cloud applications where the application is decoupled into multiple small components (i.e. "microservices"). One of the challenges in deploying microservices is finding the optimal amount of resources (i.e. size) and the number of instances (i.e. replicas) for each microservice in order to maintain a good performance as well as prevent resource wastage and under-utilization which is not cost-effective. This paper presents SHOWAR, a framework that configures the resources by determining the number of replicas (horizontal scaling) and the amount of CPU and Memory for each microservice (vertical scaling). For vertical scaling, SHOWAR uses empirical variance in the historical resource usage to find the optimal size and mitigate resource wastage. For horizontal scaling, SHOWAR uses basic ideas from control theory along with kernel level performance metrics. Additionally, once the size for each microservice is found, SHOWAR bridges the gap between optimal resource allocation and scheduling by generating affinity rules (i.e. hints) for the scheduler to further improve the performance. Our experiments, using a variety of microservice applications and real-world workloads, show that, compared to the state-of-the-art autoscaling and scheduling systems, SHOWAR on average improves the resource allocation by up to 22% while improving the 99th percentile end-to-end user request latency by 20%.
引用
收藏
页码:427 / 441
页数:15
相关论文
共 62 条
[1]  
[Anonymous], 2021, MICROSERVICES ARCHIT
[2]  
[Anonymous], 2021, LINUX KERNEL SCHEDUL
[3]  
[Anonymous], 2018, Designing Distributed Systems: Patterns and Paradigms for Scalable, Reliable Services
[4]  
[Anonymous], 2021, EBPF 0407
[5]  
[Anonymous], 2021, EBP RUNQ LATENCY MET
[6]  
[Anonymous], 2021, GCP KUBERNETES BEST
[7]  
[Anonymous], 2021, MICROSOFT MICROSERVI
[8]  
[Anonymous], 2021, Cloud computing services, Google Cloud
[9]  
[Anonymous], 2021, KUBELESS
[10]  
[Anonymous], 2021, KUBERNETES CLUSTER A