インストールプログラムは、Sun Java System Web Server の設定ファイルに次のエントリを追加します。
Web サーバーインスタンスの magnus.conf ファイルに、次のエントリを追加します。
##EE lb-pluginInit fn="load-modules" shlib="web_server_install_dir/plugins/lbplugin/bin/libpassthrough.so" funcs="init-passthrough,service-passthrough,name-trans-passthrough" Thread="no" Init fn="init-passthrough" ##end addition for EE lb-plugin
Web サーバーインスタンスの obj.conf ファイルに、次のエントリを追加します。
<Object name=default> NameTrans fn="name-trans-passthrough" name="lbplugin" config-file="web_server_install_dir/web_server_instance/config/loadbalancer.xml" <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>
このコードでは、lbplugin は、Object を一意に識別する名前であり、web_server_install_dir/web_server_instance/config/loadbalancer.xml は、ロードバランサが動作するように設定されている仮想サーバーの XML 設定ファイルの場所です。
インストールが完了したら、「HTTP 負荷分散の設定」の説明に従ってロードバランサを設定します。