Reduce default size of LMDB to 5368709120 (5GB)

This commit is contained in:
Jan-Piet Mens 2024-02-02 19:32:06 +01:00
parent 0646a9d700
commit 0a76f73513
2 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ The following configuration variables can be used to tweak settings. Defaults ar
| `OTR_IDENTITY` | Y | | MQTT identity for PSK
| `OTR_PSK` | Y | | MQTT PSK
| `OTR_SERVERLABEL` | Y | `OwnTracks` | server label for Web
| `OTR_LMDBSIZE` | Y | `104857600000` | size of the LMDB database. If less than 10485760 (10 MB) it will be set to 10485760.
| `OTR_LMDBSIZE` | Y | `5368709120` | size of the LMDB database (5GB). If less than 10485760 (10 MB) it will be set to 10485760.
## Reverse proxy

View File

@ -4,7 +4,7 @@
#include "json.h"
#include "lmdb.h"
#define LMDB_DB_SIZE ((size_t)100000 * (size_t)(1024 * 1024))
#define LMDB_DB_SIZE ((size_t)5 * (size_t)(1024 * 1024 * 1024))
struct gcache {
MDB_env *env;