Is it safe to change RocksDB settings without removing state stores data?

Hello! Is it safe to change RocksDB settings without removing state stores data? We would like to tune RocksDB for our Kafka Streams applications by changing the following properties:

  • rocksdb.max_write_buffer_number
  • rocksdb.min_write_buffer_number_to_merge
  • rocksdb.lru_cache
  • rocksdb.optimize_for_point_lookup
  • rocksdb.write_buffer_size
  • rocksdb.write_buffer_size_allow_stall
  • rocksdb.total_write_buffer_size
  • rocksdb.lru_cache_highPriPoolRatio
  • rocksdb.max_background_compactions
  • rocksdb.level0_file_num_compaction_trigger
  • rocksdb.level0_slowdown_writes_trigger
  • rocksdb.level0_stop_writes_trigger
  • rocksdb.num_levels
  • rocksdb.max_bytes_for_level_base

If it’s safe to change these properties without purging state stores data, will it adapt to this properties so we can see a performance improvement?

Thank you in advance for answers :slight_smile:

Yes, this should be safe.

1 Like