https://slatedb.io logo
https://github.com/slatedb/slatedb/pull/284 Would ...
# general
a
https://github.com/slatedb/slatedb/pull/284 Would you mind pushing forward the review process of my PR? Because it has not been merged for a long time, I have always been thinking about it.
c
Nudged the other maintainers. I took a look at the PR. I'll be honest: I'm a bit concerned that the amount of complexity this adds exceeds its value. But I want the other folks to take a look and weigh in. Thus far, it's mostly been @flaneur233 that's (graciously) engaged.
The philosophy I've been operating on is: simple, incremental, emperical
While this change is incremental, I don't think it's simple, and I don't think we've demonstrated that we actually need this right now.
a
Sorry to hear that, I've tried my best to make it simple.😿
c
Yea, I appreciate that. I don't think it's your fault. It's just the algo. But I want others to weigh in.
I'm comfortable merging it if @flaneur233 and the other maintainers are OK with it.
So I nudged them to take a look. 🙂
@AsukaMilet do you know if Flashcache implements LARC? Or RocksDB BlobDB?
a
As far as I know, Google used this algorithm before (that's where I found it from their paper).
Anyway, I'll start working on the problem of filter tombstone during compaction tomorrow. https://github.com/slatedb/slatedb/issues/285
The people who came up with LARC implemented it on top of FlashCache, if I remember correctly.
c
One thing we're considering is supporting other storage implementations for the cache (not just FsLocalCache). It would be nice if blobdb (https://github.com/slatedb/slatedb/issues/177) or Cachelib (https://github.com/facebook/CacheLib)
It would be nice if one of those supported LARC
Seems like neither does...
Which, again, is a signal to me that this might not be worth the extra complexity.
a
I actually looked into Cachelib, looked through some of the code and read their paper, and they still seem to only support random filtering at the moment.
message has been deleted
c
Haha.. yea
Lots of signal that there isn't a lot of demand/need for ghost queues
f
I feel the cache admission support would be not bad to have, and I'd feel sorry if the work around it broke after several weeks. the investigation from @AsukaMilet still gives us a lot of insights. to leverage the current progress, I suppose one possible approach is to first merge a PR to add a trait like
CachedObjectStoreAdmission
without concrete implementation, which would allow users to customize cache admission policies externally, including ghost queue or other simpler strategy. what do you think?
a
I can try, but I may not have time this week, I have too much unfinished C++ work.
This week I can only allocate a little time for Rust to solve #285, because it is not very difficult, and I will leave the rest of the time to C++.
f
no worry, this is not in high priority imo
c
This approach SGTM. If we have a minimal/optional trait we can expose to users, that opens the door for ghost queue later if we find we need it.
r
+1 I like the approach of introducing a trait for a cache admission policy as a first step.