From ab4d44d126e038aff05fc992fc3153edeea350b6 Mon Sep 17 00:00:00 2001 From: David Douard Date: Wed, 25 Jan 2023 15:11:28 +0100 Subject: [PATCH] mention levelbdMedium and levedbLarge indexes --- Optimization.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Optimization.md b/Optimization.md index ee23029..d296b1f 100644 --- a/Optimization.md +++ b/Optimization.md @@ -5,6 +5,11 @@ When starting volume server, you can specify the index type. By default it is us `weed volume -index=leveldb` can change to leveldb. It is much faster to start up a volume server, at the cost of a little bit slower when accessing the files. Compared to network speed, the extra cost is not that much in most cases. +Note: there are 3 flavors of leveldb indexes for the volume server: +- `leveldb`: small memory footprint (4MB total, 1 write buffer, 3 block buffers) +- `leveldbMedium`: medium memory footprint (8MB total, 3 write buffers, 5 block buffers) +- `leveldbLarge`: large memory footprint (12MB total, 4 write buffers, 8 block buffers) + ## Preallocate volume file disk spaces In some Linux file system, e.g., XFS, ext4, Btrfs, etc, SeaweedFS can optionally allocate disk space for the volume files. This ensures file data is on contiguous blocks, which can improve performance when files are large and may cover multiple extents.