Support for Hazelcast clustering

15 views
Skip to first unread message

Jim Marino

unread,
Nov 22, 2015, 10:52:46 AM11/22/15
to fabric3
Hi,

I've added support for Hazelcast-based clustering in the 3.0 line. This can replace the etcd-based clustering for users who don't want to run a separate etcd installation. The advantage of Hazelcast is it allows F3 runtimes to autodiscover the cluster. Configuring Hazelcast (optional) is done by adding a Hazelcast config file at <runtime>/config/hazelcast.xml.

The Hazelcast extension hasn't been extensively tested but leadership election and address propagation should be working. 

I was also thinking about adding a Hazelcast binding in the same extension to support distributed channels.

Comments, suggestions and testing are welcome.

Jim

Tomáš Fecko

unread,
Nov 23, 2015, 6:48:40 AM11/23/15
to fabric3
Hi,

we are testing etcd and now we tried hazelcast. What we have a problem with, is that it doesn't look like the domain nodes knows about each other...

There is no log with etcd, or with hazelcast. It looks like the nodes from 2 domains joined same cluster - it's possible that it's just a multicast group and domain membership is above that?

I tried it with simple setup, 1 server, 2 domains (A, B), 1 node in domain A, 2 nodes in domain B

here are the logs with hazelcast and etcd...
etcd.zip
hazelcast.zip

Jim Marino

unread,
Nov 24, 2015, 1:59:38 AM11/24/15
to fabric3
Hi Tomas,

Thanks for such a quick turnaround. I'll test this today and see if I can check in a fix. 

Thanks!

--
You received this message because you are subscribed to the Google Groups "fabric3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric3+u...@googlegroups.com.
To post to this group, send email to fab...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabric3/509d1e44-42af-48f8-9a81-45fc97be14f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jim Marino

unread,
Nov 25, 2015, 6:19:04 AM11/25/15
to fabric3
Hi Tomas,

I've updated the Hazelcast to display more log output (set the runtime monitor to debug) as well as fixed a few problems with leader election.

Can you try Hazelcast and let me know how it works? Once we have that working, I'll also updated the etcd extension.

Jim

Tomáš Fecko

unread,
Nov 25, 2015, 9:24:02 AM11/25/15
to fabric3
Hi Jim,

I tried hazelcast, looks like the domains, that are started are mixed together. 
If there are 2 domains in single multicast reachable network, they will interconnect - which is not desirable. 
For 2 domains, I would expect 2 nodes, where domain scoped composites could be deployed.


I think jgroups were using something they call channels, which allowed asymetric clustering over the same network (like having two separate infinispan clusters on single subnet).



Tomas
configs.zip
hazelcast-logs.zip

Jim Marino

unread,
Nov 25, 2015, 10:12:38 AM11/25/15
to fabric3
Hi Tomas,

I was thinking domains would be run on separate Hazelcast setups, e.g using different multicast addresses. This would mean defining the multicast address in the Hazelcast config.

Is that how you have your setup or were you thinking of using Hazelcast differently?

Jim


--
You received this message because you are subscribed to the Google Groups "fabric3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric3+u...@googlegroups.com.
To post to this group, send email to fab...@googlegroups.com.

Tomáš Fecko

unread,
Nov 25, 2015, 10:27:45 AM11/25/15
to fabric3
I should have think of that, creation of custom config should suffice...

thanx, I will test that
Reply all
Reply to author
Forward
0 new messages