I have not installed nginx,tomcat on elasticsearch nodes.
These are behind amazon elb.
cluster is detecting nodes automatically.
My need.
elb start putting queries on node when it is actually ready to take traffic. Usually shards reallocation takes time depending on the size of the shard.
On 24 June 2014 20:29, Tarun Jangra tarun@izap.in wrote:
hi guys,
Scenario1.
I have 3 es nodes.
I have not installed nginx,tomcat on elasticsearch nodes.
These are behind amazon elb.
cluster is detecting nodes automatically.
My need.
elb start putting queries on node when it is actually ready to take
traffic. Usually shards reallocation takes time depending on the size of
the
shard.
how if node starts getting queries during this reallocating period. Is there anything i am suppose to loose? Like write can also occur during reallocations.
On 24 June 2014 20:39, Tarun Jangra tarun@izap.in wrote:
Thanks mark,
how if node starts getting queries during this reallocating period. Is
there
anything i am suppose to loose? Like write can also occur during
reallocations.
You can use ELB ping functionality along with a custom elasticsearch plugin
to achieve this functionality. You can configure your ping path to be
something like /_plugin/<custom_pluginname> and write your plugin in such a
way that it returns HTTP 200 only when you want your node to serve the
traffic and HTTP 503/500 when you don't want the node to serve traffic.
See
for more details on ELB pings and
for troubleshooting.
Thanks,
Himanshu.
On Tue, Jun 24, 2014 at 4:14 PM, Tarun Jangra tarun@izap.in wrote:
In that case, i don't think i should bother if node is up and reallocation
is
done.
Well currently i've used /_cluster/health for this. And since elb suppose to execute as per IP. And once i start getting response. I means it is up. But it is not identifying reallocating shard process.
I like your idea. that plugin can be programmed in such a way. that it should start sending HTTP 200 only when node has done sharding etc.
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.