Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.31 KB

README.md

File metadata and controls

23 lines (18 loc) · 1.31 KB

How to setup

  1. Install Terraform CLI following the offical documentation
  2. Create terraform.tfvars within the terraform(terraform) directory. For this copy terraform.tfvars.template, fill in your required paramters and rename the file to terraform.tfvars. When testing with an existing MongoDB Cluster ensure to provide the full connection string at connectionString including write concern and username & password
  3. Open a terminal within the cloud provider directory
  4. Run
terraform init
terraform apply
./run_locust.sh

Read the Locust dashboard URL from the console output 5. Important: After testing run terraform destroy to terminate all created resources

Start Locust

To start Locust run ./run_locust.sh and copy the Locust dashboard URL from the output. Use ./kill_locust.sh to stop the locust processes running on the workers and ./kill_locust all to also stop the process on the master. Afterwards, ./run_locust.sh can be used to restart all processes. ./run_locust.sh will always resync load_test.py and related files from your machine to the Locust primary and workers. Alternatively, you can provide custom values for the variable locustFiles which will copy files within the root directory will be copied.