Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(templates): bump default lmdb_map_size to 2GB #11047

Merged
merged 2 commits into from Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -82,6 +82,11 @@

#### Core

- The default value of `lmdb_map_size` config has been bumped to `2048m`
from `128m` to accommodate most commonly deployed config sizes in DB-less
and Hybrid mode.
[#11047](https://github.com/Kong/kong/pull/11047)

#### Status API

- Remove the database information from the status API when operating in dbless
Expand Down
8 changes: 4 additions & 4 deletions kong.conf.default
Expand Up @@ -1332,15 +1332,15 @@
#
# This path is relative under the Kong `prefix`.

#lmdb_map_size = 128m # Maximum size of the LMDB memory map, used to store the
# DB-less and Hybird mode configurations. Default is 128m.
#lmdb_map_size = 2048m # Maximum size of the LMDB memory map, used to store the
# DB-less and Hybird mode configurations. Default is 2048m.
#
# This config defines the limit of LMDB file size, the
# actual file size growth will be on-demand and
# porpotional to the actual config size.
# proportional to the actual config size.
#
# Note this value can be set very large, say a couple of GBs
# to accomadate future database growth and
# to accommodate future database growth and
# Multi Version Concurrency Control (MVCC) headroom needs.
# The file size of the LMDB database file should stabilize
# after a few config reload/Hybrid mode syncs and the actual
Expand Down
2 changes: 1 addition & 1 deletion kong/templates/kong_defaults.lua
Expand Up @@ -40,7 +40,7 @@ cluster_use_proxy = off
cluster_dp_labels = NONE

lmdb_environment_path = dbless.lmdb
lmdb_map_size = 128m
lmdb_map_size = 2048m
mem_cache_size = 128m
ssl_cert = NONE
ssl_cert_key = NONE
Expand Down