users@glassfish.java.net

Re: Glassfish cluster (load balancing)

From: Kshitiz Saxena <Kshitiz.Saxena_at_Sun.COM>
Date: Mon, 16 Mar 2009 20:05:52 +0530

Did you access both instances separately and validated everything works
fine?

Try enabling monitoring by setting "require-monitor-data" attribute to true.

Thanks,
Kshitiz

glassfish_at_javadesktop.org wrote:
> Hi,
>
> loadbalancer.xml is
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE loadbalancer PUBLIC "-//Sun Microsystems Inc.//DTD Sun Java System Application Server 9.1//EN" "sun-loadbalancer_1_2.dtd">
> <loadbalancer>
> <cluster name="my_cluster" policy="round-robin">
> <instance disable-timeout-in-minutes="30" enabled="true" listeners="<appserver1 port>" name="node_1" weight="100"/>
> <instance disable-timeout-in-minutes="30" enabled="true" listeners="<appserver2 port>" name="node_2" weight="100"/>
> <web-module context-root="/clusterjsp" disable-timeout-in-minutes="30" enabled="true">
> <idempotent-url-pattern url-pattern="*" no-of-retries="3"/>
> </web-module>
> <web-module context-root="MyAppWeb" disable-timeout-in-minutes="30" enabled="true">
> <idempotent-url-pattern url-pattern="*" no-of-retries="3"/>
> </web-module>
> <health-checker interval-in-seconds="10" timeout-in-seconds="120" url="/"/>
> </cluster>
> <property name="response-timeout-in-seconds" value="120"/>
> <property name="reload-poll-interval-in-seconds" value="60"/>
> <property name="https-routing" value="false"/>
> <property name="require-monitor-data" value="false"/>
> <property name="last-exported" value=""/>
> <property name="active-healthcheck-enabled" value="false"/>
> <property name="number-healthcheck-retries" value="3"/>
> <property name="rewrite-location" value="true"/>
> </loadbalancer>
>
> This is same on both the web-servers.
>
> Thanks
> mvrk
> [Message sent by forum member 'mvrk_in' (mvrk_in)]
>
> http://forums.java.net/jive/thread.jspa?messageID=337117
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>