pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
To: pgsql-performance@postgresql.org
Subject: Re: hardware performance and some more
Date: Thu, 24 Jul 2003 18:39:26 +0530
Message-ID: <3F2027DE.15489.A17C705@localhost> (raw)
In-Reply-To: <BasiliX-1.1.0-10590512923f1fd71cefdfa@sandal.saglik.gov.tr>

On 24 Jul 2003 at 15:54, Kasim Oztoprak wrote:

> The questions for this explanation are:
>       1 - Can we use postgresql within clustered environment?
>       2 - if the answer is yes, in which method can we use postgresql within a cluster?
>       active - passive or active - active?

Coupled with linux-HA( See http://linux-ha.org) heartbeat service, it *should* 
be possible to run postgresql in active-passive clustering.

If postgresql supported read-only database so that several nodes could read off 
a single disk but only one could update that, a sort of active-active should be 
possible as well. But postgresql can not have a read only database. That would 
be a handy addition in such cases..
 
> Now, the second question is related to the performance of the database. Assuming we have a 
> dell's poweredge 6650 with 4 x 2.8 Ghz Xeon processors having 2 MB of cache for each, with the 
> main memory of lets say 32 GB. We can either use a small SAN from EMC or we can put all disks 
> into the machines with the required raid confiuration.
> 
> We will install RedHat Advanced Server 2.1 to the machine as the operating system and postgresql as 
> the database server. We have a database having 25 millions records  having the length of 250 bytes 
> on average for each record. And there are 1000 operators accessing the database concurrently. The main 
> operation on the database (about 95%) is select rather than insert, so do you have any idea about 
> the performance of the system? 

Assumig 325 bytes per tuple(250 bytes field+24-28 byte header+varchar fields) 
gives 25 tuples per 8K page, there would be 8GB of data. This configuration 
could fly with 12-16GB of RAM. After all data is read that is. You can cut down 
on other requirements as well. May be a 2x opteron with 16GB RAMmight be a 
better fit but check out how much CPU cache it has.

A grep -rwn across data directory would fill the disk cache pretty well..:-)

HTH

Bye
 Shridhar

--
Egotism, n:	Doing the New York Times crossword puzzle with a pen.Egotist, n:	A 
person of low taste, more interested in himself than me.		-- Ambrose Bierce, 
"The Devil's Dictionary"




view thread (15+ messages)  latest in thread

Message-ID: <3F2027DE.15489.A17C705@localhost>
Permalink:  ../3F2027DE.15489.A17C705@localhost/
Also on:    postgresql.org/message-id/3F2027DE.15489.A17C705@localhost

 · 

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-performance@postgresql.org
  Cc: shridhar_daithankar@persistent.co.in
  Subject: Re: hardware performance and some more
  In-Reply-To: <3F2027DE.15489.A17C705@localhost>
  References: <BasiliX-1.1.0-10590512923f1fd71cefdfa@sandal.saglik.gov.tr> <3F2027DE.15489.A17C705@localhost>

* 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