Configure namespace durability
This page describes Aerospike’s intracluster replication and cross cluster replication to protect data in case of server failure.
Intracluster replication
In Aerospike, the replication-factor
configuration controls the number of copies of each
record that reside in the cluster. Most servers have a replication-factor
of 2,
which ensures all data in the cluster can survive a single node failure.
Replication does increase the total cost of a cluster. With a replication factor
2, the cluster requires twice the storage capacity of a cluster with a replication factor of 1. Replication also suffers a performance penalty, primarily due to the
extra network latency incurred by synchronous replication.
Configuring the replication factor is simple. The following example shows a replication factor of 2:
namespace NAMESPACE-NAME { ... replication-factor 2 ...}
Cross-Datacenter Replication (XDR)
Aerospike Enterprise Edition includes the Cross-Datacenter Replication (XDR) feature to replicate data among clusters. For more information on XDR configuration, see the configuration documentation.
Where to next?
- Configure Storage Engine which determines if and where records are persisted.
- Configure Data Retention Policy, which determines how long records are kept.
- Or return to Configure Page.