Hello everyone, just wondering we know that RocksD...
# random
g
Hello everyone, just wondering we know that RocksDB is embedded, but can we use a remote RocksDB?
d
Hey! Do you intend to use RocksDB similarly to how Flink is using it? (One RocksDB instance per task slot) If not, I would argue that you will reach lower performances for multiple reasons: • Network: Instead of fetching in the taskmanager managed memory, you will need some hops to reach your rocksdb instance elsewhere. • Granularity: In a KeyedStream, each RocksDB instance will handle a smaller range of keys, resulting in better writes, and caching. If you only have a single large instance of RocksDB, you will have continuous flushes and background compactions. To conclude, maybe you can use a remote RocksDB, but I'm not sure if you should 😉 Those are my thoughts, if anyone can confirm, I would appreciate.
g
yes in Flink itself
g
I don’t think there is such thing as “remote RocksDB” , rocksdb is a library for storing k-v state. It’s not a database that you can connect to remotely
👆 2
d
Hypothetically RocksDB could be remote in the sense that the "local" disk used by RocksDB could be mounted from network-attached storage, but that's usually a bad idea.