pg.ddx.io  pgsql-cluster-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mario Splivalo <mario@splivalo.hr>
To: pgsql-cluster-hackers@postgresql.org
Subject: Re: Postgresql Write cluster needed
Date: Mon, 24 Nov 2014 11:21:53 +0100
Message-ID: <547306C1.9020304@splivalo.hr> (raw)
In-Reply-To: <CAKk-ntxisNWpVeJGqkBz_-DYySHYbJKnv47VLq1jRtf0P_v_vA@mail.gmail.com>
References: <CAKk-ntyqC0U1fL_w4bJxBoMnT24sZyaaTxva5tnfdYoB87iuLQ@mail.gmail.com>
	<623C678C-B822-4FAE-9077-EF74E55DC95B@splivalo.hr>
	<CA+dTRw=4KjC43DwAESrEG9ErapToP=w2s0NDTT-WB5bmFJ99Ng@mail.gmail.com>
	<CAEs9oFkmFKegG1io9fnmDxgK6pJ0iQ5fjfviTNycMKNtCqGhtw@mail.gmail.com>
	<CABEZHFt1AJeCHfR0zpxtroDyqpPpTOdKByviNCR8ycFrtFHxvA@mail.gmail.com>
	<CAKk-ntxisNWpVeJGqkBz_-DYySHYbJKnv47VLq1jRtf0P_v_vA@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-cluster-hackers>

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



view thread (8+ messages)  latest in thread

Message-ID: <547306C1.9020304@splivalo.hr>
Permalink:  ../547306C1.9020304@splivalo.hr/
Also on:    postgresql.org/message-id/547306C1.9020304@splivalo.hr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-cluster-hackers@postgresql.org
  Cc: mario@splivalo.hr
  Subject: Re: Postgresql Write cluster needed
  In-Reply-To: <547306C1.9020304@splivalo.hr>
  References: <CAKk-ntyqC0U1fL_w4bJxBoMnT24sZyaaTxva5tnfdYoB87iuLQ@mail.gmail.com> <623C678C-B822-4FAE-9077-EF74E55DC95B@splivalo.hr> <CA+dTRw=4KjC43DwAESrEG9ErapToP=w2s0NDTT-WB5bmFJ99Ng@mail.gmail.com> <CAEs9oFkmFKegG1io9fnmDxgK6pJ0iQ5fjfviTNycMKNtCqGhtw@mail.gmail.com> <CABEZHFt1AJeCHfR0zpxtroDyqpPpTOdKByviNCR8ycFrtFHxvA@mail.gmail.com> <CAKk-ntxisNWpVeJGqkBz_-DYySHYbJKnv47VLq1jRtf0P_v_vA@mail.gmail.com> <547306C1.9020304@splivalo.hr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox