Simple CouchDB multi-master clustering via Nginx. An impressive combination. CouchDB can be easily set up in a multi-master configuration, where writes to one master are replicated to the other and vice versa. This makes setting up a reliable CouchDB cluster is as simple as putting two such servers behind a single nginx proxy.
As as simple as putting two such servers behind a single nginx proxy and writing the custom reconciliation code.
Because without server affinity you're going to get conflicts, and while Couch will happily track the existence of a conflict, it doesn't make the problem go away.
kellan - 19th November 2009 17:11 - #
That is a slight misrepresentation of the facts. CouchDB offers consistent and automatic conflict resolution. Only when that process fails will you have to resolve things manually.
Guaranteed conflict resolution is impossible to solve in any meaningful way across the board, because each application has its own ideas about how things should work.
Noah Slater - 19th November 2009 22:15 - #
One thing to keep in mind is that replication in CouchDB is still not 1.0. We still see occasional hangs in replication and therefore use CouchDB currently in a Master-Slave setup.
But that's still easy: yust route POST and PUT different than (certain classes of) GET. CouchDB is terrific technology.