Cost-Optimal Dynamic Provisioning of Ephemeral Microservice Environments in Distributed Continuous Integration Pipelines
Keywords:
Blast Radius Provisioning, Continuous Integration, Directed Acyclic Graph, Ephemeral Environments, Kubernetes Operator, Microservices, Spot InstancesAbstract
Integration testing within distributed microservice CI pipelines presents a persistent infrastructure dilemma: shared static staging environments serialize developer workflows and generate cross-team contamination, while statically replicated parallel environments consume cloud resources linearly with team growth. Neither approach scales economically or operationally at enterprise scale. This paper presents an automated framework that resolves this trade-off by provisioning per-pull-request ephemeral environments constrained to a blast radius sub-graph derived from a statically analyzed service dependency Directed Acyclic Graph (DAG). A custom Kubernetes Operator maps each incoming code mutation to the minimal set of affected services, provisions them onto serverless spot-instance backends, and replaces out-of-scope dependencies with dynamically generated mock interfaces, achieving near-zero idle infrastructure cost. Evaluation against the DeathStarBench Social Network workload — 420 pull requests simulated over 24 hours across a 27-service polyglot topology — demonstrates 74.02% infrastructure cost savings against static staging and consistent provisioning latency below four minutes regardless of total service catalog size. Total infrastructure spend under the proposed framework was $73.80, compared to $284.10 for the static baseline and $198.50 for a naive ephemeral model. These results establish that dependency-aware orchestration eliminates the staging dichotomy without reintroducing the scheduling bottlenecks characteristic of naive full-environment ephemeral strategies.
Downloads
References
N. Dragoni, S. Giallorenzo, A. L. Lafuente, M. Mazzara, F. Montesi, R. Mustafin, and L. Safina, "Microservices: Yesterday, today, and tomorrow," in Present and Ulterior Software Engineering, M. Mazzara and B. Meyer, Eds. Cham, Switzerland: Springer, 2017, pp. 195–216. Available: https://doi.org/10.1007/978-3-319-67425-4_12
M. Shahin, M. A. Babar, and L. Zhu, "Continuous integration, delivery and deployment: A systematic review on approaches, tools, challenges and practices," IEEE Access, vol. 5, pp. 3909–3943, 2017. Available: https://doi.org/10.1109/ACCESS.2017.2685629
D. Taibi, V. Lenarduzzi, and C. Pahl, "Architectural patterns for microservices: A systematic mapping study," Proceedings of the 8th International Conference on Cloud Computing and Services Science CLOSER, Funchal, Portugal, 2018, pp. 221–232. Available: https://doi.org/10.5220/0006798302210232
C. Kroiß and T. Bureš, "Logic-based modeling of information transfer in cyber–physical multi-agent systems," Future Generation Computer Systems, vol. 56, pp. 317–332, 2016. Available: https://doi.org/10.1016/j.future.2015.09.013
Y. Gan, Y. Zhang, D. Cheng, A. Shetty, P. Rathi, N. Katarki, A. Bruno, J. Hu, B. Ritchken and B. Jackson, "An open-source benchmark suite for microservices and their hardware-software implications for cloud and edge systems," in ASPLOS '19: Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems, Providence, RI, USA, 2019, pp. 3–18. Available: https://doi.org/10.1145/3297858.3304013
S. G. Domanal and G. R. M. Reddy, "An efficient cost optimized scheduling for spot instances in heterogeneous cloud environment," Future Generation Computer Systems, vol. 84, pp. 11–21, 2018. Available: https://doi.org/10.1016/j.future.2018.02.003
L. Zhu, L. Bass, and G. Champlin-Scharff, "DevOps and its practices," IEEE Software, vol. 33, no. 3, pp. 32–34, May/Jun. 2016. Available: https://doi.org/10.1109/MS.2016.81
L. A. Vayghan, M. A. Saied, M. Toeroe, and F. Khendek, "A Kubernetes controller for managing the availability of elastic microservice based stateful applications," Journal of Systems and Software, vol. 175, art. 110924, 2021. Available: https://www.sciencedirect.com/science/article/abs/pii/S0164121221000212
C. Pahl and P. Jamshidi, "Microservices: A systematic mapping study," in Proceedings of the 6th International Conference on Cloud Computing and Services Science, Rome, Italy, 2016, pp. 137–146. Available: https://doi.org/10.5220/0005785501370146
M. Armbrust, A. Fox, R. Griffith, A. D. Joseph, R. Katz, A. Konwinski, G. Lee, D. Patterson, A. Rabkin, I. Stoica, and M. Zaharia, "A view of cloud computing," Communications of the ACM, vol. 53, no. 4, pp. 50–58, 2010. Available: https://doi.org/10.1145/1721654.1721672
B. Burns, B. Grant, D. Oppenheimer, E. Brewer, and J. Wilkes, "Borg, Omega, and Kubernetes," ACM Queue, vol. 14, no. 1, pp. 70–93, 2016. Available: https://doi.org/10.1145/2898442.2898444
C. Pahl, A. Brogi, J. Soldani, and P. Jamshidi, "Cloud container technologies: A state-of-the-art review," IEEE Transactions on Cloud Computing, vol. 7, no. 3, pp. 677–692, 2019. Available: https://doi.org/10.1109/TCC.2017.2702586
M. R. S. Sedghpour, C. Klein, and J. Tordsson, "An empirical study of service mesh traffic management policies for microservices," in ICPE '22: Proceedings of the 2022 ACM/SPEC on International Conference on Performance Engineering, Beijing, China, 2022, pp. 17–27. Available: https://doi.org/10.1145/3489525.3511686
S. D. Palma, D. Di Nucci, F. Palomba, and D. A. Tamburri, "Within-project defect prediction of infrastructure-as-code using product and process metrics," IEEE Transactions on Software Engineering, vol. 48, no. 6, pp. 2086–2104, 2022. Available: https://doi.org/10.1109/TSE.2021.3051492
E. Casalicchio and S. Iannucci, "The state-of-the-art in container technologies: Application, orchestration and security," Concurrency and Computation: Practice and Experience, vol. 32, no. 17, e5668, 2020. Available: https://doi.org/10.1002/cpe.5668
C. Laaber, J. Scheuner, and P. Leitner, "Software microbenchmarking in the cloud. How bad is it really?" Empirical Software Engineering, vol. 24, no. 4, pp. 2469–2508, 2019. Available: https://doi.org/10.1007/s10664-019-09681-1
A. S. Abdelfattah and T. Cerny, "The Microservice Dependency Matrix," in European Conference on Service-Oriented and Cloud Computing, 2023, pp. 285–300. Available: https://link.springer.com/chapter/10.1007/978-3-031-46235-1_19
I. Ayala, A. V. Papadopoulos, M. Amor, L. Fuentes, "ProDSPL: Proactive self-adaptation based on Dynamic Software Product Lines," Journal of Systems and Software, vol. 175, art. 110909, 2021. Available: https://doi.org/10.1016/j.jss.2021.110909
T. Cerny, M. J. Donahoo, and M. Trnka, "Contextual understanding of microservice architecture: Current and future directions," ACM SIGAPP Applied Computing Review, vol. 17, no. 4, pp. 29–45, 2018. Available: https://doi.org/10.1145/3183628.3183631
A. Brito, A. Hora and M. T. Valente, "Refactoring Graphs: Assessing Refactoring over Time" 2020 IEEE 27th International Conference on Software Analysis, Evolution and Reengineering (SANER), London, ON, Canada, 2020, pp. 501–511. Available: https://doi.org/10.1109/SANER48275.2020.9054864
N. Rajovic, P. M. Carpenter, I. Gelado, N. Puzovic, A. Ramirez and M. Valero, "Supercomputing with commodity CPUs: are mobile SoCs ready for HPC?," SC '13: Proceedings of the International Conference on High Performance Computing, Denver, CO, USA, 2013, art. 39. Available: https://doi.org/10.1145/2503210.2503281
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All papers should be submitted electronically. All submitted manuscripts must be original work that is not under submission at another journal or under consideration for publication in another form, such as a monograph or chapter of a book. Authors of submitted papers are obligated not to submit their paper for publication elsewhere until an editorial decision is rendered on their submission. Further, authors of accepted papers are prohibited from publishing the results in other publications that appear before the paper is published in the Journal unless they receive approval for doing so from the Editor-In-Chief.
IJISAE open access articles are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. This license lets the audience to give appropriate credit, provide a link to the license, and indicate if changes were made and if they remix, transform, or build upon the material, they must distribute contributions under the same license as the original.


