seameless is a TCP proxy that allow you to deploy new code then switch traffic
to it without downtime.
It does "round robin" between the list of current active backends.
Switching server is done with HTTP interface with the following API:
- set list of backends
- add a backend
- remove a backend
- return host:port,host:port
seamleasswith list of active backends
seamless 8080 localhost:4444
- Direct all traffic to port 8080 on local machine.
When you need to add/remove the backend, use the HTTP API on port 6777 different port, say 4445)
curl http://localhost:6777/add?backend=localhost:4445 curl http://localhost:6777/remove?backend=localhost:4444
New traffic will be directed to new backend(s).
You can download a statically linked executable at the downloads section.
Or if you have a Go development environment, you can
go get bitbucket.org/tebeka/seamless