Reputation: 61
I am new to Elastic Search and I am trying to learn as much as I can about Elasticsearch.
I have a cluster having a single node. Is it possible for me to create multiple instances of Elasticsearch on the single node present in my Cluster?
Due to some reason, i cannot add another node to my cluster, so is it possible to install another instance of Elasticsearch on the same node and treat it as a separate node to create replicas on it?
Basically what I am asking is can I install multiple instances of Elasticsearch on a single node and treat those instances as a separate node to install replica on it?
Upvotes: 0
Views: 858
Reputation: 145
to achieve this you have to configure unique http.port & transport.tcp.port in elastic instances
Upvotes: 0
Reputation: 217304
Yes, that's definitely possible.
However, you need to make sure to configure both nodes properly (i.e. have separate data folders, different http/tcp ports, etc) and equally share the available CPU/RAM/HDD resources among both nodes and still leave some RAM for the OS.
Also note that it is strongly discouraged to run your whole cluster on a single node. If physical node was to crash for some reason, you'd end up with no ES cluster at all. But for learning purposes it is perfectly ok to do it in order to experiment shard allocation, etc.
Upvotes: 1