You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Configuration of Litestream
# Litestream is a tool for replicating SQLite databases in real-time.
# https://litestream.io/reference/config/
# DATABASE SETTINGS -----------------------------------------------------------
# https://litestream.io/reference/config/#database-settings
dbs:
# https://litestream.io/reference/config/#s3-replica
- path: /var/lib/gokapi/gokapi.sqlite
replicas:
- type: s3
endpoint: private.s3.instance # Specifies the endpoint URL of the S3-compatible service. Only required for non-AWS services.
bucket: oc-2ndlevel-gokapi # Specifies the name of the remote bucket to replicate to.
path: gokapi.sqlite # Specifies the path to use within the bucket.
region: us-east-1
# access-key-id: AKIAxxxxxxxxxxxxxxxx # Replica-specific authentication key. If not specified, the global key or the LITESTREAM_ACCESS_KEY_ID environment variable will be used instead. The AWS_ACCESS_KEY_ID variable can also be used.
# secret-access-key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxx # Replica-specific secret key. If not specified, the global secret or the LITESTREAM_SECRET_ACCESS_KEY environment variable will be used instead. The AWS_SECRET_ACCESS_KEY variable can also be used.
# skip-verify: "false" # Disables TLS verification. This is useful when testing against a local node such as MinIO and you are using self-signed certificates.
# validation-interval: 6h # https://litestream.io/reference/config/#validation-interval
# LOGGING ---------------------------------------------------------------------
logging:
level: info # Logging level can be set to “debug”, “info”, “warn” or “error”.
type: json # Log type can be set to either “text” or “json”.
stderr: false # By setting stderr to true logs will be written to stderr instead of stdout.
# PROMETHEUS METRICS ----------------------------------------------------------
# Litestream produces a continuous stream of metrics that are exported as a Prometheus endpoint.
# These are disabled by default as it requires an HTTP server to start.
# When you start Litestream with this setting enabled, you’ll see metrics at http://localhost:9090/metrics
# You can enable it by setting a bind address in the config:
# addr: ":9090"
Your private S3 implementation doesn't return the Content-Length header that Litestream expects for metrics. It could be fixed downstream in Litestream not to expect that information to exist but most S3 implementations do include it.
Running it in Kubernetes, using an on-prem S3 as storage.
Went fine, until I restarted the statefulset, and it starting crashing with this error:
Here is the relevant yaml.
Followed this guide: https://litestream.io/guides/kubernetes/
Trying to add persistance to the metadata sqlite in our deployment of this app: https://github.com/Forceu/Gokapi
The text was updated successfully, but these errors were encountered: