basho/riak_wiki — Issue #245: eleveldb write buffer size setting issue
Author: mreiferson
Created: 2012-01-18 21:10:53+00:00
State: open

I have a documentation bug report - we were poking around in the `eleveldb` backend source in `riak_kv` (https://github.com/basho/riak_kv/blob/master/src/riak_kv_eleveldb_backend.erl#L322)

According to http://wiki.basho.com/LevelDB.html the write buffer size configuration key is `write_buffer_size` but according to that code (if i'm reading it right) you should actually be setting `write_buffer_size_min` and `write_buffer_size_max`.

I cant find any reference to `write_buffer_size` directly and I've tested that setting those 2 keys works (and actually adjusts the write buffer size of the individual `leveldb` instances).

Furthermore, it should probably be documented that internally it is randomizing the write buffer size in order to attempt to offset the intervals at which the leveldbs compact.