Cost-efficient ephemeral load testing environments in CI/CD pipelines for cloud-native systems
Keywords
- CI/CD
- load testing
- ephemeral environments
- cloud-native systems
- performance regression
- cost optimization.
Abstract
Continuous Integration and Continuous Delivery (CI/CD) pipelines are widely used in cloud-native development, yet performance validation is often decoupled from the delivery workflow. In practice, load testing commonly relies on long-running staging environments, which can lead to non-deterministic results due to shared resource interference and unnecessary infrastructure costs during idle periods. This paper presents an automated ephemeral load testing framework integrated directly into a CI/CD pipeline. The proposed solution provisions an isolated infrastructure environment on demand, initializes it with a predefined database state, executes controlled load testing scenarios, and optionally decommissions the environment after completion. The workflow is fully automated, ensuring reproducibility and minimal manual intervention. The framework was evaluated using a representative cloud-native architecture with containerized services and a relational database. A cost comparison between permanent staging and ephemeral execution demonstrates that on-demand provisioning significantly reduces operational expenses. A breakeven analysis identifies the testing frequency at which ephemeral execution becomes economically advantageous, highlighting its suitability for periodic performance validation scenarios.
References
Bass, L., Weber, I., Zhu, L.: DevOps: A Software Architect’s Perspective. Addison-Wesley (2015).
Humble, J., Farley, D.: Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation. Addison-Wesley (2010).
Chen, L.: Continuous delivery: Overcoming adoption challenges. Journal of Systems and Software, 128, 72–86 (2017).
Mytkowicz, T., Diwan, A., Hauswirth, M., Sweeney, P.F.: Producing wrong data without doing anything obviously wrong! In: ASPLOS (2009).
Leitner, P., Cito, J.: Patterns in the chaos—A study of performance variation and predictability in public IaaS clouds. ACM Transactions on Internet Technology, 16(3) (2016).
Armbrust, M. et al.: A view of cloud computing. Communications of the ACM, 53(4), 50–58 (2010).
Li, Z., O’Brien, L., Cai, R., Zhang, H.: Towards a taxonomy of performance evaluation of cloud-based applications. In: IEEE CloudCom (2012).
Lorido-Botran, T., Miguel-Alonso, J., Lozano, J.A.: A review of auto-scaling techniques for elastic applications in cloud environments. Journal of Grid Computing, 12(4) (2014).