Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 55567 invoked from network); 4 Nov 2009 14:49:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 14:49:18 -0000 Received: (qmail 53255 invoked by uid 500); 4 Nov 2009 14:49:17 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 53170 invoked by uid 500); 4 Nov 2009 14:49:16 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 53159 invoked by uid 99); 4 Nov 2009 14:49:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 14:49:16 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [194.85.173.12] (HELO epsilon.cs.karelia.ru) (194.85.173.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 14:49:08 +0000 Received: from localhost (localhost [127.0.0.1]) by epsilon.cs.karelia.ru (Postfix) with ESMTP id E4661B0FB3 for ; Wed, 4 Nov 2009 17:49:19 +0300 (MSK) X-Virus-Scanned: amavisd-new at cs.karelia.ru Received: from epsilon.cs.karelia.ru ([127.0.0.1]) by localhost (mail.cs.karelia.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a-iYIVo4Rv62 for ; Wed, 4 Nov 2009 17:49:18 +0300 (MSK) Received: from localhost (epsilon.cs.prv [192.168.112.5]) by epsilon.cs.karelia.ru (Postfix) with ESMTP id 31A8CB0FAF for ; Wed, 4 Nov 2009 17:49:18 +0300 (MSK) Date: Wed, 4 Nov 2009 17:47:11 +0300 From: Mikhail Kryshen To: "Tomcat Developers List" Subject: Re: UserConfig: alternative implementation Message-Id: <20091104174711.942de906.mikhail@kryshen.net> In-Reply-To: <96e4b5230911031634x458d45ddreafa855245759dc8@mail.gmail.com> References: <20091104021624.a063258d.mikhail@kryshen.net> <96e4b5230911031634x458d45ddreafa855245759dc8@mail.gmail.com> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.16.6; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 3 Nov 2009 16:34:57 -0800 Costin Manolache wrote: > Curious: how does it scale for large number of users, in particular if you > have NFS homes ? I use it at a university server with 780 user accounts with home directories mounted via NFS from distinct file server, user database is LDAP. Reading the remote user database and checking all home directories for webapps takes about 100 ms of real time. Performance for the large number of deployed webapps would likely be the same as with the original tomcat UserConfig or Host having all the apps in a single appbase. > It would be interesting to change this to not init the contexts when tomcat > starts - just register a handler that would start the context on first > request. > Or as a Valve that looks for ~foo and then lookups and start the context for > that user on demand. Most contexts will probably start soon anyway since every user would want to check his/her webapp after it is installed. Then to make this approach useful some checking for long-ununsed contexts would be required or periodic tomcat restarts to clean-up. Anyway it would be interesting thing to implement. > IMHO this could be a nice feature - but it's a perfect example of thing that > shouldn't be bundled in tomcat, but > available as a separate download. And if it used a scheme like /user/foo - > it may even be possible to implement it as a app+standard filter, with just > one 'internal API' call to load the context. For me it's not a problem to support this as a separate package, but tomcat already have such a thing bundled which is not currently very useful. -- Mikhail --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org