Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure clustering for EI #11

Merged
merged 2 commits into from
Sep 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 25 additions & 31 deletions modules/ei/templates/carbon-home/conf/axis2/axis2.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,14 @@
-->
<clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent"
enable="true">

<!--
This parameter indicates whether the cluster has to be automatically initalized
when the AxisConfiguration is built. If set to "true" the initialization will not be
done at that stage, and some other party will have to explictly initialize the cluster.
-->
<parameter name="AvoidInitiation">true</parameter>

<parameter name="clusteringPattern">nonWorkerManager</parameter>
<!--
The membership scheme used in this setup. The only values supported at the moment are
"multicast" and "wka"
Expand All @@ -516,24 +516,43 @@
-->
<parameter name="membershipScheme">aws</parameter>


<parameter name="accessKey"><%= @aws_access_key %></parameter>
<parameter name="secretKey"><%= @aws_secret_key %></parameter>
<parameter name="securityGroup"><%= @aws_security_group %></parameter>
<parameter name="region"><%= @aws_region %></parameter>
<parameter name="tagKey"><%= @aws_tag_key %></parameter>
<parameter name="tagValue"><%= @aws_tag_value %></parameter>


<!--<parameter name="licenseKey">xxx</parameter>-->
<!--<parameter name="mgtCenterURL">http://localhost:8081/mancenter/</parameter>-->

<!--
The clustering domain/group. Nodes in the same group will belong to the same multicast
domain. There will not be interference between nodes in different groups.
-->
<parameter name="domain">wso2.carbon.domain</parameter>

<!-- The host name or IP address of this member -->
<parameter name="localMemberHost"><%= @local_member_host %></parameter>

<!--
The TCP port used by this member. This is the port through which other nodes will
contact this member
-->
<parameter name="localMemberPort">5701</parameter>

<!--Properties specific to this member-->
<parameter name="properties">
<property name="backendServerURL" value="https://${hostName}:${httpsPort}/services/"/>
<property name="mgtConsoleURL" value="https://${hostName}:${httpsPort}/"/>
<!-- Worker Setup-->
<property name="subDomain" value="worker"/>
<!-- Manger Setup with Port Mapping-->
<!--property name="port.mapping.8280" value="9764"/>
<property name="port.mapping.8243" value="9444"/>
<property name="subDomain" value="mgt"/>-->
</parameter>

<!--<parameter name="licenseKey">xxx</parameter>-->
<!--<parameter name="mgtCenterURL">http://localhost:8081/mancenter/</parameter>-->

<!-- The multicast address to be used -->
<!--<parameter name="mcastAddress">228.0.0.4</parameter>-->

Expand All @@ -551,9 +570,7 @@
<!--
<parameter name="mcastBindAddress">127.0.0.1</parameter>
-->
<!-- The host name or IP address of this member -->

<parameter name="localMemberHost"><%= @local_member_host %></parameter>

<!--
The bind adress of this member. The difference between localMemberHost & localMemberBindAddress
Expand All @@ -563,13 +580,6 @@
<!--
<parameter name="localMemberBindAddress">127.0.0.1</parameter>
-->

<!--
The TCP port used by this member. This is the port through which other nodes will
contact this member
-->
<parameter name="localMemberPort">5701</parameter>

<!--
The bind port of this member. The difference between localMemberPort & localMemberBindPort
is that localMemberPort is the one that is advertised by this member, while localMemberBindPort
Expand All @@ -578,22 +588,6 @@
<!--
<parameter name="localMemberBindPort">4001</parameter>
-->

<!--
Properties specific to this member
-->
<parameter name="properties">
<property name="backendServerURL" value="https://${hostName}:${httpsPort}/services/"/>
<property name="mgtConsoleURL" value="https://${hostName}:${httpsPort}/"/>
<!-- Manger Setup with Port Mapping-->
<!--property name="port.mapping.8280" value="9764"/>
<property name="port.mapping.8243" value="9444"/>
<property name="subDomain" value="mgt"/-->

<!-- Worker Setup-->
<!--property name="subDomain" value="worker"/-->
</parameter>

<!--
The list of static or well-known members. These entries will only be valid if the
"membershipScheme" above is set to "wka"
Expand Down