litefs
约 1 分钟阅读
- superfly/litefsGitHubsuperfly/litefssuperfly/litefs · 基于 fuse 的 litestream - 批量同步 · 可作为临时节点的持久化存储 - 例如 为 Kubernetes 的 Pod 提供 DB 持久化能力 · 异步复制 - 主节点 crash 可能丢失 亚秒 级事务笔记:litefs
- 基于 fuse 的 litestream笔记litestreambenbjohnson/litestream · SQLite 增量备份 · 作为 disaster recovery · 支持存储 s3, sftp, file · HOW TO · litestream 维持一个 读 链接 · 避免发生 walautocheckpoint - 高写入时推荐设置打开:/notes/db/relational/sqlite/litestream - 批量同步
- 可作为临时节点的持久化存储 - 例如 为 Kubernetes 的 Pod 提供 DB 持久化能力
- 异步复制 - 主节点 crash 可能丢失 亚秒 级事务
- Rolling checksum
- FUSE 拦截 syscall
- 基于 Consul 的主节点选举
- 提供 HTTP 服务接收变更
- Lite Transaction Files (LTX)
- superfly/ltxGitHubsuperfly/ltx
- 只支持 linux
- macOS #119GitHub Issuesuperfly/litefs#119
- 不可能会被支持
- OSXFUSE 闭源、问题很多
- 在 Pod 内使用 FUSE 需要 privileged, CAP_SYS_ADMIN
- gitlab.com/arm-research/smarter/smarter-device-manager
可避免
- 共享 device 给 container
- gitlab.com/arm-research/smarter/smarter-device-manager
可避免
- kubernetes#7890GitHub Issuekubernetes/kubernetes#7890 FUSE volumes
litefs.yml
mount-dir: "/path/to/mnt"
# 可选
data-dir: "/path/to/data"
exec: "myapp -addr :8080"
candidate: false # 不参加主节点选举
debug: true
# LTX
retention:
duration: "60s"
monitor-interval: "60s"
http:
addr: ":20202"
consul:
url: "http://localhost:8500"
advertise-url: "http://localhost:20202"
hostname: "localhost"
key: "litefs/primary"
ttl: "10s"
lock-delay: "5s"
# 如果不用 Consul 则可以配置静态信息
static:
primary: true
hostname: "localhost"
advertise-url: "http://localhost:20202"关联信息
反向链接、本文链接的其他页面和外部资料。
反向链接
- Database Awesome笔记 · superfly/litefs
| name | stand for | · | Relational DBMS | 关系型数据库 | · | Key-value stores | KV 存储 | · | Document stores | 文档存储 | · | Time Series DBMS | 时序数据库 |
站内链接
- litestream笔记 · litestream
benbjohnson/litestream · SQLite 增量备份 · 作为 disaster recovery · 支持存储 s3, sftp, file · HOW TO · litestream 维持一个 读 链接 · 避免发生 walautocheckpoint - 高写入时推荐设置
参考资料
GitHub4 条
- kubernetes/kubernetes#7890github.com/kubernetes/kubernetes/issues/7890
- superfly/litefsgithub.com/superfly/litefs
- superfly/litefs#119github.com/superfly/litefs/issues/119
- superfly/ltxgithub.com/superfly/ltx
其他外链1 条
- gitlab.com/arm-research/smarter/smarter-device-managergitlab.com/arm-research/smarter/smarter-device-manager