Skip to main content
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?