Callback method for java, if any of the node is down

Hi,

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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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.

--Alex

On Fri, Nov 22, 2013 at 6:33 AM, Akram Hussain
akram.hussain.sk@gmail.comwrote:

Hi,

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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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.

--Alex

On Fri, Nov 22, 2013 at 6:33 AM, Akram Hussain <akram.hu...@gmail.com<javascript:>

wrote:

Hi,

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.

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hi,

Gentle Remainder.

Regards,
Akram.

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.

--Alex

On Fri, Nov 22, 2013 at 6:33 AM, Akram Hussain akram.hu...@gmail.comwrote:

Hi,

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/cf66016e-75be-4313-9ac5-620082213c27%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.