Skip to main content
Loading
Version: Operator 3.3.1

Use Data in Memory With Aerospike on Kubernetes

A data in memory (DIM) configuration is an easy way to test an Aerospike cluster without having to configure separate storage. For more information on DIM and other storage configurations, see the Aerospike documentation for namespace storage configuration.

To set this up, add the following storage-specific configuration to the Aerospike cluster's custom resource (CR) file.

  aerospikeConfig:
namespaces:
- name: test
replication-factor: 2
storage-engine:
type: memory
data-size: 1073741824

Several examples of DIM cluster CR files are in the main Aerospike Kubernetes Operator repository.

Save and exit the CR file, then use kubectl to apply the change. This example assumes you have a CR file named aerospike-cluster.yaml.

kubectl apply -f aerospike-cluster.yaml