Skip to content

Rudd-O/goagain

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goagain

(UNIX socket edition)

Zero-downtime restarts in Go

Inspired by Unicorn, the goagain package provides primitives for bringing zero-downtime restarts to Go applications that accept connections from a net.UnixListener.

This is a derivative program from rcrowley's https://github.com/rcrowley/goagain.

Installation

    go get github.com/Rudd-O/goagain

Usage

goagain-example.go shows how it's done. After building it, run it as:

    bin/goagain-example -socket=/tmp/goagain-example.sock

To connect you will need socat installed on your system:

    echo "GET /slow HTTP/1.0
    
    " | socat -t20 - UNIX-CONNECT:/tmp/goagain-example.sock

We've included a command line client in client/sget that helps you perform HTTP requests against a UNIX socket.

About

Zero-downtime restarts in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.0%
  • Shell 3.0%