Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A057B8FD for ; Tue, 10 Jan 2012 12:48:53 +0000 (UTC) Received: (qmail 50940 invoked by uid 500); 10 Jan 2012 12:26:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 50446 invoked by uid 500); 10 Jan 2012 12:26:12 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 50421 invoked by uid 99); 10 Jan 2012 12:26:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 12:26:03 +0000 X-ASF-Spam-Status: No, hits=2.1 required=5.0 tests=HK_RANDOM_ENVFROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tnppresentation@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-ww0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 12:25:57 +0000 Received: by wgbdt11 with SMTP id dt11so5374933wgb.0 for ; Tue, 10 Jan 2012 04:25:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=R7sH5L7cgNh0sblb9gmJrEa6cs4nSlAj2OnZ/QSPdto=; b=sVQ2TxD3ctGSjXmSPuRC4aMlRU6m84VGL2ltvRcAHeOt1FtJ1N5azH84EybaBLJMom 3jS5Bf+4n/7by3FNKJ2u4O6zGPLY00UFXCNj8QIUFhtRkOs1qhmXSVXRo2CggjIpFa/7 s6modLwBmvdgQIp8rPzse2aBVEI5DfUwBHCWE= MIME-Version: 1.0 Received: by 10.180.101.35 with SMTP id fd3mr34025545wib.22.1326198335760; Tue, 10 Jan 2012 04:25:35 -0800 (PST) Received: by 10.216.161.13 with HTTP; Tue, 10 Jan 2012 04:25:35 -0800 (PST) Date: Tue, 10 Jan 2012 23:25:35 +1100 Message-ID: Subject: multi-tented connection queues From: Tharindu Patikirikorala To: Tomcat Users List Content-Type: multipart/alternative; boundary=f46d04182552b46b1a04b62b9c06 --f46d04182552b46b1a04b62b9c06 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi All, I am doing a case study to make tomcat to host multi-tented web applications. i.e., a single web application/service container is serving logically partitioned customers. For the basic implementation (let=92s say number of customers/tenant are 2) I want to make following modifications. 1) Identify the tenant and implementing a request/connection queues for each tenant. Then queue will have =91acceptcount=92 which reject the sy= stem to avoid severe overloads. 2) The worker threads have to be allocated to serve these requests based on a new scheduling. Two queues will be processed by this scheduler based on a priority scheme. After looking at the code, currently a single connection queue (ServerSocket.listen(backlog)) is used which is not aware about the tenants request. However, for the implementation we need another level of queuing which will reject the requests based on the tenant. Please suggest a way to implement such a scheme. Thank you Pati --f46d04182552b46b1a04b62b9c06--