X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D2094D1B442 for ; Thu, 11 Dec 2003 04:58:41 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 76534-04 for ; Thu, 11 Dec 2003 00:58:11 -0400 (AST) Received: from orion.integramicro.co.in (unknown [203.200.36.34]) by svr1.postgresql.org (Postfix) with ESMTP id 1C81AD1B43A for ; Thu, 11 Dec 2003 00:58:08 -0400 (AST) Received: (from root@localhost) by orion.integramicro.co.in (8.11.2/8.11.2) id hBB4tjh25037 for pgsql-admin@postgresql.org; Thu, 11 Dec 2003 10:25:45 +0530 Received: from bharat ([192.10.2.39]) by orion.integramicro.co.in (8.11.2/8.11.2) with ESMTP id hBB4tjq24971 for ; Thu, 11 Dec 2003 10:25:45 +0530 Subject: Re: Running Postgres Daemons with same data files From: Bhartendu Maheshwari To: pgsql-admin@postgresql.org In-Reply-To: <3FD77127.4060401@edgate.com> References: <1071030083.16487.55.camel@bharat> <200312092108.12854.uwe@oss4u.com> <1071049881.2741.12.camel@bharat> <3FD77127.4060401@edgate.com> X-scanner: scanned by mail Scanner Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 11 Dec 2003 10:33:55 +0530 Message-Id: <1071119035.4503.2.camel@bharat> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/139 X-Sequence-Number: 11647 Dear All, I got all your points, thanks for such a great discussion, Now the last thing I want is how can I close the data files and flush the cache into the data files. How can I do this in postgresql???? I will also try with RAID and other suggested way you all suggested. regards bhartendu On Thu, 2003-12-11 at 00:46, John Gibson wrote: > Bhartendu, > > In my humble opinion, you would be well served if you listened to all > the nice people on this list. > > Use a local disk subsystems with RAID-type storage, use replication to > have a second "standby" system available if the first one fails. > > The path you seem anxious to trod will get very muddy and slippery. > > Good Luck. > > ...john > > Bhartendu Maheshwari wrote: > > >Dear UC, > > > >You are right for the HA solution but at the same time we are also > >implementing the load balancing solution so we can't have for one Node 2 > >different processing entity and database as well. We try to provide > >solution for HA, load balancing both and in that there are 2 different > >processing machine but sharing the common database so that both get the > >latest and synchronized data files. > > > >You are right if the NAS is down then everything get down but the > >probability for the NAS is down is very less and by this we are able to > >provide service for 99% cases and if you are 99% handle cases then you > >are providing good service, isn't? > > > >About the cache to file write :- If the database is writting all the > >stuff to the files after each transaction then both have one > >synchronized set of data file whoever want can acquire the lock and use > >and then unlock it. The MySQL have command "flush tables" to enforce the > >database to write all the cache contents to the files, Is there anything > >similar in postgres? This will definitely degrade the performance of my > >system but its much more fast since I have 2 processing unit. > > > >Anyway if somebody have some other solution for the same please help me. > >One I got have one common postmaster running on one PC and the two nodes > >connect to that server to get the data. Any other please let me know. > > > >regards > >bhartendu > > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org