Primary and Replica Shard on the same node

Is it possible to run replica and primary shard on a single node. I have mounted three volumes and configured the same in data.path. I tried adding replicas with

PUT /_settings
{
    "index" : {
        "number_of_replicas" : 2
    }
}

But my cluster state turned yellow and replicas were not added. How can I achieve this?

No, Elasticsearch will never allocate primary and replica on the same node, and I do not think there is any way to override that.

Thanks for the update.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.