Re: Hitting a specific node through the load balancer

Scott Ferguson <[email protected]> Thu, 6 Jul 2006 11:12:52 -0700
Newsgroups gmane.text.xml.resin.user
Message-ID <[email protected]>
--Apple-Mail-35--43803001
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=WINDOWS-1252;
	delsp=yes;
	format=flowed


On Jul 6, 2006, at 7:25 AM, Choate, Bryan (IHG) wrote:

> All-
>
>
>
> Let=92s say I have a cluster set up with three machines- http1, app1, =20=

> and app2.  http1 runs the LoadBalanceServlet listening to http on =20
> port 80 and has a cluster defined with a node running on 6802 on =20
> each of the app machines.  Is there a parameter that I can pass to =20
> the http1 machine to tell the LoadBalanceServlet to route me to a =20
> specific node?

Yes, you can either create a cookie with the first character 'a' for =20
app1 and 'b' for app2.

Or add a ;jsessionid=3DaXXXXXX

I'm pretty sure the cookie will take precedence.

-- Scott
>
>
> Thanks in advance,
>
>
>
> Bryan Choate
>
> InterContinental Hotels Group
>
> http://www.ichotelsgroup.com
>
> office: 770-604-8179
>
> mobile: 678-612-3140
>
>
>
>


--Apple-Mail-35--43803001
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=WINDOWS-1252

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jul 6, 2006, at =
7:25 AM, Choate, Bryan (IHG) wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"><SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><DIV =
class=3D"Section1"><P class=3D"MsoNormal"><FONT size=3D"2" =
face=3D"Arial"><SPAN style=3D"font-size:10.0pt; font-family:Arial; =
font-size: 13.3333px; "><SPAN class=3D"Apple-style-span" =
style=3D"font-family: Arial; font-size: 13.3333px; ">All-</SPAN><O:P =
style=3D"font-family: Arial; font-size: 13.3333px; =
"></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><FONT size=3D"2" =
face=3D"Arial"><SPAN style=3D"font-size:10.0pt; font-family:Arial; =
font-size: 13.3333px; "><O:P style=3D"font-family: Arial; font-size: =
13.3333px; "><SPAN class=3D"Apple-style-span" style=3D"font-family: =
Arial; font-size: 13.3333px; ">=A0</SPAN></O:P></SPAN></FONT></P><P =
class=3D"MsoNormal"><FONT size=3D"2" face=3D"Arial"><SPAN =
style=3D"font-size:10.0pt; font-family:Arial; font-size: 13.3333px; =
"><SPAN class=3D"Apple-style-span" style=3D"font-family: Arial; =
font-size: 13.3333px; ">Let=92s say I have a cluster set up with three =
machines- http1, app1, and app2.=A0 http1 runs the LoadBalanceServlet =
listening to http on port 80 and has a cluster defined with a node =
running on 6802 on each of the app machines.=A0 Is there a parameter =
that I can pass to the http1 machine to tell the LoadBalanceServlet to =
route me to a specific =
node?</SPAN></SPAN></FONT></P></DIV></SPAN></BLOCKQUOTE><DIV><BR =
class=3D"khtml-block-placeholder"></DIV>Yes, you can either create a =
cookie with the first character 'a' for app1 and 'b' for =
app2.</DIV><DIV><BR class=3D"khtml-block-placeholder"></DIV><DIV>Or add =
a ;jsessionid=3DaXXXXXX</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>I'm pretty sure the cookie =
will take precedence.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>-- Scott<BR><BLOCKQUOTE =
type=3D"cite"><SPAN class=3D"Apple-style-span" style=3D"border-collapse: =
separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: =
0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><DIV =
class=3D"Section1"><P class=3D"MsoNormal"><FONT size=3D"2" =
face=3D"Arial"><SPAN style=3D"font-size:10.0pt; font-family:Arial; =
font-size: 13.3333px; "><O:P style=3D"font-family: Arial; font-size: =
13.3333px; "></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><FONT =
size=3D"2" face=3D"Arial"><SPAN style=3D"font-size:10.0pt; =
font-family:Arial; font-size: 13.3333px; "><O:P style=3D"font-family: =
Arial; font-size: 13.3333px; "><SPAN class=3D"Apple-style-span" =
style=3D"font-family: Arial; font-size: 13.3333px; =
">=A0</SPAN></O:P></SPAN></FONT></P><P class=3D"MsoNormal"><FONT =
size=3D"2" face=3D"Arial"><SPAN style=3D"font-size:10.0pt; =
font-family:Arial; font-size: 13.3333px; "><SPAN =
class=3D"Apple-style-span" style=3D"font-family: Arial; font-size: =
13.3333px; ">Thanks in advance,</SPAN><O:P style=3D"font-family: Arial; =
font-size: 13.3333px; "></O:P></SPAN></FONT></P><P =
class=3D"MsoNormal"><FONT size=3D"2" face=3D"Arial"><SPAN =
style=3D"font-size:10.0pt; font-family:Arial; font-size: 13.3333px; =
"><O:P style=3D"font-family: Arial; font-size: 13.3333px; "><SPAN =
class=3D"Apple-style-span" style=3D"font-family: Arial; font-size: =
13.3333px; ">=A0</SPAN></O:P></SPAN></FONT></P><P =
class=3D"MsoNormal"><STRONG style=3D"font-family: Times New Roman; =
font-size: 16px; font-weight: bold; "><B style=3D"font-family: Times New =
Roman; font-size: 16px; font-weight: bold; "><FONT size=3D"2" =
face=3D"Arial"><SPAN style=3D"font-size: 10.0pt;font-family:Arial; =
font-size: 13.3333px; font-weight: bold; "><SPAN =
class=3D"Apple-style-span" style=3D"font-family: Arial; font-size: =
13.3333px; font-weight: bold; ">Bryan =
Choate</SPAN></SPAN></FONT></B></STRONG><O:P style=3D"font-family: Times =
New Roman; font-size: 16px; "></O:P></P><P class=3D"MsoNormal"><FONT =
size=3D"1" face=3D"Arial"><SPAN style=3D"font-size:7.5pt; =
font-family:Arial; font-size: 10px; "><SPAN class=3D"Apple-style-span" =
style=3D"font-family: Arial; font-size: 10px; ">InterContinental Hotels =
Group</SPAN></SPAN></FONT><O:P style=3D"font-family: Times New Roman; =
font-size: 16px; "></O:P></P><P class=3D"MsoNormal"><FONT size=3D"1" =
face=3D"Arial"><SPAN style=3D"font-size:7.5pt; font-family:Arial; =
font-size: 10px; "><A href=3D"blocked::http://www.ichotelsgroup.com/" =
title=3D"http://www.ichotelsgroup.com/"><SPAN class=3D"Apple-style-span" =
style=3D"color: rgb(0, 0, 255); font-family: Arial; font-size: 10px; =
-khtml-text-decorations-in-effect: underline; =
">http://www.ichotelsgroup.com</SPAN></A></SPAN></FONT><O:P =
style=3D"font-family: Times New Roman; font-size: 16px; "></O:P></P><P =
class=3D"MsoNormal"><FONT size=3D"1" face=3D"Arial"><SPAN =
style=3D"font-size:7.5pt; font-family:Arial; font-size: 10px; "><SPAN =
class=3D"Apple-style-span" style=3D"font-family: Arial; font-size: 10px; =
">office:=A0770-604-8179</SPAN></SPAN></FONT><O:P style=3D"font-family: =
Times New Roman; font-size: 16px; "></O:P></P><P class=3D"MsoNormal"><FONT=
 size=3D"1" face=3D"Arial"><SPAN style=3D"font-size:7.5pt; =
font-family:Arial; font-size: 10px; "><SPAN class=3D"Apple-style-span" =
style=3D"font-family: Arial; font-size: 10px; ">mobile: =
678-612-3140</SPAN></SPAN></FONT><O:P style=3D"font-family: Times New =
Roman; font-size: 16px; "></O:P></P><P class=3D"MsoNormal"><FONT =
size=3D"3" face=3D"Times New Roman"><SPAN style=3D"font-size: 12.0pt; =
font-family: Times New Roman; font-size: 16px; "><O:P =
style=3D"font-family: Times New Roman; font-size: 16px; "><SPAN =
class=3D"Apple-style-span" style=3D"font-family: Times New Roman; =
font-size: 16px; ">=A0</SPAN></O:P></SPAN></FONT></P></DIV><BR =
class=3D"Apple-interchange-newline"></SPAN></BLOCKQUOTE></DIV><BR></BODY><=
/HTML>=

--Apple-Mail-35--43803001--