chocon is a simple proxy server for persisting connections between upstream servers.
chocon requires Go1.11.3 or later.
download from release page or build from source
git clone this repository and
$ make
$ cp chocon /path/to/bin
chocon
$ chocon -h
Usage:
chocon [OPTIONS]
Application Options:
-l, --listen= address to bind (default: 0.0.0.0)
-p, --port= Port number to bind (default: 3000)
--access-log-dir= directory to store logfiles
--access-log-rotate= Number of rotation before remove logs (default: 30)
--access-log-rotate-time= Interval minutes between file rotation (default: 1440)
-v, --version Show version
--pid-file= filename to store pid. disabled by default
-c, --keepalive-conns= maximum keepalive connections for upstream (default: 2)
--max-conns-per-host= maximum connections per host (default: 0)
--read-timeout= timeout of reading request (default: 30)
--write-timeout= timeout of writing response (default: 90)
--proxy-read-timeout= timeout of reading response from upstream (default: 60)
--shutdown-timeout= timeout to wait for all connections to be closed. (default: 1h)
--upstream= upstream server: http://upstream-server/
--stsize= buffer size for http stats (default: 1000)
--spfactor= sampling factor for http stats (default: 3)
Help Options:
-h, --help Show this help message