Skip to content

gracefulrestart demonstrates how to gracefully restart a http server in Go.

License

Notifications You must be signed in to change notification settings

udhos/gracefulrestart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gracefulrestart

gracefulrestart demonstrates how to gracefully restart a http server in Go.

Usage

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

About

gracefulrestart demonstrates how to gracefully restart a http server in Go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published