Define shards that are both primary and replicas of each other


#1

Hi,

I have two nodes, and would like to define one index with 2 shards that are both primary and replica of each other.

In other words, on node1 will be the first shard, on node2 the second shard.
Each time a document will be physically stored on the shard on node1, it will clone itself to the shard on node2, and vice versa.
I want to do it for load balancing.

I couldn't find how to do it in the documentation.

Is it even possible in Elastic?

Thanks


(Mark Walkom) #2

You cannot do that, but it shouldn't matter because each shard does the same amount of work.


(system) #3

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