Hi All,

Recently few people informed me offline that this feature is not working
for Carbon 4.2.0 based products properly. I tested this with ESB 4.8.1 and
its working as expected. Please make sure following configurations are set
properly:

<clustering
class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent"
                enable="true">
    ...
    <parameter name="membershipScheme">private-paas</parameter>
    <parameter
name="membershipSchemeClassName">org.wso2.carbon.ppaas.PrivatePaaSBasedMembershipScheme</parameter>
    <parameter name="clusterIds">cluster-1,cluster-2</parameter>

    <parameter name="localMemberHost">10.100.5.8</parameter>
    <parameter name="localMemberPort">4000</parameter>
    ...
</clustering>

Please note that we need to use correct local member hostnames and the same
local member port on all nodes.

Thanks

On Wed, Aug 12, 2015 at 3:26 PM, Imesh Gunaratne <im...@wso2.com> wrote:

> Hi,
>
> I have now implemented $subject [1] and also provided a diff for Carbon
> Kernel patch0012 [2]. This feature provides functionality to automatically
> discover Carbon clusters via the topology when running on Private PaaS.
>
> *How it works*
>
> Once a Carbon server starts it will wait until the topology gets
> initialized via the message broker. Then it will query the member IP
> addresses of the given cluster(s) in the topology. Thereafter Hazelcast
> network configuration will be initialized with the above IP addresses. As a
> result the Hazelcast instance of the above Carbon server will get connected
> all the other members in the cluster. In addition once a new member is
> added to the cluster, all the other members will get connected to the new
> member.
>
> *Installation*
>
> Apply Carbon kernel patch0012. This includes a modification in the Carbon
> Core component for allowing to add third party membership schemes.
>
> Copy following JAR files to the dropins directory of the Carbon server:
>
> activemq_client_5.10.0_1.0.0.jar
> geronimo_j2ee_management_1.1_spec_1.0.1_1.0.0.jar
> hawtbuf_1.9_1.0.0.jar
> org.apache.commons.lang3_3.1.0.jar
> org.apache.stratos.common-4.1.0.jar
> org.apache.stratos.messaging-4.1.0.jar
> private-paas-membership-scheme-4.1.0-SNAPSHOT.jar
>
> Update axis2.xml with the following configuration, cluster id parameter
> need to contain the cluster id of the relevant carbon server cluster:
> <clustering
> class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent"
>                 enable="true">
>     ...
>     <parameter name="membershipScheme">private-paas</parameter>
>     <parameter
> name="membershipSchemeClassName">org.wso2.carbon.ppaas.PrivatePaaSBasedMembershipScheme</parameter>
>     <parameter name="clusterIds">cluster-1,cluster-2</parameter>
>     ...
> </clustering>
>
> [1]
> https://github.com/wso2/product-private-paas/tree/master/extensions/carbon/ppaas-membership-scheme
> [2] https://wso2.org/jira/browse/CARBON-15340
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to