users@glassfish.java.net

Re: Help with Load Balancer

From: Kshitiz Saxena <Kshitiz.Saxena_at_Sun.COM>
Date: Tue, 01 Apr 2008 12:28:52 +0530

##BEGIN EE LB Plugin Parameters
*Init fn="load-modules" shlib="/opt/sunJavaSystemWebServer/plugins/lbplugin/bin/libpassthrough.so" funcs="init-passthrough,service-passthrough,name-trans-passthrough" Thread="no"*
Init fn="init-passthrough"
##END EE LB Plugin Parameters

The above should be single line.

Thanks,
Kshitiz

glassfish_at_javadesktop.org wrote:
> Thanks.
>
> [b]loadbalancer.xml[/b]
> <loadbalancer>
> <cluster name="cluster1" policy="round-robin">
> <instance name="platina1" enabled="true" disable-timeout-in-minutes="60"
> listeners="http://platina1:38080" weight="100"/>
> <instance name="platina2" enabled="true" disable-timeout-in-minutes="60"
> listeners="http://platina2:38080" 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>
>
> [b]Changes I made to obj.conf[/b]
> I added the following line before the first appearence of "NameTrans":
> NameTrans fn="name-trans-passthrough" name="lbplugin" config-file="/opt/sunJavaSystemWebServer/https-perena/config/loadbalancer.xml"
>
> I added the following lines in the end of the file:
> <Object name="lbplugin">
> ObjectType fn="force-type" type="magnus-internal/lbplugin"
> PathCheck fn="deny-existence" path="*/WEB-INF/*"
> Service type="magnus-internal/lbplugin" fn="service-passthrough"
> Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
> </Object>
>
> [b]magnus.conf[/b]
> #
> # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
> # Use is subject to license terms.
> #
>
> ##BEGIN EE LB Plugin Parameters
> Init fn="load-modules" shlib="/opt/sunJavaSystemWebServer/plugins/lbplugin/bin/libpassthrough.so" funcs="init-passthrough,service-passthrou
> gh,name-trans-passthrough" Thread="no"
> Init fn="init-passthrough"
> ##END EE LB Plugin Parameters
>
> Init fn="load-modules" shlib="/opt/sunJavaSystemWebServer/lib/libj2eeplugin.so" shlib_flags="(global|now)"
>
>
> Webserver was running without error when lbplugin was not installed.
>
> Thanks.
> [Message sent by forum member 'alfsancho' (alfsancho)]
>
> http://forums.java.net/jive/thread.jspa?messageID=266800
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>