Skip to content

HTTP benchmarking and load balancing on a Raspberry Pi 4 cluster

Notifications You must be signed in to change notification settings

NathanDennis/cluster-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cluster Sim

A project to learn about simulating http traffic to a Go server and load balancing with NGINX using a Raspberry Pi 4 cluster

Tech

  • Golang for a simple http server with a few endpoints serving very basic JSON data
  • wrk - HTTP benchmarking
  • NGINX - Load balancing

Current setup

  • Docker Desktop to run wrk Docker Image
  • x2 Raspberry Pi 4 Model B 2GB - Raspberry Pi OS Lite 2020-05-27

Current progress

  • NGINX installed on Pi 1
  • Go server binary running on both Pis in the cluster

gif demonstration of NGINX working on Pi cluster

Notes

  • 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

About

HTTP benchmarking and load balancing on a Raspberry Pi 4 cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages