add two configurable option for rocksdb