Replica EnumerationAerospike
Defines algorithm used to determine the target node for a command. The replica algorithm only affects single record commands. Batch, scan and query are not affected by replica algorithm.

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.6.0.0 (3.6.1)
Syntax

Members

  Member nameValueDescription
MASTER0 Use node containing key's master partition.
MASTER_PROLES1 Distribute reads across nodes containing key's master and replicated partitions in round-robin fashion. Writes always use node containing key's master partition.

This option requires requestProleReplicas to be enabled in order to function properly.

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

This option requires requestProleReplicas to be enabled in order to function properly.

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

See Also