Hello, I have a poor throughput issue, and I think I managed to reproduce it using the following code: val conf = new Configuration() val be = new RocksDBStateBackend("file:///tmp") This has really poor throughput. Now changing out.collect( randStr + r.nextString(8) ) to out.collect( r.nextString(8) + randStr) Solves the issue. Is there any way easy to fix this? I tried to use hash index, but it required rocks db option called "prefix extractor" which I don't know how to fill yet, and no idea if it will fix it. If anyone encountered that before, I would really use some advice/help. Thanks! |
|
Thanks Yun!, I used this option, and it greatly helped val be = new RocksDBStateBackend("file:///tmp")class MyConfig extends DefaultConfigurableOptionsFactory { override def createColumnOptions(currentOptions: ColumnFamilyOptions, handlesToClose: util.Collection[AutoCloseable]): ColumnFamilyOptions = { But now I cant use the RocksDBSharedResources because of setCacheIndexAndFilterBlocks seems to make the hash index not work properly and the performance is bad again. Only when using be.getMemoryConfiguration.setUseManagedMemory(false) and skipping setCacheIndexAndFilterBlocks , only then its working :( On Fri, Sep 25, 2020 at 9:56 AM Yun Tang <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |