Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Port 9300 on Elasticsearch

According to the documentation, Elasticsearch reserves port 9300-9400 for cluster communication and port 9200-9300 for accessing the elasticsearch APIs. You get the impression that these ranges are inclusive: so port 9300 is part of the first and the second port range.

Now, my IT ops department won't like that, so hopefully I got it wrong. Anyone knows?

like image 562
Wilfred Springer Avatar asked Jul 08 '14 06:07

Wilfred Springer


People also ask

What is the port number for Elasticsearch?

Elasticsearch ports By default, Elasticsearch will use port 9200 for requests and port 9300 for communication between nodes within the cluster.

Is Elasticsearch TCP or UDP?

By default, Elasticsearch uses two ports to listen to external TCP traffic; Port 9200 is used for all API calls over HTTP. This includes search and aggregations, monitoring and anything else that uses a HTTP request.

How do I change the Elasticsearch port?

Just change the http. port in elasticsearch. yml (commonly in /etc/elasticsearch/elasticsearch. yml ) and remove # from the front and restart your server.

How do I check my Elasticsearch port?

Once you have Elasticsearch installed and running on your local machine, you can test to see that it's up and running with a tool like curl. By default, Elasticsearch will be running on port 9200. Typically the machine will have a name like localhost .


1 Answers

Elasticsearch will bind to a single port for both HTTP and the node/transport APIs.

It'll try the lowest available port first, and if it is already taken, try the next. If you run a single node on your machine, it'll only bind to 9200 and 9300.

See also: Elasticsearch Internals: Networking Introduction

like image 82
Alex Brasetvik Avatar answered Sep 17 '22 04:09

Alex Brasetvik