Loading
Namespace configuration
This page describes high-level considerations for configuring an Aerospike namespace, and contains links to relevant pages.
Requirements
Namespace name
The minimum requirement to configure a namespace is to provide a namespace name. The following example creates an in-memory namespace with a 4GB capacity. The commented parameters indicate the defaults.
namespace <namespace-name> {
# memory-size 4G # 4GB of memory to be used for index and data
# replication-factor 2 # For multiple nodes, keep 2 copies of the data
# high-water-memory-pct 60 # Evict non-zero TTL data if capacity exceeds
# 60% of 4GB
# stop-writes-pct 90 # Stop writes if capacity exceeds 90% of 4GB
# default-ttl 0 # Writes from client that do not provide a TTL
# will default to 0 or never expire
# storage-engine memory # Store data in memory only
}
Where to Next?
- Storage engine which determines if and where records are persisted to.
- Data retention policy which determines how long records are kept after it is initially written.
- Data durability policy which determines how many replica copies of a record to keep in the cluster.
- Configure strong consistency which describes how to set up SC mode for transactions.
- For a complete list of namespace configuration parameters see the Configuration reference.