Elasticsearch port 9200 or 9300?


#1

Can anyone explain which port number is elasticsearch listening?

When I am running elasticsearch and I can see

tcp6       0      0 :::9200                 :::*                    LISTEN      12390/java
tcp6       0      0 :::9300                 :::*                    LISTEN      12390/java

Also for discovery.zen.ping.unicast.hosts, is it 9300?

For ELB of eligible masters should add both listeners for 9200 and 9300?


(David Pilato) #2

9200 is for REST.
9300 for nodes communication...


#3

thanks for the reply.

so both of them should be open on the elasticsearch eligible master nodes?


(David Pilato) #4

At least 9300.

For 9200, it's up to you. It depends if you want to send REST requests to that node.


Port Numbers ES logstash
(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.