pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marek Florianczyk <franki@tpi.pl>
To: Jamie Lawrence <postgres@jal.org>
Cc: Matt Clark <matt@ymogen.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: performance problem - 10.000 databases
Date: 31 Oct 2003 14:20:09 +0100
Message-ID: <1067606409.22286.114.camel@franki-laptop.tpi.pl> (raw)
In-Reply-To: <20031031125433.GA10459@clueinc.net>
References: <1067602452.22237.76.camel@franki-laptop.tpi.pl>
	<OAEAKHEHCMLBLIDGAFELKEDJDPAA.matt@ymogen.net>
	<20031031125433.GA10459@clueinc.net>

W liście z pią, 31-10-2003, godz. 13:54, Jamie Lawrence pisze: 
> On Fri, 31 Oct 2003, Matt Clark wrote:
> 
> > I was more thinking that it might be possible to manage the security at a different level than the DB.
> > 
> 
> 
> We do this with users and permissions. 
> 
> Each virtual host has an apache config include specifying a db user,
> pass (and database, although most of them use the same one).
> Permissions on the database tables are set so that a given vhost can
> only access their own data.
> 
> Our setup is mod_perl. Don't know how one would go about doing this with
> PHP, but I imagine it has some mechanism for per-vhost variables or
> similar.

So, as I understand apache vhost can only connect to specified database.
Strange... no PHP only mod_perl that fetch data from database and writes
html document ? So, clients don't make any scripts, and don't use
function like pgconnect? Do they use CGI with mod_perl, and they write
scripts in perl ? Interesting.
Don't know if it's possible with PHP, don't think so.
But... If I would have 200, or even 900 clients I would do apache with
vhost. But when I have 10.000 clients, apache cannot work with vhosts. (
some system limitation ) So we use our own dynamic vhost module. When
request is made to server, it checks domain part of the request, and
search i LDAP what is DocumentRoot for that domain, and then return
proper file. Config looks like it was only one vhost, but it works with
10.000 domains ;)
No, I think that your solution, would not work for us.
Everything is complicated when a large number of anything occurs. ;)

greetings
sorry for my bad english





view thread (50+ messages)  latest in thread

Message-ID: <1067606409.22286.114.camel@franki-laptop.tpi.pl>
Permalink:  ../1067606409.22286.114.camel@franki-laptop.tpi.pl/
Also on:    postgresql.org/message-id/1067606409.22286.114.camel@franki-laptop.tpi.pl

 · 

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-admin@postgresql.org
  Cc: franki@tpi.pl, postgres@jal.org, matt@ymogen.net
  Subject: Re: performance problem - 10.000 databases
  In-Reply-To: <1067606409.22286.114.camel@franki-laptop.tpi.pl>
  References: <1067602452.22237.76.camel@franki-laptop.tpi.pl> <OAEAKHEHCMLBLIDGAFELKEDJDPAA.matt@ymogen.net> <20031031125433.GA10459@clueinc.net> <1067606409.22286.114.camel@franki-laptop.tpi.pl>

* 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