diff --git a/.env.sample b/.env.sample index 3527c0a..d7c410b 100644 --- a/.env.sample +++ b/.env.sample @@ -11,6 +11,7 @@ SECRET_RPC_SECRET_VERSION=v1 # length=32 charset=hex # supported and requires deleting the existing cluster layout metadata. REPLICATION_FACTOR=2 +DATABASE_ENGINE=lmdb CONSISTENCY_MODE=consistent METADATA_FSYNC=false DATA_FSYNC=false @@ -27,4 +28,4 @@ BLOCK_SIZE=1MiB # only increase if there is a fast network connection between no #LOCAL_FOLDER_DATA=/path/on/docker/host ## Enable Full Data Backups (not just metadata) -# COMPOSE_FILE="$COMPOSE_FILE:compose.fullbackup.yml" \ No newline at end of file +# COMPOSE_FILE="$COMPOSE_FILE:compose.fullbackup.yml" diff --git a/abra.sh b/abra.sh index 4c81e38..2287127 100644 --- a/abra.sh +++ b/abra.sh @@ -1 +1 @@ -export GARAGE_CONF_VERSION=v4 \ No newline at end of file +export GARAGE_CONF_VERSION=v5 diff --git a/garage.toml.tmpl b/garage.toml.tmpl index cfb3759..b6b5d4d 100644 --- a/garage.toml.tmpl +++ b/garage.toml.tmpl @@ -1,6 +1,6 @@ metadata_dir = "/var/lib/garage/meta" data_dir = "/var/lib/garage/data" -db_engine = "lmdb" +db_engine = "{{ if env "DATABASE_ENGINE" }}{{ env "DATABASE_ENGINE" }}{{ else }}lmdb{{ end }}" metadata_auto_snapshot_interval = "6h" replication_factor = {{ env "REPLICATION_FACTOR" }} @@ -26,4 +26,4 @@ bootstrap_peers = [ [s3_api] s3_region = "garage" api_bind_addr = "[::]:3900" -root_domain = ".s3.garage" \ No newline at end of file +root_domain = ".s3.garage"