forked from MIR/garage
add more config options to .env and update config version
This commit is contained in:
parent
5e315dd274
commit
6d32fe2f08
14
.env.sample
14
.env.sample
@ -7,10 +7,22 @@ COMPOSE_FILE="compose.yml"
|
|||||||
|
|
||||||
SECRET_RPC_SECRET_VERSION=v1
|
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 #####
|
##### 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
|
# 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"
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.localfs.yml"
|
||||||
#LOCAL_FOLDER_META
|
#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
|
||||||
|
|
||||||
|
@ -3,7 +3,12 @@ data_dir = "/var/lib/garage/data"
|
|||||||
db_engine = "lmdb"
|
db_engine = "lmdb"
|
||||||
metadata_auto_snapshot_interval = "6h"
|
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
|
compression_level = 2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user