Reputation: 95
Aerospike Records Getting Deleted Automatically – Need Help Diagnosing the Issue We are experiencing an issue where Aerospike records are being deleted automatically after a few days.
Previously, we were using the Enterprise version of Aerospike, but we have now switched to the Community version (4.x).
We have checked the watermark settings for both memory and disk, and they are set to 90%.
We ran the following command to check eviction details:
asadm -e "show statistics namespace/<namespace>" | grep evict
The output is as follows:
disable-eviction : false false
disable-eviction : false false
disable-cold-start-eviction : false false
evict-hist-buckets : 10000 10000
evict-tenths-pct : 5 5
evict_ttl : 0 0
evict_void_time : 0 0
evicted_objects : 0 0
smd_evict_void_time : 0 0
disable-cold-start-eviction : false false
evict-hist-buckets : 10000 10000
evict-tenths-pct : 5 5
evict_ttl : 0 0
evict_void_time : 0 0
evicted_objects : 0 0
smd_evict_void_time : 0 0
Since evicted_objects is 0, it appears that records are not being evicted, yet we have verified that records are getting deleted.
Are there any other configuration settings or logs we should check to determine why records are being deleted? Any guidance would be greatly appreciated!
Thanks in advance!
Upvotes: 1
Views: 27
Reputation: 5425
If your CE is pre 4.5.x.y, the default-ttl would likely be 30 days. After version 4.5.x.y, the default-ttl changed to 0 (live-for-ever). Please check output of asinfo / get-config for your namespace and see what default-ttl you have. When you switched to CE, your default configuration for default-ttl may have switched to 30 days and your records are expiring.
Upvotes: 1