From baba729bc5f81ceaf150cf2cf61df43d920724a1 Mon Sep 17 00:00:00 2001 From: Doug Hoyte Date: Thu, 2 Feb 2023 15:18:18 -0500 Subject: [PATCH] custom dbParams settings, like maxreaders --- golpe | 2 +- golpe.yaml | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/golpe b/golpe index dd543e3..92cd3de 160000 --- a/golpe +++ b/golpe @@ -1 +1 @@ -Subproject commit dd543e3fef89e976db92b6b4420bdac6fa2e2257 +Subproject commit 92cd3de18d2e7b464bc5965565a72d64654712b2 diff --git a/golpe.yaml b/golpe.yaml index d315211..9603fdb 100644 --- a/golpe.yaml +++ b/golpe.yaml @@ -2,6 +2,7 @@ appName: strfry quadrable: true onAppStartup: true useGlobalH: true +customLMDBSetup: true flatBuffers: | include "../fbs/nostr-index.fbs"; @@ -83,10 +84,19 @@ tablesRaw: config: - name: db - desc: "Directory that contains strfry database" + desc: "Directory that contains the strfry LMDB database" default: "./strfry-db/" noReload: true + - name: dbParams__maxreaders + desc: "Maximum number of threads/processes that can simultaneously have LMDB transactions open" + default: 256 + noReload: true + - name: dbParams__mapsize + desc: "Size of mmap() to use when loading LMDB (does *not* correspond to disk-space used, default is 10TB)" + default: 10995116277760 + noReload: true + - name: relay__bind desc: "Interface to listen on. Use 0.0.0.0 to listen on all interfaces" default: "127.0.0.1"