Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4CFB7B5DBE5 for ; Thu, 12 May 2011 18:05:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 83845-05 for ; Thu, 12 May 2011 21:05:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 30966B5DBE3 for ; Thu, 12 May 2011 18:05:00 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 72C3D348046 for ; Thu, 12 May 2011 14:04:56 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hEpfxGAWePDM for ; Thu, 12 May 2011 14:04:54 -0700 (PDT) Received: from [192.168.1.137] (71-94-253-247.dhcp.mdfd.or.charter.com [71.94.253.247]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 2871C348044 for ; Thu, 12 May 2011 14:04:54 -0700 (PDT) Message-ID: <4DCC4B70.9020803@commandprompt.com> Date: Thu, 12 May 2011 14:04:48 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Scaling References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201105/95 X-Sequence-Number: 37532 On 04/24/2011 03:21 PM, David Hornsby wrote: > My SMB database is currently running on a HP-UX box running in a master > - slave slonyI cluster to create a hot spare database. Recently the > server has be getting hammered and we are consistently hitting our max > db connections. We have our web CMS and our web apps, our desktop client > apps, and a couple application servers running off of this database > server and it is crumbling under the stress. Currently we have been > doing table partitioning and table archiving to trim the fat off of the > indexing processes etc. > > My project at hand is to upgrade this configuration to a linux cluster > of servers, 2 - 3. The ideal solution is to just do load balancing > through DNS requests and have 2 servers in a multi master configuration. > So far we have not had any hardware issues on our current set up ( knock > on wood). So in doing this I am not immediately looking for a hot spare > set up. But in the future am looking at setting up a VPN tunnel to an > offsite server and sending WAL updates to that. You are more likely to need one master, two hot standbys and push your reads to the slaves. JD -- Command Prompt, Inc. - http://www.commandprompt.com/ PostgreSQL Support, Training, Professional Services and Development The PostgreSQL Conference - http://www.postgresqlconference.org/ @cmdpromptinc - @postgresconf - 509-416-6579