GridGain Developers Hub

Rocksdb

RocksDB is a persistent storage engine based on LSM tree. It is best used in environments with a large number of write requests.

Profile Configuration

Each GridGain storage engine can have several storage profiles. Each profile has the following properties:

Property Default Description

engine

The name of the storage engine.

size

256 * 1024 * 1024

Sets the space allocated to the storage profile, in bytes.

writeBufferSize

64 * 1024 * 1024

Size of rocksdb write buffer.

numShardBits

-1

The cache is sharded to 2^numShardBits shards, by hash of the key.

Configuration Example

The example below shows how to configure a sorage profile with RocksDB storage:

storages:
  profiles:
    rocks_profile:
      engine: rocksDb
      size: 2560000

You can then use the profile (in this case, rocks_profile) in your distribution zone configuration.