gracefulrestart demonstrates how to gracefully restart a http server in Go.
Clone:
git clone https://github.com/udhos/gracefulrestart
cd gracefulrestart
Build:
go install ./...
Run:
gracefultrestart
Test with curl:
while :; do curl localhost:8080/hello; done
Test with k6:
k6 run --vus 30 --duration 30s k6-script.js