How do I speed up cold start?


#1

Problem Description

It takes a long time for a cold-restart of Aerospike service on my deployment. Do I have any options to speed this up?

Explanation

Aerospike cold restart scans all records on the persisted storage layer and rebuilds the primary index (and data if data-in-memory is configured true) into memory. This process can take a long time depending on the number of records, disk I/O capability or even CPU capacity.

Read more about Cold start on this documentation page: http://www.aerospike.com/docs/operations/manage/aerospike/cold_start/

Solution

Aerospike does not have a specific configuration to speed up cold-start. It is recommended to identify where the bottleneck is. A slow cold restarts doesn’t necessarity mean that disk utilization / CPU utilization are at 100%.

Aerospike will read the disk as efficiently as possible. Our tests have shown that 1 thread per device partition is usually optimal. Having multiple devices (partitions) / files could in some cases help.

Related knowledge-base on abrupt jump in percentage completed during cold-start:

Landing into cold-start eviction (breaching high-water-marks during the cold-start) can also slow down the overall process. Refer to this knowledge-base to understand details:

Keywords

cold start fast speed

Timestamp

04/13/2017


FAQ - which is faster to complete migration - restarting an empty node vs restarting a node with data