Revision 1 as of 2010-08-27 15:15:31

Clear message


This page is not finished yet-clint


  • clb is a proof of concept as of the time of this writing, and so, may have bugs that will eat your data, redirect your traffic to, or any number of other terrible things.
  • There is no real security built into clb yet. HTTPS would be the simplest way, but even then, without a CA signed cert, its not that useful. You can build a VPN tunnel if you decide the danger is too high.
  • The auth method that clb uses is VERY prone to compromise, being a shared password that is difficult to change.

Install clb

  • # download from (as of this writing, the latest version if 0.3) # extract, and install using './ install'

Run clb

clbd is just a wrapper script for twistd. It will, by default, log and store its pid file in the current directory. Starting it up has it listening on port 8090 for registrations and unregistrations.

Configure haproxy template

By default, the templates dir is '$PWD/templates'. Inside, it will look for haproxy.tmpl.

The default haproxy.tmpl file in the 'templates' directory is fairly rudimentary and probably won't work in most instances. It uses the Cheetah templating system, so you can look at for documentation on the syntax.

The default output file is ./haproxy.cfg, you can change this by passing -o path/to/your/desired/file to clbd.

cloud-init for backend servers

You will want to feed a cloud-config block *and* the register/unregister scripts.