I have a similar problem to it. I store data in memory and disk (not flash disk). I use community edition 3.2.0. My configuration is here:
namespace my_namespace {
replication-factor 2
high-water-memory-pct 90
high-water-disk-pct 90
stop-writes-pct 90
memory-size 3G
default-ttl 0
storage-engine device {
file /opt/aerospike/data/my_namespace.data
filesize 20G
data-in-memory true
defrag-period 120
defrag-lwm-pct 50
defrag-max-blocks 4000
defrag-startup-minimum 10
}
}
I use java aerospike-client to access aerospike server. This problem occurs in case of below.
- insert or update data using aerospike client.
- delete data using aerospike client.
- aerospike service restart
Tentatively, we follow procedures below:
- Backup data using our backup tool before restarting aerospike
- stop aerospike
- delete /opt/aerospike/data/my_namespace.data
- start aerospike
- restore data using our restoring tool
But, it is very annoying. Is there a better way?