Method: ZK::Server::Config#pre_alloc_size
- Defined in:
- lib/zk-server/config.rb
#pre_alloc_size ⇒ Object
default: nil
To avoid seeks ZooKeeper allocates space in the transaction log file in blocks of preAllocSize kilobytes. The default block size is 64M. One reason for changing the size of the blocks is to reduce the block size if snapshots are taken more often. (Also, see snapCount).
128 129 130 |
# File 'lib/zk-server/config.rb', line 128 def pre_alloc_size @pre_alloc_size end |