Skip to content

sarumaj/restartable-server

Repository files navigation

deploy Go Report Card Maintainability Go Reference Go version


restartable-server

Implementation of a HTTP server resilient to SIGTERM OS signal and restartable on demand.

Especially interesting when deploying HTTP servers with the GO runtime in containers.

Container runtime engine usually send a SIGTERM signal to kill the server process, which can be catch by the restartable server to restart itself.

Provided as Proof of Concepts. Currently available at restartable-server.heroku.com.

demo.mp4

Local deployment

go build -o server cmd/server/main.go
./server

Deployment on Heroku

heroku login
docker ps
heroku container:login
heroku container:push web -a <app_name>
heroku container:release web -a <app_name>

About

Implementation of a HTTP server resilient to SIGTERM OS signal and restartable on demand.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors 2

  •  
  •