Database clusters

Qmail-sql can handle multiple databases. It will try another database if

The configuration is quite simple:

  1. Define a 'connectionstring' for each database you want in your pool.
  2. Define connection_timeout to X seconds if you want qmail-sql to try a new database if qmail-sql couldn't connect within X seconds.
  3. Define query_timeout to X seconds if you want qmail-sql to try a new database if the database didn't reply within X seconds.
connection_timeout and query_timeout default to 0: wait forever (or until the database-client library aborts due to a socketerror)