PlanB Router

PlanB is a distributed HTTP and websocket proxy. It’s built on top of a configuration pattern defined by Hipache.

tsuru uses PlanB to route the requests to the containers. Routing information is stored by tsuru in the configured Redis server, PlanB will read this configuration directly from Redis.

Adding repositories

Let’s start adding the repositories for tsuru which contain the PlanB package.

sudo apt-get install software-properties-common -y
sudo apt-add-repository ppa:tsuru/ppa -y
sudo apt-get update


In order to install PlanB, just use apt-get:

sudo apt-get install planb -y


You may change the file /etc/default/planb, changing the PLANB_OPTS environment variable for configuring the binding address and the Redis endpoint, along with other settings, as described in PlanB docs.

After changing the file, you only need to start PlanB with:

sudo start planb