Replica Enumeration
Defines algorithm used to determine the target node for a command.
Scan and query are not affected by replica algorithm.
Note: The enum ordinals do not match the Aerospike Client ordinals because
the default has to be ordinal zero in protobuf.
Sequence | 0 |
Try node containing master partition first.
If connection fails, all commands try nodes containing replicated partitions.
If socketTimeout is reached, reads also try nodes containing replicated partitions,
but writes remain on master node.
|
Master | 1 |
Use node containing key's master partition.
|
MasterProles | 2 |
Distribute reads across nodes containing key's master and replicated partitions
in round-robin fashion. Writes always use node containing key's master partition.
|
PreferRack | 3 |
Try node on the same rack as the client first. If timeout or there are no nodes on the
same rack, use SEQUENCE instead.
|
Random | 4 |
Distribute reads across all nodes in cluster in round-robin fashion.
Writes always use node containing key's master partition.
This option is useful when the replication factor equals the number
of nodes in the cluster and the overhead of requesting proles is not desired.
|