mirror of https://github.com/hashicorp/consul
97facc994e | ||
---|---|---|
.. | ||
consul-ami | ||
loadtest-ami | ||
.gitignore | ||
README.md |
README.md
Terraform Consul Load Testing
Packer will output AMI IDs when it completes - save these AMI IDs as Terraform will require them later.
==> Builds finished. The artifacts of successful builds are:
--> amazon-ebs: AMIs were created:
us-east-1: ami-19601070
Consul AMI:
Within the consul-ami/
directory
- Retrieve your Datadog API key, set this as an environment variable, ex:
export DD_API_KEY=$YOURDDAPIKEYHERE
- Set the AWS_DEFAULT_REGION for Packer, ex:
export AWS_DEFAULT_REGION=us-east-1
- Run
packer build consul.json
.
For additional customization you can add tags within the scripts/datadog.yaml
file. An example of a tag could be "consul_version" : "consulent_175"
. These tags are searchable through the datadog dashboard. Another form of customization is changing the datacenter tag within scripts/telemetry.json
, however it is defaulted to us-east-1
.
Load Test AMI
Within the loadtest-ami/
directory
- Set the AWS_DEFAULT_REGION for Packer, ex:
export AWS_DEFAULT_REGION=us-east-1
- Run the command
packer build loadtest.json
The script that k6 runs is found within scripts/loadtest.js
. This script can be updated to send requests to more Consul endpoints. For additional information on k6 please check out their guides.