module Aerospike::Replica
Constants
- MASTER
Read from node containing key’s master partition. This is the default behavior.
- MASTER_PROLES
Distribute reads across nodes containing key’s master and replicated partitions in round-robin fashion.
- PREFER_RACK
Try node on the same rack as the client first. If there are no nodes on the same rack, use
SEQUENCE
instead.ClientPolicy#rack_aware
,ClientPolicy#rack_id
, and server rack configuration must also be set to enable this functionality.- RANDOM
Distribute reads across all nodes in cluster in round-robin fashion. 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.
- SEQUENCE
Always try node containing master partition first. If connection fails and Policy#retryOnTimeout is true, try nodes containing prole partition.