feat: support sqlite and other database engines #6
Reference in New Issue
Block a user
No description provided.
Delete Branch "sqlite"
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?
docs adverts lmdb can become corrupted on power outages
https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#db_engine
@ -1,6 +1,6 @@metadata_dir = "/var/lib/garage/meta"data_dir = "/var/lib/garage/data"db_engine = "lmdb"db_engine = "{{ env "DATABASE_ENGINE" }}"You need to thread
DATABASE_ENGINEinto thecompose.ymland keep the default oflmdb?i can't parse this phrase 🤔
Ah, sorry, I thought you might need to add it to an
environment: ...part in the compose.yml but you're using it directly in the.tmplfile. Ignore me 🙃@ -11,6 +11,7 @@ SECRET_RPC_SECRET_VERSION=v1 # length=32 charset=hex# supported and requires deleting the existing cluster layout metadata.REPLICATION_FACTOR=2DATABASE_ENGINE=lmdbSeems 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!
I added logic in the config template to default to
lmdbifDATABASE_ENGINEis not defined. Does that resolve the problem?If you tested it and it works, then that looks fine! I thought you'd have to check
!= ""for truthiness of a string in the golang template? There's very little documentation about how to do this kind of thing, so manual testing is probably best.@marlon thanks!
@decentral1se according to docs: