Positioning replicas


#1

Hi,

Is there a possibility to set the replicas location manually?


#2

Yes. You can either specify the num_replica or specify the nodes:

Create index index1 on bucket(field1) with {“num_replica”:2}
Create index index1 on bucket(field1) with {“nodes”:[“1.2.3.4:8091”, “1.2.3.5:8091”, “1.2.3.6:8091”]}

In the latter example above, there will be 2 replicas(i.e., 3 copies)


#3

Looks good, thank you!