X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3DFB0D1B553 for ; Fri, 31 Oct 2003 11:16:08 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 70410-06 for ; Fri, 31 Oct 2003 07:15:38 -0400 (AST) Received: from mail.tpi.pl (mail.tpi.pl [193.110.121.18]) by svr1.postgresql.org (Postfix) with ESMTP id 1C838D1B54E for ; Fri, 31 Oct 2003 07:15:36 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mail.tpi.pl (Postfix) with ESMTP id 7C2BD4704B; Fri, 31 Oct 2003 12:15:37 +0100 (CET) Received: from mail.tpi.pl ([127.0.0.1]) by localhost (silver [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01342-09; Fri, 31 Oct 2003 12:15:37 +0100 (CET) Received: from [10.5.3.38] (lan-out [193.110.121.17]) by mail.tpi.pl (Postfix) with ESMTP id 193A746FB7; Fri, 31 Oct 2003 12:15:36 +0100 (CET) Subject: Re: performance problem - 10.000 databases From: Marek Florianczyk To: Matt Clark Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain; charset=ISO-8859-2 Organization: Message-Id: <1067598488.22286.69.camel@franki-laptop.tpi.pl> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 31 Oct 2003 12:08:08 +0100 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at TP Internet X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/385 X-Sequence-Number: 10946 W li¶cie z pi±, 31-10-2003, godz. 11:52, Matt Clark pisze: > > I could made persistent connection, but with 10.000 clients it will kill > > the server. > > But if they're virtual domains, why would you need one connection per domain? You should only need one connection per apache > process... Because every virtual domain has its own database, username and password. So one client domain1.com with db: domain1db user: domain1user cannot access to second client database domain2.com db: domain2db user: domain2user pg_hba.conf look like this: host domain1db domain1user ip_addr netmask md5 host domain2db domain2user ip_addr netmask md5 ..... .... 10.000 records ... ... host domain10000db domain10000user ip_addr netmask md5 You know, one client cannot access to other client database. So, if one process is connected to domain1db it cannto access to domain2db, and others. greetings Marek