Performance Modeling of Microservices with Circuit Breakers using Stochastic Petri Nets

被引:0
作者
Pinheiro, Thiago [1 ]
Mialaret, Marco [1 ]
Pereira, Paulo [2 ]
Lins, Luan [1 ]
Silva, Daliton [1 ]
Dantas, Jamilson [1 ]
Maciel, Paulo [1 ]
机构
[1] Fed Univ Pernambuco UFPE, Informat Ctr, Recife, PE, Brazil
[2] Inst Fed Educ Ciencia & Tecnol Paraiba, Itaporanga, Brazil
来源
18TH ANNUAL IEEE INTERNATIONAL SYSTEMS CONFERENCE, SYSCON 2024 | 2024年
关键词
Microservices; Circuit Breakers; Performance Modeling; Stochastic Petri Nets;
D O I
10.1109/SysCon61195.2024.10553490
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Circuit Breakers (CBs) are critical for containerized microservices infrastructures when managing a surge in workload, as they can serve as a protection mechanism to prevent system overload and meet service level agreements (SLAs). In the event of a sudden increase in workload, microservices (MSs) can face challenges such as resource exhaustion and many discarded requests. CBs can help mitigate these issues by monitoring the services and, if necessary, redirecting the flow of requests to another infrastructure. However, it is difficult to evaluate the behavior of these infrastructures and CB mechanisms in a production environment. To address the above issues, this paper proposes a model using stochastic Petri nets (SPNs) to represent these infrastructures and their auto-scaling mechanisms, the MSs, the CBs, the incoming external arrival rate, and the workload generated between the MSs. Service providers can estimate metrics including circuit breaker activation (CBA), overload forwarding rate (OFR), containers utilization (Uc), unallocated containers (NUc), throughput (TP), discard probability (DP), and discard rate (DR). The model enables the performance evaluation of individual MSs and the entire microservice platform (MP). The work investigates how the microservices adapt to changing conditions and the trade-offs associated with different CB configurations. Using a real testbed, our solution was validated with a confidence interval (CI) of 95%. A case study was used to investigate the feasibility of the solution by evaluating its application in a real-world scenario. We found that the CBs reduced DR by 71.4% on average. This corresponds to an average number of 75,454 requests over 1 hour that were not discarded but forwarded to another infrastructure.
引用
收藏
页数:8
相关论文
共 16 条
  • [1] Containers and Cloud: From LXC to Docker to Kubernetes
    Bernstein, David
    [J]. IEEE CLOUD COMPUTING, 2014, 1 (03): : 81 - 84
  • [2] Cordeiro L, 2007, ECBS 2007: 14TH ANNUAL IEEE INTERNATIONAL CONFERENCE AND WORKSHOPS ON THE ENGINEERING OF COMPUTER-BASED SYSTEMS, PROCEEDINGS, P195
  • [3] Efron B., 1993, An Introduction to the Bootstrap, DOI 10.1007/978-1-4899-4541-9
  • [4] Fowler M, 2014, MICROSERVICES
  • [5] Investigating Performance Metrics for Scaling Microservices in CloudIoT-Environments
    Gotin, Manuel
    Loesch, Felix
    Heinrich, Robert
    Reussner, Ralf
    [J]. PROCEEDINGS OF THE 2018 ACM/SPEC INTERNATIONAL CONFERENCE ON PERFORMANCE ENGINEERING (ICPE '18), 2018, : 157 - 167
  • [6] Jagadeesan Lalita J., 2020, 2020 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW), P19, DOI 10.1109/ISSREW51248.2020.00031
  • [7] Karson M., 1968, JASA, V63, P1047, DOI [DOI 10.1080/01621459.1968.11009335, 10.1080/01621459.1968, DOI 10.1080/01621459.1968]
  • [8] Maciel P. R. M., Performance, Reliability, and Availability Evaluation of Computa- tional Systems, Volume 2: Reliability, Availability Modeling, Measuring, and Data Analysis, V2
  • [9] Maciel P. R. M, Performance, Reliability, and Availability Evaluation of Computational Systems, Volume I: Performance and Background, VI
  • [10] martinfowler, bliki: CircuitBreaker-martinfowler.com