The discovery API is not modularized enough to use it outside of the Elasticsearch context. I would simply use something like Zookeeper, which is built exactly for situations like yours.
Cheers, Ivan On Mar 7, 2015 7:03 PM, "Pierre de Soyres" <pdesoy...@gmail.com> wrote: > Hello, > > I would like to know if I can use the zen-dicovery API of elasticsearch > for a totally different project (using elasticsearch cluster also) but that > also needs to scale horizontaly. I do not want to reinvent the wheel, and > since i'm using elasticsearch library, I would like to take benefit of the > elasticsearch API for nodes detection and master election. > > Thanks by advance > > *Pierre* > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/659be669-8a25-47bb-8258-08dd1e1e3e59%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/659be669-8a25-47bb-8258-08dd1e1e3e59%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDiOX9vSPYzcVBCQ5Yb1EKEAKCLf38BXN%2Bq4yboix4Efw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.