5fb9df1640
* Adding explicit MPL license for sub-package This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Adding explicit MPL license for sub-package This directory and its subdirectories (packages) contain files licensed with the MPLv2 `LICENSE` file in this directory and are intentionally licensed separately from the BSL `LICENSE` file at the root of this repository. * Updating the license from MPL to Business Source License Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at <Blog URL>, FAQ at www.hashicorp.com/licensing-faq, and details of the license at www.hashicorp.com/bsl. * add missing license headers * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 * Update copyright file headers to BUSL-1.1 --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
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.
The generated ami will have common tag Environment = "consul-load-test"
.
==> 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
- Set up AWS credentials, ex:
export AWS_ACCESS_KEY_ID=#YOURAWSKEYID & export AWS_SECRET_ACCESS_KEY=YOURAWSKEY
- Run
packer build consul.pkr.hcl
.
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.pkr.hcl
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.