The server docker image URI to load-test: public.ecr.aws/h1c6y7g8/chinese-translation-api:latest
Make sure you have terraform
, gcloud
, and aws
already installed and configured.
- For
gcloud
, make sure to have already rungcloud init
- For
aws
, make sure to have already runaws init
AWS Only
- Feel free to change the
key_name
invariables.tf
to the correct SSH key name that you want to ssh with.
Deploy with Terraform:
# cd into aws for AWS ec2
cd aws
# OR cd into gce for GCP gce
cd gce
terraform init
terraform plan
# For quantized
terraform apply -var use_quantized=1
# For regular
terraform apply
Clean up with:
terraform destroy
- The startup script logs located @
/var/log/cloud-init-output.log
- The startup script takes around
1m48.555s
- Startup script logs located @
/var/log/daemon.log