X-Original-To: pgsql-www-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A00515E3639; Sun, 15 Aug 2004 12:50:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18622-06; Sun, 15 Aug 2004 15:50:56 +0000 (GMT) Received: from ganymede.hub.org (u46n208.hfx.eastlink.ca [24.222.46.208]) by svr1.postgresql.org (Postfix) with ESMTP id 1AAB15E3633; Sun, 15 Aug 2004 12:50:48 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1000) id 62E5E344A5; Sun, 15 Aug 2004 12:50:55 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 5A48034382; Sun, 15 Aug 2004 12:50:55 -0300 (ADT) Date: Sun, 15 Aug 2004 12:50:55 -0300 (ADT) From: "Marc G. Fournier" X-X-Sender: scrappy@ganymede.hub.org To: Justin Clift Cc: "Marc G. Fournier" , pgsql-www@postgresql.org Subject: Re: Distributed Database Web Site In-Reply-To: <411F39B5.60103@postgresql.org> Message-ID: <20040815124838.F24290@ganymede.hub.org> References: <20040814174753.U24290@ganymede.hub.org> <411F39B5.60103@postgresql.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/143 X-Sequence-Number: 4918 On Sun, 15 Aug 2004, Justin Clift wrote: > Marc G. Fournier wrote: >> >> Just curious, how hard would it be to distinguish on the main web site >> between read and write operations? >> >> For instance, if we had a read-only database on a mirror site, replicated >> from the main database using something like Slony ... how hard would it be >> t have 'write operations' sent to the main web site to happen, with all >> read operations being local? > > Thinking about what it would take... > > We'd need the pg_hba.conf of the main database set to allow connections from > the mirror website(s), so the write operations can occur. > > Or, perhaps as an alternative, we could look at making the pages that > generate writes only be on the main PG website. So, the majority of content > is mirrored except for a few pages which do stuff like (i.e.) submit new > stories and stuff. This second was what I was thinking ... > Yep, should be possible. We just have to think about the technology > we'd like web mirrors to run, and then ensure it's acceptable and > do-able. Now, knowing that all mirrors couldn't do this (or wouldn't), I was thinking of having a pseudo-regional master mirror that others could rsync static content from ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664