Instructions on how to set up the benchmarks.
- Docker version >= 19.03.13
- docker-compose version >= 1.27.4 (usually included in the Docker installation)
- go version >= 1.14.2
The following variables should be set (use this in your .bashrc
, .zshrc
etc)
export GOPRIVATE="github.com/mmathys"
export AWS_DEFAULT_OUTPUT="text"
export DOCKER_BUILDKIT=1
- Make sure that you have write access to
github.com/mmathys/acfts
- Make sure that your Git remote is over SSH, not HTTPS
- Make sure that your public key in
~/.ssh/.id_rsa.pub
is added to your GitHub account
- Create an AWS account
- Install the AWS CLI and make sure the binary is in your
PATH
- Configure the CLI for your account with
aws configure
- Generate a key pair for the selected AWS region and store it on your machine (I used
us-west-1
) - Create a security group
- Name it
all-open
- Create inbound and outbound rules: all traffic should be allowed.
- Name it
- Create two separate EC2 launch configurations for validators and clients and save the launch configuration IDs.
- The image should be an Amazon Linux 2 AMI
- I used EC2 compute instances (beginning with
c
) but you can basically freely chose any type. - Make sure that your generated keypair is added to both launch configurations.
- the security group should be the one we created before:
all-open
- Make sure that your account is able to spin up enough CPUs for the selected region (you may want to create a support request to increase your limit)
- Replace the strings in
ValidatorLaunchTemplate
andAgentsLaunchTemplate
to your according launch configuration IDs. - Modify
SSHKey
: insert the path of your own AWS keypair - Modify
SedExe
: change it tosed
, because you're probably using Linux. If you're using MacOS, installgnu-sed
from Homebrew and setSedExe
togsed
.