pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Randolf Richardson <rr@8x.ca>
To: pgsql-performance@postgresql.org
Subject: Re: Persistent Connections
Date: Mon, 26 Jan 2004 06:35:34 +0000 (UTC)
Message-ID: <Xns947BE3A61D0B8rr8xca@200.46.204.72> (raw)
References: <20040124173209.933905A8170@kserver17.erfurt12.de>
	<4013A85C.1010406@chuckie.co.uk>

"nicky@chuckie.co.uk (Nick Barr)" stated in 
comp.databases.postgresql.performance:

> postgres@countup.de wrote:
[sNip]
>> Sorry I m a little bit confused about the persistent thing!!
>> Is it smart to use persistent connections at all if i expect 100K 
>> Users to hit the script in an hour and the script calls up to 10-15 pg 
>> functions?
>> I have at the mom one function but the server needs 500 ms, its a 
>> little bit too much i think, and it crashed when i had 20K users
> 
> Use the persistent connection but make sure the parameters in 
> postgresql.conf match up with the Apache config. The specific settings 
> are MaxClients in httpd.conf and max_connections in postgresql.conf. 
> Make sure that max_connections is at least as big as MaxClients for 
> every database that your PHP scripts connect to.

    	Do you happen to have (or know where to get) some sample configuration 
files for Apache 2 and PostgreSQL for this?  The documentation I've found 
so far is pretty sparse, and sample files would be very helpful.

    	THanks in advance.

-- 
Randolf Richardson - rr@8x.ca
Vancouver, British Columbia, Canada

"We are anti-spammers.  You will confirm
subscriptions.  Resistance is futile."

Please do not eMail me directly when responding
to my postings in the newsgroups.



view thread (4+ messages)  latest in thread

Message-ID: <Xns947BE3A61D0B8rr8xca@200.46.204.72>
Permalink:  ../Xns947BE3A61D0B8rr8xca@200.46.204.72/
Also on:    postgresql.org/message-id/Xns947BE3A61D0B8rr8xca@200.46.204.72

 · 

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: rr@8x.ca
  Subject: Re: Persistent Connections
  In-Reply-To: <Xns947BE3A61D0B8rr8xca@200.46.204.72>
  References: <20040124173209.933905A8170@kserver17.erfurt12.de> <4013A85C.1010406@chuckie.co.uk> <Xns947BE3A61D0B8rr8xca@200.46.204.72>

* 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