(minor) add max_readers option to example config

This commit is contained in:
Lawrence, Rendall
2024-06-24 17:09:42 +03:00
parent e61045833a
commit 97eb79c81b
2 changed files with 5 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import (
"net/netip"
"github.com/rs/zerolog"
"github.com/sot-tech/mochi/pkg/str2bytes"
)

View File

@@ -75,6 +75,10 @@ storage:
# Maximum size of database, default is 1GiB
max_size: 0
# Maximum number of threads/reader slots for the LMDB environment,
# default is 126.
max_readers: 0
# Set MDB_WRITEMAP and MDB_MAPASYNC flags to use asynchronous flushes to disk.
# The installation of the flag can highly speed up writes, but there is a risk of DB damage
# or loss of last committed data if the application crashes.