Articles in this section

How much memory does Aerospike use?

Detail

In addition any Primary Index or Data that you have configured to be stored in memory, Aerospike also requires additional memory for the Aerospike (asd) process itself, plus various queues and caches used during normal operation. Although this will vary from deployment to deployment, this article is designed to give you an idea of what to expect and the configuration used to control this usage


Answer

As a guide, you can expect Aerospike to use allocate memory for the following:

 

ElementDescriptionDefault usageReference
Aerospike processMain Aerospike (asd) process, including queues not specifically defined belowVaries, but ~1GB is a good estimation for most setupsN/A
Primary IndexAmount of Shared Memory allocated to each namespaceVarieshttps://aerospike.com/docs/server/operations/plan/capacity#calculating-primary-index-storage
Secondary IndexAmount of memory (Shared or application memory depending on version) allocated to Seconadry Indexes configured on namespacesVarieshttps://aerospike.com/docs/server/operations/plan/capacity/secondary_indexes
Set IndexesAmount of memory allocated to Set Indexes configured on namespacesVarieshttps://aerospike.com/docs/server/operations/plan/capacity#calculating-storage-for-the-set-index
Data StorageAmount of memory allocated to storing data if configured to storage data in memory0 or Varies

Pre-7.0

https://aerospike.com/docs/server/reference/configuration#namespace__memory-size

https://aerospike.com/docs/server/operations/plan/capacity#calculating-in-memory-data-storage-prior-to-database-70

7.0+

https://aerospike.com/docs/server/reference/configuration#namespace__data-size

Max Write CacheWrites that can be stored in memory before being flushed to disk64MB per configured device

https://aerospike.com/docs/server/reference/configuration#namespace__max-write-cache

Post Write CacheCache of recently written records256MB per configured device

Pre-7.0

https://aerospike.com/docs/server/reference/configuration#namespace__post-write-queue

7.0+

https://aerospike.com/docs/server/reference/configuration#namespace__post-write-cache

Batch Response BuffersBuffers used for batch responses to clientsDefault Max 32MB per CPU core

https://aerospike.com/docs/server/reference/configuration#service__batch-max-buffers-per-queue

XDR Transaction QueuesQueues for transactions that need to be shipped via XDRDefault Max 400KB per partition per namespace per datacenter

https://aerospike.com/docs/server/reference/configuration#xdr__transaction-queue-limit

Note: nodes hold XDR Transaction Queues for master and replica partitions stored on a node

 


Notes

Note: during maintenance or when there are failures within the cluster, nodes may hold many more partitions than they would usually. Ensure you allocate capacity for these scenarios in order to avoid cascading OOM kills should those situations arises


Applies To Earliest Version

Pre 4.9

Applies To Latest Version

Current Version
Was this article helpful?
0 out of 0 found this helpful