From: | postgres(at)vrane(dot)com |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Process balancing on smp db server/apache web server |
Date: | 2002-05-23 15:01:04 |
Message-ID: | 20020523110104.A6853@amd.universe |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, May 23, 2002 at 06:56:05AM -0700, Peter Darley wrote:
> Friends,
> Does this make sense to anyone? If this is true, are there any suggestions
> about how I can keep my persistent connections from Apache, while getting
> the db server to balance the load more efficiently?
I makes sense to me although until your email I didn't
know that's how postgres (or is it kernel) will assign jobs.
I was under the impression that if the loads get higher
kernel will automatically distributive "active" processes
to multiple cpus. Isn't that the case? I have the
same set up (mod_perl, apache dbi with postgres backend)
as you do and I am in the process of getting an smp box to run postgres
If your idea is the correct one I can think of artificially
loading postgres server at startup.....
Also bear in mind that modperl processes at front end got
periodically killed, new childs periodically born,
and new connections periodically re-established. (Assuming
you have reasonable apache config file) So
over the course of web server life time things should
work out. Hmm... I like this scenerio and feel
that things aren't as bad as I thought when I first
started to type this post.
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Perrin | 2002-05-23 15:01:17 | Re: DBD::Pg: Placeholders not working |
Previous Message | Gregory Seidman | 2002-05-23 14:58:55 | Re: Process balancing on smp db server/apache web server |