Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Latest commit

 

History

History
19 lines (13 loc) · 535 Bytes

options.md

File metadata and controls

19 lines (13 loc) · 535 Bytes

To increase the HEAP_SIZE to 2GB

$ docker run -d --name elastic -p 9200:9200 -e ES_JAVA_OPTS="-Xms2g -Xmx2g" blacktop/elasticsearch

Runtime config changes

Change Cluster Name (to prod-cluster)

$ docker run -d --name elastic -p 9200:9200 -e cluster.name=prod-cluster  blacktop/elasticsearch

Change Transport Address to bind to 0.0.0.0 (to use JAVA ES API to interact with ES nodes)

$ docker run -d --name elastic -p 9300:9300 -e transport.host=0.0.0.0  blacktop/elasticsearch