Trying to get dovecot to _only_ use local copy of database, only querying another database server (same database, just replicated) if local copy is not responding, I have google fu'd a bit and found my only answer in so far as dovecot did this once upon as time, but it was only due to a dovecot bug, that has since been fixed, is that so? The wiki shows no information of failover, just load sharing, or is it an undocumented feature, or can dovecot not do failover, if not, can it be made so? Trying to cut down on network traffic, postfix does this nicely, I thought dovecot did too.
Am 10.12.2011 11:07, schrieb Nick Edwards:> Trying to get dovecot to _only_ use local copy of database, only querying > another database server (same database, just replicated) if local copy is > not responding, I have google fu'd a bit and found my only answer in so far > as dovecot did this once upon as time, but it was only due to a dovecot > bug, that has since been fixed, is that so? > The wiki shows no information of failover, just load sharing, or is it an > undocumented feature, or can dovecot not do failover, if not, can it be > made so? > > Trying to cut down on network traffic, postfix does this nicely, I thought > dovecot did too. >as far i know recent dovecot cant do it youre right postfix does you can do a master-master setup i.e with mysql solving this works nice here, but might not be the best solution perhaps ldap, or other databases are better -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria
On 10.12.2011, at 12.07, Nick Edwards wrote:> Trying to get dovecot to _only_ use local copy of database, only querying > another database server (same database, just replicated) if local copy is > not responding, I have google fu'd a bit and found my only answer in so far > as dovecot did this once upon as time, but it was only due to a dovecot > bug, that has since been fixed, is that so? > The wiki shows no information of failover, just load sharing, or is it an > undocumented feature, or can dovecot not do failover, if not, can it be > made so? > > Trying to cut down on network traffic, postfix does this nicely, I thought > dovecot did too.You could add two passdbs + userdbs with different configs. The second dbs would be used when first db is down, but also for unknown users / wrong authentications. But yeah, the load balancing should be optional. There are just so many other things to do as well..
Apparently Analagous Threads
- Dovecot pgsqlauthentication database reconnection/failover problem
- Bug#260743: logcheck-database: dhcp rule updates for failover support
- [PATCH v7 net-next 2/4] net: Introduce generic failover module
- [PATCH net-next v10 2/4] net: Introduce generic failover module
- [PATCH net-next v10 2/4] net: Introduce generic failover module