X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B28D93A51AE for ; Mon, 29 Nov 2004 19:30:34 +0000 (GMT) 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 89086-10 for ; Mon, 29 Nov 2004 19:30:23 +0000 (GMT) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by svr1.postgresql.org (Postfix) with ESMTP id C309D3A51FD for ; Mon, 29 Nov 2004 19:30:24 +0000 (GMT) Received: from [192.168.1.51] (dsl093-038-087.pdx1.dsl.speakeasy.net [66.93.38.87]) (authenticated bits=0) by hosting.commandprompt.com (8.12.8/8.12.8) with ESMTP id iATJUMaW001884; Mon, 29 Nov 2004 11:30:22 -0800 Message-ID: <41AB78C8.2070605@commandprompt.com> Date: Mon, 29 Nov 2004 11:30:16 -0800 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adile Abbadi Cc: pgsql-admin@postgresql.org Subject: Re: Load Balancing/Multiple Postgres Machines References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------060901010509040108060906" 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: 200411/198 X-Sequence-Number: 15581 This is a multi-part message in MIME format. --------------060901010509040108060906 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Adile Abbadi wrote: > Hi all, > > Not sure if this has been asked before - it probably has been - but I figure > its probably just easier if I ask so my question is this: > > How easy is it - or rather is it possible to create multiple instances of > the same db on multiple machines? > > We are currently running a very highly used postgres db (Ver 7.2) that eats > up a lot of cpu time when its heavily used. We recently bought some very > powerful equipment to accommodate this high use, (currently its on a single > CPU, 1GB of Ram SCSI server - upgraded to a dual CPU, 4GB of ram SCSI > server) but my fear is over time this issue is going to haunt me again and > hardware can only be upgraded so much. Well you have a very long way to go before you get to that "too much" stage. Within your current platform it should be possible to upgrade to 8GB of ram and you can almost always add more hard drives. > So is it possible to do some level of load balancing in postgres - I would > love a situation where I could have multiple machines running multiple > instances of the same db (that are all synced in real-time), where there is > some smart level of load balancing happening. You may want to look at pgpool, slony or Mammoth Replicator. > > So if it is possible is there some instruction info out there to help me > along my way. Any help or insight would be greatly appreciated. Sincerely, Joshua D. Drake > > All the best > > Adile > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.801 / Virus Database: 544 - Release Date: 11/24/04 > -- Command Prompt, Inc., home of PostgreSQL Replication, and plPHP. Postgresql support, programming shared hosting and dedicated hosting. +1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL --------------060901010509040108060906 Content-Type: text/x-vcard; charset=utf-8; name="jd.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="jd.vcf" begin:vcard fn:Joshua D. Drake n:Drake;Joshua D. org:Command Prompt, Inc. adr:;;PO Box 215;Cascade Locks;Oregon;97014;USA email;internet:jd@commandprompt.com title:Consultant tel;work:503-667-4564 tel;fax:503-210-0334 note:Command Prompt, Inc. is the largest and oldest US based commercial PostgreSQL support provider. We provide the only commercially viable integrated PostgreSQL replication solution, but also custom programming, and support. We authored the book Practical PostgreSQL, the procedural language plPHP, and adding trigger capability to plPerl. x-mozilla-html:FALSE url:http://www.commandprompt.com/ version:2.1 end:vcard --------------060901010509040108060906--