Hi Stefan > - I cannot find how to explicitly configure these two functions, but I > guess it is implicitly set by defining hostA and hostB in sequential > order in the example below?
Yes, that's true. > - Would it be possible to loadbalance 30% queries on hostA and 70% on > hostB? No, this isn't possible as the DNS queries are handled by the first available thread. On the other hand this means that the fastest server gets the most requests. > - is failover basically implemented by some kind of hunting mechanism > (first try hostA than hostB?) Sort of. The first thread connects to the first DB server, the second thread to the second DB server and so on. If there are more threads than DB servers, the next thread will starting to connect to the first DB and the algorithm continues likes before. > - is the failover trigger based on a specific timer? No, failover will occur when an error occurs (connection lost, etc). In this case, the next DB server will be used until one is found were the connection succeeds. If you have two DB servers and one goes down, the threads will connect to the second one. This means that you should restart PowerDNS after both servers are up again so the requests are distributed to both again. > opendbx-host-read=hostA hostB (where hostA and B are IP addresses) > opendbx-host-write=hostA hostB (where hostA and B are IP addresses) Only use both DB servers for reading and writing as long as you use a MySQL cluster. In a master/slave scenario your content would get out of sync and in this case use opendbx-host-read=hostB(slave) hostA(master) opendbx-host-write=hostA(master) Norbert -- OpenPGP public key http://www.linuxnetworks.de/norbert.pubkey.asc
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------
_______________________________________________ libopendbx-devel mailing list libopendbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libopendbx-devel http://www.linuxnetworks.de/doc/index.php/OpenDBX