Re: PostgreSQL, clusters and load-balance - Mailing list pgsql-general

From Bill Wordsworth
Subject Re: PostgreSQL, clusters and load-balance
Date
Msg-id 1e07a2bd0803251304q23a1b18ar412017dca4f6654d@mail.gmail.com
Whole thread Raw
In response to Re: PostgreSQL, clusters and load-balance  (Thomas Kellerer <spam_eater@gmx.net>)
Responses Re: PostgreSQL, clusters and load-balance  (Rodrigo Gonzalez <rjgonzale@gmail.com>)
Re: PostgreSQL, clusters and load-balance  (Thomas Kellerer <spam_eater@gmx.net>)
Re: PostgreSQL, clusters and load-balance  (Shane Ambler <pgsql@Sheeky.Biz>)
List pgsql-general
On Tue, Mar 25, 2008 at 2:24 PM, Thomas Kellerer <spam_eater@gmx.net> wrote:
Bill Wordsworth wrote on 25.03.2008 19:16:
> When traffic goes up, my webserver creates multiple instances of
> postgresql.exe. At some basic level, aren't they similar to Oracle's RAC
> "clusters", except that they are not aware of each other?

No, absolutely not. Each client request is handled by a single postgres process
which is spawned by the postmaster upon connection.
 
Thanks Joshua and Thomas. I guess my ignorance is showing :). Anyway, is this spawning being done by postmaster or webserver or both? If postmaster, does an application-level persistent connection request communicate itself directly to the postmaster, and can the postmaster keep track of its spawning?
 
Also, at some crude level, if I were to direct every alternate connection to a different install box of postgresql, won't that help with *some* load-balance?
Cheers, Bill

pgsql-general by date:

Previous
From: Charles Simard
Date:
Subject: Re: Converting mysql "on update" to postgres "rule"
Next
From: Keaton Adams
Date:
Subject: PostgreSQL Replication with read-only access to standby DB