Module: Aerospike::Replica

Defined in:
lib/aerospike/policy/replica.rb

Constant Summary collapse

MASTER =

Read from node containing key’s master partition. This is the default behavior.

0
MASTER_PROLES =

Distribute reads across nodes containing key’s master and replicated partitions in round-robin fashion.

1
SEQUENCE =

Always try node containing master partition first. If connection fails and Policy#retryOnTimeout is true, try nodes containing prole partition.

2
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.

3
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.

4