Sun Java System Application Server Enterprise Edition 8.1 2005Q2 高可用性管理指南

對 Sun Java System Web Server 的修改

安裝程式會將以下項目增加至 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>

在上述程式碼中,lbpluginObject 的唯一識別名稱;web_server_install_dir/web_server_instance/config/loadbalancer.xml 是虛擬伺服器 (負載平衡器即配置要在此執行) 的 XML 配置檔案位置。

安裝之後,請依循設定 HTTP 負載平衡中的說明配置負載平衡器。