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 F3DB8EB1C for ; Mon, 3 Dec 2012 12:28:18 +0000 (UTC) Received: (qmail 68245 invoked by uid 500); 3 Dec 2012 12:28:15 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 68056 invoked by uid 500); 3 Dec 2012 12:28:13 -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 68027 invoked by uid 99); 3 Dec 2012 12:28:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 12:28:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of orhankarasakal@gmail.com designates 209.85.220.45 as permitted sender) Received: from [209.85.220.45] (HELO mail-pa0-f45.google.com) (209.85.220.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2012 12:28:06 +0000 Received: by mail-pa0-f45.google.com with SMTP id bg2so1931764pad.18 for ; Mon, 03 Dec 2012 04:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ymNEsytBCipYxH+Py/kNuQFM9ddRc8nGln4S+RH4sv8=; b=NCLx7iEXp3f+lpYkvfdT92PTaUhN5IkWGkR4rdYA6vcoXAQhAF+CeqbGngZiXXksJi G7QarorJqrPPUoBTinJAyGd3qzGZTY2zkcj5NaBzkNZ2wqfQLFFSQX1aQuGKWHbuQ2td 7re1RNRW2haP9fajej7wOGd0VDRA2VkKhIxgm9yOtx1YTwLXXD0LrG/xd6HDNR00YXG8 6SGHDCfKjcK+a9wTi5tNM+7VmCu8HHFA63i97ppoNuH0WEsjkAIdOf9P2xokklV5W0io x4q2r28sgti+JJrh6dgEoOf9iBlOKKHKM/bJhZeEkLqXpRTqoDD1W1a5CnXVaMfmaiEB 1SVw== MIME-Version: 1.0 Received: by 10.66.83.165 with SMTP id r5mr25732527pay.3.1354537664760; Mon, 03 Dec 2012 04:27:44 -0800 (PST) Received: by 10.66.14.106 with HTTP; Mon, 3 Dec 2012 04:27:44 -0800 (PST) In-Reply-To: <888a5571867be0562b5c8d659f852c24@www.internetallee.de> References: <50BC78B6.4090007@ice-sa.com> <50BC84AE.4090008@apache.org> <50BC8629.5010706@ice-sa.com> <888a5571867be0562b5c8d659f852c24@www.internetallee.de> Date: Mon, 3 Dec 2012 14:27:44 +0200 Message-ID: Subject: Re: Mod_jk - loadbalancer From: Orhan Karasakal To: Tomcat Users List Content-Type: multipart/alternative; boundary=f46d042f959057cb1304cff1e015 X-Virus-Checked: Checked by ClamAV on apache.org --f46d042f959057cb1304cff1e015 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Many thanks for your replys But I have no one worker for specific urls. For example, I have 5 nodes(worker1, worker2,...,worker5) requests from /wepapp1/* -> worker2,worker3 requests from /webapp2/* - > worker1, worker4, worker5 Is it possible ? Regards, On Mon, Dec 3, 2012 at 1:49 PM, Felix Schumacher < felix.schumacher@internetallee.de> wrote: > Am 03.12.2012 11:59, schrieb Andr=E9 Warnier: > > Mladen Turk wrote: >> >>> On 12/3/2012 11:18, Orhan Karasakal wrote: >>> >>>> But firstly I want to send requests to loadbalancer and then according >>>> to >>>> url, sending the other nodes. >>>> >>> Session affinity should handle that. >>> >> >> Session affinity should ensure that once a session is started with >> one application on a particular worker, follow-up requests by the same >> browser to the same application should continue to go to the same >> tomcat worker. >> >> But it does not allow one to control to which worker the *first* >> request to a particular application will go, or does it ? >> > You may want to add jsessionid=3D.[JVMRoute] to your url. That way mod_jk > will send your request to the right worker. > > So given two workers workerA and workerB with JVMRoute same as the worker > names and an URL http://server/webapp1 , you could simply try > http://server/webapp1?**jsessionid=3D.workerAto reach workerA directly. > > > Regards > Felix > > > >> But if you wish something else use some other loadbalancer, >>> eg. mod_rewrite round-robin and multiple mod_jk workers. >>> >>> >> >> ------------------------------**------------------------------**--------= - >> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --f46d042f959057cb1304cff1e015--