Hi,
I would like to know if there is any Java API or code to dispatch/route a
(REST)request coming on a generic node to the active master node.
I have a REST plugin getting the requests in different cluster nodes, but
I'd like to dispatch all the requests to the master node if exists and
having only the master node processing and answering them. Is this feasible
within an elasticsearch plugin?
Thanks
kind regards
Marc
You accept the REST request on any node, and create a subclass of a
MasterNodeOperationRequest in your rest handler, which is then
automatically send only to the master.
Hope this helps for a start.
If this is feasible highly depends on your usecase, if it makes send to
have this additional roundtrip and overloading on your master node...
Hi,
I would like to know if there is any Java API or code to dispatch/route a
(REST)request coming on a generic node to the active master node.
I have a REST plugin getting the requests in different cluster nodes, but
I'd like to dispatch all the requests to the master node if exists and
having only the master node processing and answering them. Is this feasible
within an elasticsearch plugin?
Thanks
kind regards
Marc
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.