X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C313C9FB2AF for ; Wed, 21 Jun 2006 04:28:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 04590-01-7 for ; Wed, 21 Jun 2006 04:28:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 90E009FB43A for ; Wed, 21 Jun 2006 04:26:04 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (p549D194D.dip0.t-ipconnect.de [84.157.25.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 97C1865876; Wed, 21 Jun 2006 09:27:31 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 82A93181C1C06; Wed, 21 Jun 2006 09:26:05 +0200 (CEST) Message-ID: <4498F48D.2070305@logix-tt.com> Date: Wed, 21 Jun 2006 09:26:05 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.2 (X11/20060516) MIME-Version: 1.0 To: fzied@planet.tn Cc: pgsql-performance@postgresql.org Subject: Re: scaling up postgres References: <200606030931.k539V38Y007877@smtp2.planet.net.tn> In-Reply-To: <200606030931.k539V38Y007877@smtp2.planet.net.tn> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/391 X-Sequence-Number: 19748 Hi, Fzied, fzied@planet.tn wrote: > I'm using httperf/autobench for measurments and the best result I can > get is that my system can handle a trafiic of almost 1600 New > con/sec. Are you using connection pooling or persistent connections between PostgreSQL and the Apaches? Maybe it simply is the network latency between the two machines - as the database is read-only, did you think about having both PostgreSQL and Apache on both machines, and then load-balancing ingoing http requests between them? > I cannot scale beyond that value and the funny thing, is that none of > the servers is swapping, or heavy loaded, neither postgres nor apache > are refusing connexions. And for measuring, are you really throwing parallel http connections to the server? This sounds like you measure request latency, but the maximum throughput might be much higher. > my database is only 58M it's a read only DB and will lasts only for a > month. I guess it is a simple table with a single PK (some subscription numer) - no joins or other things. For this cases, a special non-RDBMS like MySQL, SQLite, or even some hancrafted thingy may give you better results. Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org