Re: Setting up a database for 10000 concurrent users

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru>
Cc: Poul Møller Hansen <freebsd(at)pbnet(dot)dk>, pgsql-general(at)postgresql(dot)org
Subject: Re: Setting up a database for 10000 concurrent users
Date: 2005-09-06 01:14:48
Message-ID: 13232.1125969288@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Sergey E. Koposov" <math(at)sai(dot)msu(dot)ru> writes:
> But I really doubt that it it possible/reasonable to have 10000
> simultaneous connections.

You're going to need a heck of a beefy machine to do it, anyway.

I would expect that after fixing the semaphore configuration problem,
the next thing that'll be an issue is the size of the kernel's open
files table. Do you have the kernel configured to support several
hundred thousand open files?

Also, as already noted, you need to figure at least a megabyte or two
of working storage per connection, so even if it runs it'll probably
swap like mad.

Put a connection pooler in front, instead...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leonard Soetedjo 2005-09-06 02:39:44 PostgreSQL local replication
Previous Message Tom Lane 2005-09-06 00:51:13 Re: Bug or ?