Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
16.3. Initial clustering configuration
Task: Configure Required Elements
Complete this task to configure the basic elements required for clustering using Sun Java Web Server (SJWS) and NSAPI.
Prerequisites
- Native zip archive extracted to the directory
/tmp/connectors/. The directory/tmp/connectors/jboss-ep-5.2/native/is referred to as NATIVE in this procedure. - The directory
/tmp/connectorsis used as the storage location for logs, properties files, and NSAPI locks. - SJWS is installed in one of the locations specified in the SJWS file path abbreviation in Section 1, “File Name Conventions”.
Disable servlet mappings
Under Built In Servlet Mappings in theSJWS/PROFILE/config/default-web.xmlfile, disable the mappings for the following servlets, by commenting them out as shown:- default
- invoker
- jsp
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Load the required modules and properties
Append the following lines to theSJWS/PROFILE/config/magnus.conffile:Init fn="load-modules" funcs="jk_init,jk_service" shlib="NATIVE/lib/nsapi_redirector.so" shlib_flags="(global|now)" Init fn="jk_init" worker_file="/tmp/connectors/workers.properties" log_level="debug" log_file="/tmp/connectors/nsapi.log" shm_file="/tmp/connectors/jk_shm"
Init fn="load-modules" funcs="jk_init,jk_service" shlib="NATIVE/lib/nsapi_redirector.so" shlib_flags="(global|now)" Init fn="jk_init" worker_file="/tmp/connectors/workers.properties" log_level="debug" log_file="/tmp/connectors/nsapi.log" shm_file="/tmp/connectors/jk_shm"Copy to Clipboard Copied! Toggle word wrap Toggle overflow These lines define the location of thensapi_redirector.somodule used by thejk_initandjk_servicefunctions, and the location of theworkers.propertiesfile, which defines the worker nodes and their attributes.Note
Thelibdirectory in theNATIVE/lib/nsapi_redirector.sopath applies only to 32-bit machines. On 64-bit machines, this directory is calledlib64.