Configuration file

The configuration file stores the information that the daemon needs to connect to the databases, to accept clients, and more.

Daemon section

This section encloses some general and behavioural information for the daemon. Lets see


daemon.reader-port=6666
daemon.writer-port=6666
daemon.host=localhost

daemon.writer-transaction-per-request=false
daemon.init-threads=5
daemon.min-threads=5
daemon.max-threads=30
daemon.init-db-connections=5
daemon.min-db-connections=5
daemon.max-db-connections=30
daemon.reaper-delay=1
daemon.user=daniel
daemon.password=daniel
daemon.dbname=testdb
daemon.auth-method=password


Machine sections

This are, with the Daemon section, the most important sections of the file. They define the backends data, needed to connect to them. There will be one of these elements for each database backend. All the parameters are read sequentially so they are meant to be related to the machine.host which is located before them. A common machine is like this:


machine.host=localhost
machine.dbname=dbbalancer
machine.port=5432
machine.dbuser=daniel
machine.dbpassword=daniel