Is it possible, to have some Listener when any one of the node in the
cluster is down.
As a requirement, If the cluster is down, application should be stopped,
now it is done by using thread, which checks cluster health for every 10
minutes.
Instead of this, can we have some call back listener to java code, so that
once any node is down, the call back method will be called.
the ZenDiscovery class in elasticsearch uses listeners for node and master
failures, if you want to go that road. However I am really wondering, why
do you want to stop the application? Wouldnt it make more sense to have a
cluster, which has several replicas of each shard, so that in the case of
one node going down you do not have data loss or even cluster stability
issues?
Would be interested in your use case and the motivation behind it, as it
sounds from my naive outside point of view, that this is not the best
solution to solve.
Is it possible, to have some Listener when any one of the node in the
cluster is down.
As a requirement, If the cluster is down, application should be stopped,
now it is done by using thread, which checks cluster health for every 10
minutes.
Instead of this, can we have some call back listener to java code, so that
once any node is down, the call back method will be called.
I mean the cluster, if total cluster servers are not available/closed, just
get call back method saying cluster nodes are not avaialble.
How to register with ZenDiscovery class, can you suggest me the way it
needs to be achieved.
Regards,
Akram.
On Friday, November 22, 2013 2:02:13 PM UTC+5:30, Alexander Reelsen wrote:
Hey,
the ZenDiscovery class in elasticsearch uses listeners for node and master
failures, if you want to go that road. However I am really wondering, why
do you want to stop the application? Wouldnt it make more sense to have a
cluster, which has several replicas of each shard, so that in the case of
one node going down you do not have data loss or even cluster stability
issues?
Would be interested in your use case and the motivation behind it, as it
sounds from my naive outside point of view, that this is not the best
solution to solve.
Is it possible, to have some Listener when any one of the node in the
cluster is down.
As a requirement, If the cluster is down, application should be stopped,
now it is done by using thread, which checks cluster health for every 10
minutes.
Instead of this, can we have some call back listener to java code, so
that once any node is down, the call back method will be called.
Regards,
Akram.
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
On Friday, November 22, 2013 5:03:00 PM UTC+5:30, Akram Hussain wrote:
Hi,
I mean the cluster, if total cluster servers are not available/closed,
just get call back method saying cluster nodes are not avaialble.
How to register with ZenDiscovery class, can you suggest me the way it
needs to be achieved.
Regards,
Akram.
On Friday, November 22, 2013 2:02:13 PM UTC+5:30, Alexander Reelsen wrote:
Hey,
the ZenDiscovery class in elasticsearch uses listeners for node and
master failures, if you want to go that road. However I am really
wondering, why do you want to stop the application? Wouldnt it make more
sense to have a cluster, which has several replicas of each shard, so that
in the case of one node going down you do not have data loss or even
cluster stability issues?
Would be interested in your use case and the motivation behind it, as it
sounds from my naive outside point of view, that this is not the best
solution to solve.
Is it possible, to have some Listener when any one of the node in the
cluster is down.
As a requirement, If the cluster is down, application should be stopped,
now it is done by using thread, which checks cluster health for every 10
minutes.
Instead of this, can we have some call back listener to java code, so
that once any node is down, the call back method will be called.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.