How to install:

The easiest way would be to grab the debian binary distribution. You only will have to follow the standard procedure (see "man dpkg") to install.

If you want to compile it yourself, keep on reading.

First you will need to get a copy of the ACE libraries. You can get them here:

PostgreSQL client libraries are not needed for the main "dbbalancerd" binary, but are used by some test programs which are not built by default. They are in the "tests" directory.

If you want to create the documentation set you will need "jade" and its associated DSSSL stylesheets for DocBook.

If we know (or think) that everything is ok, the next step is going to the distribution directory and do the usual invocation of "configure". Several parameters can be used:

--with-ACE	Path from where ACE's "lib" and "include" are reachable.
--with-pq	The same for PostgreSQL C library
--with-pq++	The same for PostgreSQL C++ library
--with-pq-include	Where PostgreSQL includes are
--with-jade	Path to jade executable
--with-docbook	Where docbook stylesheets are installed


Then a "make" in the distribution directory should compile everything without major problems. The result of the compilation will be a "dbbalancerd" binary. This binary can be used in two modes: Reader an Writer. In the Reader mode (-r flag) the request is directed to one of the connections, in the Writer mode (-w) the request is replicated over every machine that's taking part in the load-balancing cluster. Read the docs for more info.

Questions can be addressed to dvs@arrakis.es.

Hope this program be useful to somebody ;-).


