Skip to content

Load testing with Locust using Azure Container Instances (ACI)

License

Notifications You must be signed in to change notification settings

heoelri/locust-on-aci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Locust on Azure Container Instances (ACI)

Load testing with Locust using Azure Container Instances (ACI). This repository contains sample implementations in Terraform how to deploy and run load tests with Locust.

Locust deployment via Terraform

This repository contains two different Terraform definitions to deploy Locust:

  • headless - To conduct fully automated load tests without a user interface triggered via a GitHub workflow.
  • webui - To deploy a load testing infrastructure with multiple worker nodes and a webui to conduct and monitor tests.

Locust deployment pipelines

Headless

The "headless" workflow asks upfront for all required information to conduct the load test:

  • Number of Locust worker nodes
  • Duration in minutes
  • The rate per second in which users are spawned
  • Number of concurrent Locust users
  • Locust target URL

The workflow will then, based on your selection, deploy the required infrastructure in Azure, conduct the load test as defined, store the results in it's Azure Storage Account and scale down the infrastructure back to 0 - except its Storage Account.

WebUI

The "webui" workflow spins up a full Locust deployment with the selected number of worker nodes. You can run the same pipeline again to scale the infrastructure down.

locust webui architecture overview

About

Load testing with Locust using Azure Container Instances (ACI)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published