PlanB is a HTTP and websocket proxy backed by Redis and inspired by Hipache.
It aims to be fully compatible with Hipache when Redis is used as a backend. The same format is used for all keys stored in Redis so migrating from Hipache to PlanB should be completely seamless. The process should be as simple as replacing Hipache's executable for PlanB.
The following flags are available for configuring PlanB on start-up:
--listen/-l
: the address to which PlanB will bind. Default value is0.0.0.0:8989
.--read-redis-host
: Redis host of the server which contains application addresses. Default value islocalhost
.--read-redis-port
: Redis port of the server which contains application addresses. Default value is6379
.--write-redis-host
: Redis host of the server which PlanB will use for publishing dead backends. Default value islocalhost
.--write-redis-port
: Redis port of the server which which PlanB will use for publishing dead backends. Default value is6379
.--access-log
: File path where access log will be written. If value equalssyslog
log will be sent to local syslog. Default value is./access.log
.--request-timeout
: Total backend request timeout in seconds. Default value is30
.--dial-timeout
: Dial backend request timeout in seconds. Default value is10
.--dead-backend-time
: Time in seconds a backend will remain disabled after a network failure. Default value is30
.--flush-interval
: Time in milliseconds to flush the proxied request. Default value is10
.