How to make IIS plug-in do STICKY load balancing

There are two classes of scalable services: pure and sticky. A pure service
is one where any instance of the application can respond to client requests.
A sticky service is one where a client sends its requests to the same
instance; those requests are not redirected to other instances.
It seems to me that weblogic IIS proxy plug-in does not support the sticky
load balancing.
Could someone give me some information on how to make the proxy sticky?
Is there configuration parameters for this?
Thanks,
-Lei

I set the cluster.
It seems to me that there is some problem with the Set-Cookie mechanism of
the plug-in.
Sometime it set the cookie in my browser, sometime it is not.
Even from the wlproxy.log, I could set something like
Fri Aug 03 17:56:12 2001 Hdrs to
client:[Set-Cookie]=[AribaNode=O2tII92qHlP2tpZjUV0m5ued1s6X028cUPu24QcGj1Q25
AE5VXOd!1782877802312707887!ltang.ariba.com!8001!7002; domain=ariba.com;
path=/]
But the cookie is not set in my browser, what might be wrong here?
Thanks,
-Lei
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
I do believe that this will not work since if clustering is not enabled, a
cookie will not be set on the browser that contains the primary and
secondary server.
You are specifying two different ports in your servers. You need to use
clustering in order to get this functionality with the plugin.Furthermore,
you will achieve fail-over.
Regards,
Eric
"Lei Tang" <[email protected]> wrote in message
news:[email protected]...
Here is what I did for the examples under the bea sample directory.
I put the following in test1/WEB-INF/weblogic.xml
<session-descriptor>
<session-param>
<param-name> CookieDomain </param-name>
<param-value> *.ariba.com </param-value>
</session-param>
<session-param>
<param-name> CookieName </param-name>
<param-value> AribaNode </param-value>
</session-param>
<session-param>
<param-name> CookiePath </param-name>
<param-value> /test1 </param-value>
</session-param>
</session-descriptor>
</weblogic-web-app>
I add the following in iisproxy.ini
# This file contains initialization name/value pairs
# for the IIS/WebLogic plug-in.
WebLogicCluster=ltang.ariba.com:8001,achu.ariba.com:7001
ConnectTimeoutSecs=20
ConnectRetrySecs=2
Debug=ALL
WLLogFile=c:\tmp\wlproxy.log
WlForwardPath=/test1
DynamicServerList=OFF
CookieName=AribaNode
I use SesssionServlet.java as an example
When I involk http://proxy/test1/SessionServlet, I always get 1
if I use
http://proxy/test1/SessionServlet:AribaNode=................................
I could see the session becomes sticky.
If I do not want to use URL rewriting, what should I do in order to makethe
session STICKY
for this example.
Thanks,
-Lei
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
If you leave the CookieName untouched on the WebLogic side, then there
should be no reason to make the change in the plug-in.
But yes, you need to make sure the cookie names are the same.
Regards,
Eric
"Mark Vaughn" <[email protected]> wrote in message
news:[email protected]...
Actually, you also need to make sure you set the "CookieName" in theplugin.
That let's the plugin read the cookie set by WebLogic to determine
who
the
primary and secondary servers are for that session. Otherwise, theplugin
has no
way of knowing if you are establishing a new session or returning to
an
existing
one. The cookie will tell it if you have a current session and who
it
should
send you to for continuing that session, or failing that session
over.
>>>>
Eric Gross wrote:
Without having clustering enabled, you will not get Sticky load
balancing.
You need to have clustering so that a cookie is sent back to the
client
that
contains information about where it's session is located.
Otherwise,
you
are just going to get round-robin each time.
You can refer to the following page for more information:
http://e-docs.beasys.com/wls/docs61/cluster/servlet.html
Regards,
Eric
"Lei Tang" <[email protected]> wrote in message
news:[email protected]...
WebLogicCluster=machine1:7001,machine2:7001
ConnectTimeoutSecs=20
ConnectRetrySecs=2
Debug=ALL
WLLogFile=c:\tmp\wlproxy.log
WlForwardPath=/test,/test1
DynamicServerList=OFF
I run two standone (Admin server) weblogic servers on machine1
machine2.
Then I deploy application test.war on machine1 first, then onmachine2.
Should I make machine2 as a managed server and machine1 as an
admi
n
server?
Will this make the session sticky?
Thanks,
-Lei
"Eric Gross" <[email protected]> wrote in message
news:[email protected]...
It would help us to know how you have iisproxy.ini configured.
Sticky
load
balancing should work fine if you have the plug-in and
WebLogic
Server
setup
correctly.
How have you setup the plug-in?
Thanks,
Eric
"Lei Tang" <[email protected]> wrote in message
news:[email protected]...
There are two classes of scalable services: pure and sticky.
A
pure
service
is one where any instance of the application can respond to
client
requests.
A sticky service is one where a client sends its requests to
the
same
instance; those requests are not redirected to other
instances.
It seems to me that weblogic IIS proxy plug-in does notsupport
the
sticky
load balancing.
Could someone give me some information on how to make the
proxy
sticky?
Is there configuration parameters for this?
Thanks,
-Lei
.-. Mark Vaughn
/V\ 7024 Corona Dr.
// \\ North Richland Hills, TX 76180
/( )\ [email protected]
^^-^^
"Give a man a fish and you feed him for a day;
teach him to use the Net and he won't bother you for weeks."
Ben Woodbridge

Similar Messages

  • How to make IIS on Windows 7 visible from outside my home LAN

    Guidance Needed: How to make IIS on Windows 7 visible from outside my home LAN.
    I am building a learning/demo ASP.NET website on this Win7 PC, using VS2008. 
    I would like to share the website with a client/friend, so I need my local IIS to be visible from outside the home LAN.
    This PC is behind a Netgear WGR614 router, which has a static IP address assigned by my ISP. 
    I have set up port forwarding on the router; port 80 is HTTP.
    I can see the website as http://localhost/ and also as http://192.168.0.2 from other PCs inside the LAN.
    Ping works from outside, but not http.   What am I missing?

    Hi,
    Since this question is related to IIS and we have specific support for IIS related issues or questions, it is also recommended that you go to IIS Forum for help.
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • How to make outbound plug to Public attr

    Hi All,
               I am trying to call outbound plug from get_v method for f4 help. But when i click on f4 help, it getting dump by giving below error.
    View 'ZXXXX/GeneralData' does not have the public outbound plug 'OP_FINDXXXX' for value help navigation
    In get_v method, using below piece of code.
         CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_navdescr
         EXPORTING
          iv_outbound_plug = 'FINDXXXX'.                    "#EC NOTEXT
    My concern is how to make Outbound plug to public or if there any other way to call Outbound plug from Get_v then please advice.
    I appriciate your suggestion.
    Thanks
    RI

    Hi Imran!
    To make outbound plug public please do the following things:
    1)In BSP_WD_CMPWB: go to the code of your outbound plug and switch to edit mode;
    2)Save & Activate your outbound plug.
    3)Menu "Go to" -> "Method Definition"-> tab "Attributes":
    - set "Visibility" = Public
    - "Event" block: "Active" should be marked.
    Warning: after changing of visibility the content(code) of method will be removed automatically!
    So, save it beforehand.
    4) Then go to method and try to do save and activate.
    You will get a error message. Double click at this message - so you will be redirected to the error place - protected section of the current class.
    5) Find out in this protected section the rows with your outbound plug - cut out them.
    6)On the toolbar you will see button for public section - go there and past you rows there.
    7) save and activate everything.
    8) Now you can fill your outbound plug with your logic and activate again.
    I did this just recently many times and it worked fine.
    Please tell me if something is unclear or doesn't work.
    Good luck!
    Evgenia

  • Apache plug-in won't load balance requests evenly on cluster

    I can't seem to get the Apache plug-in to actually do round-robin load balancing
    of HTTP
    requests. It does random-robin, as I like to call it, since the plug-in will usually
    hit all the
    servers in the cluster but in a random fashion.
    I've got three managed servers:
    192.168.1.5:8001 (WL6 on Linux) 192.168.1.2:8001 (WL6 on Linux) 192.168.1.7:8001
    (WL6 on Linux)
    Admin server on 192.168.1.7:7000 (WL6 on W2k)
    My Apache server is 1.3.9 (RedHat SSL) on 192.168.1.52.
    The log file for each servers has something like this:
    ####<Apr 19, 2001 1:18:54 AM MDT> <Info> <Cluster> <neptune> <cluster1server1>
    <main> <system> <> <000102> <Joined cluster cluster1 at address 225.0.0.5 on port
    8001>
    ####<Apr 19, 2001 1:19:31 AM MDT> <Info> <Cluster> <neptune> <cluster1server1>
    <ExecuteThread: '9' for queue: 'default'> <> <> <000127> <Adding
    3773576126129840579S:192.168.1.2:[8001,8001,7002,7002,8001,7002,-1]:192.168.1.52
    to the cluster> ####<Apr 19, 2001 1:19:31 AM MDT> <Info> <Cluster> <neptune>
    <cluster1server1> <ExecuteThread: '11' for queue: 'default'> <> <> <000127> <Adding
    -6393447100509727955S:192.168.1.5:[8001,8001,7002,7002,8001,7002,-1]:192.168.1.52
    to the cluster>
    So I believe I have correctly created a cluster, although I did not bother to
    assign
    replication groups for HTTP session replication (yet).
    The Apache debug output indicates it knows about all three servers and I can see
    it
    doing the "random-robin" load balancing. Here is the output:
    Thu Apr 19 00:20:53 2001 Initializing lastIndex=2 for a list of length=3 Thu Apr
    19
    00:20:53 2001 Init Srvr# [1] = [192.168.1.2:8001] load=1077584792 isGood=1077590272
    numSk ip=134940256 Thu Apr 19 00:20:53 2001 Init Srvr# [2] = [192.168.1.5:8001]
    load=1077584792 isGood=1077590272 numSk ip=134940256 Thu Apr 19 00:20:53 2001
    Init Srvr# [3] = [192.168.1.7:8001] load=1077584792 isGood=1077590272 numSk
    ip=134940256 Thu Apr 19 00:20:53 2001 INFO: SSL is not configured Thu Apr 19
    00:20:53 2001 Now trying whatever is on the list; ci->canUseSrvrList = 1 Thu Apr
    19
    00:20:53 2001 INFO: New NON-SSL URL Thu Apr 19 00:20:53 2001 general list: trying
    connect to '192.168.1.7'/8001 Thu Apr 19 00:20:53 2001 Connected to 192.168.1.7:8001
    Thu Apr 19 00:20:53 2001 INFO: sysSend 320 Thu Apr 19 00:20:53 2001 INFO:
    Reader::fill(): first=0 last=0 toRead=4096 Thu Apr 19 00:21:06 2001 parsed all
    headers
    OK Thu Apr 19 00:21:06 2001 Initializing lastIndex=1 for a list of length=3 Thu
    Apr 19
    00:21:06 2001 ###Response### : Srvr# [1] = [192.168.1.5:8001] load=1077584792
    isGood=1077 546628 numSkip=1077546628 Thu Apr 19 00:21:06 2001 ###Response###
    : Srvr# [2] = [192.168.1.2:8001] load=1077584792 isGood=1077 546628
    numSkip=1077546628 Thu Apr 19 00:21:06 2001 ###Response### : Srvr# [3] =
    [192.168.1.7:8001] load=1077584792 isGood=1077 546628 numSkip=1077546628 Thu Apr
    19 00:21:06 2001 INFO: Reader::fill(): first=0 last=0 toRead=4096
    Basically, the lastIndex=XXX appears to be random. It may do round-robin for 4
    or 5
    connections but then always it resorts to randomly directing new connections.
    This is what the configuration looks like using the plug-in's
    /weblogic?__WebLogicBridgeConfig URL:
    Weblogic Apache Bridge Configuration parameters:
    WebLogic Cluster List:
    1.Host: '192.168.1.2' Port: 8001 Primary
    General Server List:
    1.Host: '192.168.1.2' Port: 8001
    2.Host: '192.168.1.5' Port: 8001
    3.Host: '192.168.1.7' Port: 8001
    DefaultFileName: ''
    PathTrim: '/weblogic'
    PathPrepend: '' ConnectTimeoutSecs:
    '10' ConnectRetrySecs: '2'
    HungServerRecoverSecs: '300'
    MaxPostSize: '0'
    StatPath: false
    CookieName: JSESSIONID
    Idempotent:
    ON FileCaching:
    ON ErrorPage: ''
    DisableCookie2Server: OFF
    Can someone please help to shed some light on this? I would be really grateful,
    thanks!
    Jeff

    Right - it means that the only configuration which can do perfect round-robin is a
    single plugin (non-Apache, or single-process Apache) - all others essentially do random
    (sort of, but it can skew test results during first N requests).
    Robert Patrick <[email protected]> wrote:
    Dimitri,
    The way Apache works is that is spawns a bunch of child processes and the parent process
    that listens on the port delegates the processing of each request to one of the child
    processes. This means that the load-balancing dome by the plugin before the session ID is
    assigned does not do perfect round-robining because there are multiple copies of the plugin
    loaded in the multiple child processes. This situation is similar to the one you would get
    by running multiple proxy servers on different machines with the NES/iPlanet and IIS
    plugins.
    As I pointed out in my response to Jeff, attempting to address this problem with IPC
    machanisms would only solve the single machine problem and most people deploy multiple
    proxy servers to avoid a single point of failure...
    Hope this helps,
    Robert
    Dimitri Rakitine wrote:
    Hrm. This is strange - I thought that all the information nesessary for a
    'sticky' load-balancing (primary/secondary) is contained in the cookie/session info,
    so, the particular plug-in implementation should not make any difference. For
    load-balancing - statistically, given large enough sampling base, Apache plug-in
    should perform just a well as NS one (unless apache is somehow misconfigured and
    calls fork() for each new request).
    Jeff Calog <[email protected]> wrote:
    Robert,
    Thanks for the sanity reply, you are definitely right. I used Netscape 3.0 on
    Win2k and it did perfect round-robin load balancing to my servers.
    <raving>
    BEA - ARE YOU LISTENING? STOP TELLING PEOPLE YOUR APACHE PLUG-IN IS A VIABLE
    LOAD BALANCING SOLUTION! It's worthless for load balancing!
    </raving>
    In some tests, as many as 90% of my connections/requests would be sent to a single
    server. There should be something in the release notes like "By the way, the
    Apache plug-in is only advertised as doing round-robin load balancing, in reality
    it doesn't work worth a darn".
    I'm surprised they don't used shared memory or some other technique (pipes, sockets,
    signals, writing to /tmp, anything) for interprocess communication to fix that.
    Jeff
    Robert Patrick <[email protected]> wrote:
    Yes, the problem lies in the fact that Apache uses multiple processes
    instead of
    multiple threads to process requests. Therefore, you end up with multiple
    processes all
    with the WebLogic plugin loaded into them (and they cannot see one another)...
    Hopefully, Apache 2.0 when it comes out will allow the plugin to do a
    better job...
    Jeff Calog wrote:
    I can't seem to get the Apache plug-in to actually do round-robin loadbalancing
    of HTTP
    requests. It does random-robin, as I like to call it, since the plug-inwill usually
    hit all the
    servers in the cluster but in a random fashion.
    I've got three managed servers:
    192.168.1.5:8001 (WL6 on Linux) 192.168.1.2:8001 (WL6 on Linux) 192.168.1.7:8001
    (WL6 on Linux)
    Admin server on 192.168.1.7:7000 (WL6 on W2k)
    My Apache server is 1.3.9 (RedHat SSL) on 192.168.1.52.
    The log file for each servers has something like this:
    ####<Apr 19, 2001 1:18:54 AM MDT> <Info> <Cluster> <neptune> <cluster1server1>
    <main> <system> <> <000102> <Joined cluster cluster1 at address 225.0.0.5on port
    8001>
    ####<Apr 19, 2001 1:19:31 AM MDT> <Info> <Cluster> <neptune> <cluster1server1>
    <ExecuteThread: '9' for queue: 'default'> <> <> <000127> <Adding
    3773576126129840579S:192.168.1.2:[8001,8001,7002,7002,8001,7002,-1]:192.168.1.52
    to the cluster> ####<Apr 19, 2001 1:19:31 AM MDT> <Info> <Cluster><neptune>
    <cluster1server1> <ExecuteThread: '11' for queue: 'default'> <> <><000127> <Adding
    -6393447100509727955S:192.168.1.5:[8001,8001,7002,7002,8001,7002,-1]:192.168.1.52
    to the cluster>
    So I believe I have correctly created a cluster, although I did notbother to
    assign
    replication groups for HTTP session replication (yet).
    The Apache debug output indicates it knows about all three serversand I can see
    it
    doing the "random-robin" load balancing. Here is the output:
    Thu Apr 19 00:20:53 2001 Initializing lastIndex=2 for a list of length=3Thu Apr
    19
    00:20:53 2001 Init Srvr# [1] = [192.168.1.2:8001] load=1077584792 isGood=1077590272
    numSk ip=134940256 Thu Apr 19 00:20:53 2001 Init Srvr# [2] = [192.168.1.5:8001]
    load=1077584792 isGood=1077590272 numSk ip=134940256 Thu Apr 19 00:20:532001
    Init Srvr# [3] = [192.168.1.7:8001] load=1077584792 isGood=1077590272numSk
    ip=134940256 Thu Apr 19 00:20:53 2001 INFO: SSL is not configured ThuApr 19
    00:20:53 2001 Now trying whatever is on the list; ci->canUseSrvrList= 1 Thu Apr
    19
    00:20:53 2001 INFO: New NON-SSL URL Thu Apr 19 00:20:53 2001 generallist: trying
    connect to '192.168.1.7'/8001 Thu Apr 19 00:20:53 2001 Connected to192.168.1.7:8001
    Thu Apr 19 00:20:53 2001 INFO: sysSend 320 Thu Apr 19 00:20:53 2001INFO:
    Reader::fill(): first=0 last=0 toRead=4096 Thu Apr 19 00:21:06 2001parsed all
    headers
    OK Thu Apr 19 00:21:06 2001 Initializing lastIndex=1 for a list oflength=3 Thu
    Apr 19
    00:21:06 2001 ###Response### : Srvr# [1] = [192.168.1.5:8001] load=1077584792
    isGood=1077 546628 numSkip=1077546628 Thu Apr 19 00:21:06 2001 ###Response###
    : Srvr# [2] = [192.168.1.2:8001] load=1077584792 isGood=1077 546628
    numSkip=1077546628 Thu Apr 19 00:21:06 2001 ###Response### : Srvr#[3] =
    [192.168.1.7:8001] load=1077584792 isGood=1077 546628 numSkip=1077546628Thu Apr
    19 00:21:06 2001 INFO: Reader::fill(): first=0 last=0 toRead=4096
    Basically, the lastIndex=XXX appears to be random. It may do round-robinfor 4
    or 5
    connections but then always it resorts to randomly directing new connections.
    This is what the configuration looks like using the plug-in's
    /weblogic?__WebLogicBridgeConfig URL:
    Weblogic Apache Bridge Configuration parameters:
    WebLogic Cluster List:
    1.Host: '192.168.1.2' Port: 8001 Primary
    General Server List:
    1.Host: '192.168.1.2' Port: 8001
    2.Host: '192.168.1.5' Port: 8001
    3.Host: '192.168.1.7' Port: 8001
    DefaultFileName: ''
    PathTrim: '/weblogic'
    PathPrepend: '' ConnectTimeoutSecs:
    '10' ConnectRetrySecs: '2'
    HungServerRecoverSecs: '300'
    MaxPostSize: '0'
    StatPath: false
    CookieName: JSESSIONID
    Idempotent:
    ON FileCaching:
    ON ErrorPage: ''
    DisableCookie2Server: OFF
    Can someone please help to shed some light on this? I would be reallygrateful,
    thanks!
    Jeff
    Dimitri--
    Dimitri

  • NAS 4.0sp6 - sticky load balancing

    Hi,
    Can anyone tell me if sticky load balancing is required/necessary in a
    multi process (8 x kjs's) single threaded (each kjs has only one thread)
    environment on one machine. We seem to be getting concurrent session
    problems between kjs's.
    Platform: Solaris 2.6, NAS 4.0sp6
    Thanks in advance.

    In general no, but it depends on how your application is written.
    In your case, probably yes, but I am only guessing here.
    Session is usually distributed through DSYNC and therefore is
    serialisable. However, if certain programmers made their objects
    non-seriable then they are forcing the sessions to be stored locally and
    sticky will help with sending the requests back to the same engine to
    get that session.
    In your case, I wonder why you are only using 1 thread per kjs. I assume
    your application code is not thread safe and therefore you made the
    decision to run multiple kjs with single thread only. Following this, I
    believe you might also have programmatically made your sessions
    local/non ditributable (because of the thread safe issue), thus if this
    is the case you probably will require sticky load balancing.
    Tosh wrote:
    >
    Hi,
    Can anyone tell me if sticky load balancing is required/necessary in a
    multi process (8 x kjs's) single threaded (each kjs has only one thread)
    environment on one machine. We seem to be getting concurrent session
    problems between kjs's.
    Platform: Solaris 2.6, NAS 4.0sp6
    Thanks in advance.--
    Han-Dat Luc ([email protected])
    Senior Consultant
    SUN Professional Services (iPlanet)
    o .
    o .
    O _ ____ _ _
    (_) _ \| | __ _ _ __ ___| |_ TM
    | | |_) | |/ _` | '_ \ / _ \ __|
    | | __/| | (_| | | | | __/ |_
    |_|_| |_|\__,_|_| |_|\___|\__|
    e-commerce solutions
    Sun Microsystems Australia Pty Ltd

  • Sticky Load balancing

    Does WLS 5.1 supports Sticky Load Balancing?
              Thank you.
              Rob.
              

    http://www.weblogic.com/docs51/classdocs/javadocs/weblogic/rmi/extensions/CallRouter.html
              - Prasad
              Rob wrote:
              > Looking at the online docs from BEA I found something that I think is what I
              > need. it is called Parameter-based routing
              >
              > It seems that WebLogic Clusters supports several algorithms to address this
              > kind of Load balancing. (something like sticky load balancing)
              >
              > The next text is from the online BEA's docs:
              >
              > Parameter-based routing
              >
              > It is also possible to gain finer grain control over load-balancing. Any
              > clustered object can be assigned a CallRouter. This is a plug-in that is
              > called before each invocation with the parameters of the call. The
              > CallRouter is free to examine the parameters and return the name server to
              > which the call should be routed.
              >
              > If this is correct (that this type of load balancing is slightly the same as
              > sticky load balancing) then the questions is now:
              >
              > What is exactly a CallRouter and where can I see an example of this or more
              > documentation.
              >
              > Rob wrote in message <[email protected]>...
              > >Does WLS 5.1 supports Sticky Load Balancing?
              > >
              > >Thank you.
              > >
              > >Rob.
              > >
              > >
              Cheers
              - Prasad
              

  • Can't get sticky load balancing to work

    I'm really puzzled why sticky LB is not working for a simple case I'm trying. I have two simple JSP's, both registered (see web.xml and ias-web.xml below). I'm using lite session and set distributable to false. Just in case someone can tell by just looking at my session id if it's supposed to be sticky or not, it looks like following -
    GXLiteSessionID-4818869464307751325
    My two JSP's are also attached below, and they're pretty simple. A new session is supposed to be created in login page and clicking on the logout page invalidates the session.
    What I see is that each request (whether login or logout) is randomly sent to any server. For example, if I go to login once, further request to login or logout (whether through refresh or by clicking on the link) is not necessarily sent to the same server.
    Any idea what's missing in my setup? I've tried different types of load balancing (round robin, etc.) so I know that's not it.
    Thanks a lot in advance.
    Jitu
    -----web.xml-------
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN' 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd'>
    <web-app>
    <display-name>WebDesk</display-name>
    <distributable>false</distributable>
    <servlet>
    <servlet-name>TestLogin.jsp</servlet-name>
    <jsp-file>TestLogin.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>TestLogin.jsp</servlet-name>
    <url-pattern>TestLogin.jsp</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>TestLogout.jsp</servlet-name>
    <jsp-file>TestLogout.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>TestLogout.jsp</servlet-name>
    <url-pattern>TestLogout.jsp</url-pattern>
    </servlet-mapping>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name></realm-name>
    <form-login-config>
    <form-login-page></form-login-page>
    <form-error-page></form-error-page>
    </form-login-config>
    </login-config>
    </web-app>
    -----ias-web.xml------
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ias-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD iAS Web Application 1.0//EN' 'http://developer.iplanet.com/appserver/dtds/IASWebApp_1_0.dtd'>
    <ias-web-app>
    <servlet>
    <servlet-name>TestLogin.jsp</servlet-name>
    <guid>{A6D6B277-288D-1C22-C3CA-0800209A2F7C}</guid>
    <servlet-info>
    <sticky>true</sticky>
    <sticky-lb>true</sticky-lb>
    </servlet-info>
    </servlet>
    <servlet>
    <servlet-name>TestLogout.jsp</servlet-name>
    <guid>{B88B7D19-28B9-1C22-EE63-0800209A2F7C}</guid>
    <servlet-info>
    <sticky>true</sticky>
    <sticky-lb>true</sticky-lb>
    </servlet-info>
    </servlet>
    <session-info>
    <impl>lite</impl>
    <timeout-type>last-access</timeout-type>
    <timeout>60</timeout>
    <secure>false</secure>
    <domain></domain>
    <path>/</path>
    <scope></scope>
    </session-info>
    </ias-web-app>
    -----TestLogin.jsp-------
    <%
         java.util.Date date = new java.util.Date();
         HttpSession sess = request.getSession(true);
         System.out.println(date + ":TestLogin.jsp: sessionid = " + sess.getId() + ", new = " + sess.isNew());
    %>
    <HTML>
    <HEAD>
    <TITLE>TestLogin</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
    <p>
    You are now logged in.<br>
    <br>
    TestLogin.jsp: sessionid = <%=sess.getId()%>, new = <%=sess.isNew()%><br>
    <br>
    Click here to logout.
    </BODY>
    </HTML>
    ----TestLogout.jsp-------
    <%
         java.util.Date date = new java.util.Date();
         HttpSession sess = request.getSession(true);
         System.out.println(date + ":TestLogout.jsp: sessionid = " + sess.getId() + ", new = " + sess.isNew());
    %>
    <HTML>
    <HEAD>
    <TITLE>TestLogout</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>
    <p>
    TestLogout.jsp: sessionid = <%=sess.getId()%>, new = <%=sess.isNew()%><br>
    <br>
    <%
    sess.invalidate();
    %>
    You are now logged out.<br>
    <br>
    Click here to login.
    </BODY>
    </HTML>

    Hi,
    I think it's best to wait for sometime and check the behaviour of sticky load balancing for sometime, the reason being one or more of the following...
    - Although sticky feature ensures that the component is run at a single server, when combined with load balancing and under heavy user loads, the load balancing takes place.
    - If we rule out the previous case, then, the load balancing mechanism, especially, per component based or per server based, sends request by round robin technique initally(around 128 times or so) and then calculates the effeciency of the response time and then follows the per server based or per component based.
    - Meanwhile please ensure that, you have enabled the Sticky LB option under Application using iASAT and please wait for sometime sending requests(probably 130 times) after which it's good to check the mechanism of the sticky bit technique. If it doesn't behaves as it has to then, please let me know and I can help you further on this.
    Regards
    RG

  • IPlanet sticky load balancing question

    We have two iPlanet Application Servers v6.0 sp3 and two iPlanet
    Enterprise Web servers v4.1. All machines are on the same domain name.
    All machines point to the same LDAP server. The application has been
    installed on both App servers. Clustering has been configured in the
    App server Admin tool to be based upon system load. For non-sticky load
    balancing, all works fine, and session information is carried over
    properly. However, for sticky load balancing, hits going into either of
    the Web servers do not always go back to the App server that first
    started the session.
    The online iPlanet documentation says it can be done, but we have found
    differently. Has anybody else gotten this to work?
    Thank you,
    David Shade

    Hi David,
    With sticky load balancing enabled, when you execute the application first
    time it will go to any kjs depending on your load banancing criteria which
    you set (Round robin or server responce or whatever), this applies to only
    for the first time when you send request, afterwords it will be executed in
    that perticular KJS process only till that KJS is alive, whatever may be
    your LoadB creteria.
    You please kill that kjs and see, you will be able to see the failover.
    Feel free to mail me for any further information.
    Sanjeev,
    Developer Support Team iAS-India.
    David Shade wrote:
    We have two iPlanet Application Servers v6.0 sp3 and two iPlanet
    Enterprise Web servers v4.1. All machines are on the same domain name.
    All machines point to the same LDAP server. The application has been
    installed on both App servers. Clustering has been configured in the
    App server Admin tool to be based upon system load. For non-sticky load
    balancing, all works fine, and session information is carried over
    properly. However, for sticky load balancing, hits going into either of
    the Web servers do not always go back to the App server that first
    started the session.
    The online iPlanet documentation says it can be done, but we have found
    differently. Has anybody else gotten this to work?
    Thank you,
    David Shade--
    I have never learn not to learn...
    ------------------------------------------------------------------

  • Sticky load balancing without clustering?

    I don't need any type of session replication. I just want to run two
              instances of Weblogic on one machine, one IP, two different ports.
              If I run a third instance of Weblogic for proxying on the same machine
              on yet another port, can I take advantage of the HttpClusterServlet's
              sticky load balancing capabilities if the two Weblogic instances I want
              to proxy between are not participating in a cluster?
              All we require is to have an IP & port that we can hit that will
              round-robin the HTTP requests between the two Weblogic instances, and
              send all subsequent HTTP requests with the same session to the same
              Weblogic instance it sent it to before. Can this work? Thanks in
              advance,
              mg
              Mike Gorman, Director of Architecture
              YOUcentric, Inc.
              Charlotte, NC
              704-643-1000 x518
              http://www.youcentric.com
              

    Thought I read somewhere that you must have different IP addresses for each
              server
              Mike Gorman wrote:
              > I don't need any type of session replication. I just want to run two
              > instances of Weblogic on one machine, one IP, two different ports.
              >
              > If I run a third instance of Weblogic for proxying on the same machine
              > on yet another port, can I take advantage of the HttpClusterServlet's
              > sticky load balancing capabilities if the two Weblogic instances I want
              > to proxy between are not participating in a cluster?
              >
              > All we require is to have an IP & port that we can hit that will
              > round-robin the HTTP requests between the two Weblogic instances, and
              > send all subsequent HTTP requests with the same session to the same
              > Weblogic instance it sent it to before. Can this work? Thanks in
              > advance,
              >
              > mg
              >
              > --
              > Mike Gorman, Director of Architecture
              > YOUcentric, Inc.
              > Charlotte, NC
              > 704-643-1000 x518
              > http://www.youcentric.com
              

  • How does CEF perform equal and unequal cost load balancing?

    hello
    How does CEF perform equal and unequal cost load balancing?
    thanks

    Hello Wang,
    it is only EIGRP that can perform load balancing over unequal cost links.
    For equal cost links CEF allocates 16 buckets and maps them to the the physical links.
    the result of a binary operation is used to associated a packet to an outgoing interface:
    Source IP address EXOR DEstination IP Address EXOR hash
    the hash is a seed that changes only at every reload.
    Actually the last 4 bits are used so that each flow can be classified in one bucket.
    then the outgoing interface is the one asscociated to the result of the exor operation.
    Another way to see is that m bits are used so that 2^m is equal to N number of links (if N is even)
    the rule is simple and pre-established
    Hope to help
    Giuseppe

  • How to make sure a page doesn't load from cache

    Hi. I have a jsp page which logs a user out, the problem is that this page gets cached sometimes and only logs the user out if i refresh the page. Is there a way to make sure that when the page loads it doesn't do so from cache ?

    Hi
    try this:
    <html>
    <head>
    <title>Your Page Title</title>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    </head>
    <body>
    </body>

  • How to monitor targets which are controlled by LOAD BALANCING mechanism

    Hi,
    I have installed Enterprise Manager 10.1.0.3 and upgraded it to 10.1.0.5. Then i have applied the Application plug-in patch for managing Oracle Applications.In my environment, we have two concurrent managers and four forms servers which are using Load Balancer.Please let me how to manage these concurrent managers and forms servers in that scenario.Would highly appreciate your suggestions regarding the same.Thanks in advance.
    Regards,
    Vamsi Manyam

    This note shows how to configure OEM behind a load balancer.
    The question was how to use OEM, not behind a load balancer, to monitor other targets which are behind one or different load balancers.
    For example, to monitor :
    Forms on server A and B behind load balancer LB1.
    Forms on server C and D behind load balancer LB1.
    Forms on server E and F behind load balancer LB2.
    Gary

  • Sticky load balancing across 2 ports with cookies

    Hi,
    I have a server configuration where I have 1 top level Apache server that deals with SSL termination (and handles static content) and proxy passes dynamic content onto 2 Tomcat servers on 2 ports, one for http requests (9001) and one for the requests that were secure, but have now been un-encrypted by Apache (9002).  My 2 Tomcat servers are load balanced using a CSS and I need this load balancing to stick to the tomcat servers regardless of port so that the user is stuck to the same Tomcat server for their entire session. 
    I would like to use arrowpoint cookies to perform this stickyness, but the documentation suggests that arrowpoint cookie load balancing (in fact any cookie based load balancing) requires the port to be specified in the content rule.  Is this correct?  Is my only option to use the source IP for stickyness? I don't understand why the port should be required if the stickyness is via a cookie. Can I not simply configure my 2 tomcat servers as services with no port and add a single content rule that load balances these services using arrowpoint-cookie advanced balancing?
    service tomcat1
      ip address x.x.x.x
      active
    service tomcat2
      ip address x.x.x.x
      active
    owner me
       content sticky
         vip address x.x.x.x
         protocol tcp
         url "/*"
         add service tomcat-1
         add service tomcat-2
         advanced-balance arrowpoint-cookie
         active

    Angela-
    The issue with port is that cookies are very specifically HTTP only and the CSS has no way of knowing what protocol will hit a VIP prior to trying to address it as HTTP. Your issue is actually a bit clearer than it is initially led to be - you can still use 2 different rules by using the configuration below. 
    However, you might be headed for a headache if you don't implicitly control the client's actions.  By default, browsers don't generally send cookies cross-protocol and definitely not cross-domain.  Use something like httpwatch or iewatch to check out the headers your client sends to your site.  Make sure when the 200ok arrives with the set-cookie that the client sends that cookie in all preceeding packets that are HTTP and HTTPS both.
    service tomcat1
      string "tomcat1"
      ip address x.x.x.x
      active
    service tomcat2
      string "tomcat2"
      ip address x.x.x.x
      active
    owner me
       content sticky9001
         vip address x.x.x.x
         protocol tcp
         url "/*"
         port 9001
         add service tomcat-1
         add service tomcat-2
         advanced-balance arrowpoint-cookie
         active
       content sticky9002
         vip address x.x.x.x
         protocol tcp
         url "/*"
         port 9002
         add service tomcat-1
         add service tomcat-2
         advanced-balance arrowpoint-cookie
         active
    With this configuration, the CSS will use the "string" as the cookie value. So if the client were to recieve set-cookie: ArrowpointCookie=tomcat1, it should use it for either rule, and end up on tomcat1 accessing either VIP.
    Regards,
    Chris

  • How to get a server name through the load balancer

    Hi.
    I'd like to get the server name where is my application installed. There are some servers and clients access there throuth the load balancer. When I try to get it with request.getServerName(), I get the virtual address of the load balancer.
    Any suggestions?
    Thanks.

    Dear Sikindar;
    THanks for your cooperation, but I believe that these Tcodes will eb helpful if I know the table name, actually we don't know its name and that's what I'm asking about, how can I get the table name for the ABAPer?
    Appreciating your cooperation.
    Best Regards;
    Lobna

  • How to config in this architecture to achive load balance?

    We have a XI which has a dialog instance.now we use the XI to connect to R3 system using abap proxy and to a no-sap system using JDBC.
    no-sap sys(DB2)->JDBC adapter<-xi(CI+Di)->r3
    The question is how to achive load balance,using web-dispatcher or other method?
    Thanks in advance!

    HI,
    See the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0332d790-0201-0010-46b1-a0530fe87c1f
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30f8bd90-0201-0010-dd9a-c8a7f52c47aa
    Regards
    Chilla

Maybe you are looking for

  • Customer service regarding credit card mishandling possible credit fraud

    To whom it may concern, On Tue morning I placed a order for a sprint prepaid galaxy s3 and a go pro hero package through the early black friday preview deal.  I had both items in my cart and checked out the go pro package with promo code.  I then imm

  • TDS on Rent

    At the time of calculating the TDS on Rent, system deduct TDS on Service tax amount also. But according to Govt. Circular, TDS should be deducted only on Rent (excluding Service Tax). What configuration should be made?

  • Slow Safari startup

    Hi I have been experiencing slow start up of Safari in my Macbook Pro (13in, mid 2010) How do I address this situation? Appreciate your inputs. Thanks.

  • How to install ARD into 10.7.3

    I am trying to install apple remote desktop 3.3.  But I am unable to select HD as the installation drive.  Receive message "Remote Desktop can't be installed on this disk.  This software requires Mac OS X version 10.6"  In fact, I am running 10.7.3.

  • Phone shutting down at random times

    I have been experiencing iPhone shutting down on its own at random times. During times when I am using just the iPod function to listen to music, other times when I am on a call. When I play music the iphone screen actually goes completely black with