A project to learn about simulating http traffic to a Go server and load balancing with NGINX using a Raspberry Pi 4 cluster
- Golang for a simple http server with a few endpoints serving very basic JSON data
- wrk - HTTP benchmarking
- NGINX - Load balancing
- Docker Desktop to run wrk Docker Image
- x2 Raspberry Pi 4 Model B 2GB - Raspberry Pi OS Lite 2020-05-27
- NGINX installed on Pi 1
- Go server binary running on both Pis in the cluster
- server.go build command on Windows to run on Pi -
env GOOS=linux GOARCH=arm GOARM=6 go build
Full setup instructions for cloning and contributions to come - NGINX Pi start
sudo /etc/init.d/nginx start