I'm investigating Elasticsearch and would like to run multiple
Elasticsearch clusters on one host.
The first cluster is started up using the default setting except for
memory minimum and maxium.
The second cluster, which I don't want to join the first cluster, is
started with the command line:
./bin/elasticsearch -f -Des.http.port=14000 -
Des.transport.tcp.port=9400 -Dpath.conf=./inst2-config/
elasticsearch.yml
The output is as follows:
=== Start Output ===
[2011-07-28 21:55:01,265][INFO ][node ] [Tempest]
{elasticsearch/0.17.1}[9478]: initializing ...
[2011-07-28 21:55:01,274][INFO ][plugins ] [Tempest]
loaded [], sites []
[2011-07-28 21:55:03,992][INFO ][node ] [Tempest]
{elasticsearch/0.17.1}[9478]: initialized
[2011-07-28 21:55:03,993][INFO ][node ] [Tempest]
{elasticsearch/0.17.1}[9478]: starting ...
[2011-07-28 21:55:04,247][INFO ][transport ] [Tempest]
bound_address {inet[/192.168.11.124:9400]}, publish_address {inet[/
192.168.11.124:9400]}
[2011-07-28 21:55:07,517][INFO ][cluster.service ] [Tempest]
detected_master [Optoman][F6i3jzo7QhG1Z2ryUemsMg][inet[/
192.168.11.124:9300]], added {[Optoman][F6i3jzo7QhG1Z2ryUemsMg][inet[/
192.168.11.124:9300]],[Leonus][havEfAcSTD-IITC1nJZ7qw][inet[/
192.168.11.124:9301]],}, reason: zen-disco-receive(from master
[[Optoman][F6i3jzo7QhG1Z2ryUemsMg][inet[/192.168.11.124:9300]]])
[2011-07-28 21:55:08,214][INFO ][discovery ] [Tempest]
vsti/jwJZAL5dQSOM9eRITJmYpQ
[2011-07-28 21:55:08,223][INFO ][http ] [Tempest]
bound_address {inet[/192.168.11.124:14000]}, publish_address {inet[/
192.168.11.124:14000]}
[2011-07-28 21:55:08,223][INFO ][node ] [Tempest]
{elasticsearch/0.17.1}[9478]: started
=== End Output ===
Note the joining of the cluster that is already running. I don't want
it to do that. How do I configure the second cluster?
Below is my elasticsearch.yaml file. Note: The cluster name is
different from the cluster name of the first instance:
=== Start Configuration ===
The cluster name
cluster:
name: inst2-vsti
Path Settings
path.conf: /opt/elasticsearch/inst2-config/elasticsearch.yml
path.data: /opt/elasticsearch/data-iscsi
path.work: /opt/elasticsearch/inst2-work
path.logs: /opt/elasticsearch/inst2-logs
network:
host: 192.168.11.124
=== End Configuration ===
Your help is appreciated.
Ed Brown