I keep getting conflicting information about this, so I’m bringing it to the forums.
Here is what I’m trying to achieve.
- All data gets written to both SSD and memory.
- As data reaches ~80G, I hit my high-water-memory-pct, and start evicting objects from ram. ( I still want my data on disk).
- Next at ~90G I will hit stop-writes. This idea is that I never hit high-water-disk-pct, and thus my data is safe and sound.
Is this valid? I’m not sure if the eviction process actually deletes data or not. If it simply abandons the object reference from the primary index, then the data is as good as gone (from both memory and device).
namespace test_ssd {
high-water-memory-pct 80
high-water-disk-pct 50
stop-writes-pct 90
memory-size 100G
storage-engine device {
device /dev/sdb1 ## 200G
write-block-size 128k
data-in-memory true
}
}