mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-26 17:54:45 -07:00
(minor) add max_readers option to example config
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
|||||||
"net/netip"
|
"net/netip"
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
"github.com/sot-tech/mochi/pkg/str2bytes"
|
"github.com/sot-tech/mochi/pkg/str2bytes"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
4
dist/example_config_lmdb.yaml
vendored
4
dist/example_config_lmdb.yaml
vendored
@@ -75,6 +75,10 @@ storage:
|
|||||||
# Maximum size of database, default is 1GiB
|
# Maximum size of database, default is 1GiB
|
||||||
max_size: 0
|
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.
|
# 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
|
# 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.
|
# or loss of last committed data if the application crashes.
|
||||||
|
|||||||
Reference in New Issue
Block a user