add more config options to .env and update config version

This commit is contained in:
brooke 2025-03-01 21:01:36 -05:00
parent 5e315dd274
commit 6d32fe2f08
3 changed files with 20 additions and 3 deletions

View File

@ -7,10 +7,22 @@ COMPOSE_FILE="compose.yml"
SECRET_RPC_SECRET_VERSION=v1
REPLICATION_FACTOR=2 # changing the replication factor is not supported and requires deleting the existing cluster layout metadata.
###############################
##### Map local directory #####
###############################
# If either meta or local is left blank (an empty string does not count it has to have no value) then it will default to the original docker volume
#COMPOSE_FILE="$COMPOSE_FILE:compose.localfs.yml"
#LOCAL_FOLDER_META
#LOCAL_FOLDER_DATA
#LOCAL_FOLDER_DATA
###############################
CONSISTENCY_MODE=consistent
METADATA_FSYNC=false
DATA_FSYNC=false
DISABLE_SCRUB=false
BLOCK_SIZE=1MiB # only increase if there is a fast network connection between nodes

View File

@ -1 +1 @@
export GARAGE_CONF_VERSION=v2
export GARAGE_CONF_VERSION=v3

View File

@ -3,7 +3,12 @@ data_dir = "/var/lib/garage/data"
db_engine = "lmdb"
metadata_auto_snapshot_interval = "6h"
replication_factor = 3
replication_factor = {{ env "REPLICATION_FACTOR" }}
consistency_mode = {{ env "CONSISTENCY_MODE" }}
metadata_fsync = {{ env "METADATA_FSYNC" }}
data_fsync = {{ env "DATA_FSYNC" }}
disable_scrub = {{ env "DISABLE_SCRUB" }}
block_size = {{ env "BLOCK_SIZE" }}
compression_level = 2