Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 62D512E0042 for ; Mon, 19 Nov 2007 15:51:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 06027-04 for ; Mon, 19 Nov 2007 15:51:28 -0400 (AST) Received: from nabagan.bluegap.ch (nabagan.bluegap.ch [88.198.58.248]) by postgresql.org (Postfix) with ESMTP id 1FBCB2E0041 for ; Mon, 19 Nov 2007 15:51:29 -0400 (AST) Received: from [192.168.77.28] (p4FC19E71.dip0.t-ipconnect.de [::ffff:79.193.158.113]) (AUTH: CRAM-MD5 markus@bluegap.ch) by nabagan.bluegap.ch with esmtp; Mon, 19 Nov 2007 21:12:19 +0100 id 00D02562.4741EE23.00004700 Message-ID: <4741E93F.7090909@bluegap.ch> Date: Mon, 19 Nov 2007 20:51:27 +0100 From: Markus Schiltknecht User-Agent: Mozilla-Thunderbird 2.0.0.6 (X11/20071008) MIME-Version: 1.0 To: Bruce Momjian CC: PostgreSQL-documentation Subject: Re: High Availability, Load Balancing, and Replication Feature Matrix References: <200711191731.lAJHVnu16391@momjian.us> In-Reply-To: <200711191731.lAJHVnu16391@momjian.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/74 X-Sequence-Number: 4607 Hello Bruce, Bruce Momjian wrote: >> Depending on the RAIDb level you are using, Sequoia can be considered >> multi-master (RAIDb-1) or single-master (RAIDb-0). Also note that >> sequoia can run multiple controllers, thus it does not rely on one >> central server. > > But in those cases isn't the multi-master just at the storage level? I > don't consider that multi-"master". Eh.. I think you misunderstood. The Sequoia people use RAIDb to mean Redundant Array of Inexpensive _Databases_. A possible setup might look like: controller <--> controller <--> controller / | \ (GCS) / | \ (GCS) / | \ / | \ / | \ / | \ DB DB DB DB DB DB DB DB DB | | . . . . . . . local local disk disk (controllers may as well run on the same physical node as the DB itself) Given we are talking about replication (mirroring), every database in the scenario above hosts a replica of the data and has to apply all (writing) transactions. That's pretty much what I'd call a master. The complete system can be considered a (statement based) multi-master replication solution. No shared storage or clustering file system is involved. With RAIDb-0, where they distribute tables across different databases, we'd have a single-master solution. (Or rather data partitioning, since there's no replica). Then again, with RAIDb-2, which is what they call the mix of the two, i.e. combining mirroring and partitioning, we are back at a multi-master configuration, where only parts of all nodes are masters. See also [1] for better diagrams and explanations of their RAIDb concept. As a side note: I personally don't like the name RAIDb and even less the numbering. I prefer talking about replication (or mirroring) and partitioning, as that's more meaningful than numbers. > I am afraid we are stuck between clarity and understand-ability here. ;-) Agreed, but that's where I think the current chapter creates confusion by trying to separate into "statement based replication middleware" and "synchronous multi-master replication". Such a separation does not exist, instead every combination of single vs. multi-master and statement based vs tuple based is possible. Examples: single-master, tuple based: Slony-I, Mammoth Replicator multi-master, tuple based: Postgres-R, Slony-II, maybe Bucardo (?) single-master, statement based: maybe pgpool or skytools can do that (?) multi-master, statement based: Sequoia, PgCluster But IIRC we already had that discussion a year ago. Regards Markus [1] C-JDBC site with samples http://c-jdbc.objectweb.org/current/doc/userGuide/html/ar01s10.html