On Fri, Mar 1, 2013 at 9:45 AM, Tim Fox <
timv...@gmail.com> wrote:
> Hello All,
>
> We are currently using HazelCast in the Vert.x project to distribute
> subscription information across the cluster.
>
> I am currently looking at implementing HA support in Vert.x, and would
> like to be able to use Hazelcast for that too.
>
> I have a couple of questions.
>
> 1. For Vert.x HA, applications can be run on certain Vert.x nodes, and
> if those nodes fail we need to be able to detect that so we can
> restart those applications on different nodes. Consequently we need
> some way of Hazelcast providing a hook into it's internal group
> management logic so it can notify us of cluster membership changes
> (node join, node leave etc). I can't see any way of registering a
> listener for these kind of events on the Hazelcast API...
Have a look at the Cluster:
http://www.hazelcast.com/javadoc/com/hazelcast/core/Cluster.html
The cluster can be accessed from the HazelcastInstance.
> 2. Split brain. I can see that Hazelcast supports *merging* of
> partitions after they have healed from a network partition but it does
> not appear to detect and prevent split brain in the first place.
I'm no expert in this area, so could be that I'm wrong.
But a split brain can't be detected in the first place, since only when
split parts of the cluster refind each other, the cluster know that
a split brain has happened.
> Common techniques for doing this usually involve a quorum. I.e.
> partitioned sub-clusters will automatically shut down if they detect
> that less than a quorum of members is visible. I can't see any support
> for that currently in Hazelcast. Are there plans to implement
> something like this?
For 2.x I don't think there will be support for that.
Hazelcast 3.x exposes a new feature: the SPI
The SPI exposes the infrastructure used by e.g. the Map, Lock, Queue etc.
But since the SPI is now exposed to the outside world, custom datastructures
can be written on top of it. E.g. a quorum based map implementation.
I think the quorum based functionality could be something very interesting
for the future of Hazelcast.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups "Hazelcast" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
hazelcast+...@googlegroups.com.
> To post to this group, send email to
haze...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/hazelcast?hl=en-US.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>