When multiple nodes need to communicate to handle a query, what protocol do they use?


(Swaraj Banerjee-2) #1

When multiple nodes need to communicate to handle a query, what protocol do
they use?

If I issue a search request to an index that lives on multiple shards (that
are on separate nodes), I send the request to ES using an HTTP REST API w/
JSON. Do ES nodes within a cluster also communicate with each other over
HTTP w/ JSON? If not, what is the protocol used?

Thanks,
Swaraj

--
Please update your bookmarks! We have moved to https://discuss.elastic.co/

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/ec3a27f5-626e-4cd6-b445-89390b3cb988%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Nik Everett) #2

On Thu, May 21, 2015 at 12:49 PM, Swaraj Banerjee swaraj@expectlabs.com
wrote:

When multiple nodes need to communicate to handle a query, what protocol do

they use?

If I issue a search request to an index that lives on multiple shards
(that are on separate nodes), I send the request to ES using an HTTP REST
API w/ JSON. Do ES nodes within a cluster also communicate with each other
over HTTP w/ JSON? If not, what is the protocol used?

Thanks,
Swaraj

You should probably go over to discuss.elastic.co for questions from here
on out - this list is deprecated.

Elasticseach uses its own binary-ish protocol that it runs around port
9300. Most stuff is hand encoded and decoded into relatively compact binary
representations. The queries are sent as (kinda, mostly) text inside the
binary and parsed on the data nodes.

Nik

--
Please update your bookmarks! We have moved to https://discuss.elastic.co/

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/CAPmjWd13dzd8ConsKnQpB4etdmBY2eNEnqLqwz4VPMXHNOh_7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3