FAQ - Index on disk stop-writes

The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.

FAQ - All Flash stop-writes

Detail

When Aerospike is running in a hybrid or in-memory mode there is a threshold controlling when the database moves into read-only mode, known as stop-writes. Specifically this is triggered by:

What is the analogue to these when the primary index is stored on disk (All Flash configuration)?

Answer

There is no analogue to stop-writes-pct when the primary index is being stored on disk. When the index is in RAM the memory configured for the namespace is simply a value used to calculate when to trigger eviction and when to hit stop-writes. Certain kinds of writes (replica writes and migrations) can still go through meaning that the memory usage can exceed 100% of the configured value. The eventual result of this would be the Aerospike process could get OOM killed by the operating system. When the index is on disk, there is a finite amount of space that can be used to contain the index and as such, unlike index in RAM, it is not possible to exceed that amount of space and an analogue to stop-writes-pct is not necessary. When exceeding the available storage space for the index when the index is stored on disk, record insertions (new writes) will fail, but reads and record updates will still succeed.

Notes

  • There is an index on disk analogue to memory-high-water-pct which defines the point at which the systems will start to evict data (if there is data with TTL set). On an index on disk system the eviction point is controlled using mounts-high-water-pct
  • The following article discusses eviction, expiration and stop-writes in detail.

Keywords

STOP WRITES INDEX ON DISK ALL FLASH

Timestamp

March 2020