Search code examples
in-memory-databaseaerospike

Aerospike In-Memory configuration


Consider a scenario in Aerospike:

data-in-memory is set as true and memory space < disk space

what happens when memory is filled up (stop-writes-pct is reached). Does aerospike stop accepting writes all together? OR it will continue to write to disk (if disk space is available) ?

How does the above behaviour is affected, in a multinode setup ?


Solution

  • Writes will start to fail completely when stop-writes-pct is reached. In data-in-memory configuration, stop-writes triggered by any reason (either disk or memory being full) will be honored by both.

    This behavior is per node (since stop-writes-pct is related to a node and not to a cluster).

    In case of a cluster, if its the node with the master copy of the data/partition which has hit stop-writes, that write will fail.

    In case the node which has hit stop writes is supposed to be the replica partition node, the write is allowed for the replica data.