Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 40D9563377C for ; Fri, 26 Feb 2010 10:49:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 16203-02 for ; Fri, 26 Feb 2010 14:49:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx3.uci.cu (mx3.uci.cu [200.55.140.180]) by mail.postgresql.org (Postfix) with SMTP id A8563632D86 for ; Fri, 26 Feb 2010 10:49:32 -0400 (AST) Received: (qmail 26025 invoked by uid 507); 26 Feb 2010 14:49:22 -0000 Received: from 10.0.0.183 by ns3.uci.cu (envelope-from , uid 501) with qmail-scanner-2.01st (avp: 5.0.2.0. spamassassin: 3.0.6. perlscan: 2.01st. Clear:RC:1(10.0.0.183):. Processed in 0.022568 secs); 26 Feb 2010 14:49:22 -0000 Received: from unknown (HELO ucimail2.uci.cu) (10.0.0.183) by 0 with SMTP; 26 Feb 2010 14:49:22 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by ucimail2.uci.cu (Postfix) with ESMTP id D12C53DC28A; Fri, 26 Feb 2010 09:51:11 -0500 (CST) X-Virus-Scanned: amavisd-new at uci.cu Received: from ucimail2.uci.cu ([127.0.0.1]) by localhost (ucimail2.uci.cu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UxPCwNJDOsA4; Fri, 26 Feb 2010 09:51:11 -0500 (CST) Received: from [10.36.18.44] (unknown [10.36.18.44]) by ucimail2.uci.cu (Postfix) with ESMTP id 9F8523DC25E; Fri, 26 Feb 2010 09:51:11 -0500 (CST) Message-ID: <4B87E066.7080702@uci.cu> Date: Fri, 26 Feb 2010 09:53:26 -0500 From: "Ing. Marcos Ortiz Valmaseda" User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: elias ghanem CC: pgsql-performance@postgresql.org Subject: Re: Multiple data base on same server References: <201002260934.o1Q9Xxka014571@relay-ext.ornis.com> In-Reply-To: <201002260934.o1Q9Xxka014571@relay-ext.ornis.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.222 tagged_above=-10 required=5 tests=AWL=1.377, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/379 X-Sequence-Number: 37800 elias ghanem escribió: > > Hi, > > I’m using postgresql 8.4 > > I need to install multiple postgresql dbs on one server but I have > some questions: > > -Is there any problems (performance wise or other) if I have 10 to 15 > DBs on the same server? > > -Each DB needs 10 tablespaces, so if I create 10 different tablespaces > for each DB I will have 100 to 150 table space on the same server. So > can this also cause any problems? > > Thanks > It´s depends of the features of the server. If is a good server, for example of 16 GB to 32 of RAM, with 8 a 16 processors, with a good SAN with RAID -1 for the pg_xlog directory and RAID-10 for the $PG_DATA using ZFS if you are using Solaris or FreeBSD and xfs or ext3 using Linux , on a Operating Systems of 64 bits, I think that this load can be supported. There are installations of PostgreSQL with more than 400 db, but the environment is very distribuided on several servers. About the tablespaces, It´s very necesary to have 10 tablespaces on each database? Normally, you can separate the table or the tables with more activity to a rapid disc array (I ´m thinking on a SSD array), other tablespace for the indexes if you have many, and for example with pl/proxy you could handle the partitions of your data. There is not necessaty to have 100 or 150 tablespaces on the same server. You can separate this on a SAN, you can have two or more main PostgreSQL servers and several slaves with the data replicated on any case of data corruption on the main servers. Rebember look the configuration of the performance of the PostgreSQL servers: work_mem, shared_buffers, etc Regards and I hope that comments helps to you.