Allow to set map size for LMDB engine in convert-db script #684
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#684
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I have been using Sled as database engine right now, but I must switch to LMDB backend because of Sled deprecation using the
convert-db
subcommand.When I run the following command
sudo garage -c /etc/garage.toml convert-db -a sled -i /var/lib/garage/meta/db/ -b lmdb -o /var/lib/garage/db.lmdb
, I have the following error:I ran into the same issue when I tried to use LMDB as backend for node initialization. I solved this issue by using the
lmdb_map_size = "10GiB"
directive in the configuration file, but the map size seems hard-coded in the conversion script:https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/main/src/garage/cli/convert_db.rs#L54
Is it possible to allow users to set the map size in the
convert-db
helper?Cheers,
PS: I am running Garage on a Raspberry PI 4 with 4 Go of RAM and a swap file on a Debian bookworm OS.