Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
16.4. Configure a basic cluster with NSAPI
Task: Configure a Basic Cluster with NSAPI
Complete this task to configure a basic cluster, where requests for particular paths are forwarded to particular worker nodes. The procedure specifies that worker02 serves the
/nc path, while worker01 serves /status and all other paths defined in the first part of the obj.conf file.
Prerequisites
- SJWS is installed in one of the locations specified in the SJWS file path abbreviation in Section 1, “File Name Conventions”.
Define the paths to serve via NSAPI
Edit theSJWS/PROFILE/config/obj.conffile. Define paths that should be served via NSAPI at the end of thedefaultObject definition, as shown:Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can map the path of any application deployed on your JBoss Enterprise Platform instance in thisobj.conffile. In the example code, the/ncpath is mapped to an application deployed under the namenc.Define the worker that serves each path
Edit theSJWS/PROFILE/config/obj.conffile and add the followingjknsapiObject definition after thedefaultObject definition.Copy to Clipboard Copied! Toggle word wrap Toggle overflow ThisjknsapiObject defines the worker nodes used to serve each path that was assigned toname="jknsapi"in thedefaultObject.In the example code, the third Service definition does not specify apathvalue, so the worker node defined (worker01) serves all of the paths assigned tojknsapiby default. In this case, the first Service definition in the example code, which assigns the/statuspath toworker01, is superfluous.Define the workers and their attributes
Create aworkers.propertiesfile in the location you defined in Step 2.Define the list of worker nodes and each worker node's properties in this file:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart the server
Once your Sun Java System Web Server instance is configured, restart it so that your changes take effect.For Sun Java System Web Server 6.1:SJWS/PROFILE/stop SJWS/PROFILE/start
SJWS/PROFILE/stop SJWS/PROFILE/startCopy to Clipboard Copied! Toggle word wrap Toggle overflow For Sun Java System Web Server 7.0:SJWS/PROFILE/bin/stopserv SJWS/PROFILE/bin/startserv
SJWS/PROFILE/bin/stopserv SJWS/PROFILE/bin/startservCopy to Clipboard Copied! Toggle word wrap Toggle overflow