<!--
  ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
    <body>
        <h1>Cluster Management Sample Guide</h1>

        <h2>INTRODUCTION</h2>

        <p>
            We will use this sample to demonstrate the capabilities of WSO2 Web Services Application
            Server in a clustered configuration,
            highlighting the key features that are made possible using the admin.sh/admin.bat
            script.

            When WSAS is configured to run in clustered mode, the deployed services are said to be
            alive in a clustered
            environment. Clustering is enabled by editing the the WSO2WSAS/conf/axis2.xml file.
            i.e. Uncomment the &lt;cluster&gt;
            element. Then restart WSAS.
            Each WSAS instance in the cluster (a.k.a. a node) has the NodeManager service running.
            the script admin.sh/bat in WSO2WSAS_HOME is used to invoke the NodeManagerClient.
        </p>

        <h2>Instruction</h2>

        <p>
            The four scripts given in the folder are samples of how you can use the admin.sh/bat
            script to
            do several things.

            <ol>
                <li>
                    <strong>Reload a Configuration</strong><br/>
                    Copy the reloadconfiguration/reloadconfiguration.bat to WSO2WSAS_HOME/bin and
                    run it.
                    This will reload the Axis2 configuration for all nodes in the cluster
                    with any configuration changes you may have made to the central URL repository &amp;
                    database.

                </li>
                <li>
                <strong>Load Service Groups</strong><br/>
                Copy the loadservicegroups/loadservicegroups.bat to WSO2WSAS_HOME/bin and run it.
                This will load the specified service groups on all nodes from a central URL
                repository
                &amp; database.
                </li>
                <li>
                <strong>Unload Service Groups</strong><br/>
                Copy the unloadservicegroups/unloadservicegroups.bat to WSO2WSAS_HOME/bin and run
                it.
                This will remove the echo &amp; version service groups from all nodes.
                </li>
                <li>
                <strong>Apply Service Policy</strong><br/>
                Copy the applyservicepolicy/applyservicepolicy.bat and policy.xml file to
                WSO2WSAS_HOME/bin and run the script.
                This will apply the specified policy to the version service on all nodes in the
                cluster.
                </li>
            </ol>
        </p>
    </body>
</html>
