cp .api.env.sample .api.env
cp .proxy.env.sample .proxy.env
# Add your PROVIDER URLs
# You can add as many provider urls as you want, example is given in the sample of the expected structure
# For each PROVIDERNAME please add an environment variable called PROVIDERNAME_URL
docker compose up -d
Using https (self-signed certificate):
curl --request POST --url https://localhost:4343/ASKFJNAKSJNFKJASDJKANSKJDNAJKDNAJKSNDAKNSDKAJSD --header 'accept: application/json' --header 'content-type: application/json' --data '{"id": 1,"jsonrpc": "2.0","params": ["0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","latest"],"method": "eth_getBalance"}'
Using http:
curl --request POST --url http://localhost:8080/ASKFJNAKSJNFKJASDJKANSKJDNAJKDNAJKSNDAKNSDKAJSD --header 'accept: application/json' --header 'content-type: application/json' --data '{"id": 1,"jsonrpc": "2.0","params": ["0xfe3b557e8fb62b89f4916b721be55ceb828dbd73","latest"],"method": "eth_getBalance"}'
Grafana is hosted behind the reverse proxy using https with self-signed certificate (trust it to open) available at: https://localhost:4343/grafana
Required packages
sudo apt-get install parallel
sudo apt-get install apache2-utils
For 1000 requests using 100 in parallel
./benchmark_simple.sh
For 1000 requests using 10 requests in parallel per each different URL (uses unique tokens)
./benchmark.sh