Skip to content

sha-8fa09d7a6ea15c66309b7d799518ffbaa8d1ee69 -> DockerHub Version - Not abiding by Sync-Interval #689

@hfalzon

Description

@hfalzon

I was testing the latest push to Docker hub of litestream (I use it for a sharded sqlite database)

Sync-Interval set to "1800s"
Syncing into S3 (Backblaze B2)

Syncing occurring every 1s by the looks of it. I got up to nearly 70000 class C transactions before I caught it this morning after I pushed a comit to the staging.

Going back down to the stable version from 2 years ago has solved the issue of usage.

Here is an example of my generated litestream config that I pass into the --config flag on startup.

access-key-id: ${S3_KEY}
secret-access-key: ${S3_SECRET}
dbs:
  - path: ./content/shard_1.db
    replicas:
    - endpoint: ${S3_ENDPOINT}
      bucket: ${S3_STORAGE_BUCKET}
      path: ${S3_STORAGE_FOLDER}/db_backups/shard_1.db
      type: s3
      sync-interval: 1800s

I embed the litestream from docker into my own image via:

FROM litestream/litestream:sha-8fa09d7a6ea15c66309b7d799518ffbaa8d1ee69 AS litestream

# Then later in the file in a new build step

COPY --from=litestream /usr/local/bin/litestream /usr/local/bin/litestream

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions