users@glassfish.java.net

Re: Actrivating backup lb in 2 server clustered enviroment

From: <glassfish_at_javadesktop.org>
Date: Sun, 21 Sep 2008 16:16:44 PDT

The application(s) need to be enabled also on the LB tier. I think you are missing that. Please use <a href="http://docs.sun.com/app/docs/doc/820-4046/enable-http-lb-application-1?a=view">enable-http-lb-application</a> to enable the clusterjsp application.

Each application-ref has a lb-enabled flag that indicates if an application is exposed in the LB tier or not. Refer to domain.xml DTD:
    <!ELEMENT application-ref EMPTY>
    <!ATTLIST application-ref
        enabled %boolean; "true"
        virtual-servers CDATA #IMPLIED
        lb-enabled %boolean; "false"
        disable-timeout-in-minutes CDATA "30"
        ref CDATA #REQUIRED>

Looking at the loadbalancer.xml DTD, each cluster has zero or more web-module.
    <!ELEMENT loadbalancer (cluster*, property*)>
    <!ELEMENT cluster (instance*, web-module*, health-checker?)>

Please make sure that clusterjsp shows up in the exported loadbalancer.xml file as a web-module. Your exported loadbalancer.xml should look something similar to the following:

<!DOCTYPE loadbalancer PUBLIC "-//Sun Microsystems Inc.//DTD Sun One Application Server 8.1//EN"
"sun-loadbalancer_1_2.dtd">
<loadbalancer>
     <cluster name="cluster1" policy="round-robin">
        <instance name="instance1" enabled="true" disable-timeout-in-minutes="60"
                        listeners="http://instance-one-host:instance-one-port" weight="100"/>
        <instance name="instance2" enabled="true" disable-timeout-in-minutes="60"
                        listeners="http://instance-two-host:instance-two-port weight="100"/>
       <web-module context-root="clusterjsp" enabled="true" disable-timeout-in-minutes="60"
                        error-url="sun-http-lberror.html" />
        <health-checker url="/" interval-in-seconds="10" timeout-in-seconds="30" />
    </cluster>

    <property name="reload-poll-interval-in-seconds" value="60"/>
    <property name="response-timeout-in-seconds" value="30"/>
    <property name="https-routing" value="true"/>
    <property name="require-monitor-data" value="false"/>
    <property name="active-healthcheck-enabled" value="false"/>
    <property name="number-healthcheck-retries" value="3"/>
    <property name="rewrite-location" value="true"/>
</loadbalancer>

Hope this helps.

--
Nazrul
[Message sent by forum member 'ai109478' (ai109478)]
http://forums.java.net/jive/thread.jspa?messageID=300631