For what is worth, at Astra DB we do the same with...
# futuristic-tech
e
For what is worth, at Astra DB we do the same with Cassandra: keep the data on S3/Google cloud storage/Azure Blob storage....then cache to "local" (to the network) SSDs in order to still get great performance for reads. Cassandra has immutable SSTable files, so caching is "doable" Caching is not easy, but you can get great performance if you do it well 😉
f
That’s interesting. What kind of performance do you get on these network SSDs? e.g. Avg and p99 latencies? And do you preload the SST files eagerly or you let it happen lazily?
e
And do you preload the SST files eagerly or you let it happen lazily?
This is configurable.
What kind of performance do you get on these network SSDs
we are using locally attached SSDs, not network SSDs we have a cache service built in house: when the data page is already downloaded, we are talking about <1ms p999 read latency reading from disk (Java FileChannel API) and then < 1ms p999 latency writing to the network (using Netty) read latency observed on the client is <5ms (p999)
f
Ok… I got confused by:
then cache to "local" (to the network) SSDs
Still not sure what that means then 😅
e
sorry We have two architectures: • DB Node with local SSD cache • DB Nodes without disk and the SSD cache runs as a separate service (so on other nodes)
Read time from the disk is <1ms (p999)
Local Network does not add significant latency. You can see some tail (p999) latency degradation under heavy load
f
Oh ok got it. So in terms of e2e latency, how do two architectures compare?
e
when cache is on a dedicated service we see tail latency a little bit worse, especially due to the jitter introduced by the additional tier but there is still room for improvements, it's still a "new" project I am working on, and in the past months we did incredible steps forward
f
Cool! And all of the above is part of the Cassandra as a Service that you offer?
e
yup but it is hidden behind the scenes 😉
🤝 1