This repository is responsible for load testing of Plio environments.
- Create a new EC2 instance
- OS: Ubuntu 20.04 amdx64 LTS
- Type: r5.large (or based on your preference)
- Security group: should only have SSH port open
- Add the EC2 IP to the DNS provider firewall protocol so that it doesn't get blocked due to request limits.
- SSH into the EC2 instance and run the following commands
# ssh into the server ssh -i PRIVATE_KEY_FILE.pem ubuntu@EC2_INSTANCE_IP # install k6 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C5AD17C747E3415A3642D57D77C6C491D6AC1D69 echo "deb https://dl.k6.io/deb stable main" | sudo tee /etc/apt/sources.list.d/k6.list sudo apt-get update sudo apt-get install k6 # OS fine tuning sudo sysctl -w net.ipv4.ip_local_port_range="1024 65535" sudo sysctl -w net.ipv4.tcp_tw_reuse=1 sudo sysctl -w net.ipv4.tcp_timestamps=1 ulimit -n 1000000 # clone this repo git clone https://github.com/avantifellows/plio-load-testing # go to the project/tests directory cd plio-load-testing/tests # run the load testing script k6 run script_file.js # run the load testing script with ACCESS TOKEN k6 run -e ACCESS_TOKEN=your_access_token script_file.js