Could I change the memtable size?

(yeriahn) #1

I know the rocksdb’s memtable is very important to disk I/O.
So I wonder…
Could I check the rocksdb’s write_buffer_size?
And could I also change the that value via cockroach command?

I found the info about rocksdb via https://github.com/facebook/rocksdb/wiki/MemTable.

(Tim O'Brien) #2

Hi @yeri,

You can pass parameters to rocksdb using the start command like this:

store=path=/mnt/data1/cockroach,rocksdb=<rocksdbOption>=<Value>

We do not test different write buffer sizes, so you’ll be in uncharted territory but we’d be curious to know the results of your testing.