Allow to set map size for LMDB engine in convert-db script #684
Labels
No Label
AdminAPI
Bug
Check AWS
CI
Correctness
Critical
Documentation
Ideas
Improvement
Low priority
Newcomer
Performance
S3 Compatibility
Testing
Usability
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#684
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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.