> Hi lou, Ello Roel, > The problem here is that the database consistency is not guaranteed - > the databases are not synchronized so behaviour seems pretty undefined > when for example the imap daemon connects to another database in the > mid of a session.
True, no database consistency = problems, but. I still dont get something, let say if we have good replication (not perfect anyway, let say multimaster replication - no locks). If the replication keeps the two db servers replicated at any time, i dont see a reason why it wont work. > The unique-id's and message_idnr's are no longer > unique nor will the message_idnr guarantee the correct order of > delivery; some messages/folders will suddenly be no longer available > when a system fails and some others again will no longer be available > as the first system is up again. Let say two parallel inserts in the very same time of the replication i.e. server1 will have uID2 and server2 uID2 what happens after that? How the servers are going to deal with it, i`m sure someone at mysql.com and pgsql-r thought of that and found the right algorithm for it. Anaway, what happens when we replace the uIDs with randomly generated unique IDs. Anyway, we expect really quick replication from server2 to server1 to make the messages available *again* on server1. > > We are still looking for some good replication funcionality but it > seems that the logics for such failover system should be a database > issue and not a dbmail one - the ultimate system would allow dbmail to > connect to some front-end (preferrably local so network failure is > shielded from dbmail) SQL interface which would implement all the > failover functionality we desire: different groups of replicating > clusters spread out over the world :) It`s possible with code but the performance will be decresed and the whole thing would be much more complex than it`s now. I personally dont strife for clustering but for grid redundancy and shared responsibility regarding different jobs and objects. That will be really neat algorithm, since a machine is not able to analyze the objects before applying/inserting/updating them. Even a one with rules in it, will face a new stuff, and wont be able to decide what to do with it, since that problem is not only present in dbs but in everything. Sometime ago i was having the same discussion about fs synchronization and consistency, but trust me Databases are far more consistent in any way than a filesystem, so that`s why i`m using dbmail. Anyway if you`re happy discussing this issue or i misunderstood you in any way, please let me know. If it doesnt work, i`ll be the first one to find out, since i installed it recently on two productional systems. cheers, -lou -- Lou Kamenov AEYE R&D [EMAIL PROTECTED] FreeBSD BGUG http://www.freebsd-bg.org [EMAIL PROTECTED] Secureroot UK http://secureroot.org.uk [EMAIL PROTECTED] Key Fingerprint - 936F F64A AD50 2D27 07E7 6629 F493 95AE A297 084A One advantage of talking to yourself is that you know at least somebody's listening. - Franklin P. Jones