Skip to content

lostdragon/goreload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#goreload

Zero-downtime restarts in Go

The goreload support zero-downtime restarts in go applications that provide HTTP and/or TCP service.

Installation

go get github.com/lostdragon/goreload

Usage

Send HUP to a process using goreload and it will restart without downtime.

kill -HUP ${pid}

Send QUIT to a process using goreload and it will graceful shutdown.

kill -QUIT ${pid}
Signal Function
TERM, INT Quick shutdown
QUIT Graceful shutdown
KILL Halts a stubborn process
HUP Graceful restart

Refer

https://github.com/rcrowley/goagain

http://grisha.org/blog/2014/06/03/graceful-restart-in-golang/

https://github.com/mindreframer/golang-stuff/blob/master/github.com/astaxie/beego/reload.go

About

Zero-downtime restarts in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published