Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.15
Describe the issue:
I would like to run two instances of OpenSearch on the same Linux machine, one on the default port 9200, and one on port 9210.
Configuration:
I have one instance already up: From the archive file opensearch-2.15.0-linux-x64.tar.gz
I have installed the instance into the custom directory /my/path/to/opensearch-2.15.0/
and run in there the executable bin/opensearch
.
I have created a copy of the opensearch-2.15.0
directory at /my/path/to/opensearch-2.15.0-tu
and I changed in the associated config/opensearch.yml
file the port.
More in detail, the config file opensearch.yml
of the first opensearch installation looks like this:
# opensearch.yml for /my/path/to/opensearch-2.15.0
network.host: 0.0.0.0
discovery.type: single-node
plugins.security.disabled: true
The opensearch.yml
of the second one looks like this:
# opensearch.yml for /my/path/to/opensearch-2.15.0-tu
network.host: 0.0.0.0
http.port: 9210
discovery.type: single-node
plugins.security.disabled: true
My question is: Can I safely run the 2nd instance and will its data be totally separate from the first instance?
From my brief research I think the data are not shared: Both instances have their own data directory in /my/path/to/opensearch-2.15.0/data and in /my/path/to/opensearch-2.15.0-tu/data
respectively. I assume they use these as default locations.
However it would be great if somebody more experienced with OpenSearch could confirm (or deny) this.
Thank you so much for your help.