Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 51794 invoked from network); 1 Jul 2004 01:30:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jul 2004 01:30:22 -0000 Received: (qmail 23513 invoked by uid 500); 1 Jul 2004 01:30:14 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 23372 invoked by uid 500); 1 Jul 2004 01:30:10 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 23269 invoked by uid 99); 1 Jul 2004 01:30:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [24.71.223.10] (HELO pd4mo1so.prod.shaw.ca) (24.71.223.10) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 30 Jun 2004 18:30:07 -0700 Received: from pd5mr4so.prod.shaw.ca (pd5mr4so-qfe3.prod.shaw.ca [10.0.141.168]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I0500DX6FNAP3@l-daemon> for users@httpd.apache.org; Wed, 30 Jun 2004 19:18:46 -0600 (MDT) Received: from pn2ml6so.prod.shaw.ca ([10.0.121.150]) by pd5mr4so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I0500HLNFNA2M20@pd5mr4so.prod.shaw.ca> for users@httpd.apache.org; Wed, 30 Jun 2004 19:18:46 -0600 (MDT) Received: from mail.bluesuperman.com (S01060050ba52adc4.cg.shawcable.net [68.146.149.141]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I0500J31FN9V0@l-daemon> for users@httpd.apache.org; Wed, 30 Jun 2004 19:18:46 -0600 (MDT) Date: Wed, 30 Jun 2004 19:18:55 -0600 From: Michael Gale In-reply-to: To: users@httpd.apache.org Message-id: <20040630191855.0ed1e8db@michael.bluesuperman.com> Organization: Bluesuperman.com MIME-version: 1.0 X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i686-pc-linux-gnu) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at bluesuperman.com References: <20040629231216.419ecdc9@michael.bluesuperman.com> X-Virus-Checked: Checked Subject: Re: [users@httpd] load balancing wih sticky session ?? X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, You see the http connection to the application server requires a session. So when you login and are accessing the java pages your browser has a cookie with the session id and your session data is saved in memory on the application server. So if I have 4 app servers and client A connects and hits app server 1, then session data for client A will only be stored on app server 1 for the remainder of the session. The next time if client A logs in to app server 2 then that session data will be stored in app server 2. I realize this is crappy way ... but I did not make the programs I only just got involved because they want to cluster the application servers. So my load balancer needs to be able to do HTTP session tracking so it can direct the client to the correct app server. Can apache do this by it self or with any third party software ? Michael On Wed, 30 Jun 2004 14:32:18 +0100 (BST) Nick Kew wrote: > On Tue, 29 Jun 2004, Michael Gale wrote: > > > So I was thinking if I could have apache handle the HTTPS request > > and then proxy HTTP traffic to one of the internal application > > servers that would be great. But the apache box would have to > > maintain the session, so if the first request did not have a > > session, establish one, and send to a application server. If the > > request went to app server 1 - then all future request for this > > session would have to hit app server 1. > > Choose your mechanism! If you're using cookies, for example, you > can just store a code designating a backend in there. If you're > working with session variables in your URLs, it's essentially similar, > but a little more work. > > Or you could store session info on the proxy. That's a little more > work. > > > Now I found some documentation on mod_perl and mod_session with it > > appears that apache will do the first two parts .. but would not > > forward the remaining http request for the session to the proper app > > server. > > How does it matter what mechanism you use? > > -- > Nick Kew > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. See for more > info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org