Installation guide

Using the Load Balancing Plug-in: libresonate
62 iPlanet Web Server, Enterprise Edition Release Notes June 20, 2001
Service method="(GET|HEAD)" fn="dosleep" duration="10"
type="magnus-internal/sleep"
The argument duration tells the server how long to sleep for each request in seconds.
Now start your server and you should be ready to go to test the load balancer plug-in. The NSAPI
will keep the threads busy long enough to similar whatever load you want. The plug-in is tested by
retrieving the
.sleep file you created earlier.
Sample Configuration
Nothing special needs to be done in magnus.conf. The only setting that will affect the plug-in is
LogVerbose on. Below is a sample obj.conf.
# Sun Netscape Alliance - obj.conf
# You can edit this file, but comments and formatting changes
# might be lost when the admin server makes changes.
Init fn="flex-init" access="/usr/netscape/ent41/https-resonate/logs/access"
format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%]
\"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
%Req->srvhdrs.content-length%"
Init fn="load-types" mime-types="mime.types"
Init fn="load-modules" funcs="init-resonate"
shlib="/usr/netscape/ent41/bin/https/lib/libresonate.so"
Init name="sleep" MinThreads="1" MaxThreads="10" EarlyInit="yes"
fn="thread-pool-init"
Init fn="init-resonate" ThreadPool="sleep" EventExePath="/tools/ns/bin/perl5"
LateInit="yes" CmdLow="/usr/netscape/ent41/plugins/loadbal/CmdLow.pl"
CmdHigh="/usr/netscape/ent41/plugins/loadbal/CmdHigh.pl" HighThreshold="2"
LowThreshold="5"
Init fn="load-modules" funcs="dosleep"
shlib="/usr/netscape/ent41/plugins/nsapi/examples/dosleep.so" pool="sleep"
Init fn="load-modules"
shlib="/usr/netscape/ent41/bin/https/lib/libNSServletPlugin.so"
funcs="NSServletEarlyInit,NSServletLateInit,NSServletNameTrans,NSServletService"
shlib_flags="(global|now)"
Init fn="NSServletEarlyInit" EarlyInit="yes"
Init fn="NSServletLateInit" LateInit="yes"
<Object name="default">
NameTrans fn="NSServletNameTrans" name="servlet"
NameTrans fn="pfx2dir" from="/servlet" dir="/usr/netscape/ent41/docs/servlet"
name="ServletByExt"
NameTrans fn="pfx2dir" from="/ns-icons" dir="/usr/netscape/ent41/ns-icons"
name="es-internal"