Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XsqmQ-0005WG-K1 for pgsql-cluster-hackers@arkaria.postgresql.org; Mon, 24 Nov 2014 10:22:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XsqmP-0004L9-HQ for pgsql-cluster-hackers@arkaria.postgresql.org; Mon, 24 Nov 2014 10:22:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XsqmO-0004L2-Lf for pgsql-cluster-hackers@postgresql.org; Mon, 24 Nov 2014 10:22:00 +0000 Received: from arbun.splivalo.hr ([78.47.9.189]) by makus.postgresql.org with esmtps (TLS1.1:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XsqmL-0007IN-6a for pgsql-cluster-hackers@postgresql.org; Mon, 24 Nov 2014 10:21:58 +0000 Received: from [192.168.12.101] (dh207-23-46.xnet.hr [88.207.23.46]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mario) by arbun.splivalo.hr (Postfix) with ESMTPSA id 605AB120001 for ; Mon, 24 Nov 2014 11:21:54 +0100 (CET) Message-ID: <547306C1.9020304@splivalo.hr> Date: Mon, 24 Nov 2014 11:21:53 +0100 From: Mario Splivalo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: pgsql-cluster-hackers@postgresql.org Subject: Re: Postgresql Write cluster needed References: <623C678C-B822-4FAE-9077-EF74E55DC95B@splivalo.hr> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-cluster-hackers Precedence: bulk Sender: pgsql-cluster-hackers-owner@postgresql.org On 11/24/2014 10:30 AM, fahad basheer wrote: > Hi All, > > Thanks for the fast response > > Database is used as OLTP database. > > Frontend application used is OpenERP. > > I have tried postgresql xc,but its not supported with OpenERP. > > I don't see why OpenERP wouldn't work with pg-xc, but I'm also not sure if you would benefit from it as deciding on what to partition your data on is not a simple task. What is your main performance issue? In theory, if you want to scale writes you need to scale your data. So, you'd, for instance, put all the even IDs on server A and all the odd IDs on server B. That way you double the writing throughput. But, when querying your data you need to somehow 'merge' both partitions, the one on server A and the one on server B. This is, actually, where Postgres-XC comes in - it will allow you to create partitions of your data in a way that is oblivious to the application itself. But for OpenERP I'm not sure if you will gain anything, and your setup will be quite complicated. You either need better server (with better I/O performance - add more spindles if you're on RAID10, or switch to ssd), or partition your data. If you have multiple tenants in your OpenERP maybe you could move each of them to their separate servers? Mario -- Mario Splivalo mario@splivalo.hr "I can do it quick, I can do it cheap, I can do it well. Pick any two." -- Sent via pgsql-cluster-hackers mailing list (pgsql-cluster-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-cluster-hackers