...
Code Block |
---|
|
<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 |
---|
|
<!-- 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 |
---|
|
<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 |
---|
|
<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.
...