feat: support sqlite and other database engines #6
@ -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"
|
||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.fullbackup.yml"
|
||||
|
||||
@ -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 }}"
|
||||
|
decentral1se marked this conversation as resolved
Outdated
decentral1se
commented
You need to thread You need to thread `DATABASE_ENGINE` into the `compose.yml` and keep the default of `lmdb`?
fauno
commented
i can't parse this phrase 🤔 i can't parse this phrase 🤔
decentral1se
commented
Ah, sorry, I thought you might need to add it to an Ah, sorry, I thought you might need to add it to an `environment: ...` part in [the compose.yml](https://git.coopcloud.tech/coop-cloud/garage/src/branch/main/compose.yml#L5) but you're using it directly in the `.tmpl` file. Ignore me 🙃
|
||||
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"
|
||||
root_domain = ".s3.garage"
|
||||
|
||||
Reference in New Issue
Block a user
Seems like it might need a release note to explain?
i didn't think of it because it keeps the current behaviour intact!
For existing deployments, you need to add
DATABASE_ENGINEto your.envor your upgrade will fail.oh yeah, but abra app deploy also warns of missing env vars, right? i'll add a release note anyway, unless there's a default value for the env template function?
Yes, it warns but a release note is also good because people ignore warnings 😜 I don't think you can do a default env values, no 😬 Thanks!