pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arnau <arnaulist@andromeiberica.com>
To: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: How PostgreSQL handles multiple DDBB instances?
Date: Fri, 25 May 2007 10:52:14 +0200
Message-ID: <4656A3BE.1070409@andromeiberica.com> (raw)

Hi all,

   I have a doubt/problem about how PostgreSQL handles multiple DDBB 
instances running on a same server and how I should design the 
architecture of an application.

   I have an application that works with multiple customers. Thinking in 
scalability we are thinking in applying the following approaches:

   - Create a separate database instance for each customer.
   - We think that customer's DB will be quite small, about 200MB as 
average.
   - The number of clients, then DDBB, can be significant(thousands).
   - Have as many customers as possible on the same server, so a single 
server could have more than 300 DDBB instances.


   Do you think this makes sense? or taking into account that the 
expected DDBB size, would be better to join several customers DDBB in 
just one instance. What I'm worried about is, if having so many DDBB 
instances PostgreSQL's performance would be worse.

  I have been following the list and one of the advises that appears 
more often is keep your DB in memory, so if I have just one instance 
instead of "hundreds" the performance will be better?

Thank you very much
-- 
Arnau



view thread (8+ messages)  latest in thread

Message-ID: <4656A3BE.1070409@andromeiberica.com>
Permalink:  ../4656A3BE.1070409@andromeiberica.com/
Also on:    postgresql.org/message-id/4656A3BE.1070409@andromeiberica.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: arnaulist@andromeiberica.com
  Subject: Re: How PostgreSQL handles multiple DDBB instances?
  In-Reply-To: <4656A3BE.1070409@andromeiberica.com>

* 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