Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-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 57F2B18AB2 for ; Tue, 17 Nov 2015 17:44:36 +0000 (UTC) Received: (qmail 28072 invoked by uid 500); 17 Nov 2015 17:44:34 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 28030 invoked by uid 500); 17 Nov 2015 17:44:33 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 28020 invoked by uid 99); 17 Nov 2015 17:44:33 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2015 17:44:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 729C21801DA for ; Tue, 17 Nov 2015 17:44:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.148 X-Spam-Level: *** X-Spam-Status: No, score=3.148 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ZIZnhf955mnZ for ; Tue, 17 Nov 2015 17:44:32 +0000 (UTC) Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 3B54D441BE for ; Tue, 17 Nov 2015 17:44:32 +0000 (UTC) Received: by obbnk6 with SMTP id nk6so12610953obb.2 for ; Tue, 17 Nov 2015 09:44:26 -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=LeBic2b/aRmrFi0iHb7SMZJziSUZP1RCYX6mcEzwGoM=; b=Hvva2+r6kEH1EadE/7a4ojadiaWvDdIwEFH2aoymZfoBkghp82ivqnqGAS/s6uSoAn FxYjnPaWJhFy/+dVPtBC1tFwsB1o0z/Z7de3IKBEees2Al6mqHekcMr2iulDzrm0MzAE rUncnxQmz8JvhSvo94EfOQzy1Kwo0AoF+3nqBFz/mcstRqLPv0RJ9QpJsl0bZqIikFxW QjsyTtF5lRBWJCZs7Cd/YvrLCnsA6qsC5xT9n+MUWpTB+KsMc5dAJdCseXMLEonUa4dW X1MgSrqjTnLCcQpTIjcJDJoV0TJ3gDowgcitqDPxdd4g7fdLdwKH+al8sKthXpiI0xAR 6tCQ== MIME-Version: 1.0 X-Received: by 10.182.142.170 with SMTP id rx10mr26377321obb.34.1447782266338; Tue, 17 Nov 2015 09:44:26 -0800 (PST) Received: by 10.182.232.196 with HTTP; Tue, 17 Nov 2015 09:44:26 -0800 (PST) In-Reply-To: References: Date: Tue, 17 Nov 2015 23:14:26 +0530 Message-ID: From: Raju Rathi To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=001a11c338b2b282670524c013f2 Subject: [users@httpd] Re: Enabling sticky session mode for Apache/Tomcat load balancing --001a11c338b2b282670524c013f2 Content-Type: text/plain; charset=UTF-8 Hi All , Awaiting response for below query . this is something urgent so appreciate quick response on this . thanks , Raju Rathi On Tue, Nov 17, 2015 at 12:54 AM, Raju Rathi wrote: > Hi All , > > I am trying to enable sticky sessions in Apache, however it is not > working. Below are the changes made by me. Can anyone please advice if I am > missing something? > > I do not see any error in the access log, however request from one user is > still going to other server. Please let me know if any additional > information is needed to answer/help my query.appreciate quick response on > this .. > > *Step 1*: Added below in httpd.conf of load balancer of server1 & server2 > > > BalancerMember http://server1fullname:8080 route=server1 > BalancerMember http://server2fullname:8080 route=server2 > ProxySet lbmethod=bytraffic > ProxySet stickysession=JSESSIONID > > ProxyPass /marsWAR/ balancer://marsBalancer/marsWAR/ > > *Step 2*: Updated below in server.xml > > a) server.xml in server1 > > > > b) server.xml in server2 > > > > --001a11c338b2b282670524c013f2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All ,

Awaiting response fo= r below query . this is something urgent so appreciate quick response on th= is .

thanks ,
Raju Rathi

On Tue, Nov 17, 2015 at 12:54 AM, Ra= ju Rathi <raju.rathi1112@gmail.com> wrote:

Hi All ,

I am trying to enable sticky sessions in Apache, how= ever it is not=20 working. Below are the changes made by me. Can anyone please advice if I am missing something?

I do not see any error in the access log, however request from one=20 user is still going to other server. Please let me know if any=20 additional information is needed to answer/help my query.appreciate quick r= esponse on this ..=C2=A0

Step 1: Added below in httpd.conf of load balancer of s= erver1 & server2

<Proxy balancer://marsBalancer>
BalancerMember ht=
tp://server1fullname:8080  route=3Dserver1=20
BalancerMember ht=
tp://server2fullname:8080  route=3Dserver2
ProxySet lbmethod=3Dbytraffic
ProxySet stickysession=3DJSESSIONID
</Proxy>
ProxyPass /marsWAR/ balancer://marsBalancer/marsWAR/

Step 2: Updated below in server.xml

a) server.xml in server1

<Engine name=3D"Catalina" defaultHost=3D"local=
host" jvmRoute=3D"server1">   =20

b) server.xml in server2

<Engine name=3D"Catalina" defaultHost=3D"local=
host" jvmRoute=3D"server2">

--001a11c338b2b282670524c013f2--