Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

1. Download and extract the WSO2 asAS distribution. (Will be referred to as <manager-home>) 

...

10. Start the as instance in the management node.

Note
Info
title

Once the work-manager clustering configurations are added, the management console should be accessed using the URL: https://mgt.as.cloud-test.wso2.com:9444/carbon

...

12. Also, try deploying an artifact through the manager node. You should receive an error since the server looks for the worker node, which is not in the cluster yet.   Although the request is issued through the management node, all requests are served by the worker node(s).

...

Code Block
languagehtml/xml
<members>
   <member>
      <hostName>127.0.0.1</hostName>
      <port>4000</port>
   </member>
</members>
carbon.xml configuration

45. Since multiple WSO2 Carbon-based products are run in same host, to avoid possible port conflicts, the port offset of <worker-home>/repository/conf/carbon.xml should be changed as follows.

Code Block
languagehtml/xml
<!-- Ports offset. This entry will set the value of the ports defined below to the define value + Offset. e.g. Offset=2 and HTTPS port=9443 will set the effective HTTPS port to 9445 -->

<Offset>2</Offset>

56. Update the HostName element as shown below. MgtHostName element is not needed since this node is designated as the worker node.

Code Block
languagehtml/xml
<HostName>as.cloud-test.wso2.com</HostName>

67. Next, configure the SVN-based deployment synchronizer to automatically check-out deployment artifacts from a common SVN repository. The worker nodes of a cluster SHOULD NOT commit (write) artifacts. Therefore, disable AutoCommit property in the deployment synchronizer configuration as follows:

Code Block
languagehtml/xml
<DeploymentSynchronizer>
       <Enabled>true</Enabled>
       <AutoCommit>false</AutoCommit>
       <AutoCheckout>true</AutoCheckout>
       <RepositoryType>svn</RepositoryType>
       <SvnUrl>http://10.100.3.115/svn/repos/as</SvnUrl>
       <SvnUser>wso2</SvnUser>
       <SvnPassword>wso2123</SvnPassword>
       <SvnUrlAppendTenantId>true</SvnUrlAppendTenantId>
</DeploymentSynchronizer>

 78. Start the worker product instance. The workerNode system property must be set to true when starting the workers in a cluster. For example,

Code Block
sh wso2server.sh -DworkerNode=true

 89. Refer to the logs to ensure that the product instance has successfully joined the cluster. 

...