Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested minor enhancement to allow multiple instances of ElasticSearch #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Alex-Ikanow
Copy link

Suggested minor enhancement to allow multiple instances of ElasticSearch one one machine/VM, as I mentioned yesterday.

To invoke the enhancement either set ES_NUM_NODES (to the number of nodes), ES_MULTI_CLUSTER (to the cluster name to check automatically, see below), either in /etc/sysconfig/elasticsearch (should put commented out sets for these as 1/elasticsearch in that file - I can fork that and do if you want to use this enhancement), or from the command line, eg "ES_MULTI_CLUSTER=elasticsearch /etc/init.d/elasticsearch start", or "ES_NUM_NODES=2 /etc/init.d/elasticsearch start".

If a cluster name is specified, the number of nodes is set to the number of subdirectories of ES_PATH_DATA//nodes.

For status/stop, setting the variables is not mandatory - the script will try to work out what's going on itself.

…rch one one machine/VM.


To invoke the enhancement either set ES_NUM_NODES (to an integer), ES_MULTI_CLUSTER (to the cluster name to check automatically, see below), either in /etc/sysconfig/elasticsearch (should put commented out sets for these as 1/elasticsearch in that file), or from the command line, eg "ES_MULTI_CLUSTER=elasticsearch /etc/init.d/elasticsearch start", or "ES_NUM_NODES=2 /etc/init.d/elasticsearch start".

If a cluster name is specified, the number of nodes is set to the number of subdirectories of ES_PATH_DATA/<clustername>/nodes.

For status/stop, setting the variables is not mandatory - the script will try to work out what's going on itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant