GC and TTLing blocks
还没有人认领这个 Issue。
评估
调研方向
首先跟踪 issue 中描述的 blockstore 和 badgerGC 路径,包括了解 gateway 读取与 bitswap 和 DHT 操作有何不同。确定 TTL 刷新或基于年龄的删除是否适合现有的存储流程,并验证未使用的块会被移除,同时不会刷新为其他目的而读取的块。
由索引模型根据 Issue 内容生成。
描述
Badger has support for TTL records.
We could use TTL on records, but we would also have to modify the blockstore so that any blocks read are written with a new TTL. This implies making sure that that only happens when blocks have been read for the gateway, and not for other things (i.e. providing them on bitswap, or announcing them to the dht).
Then badgerGC would automatically remove non-used blocks.
This doesn't ensure that you don't run out of space (i.e. lots of very recent blocks). It would be better if we could do "delete blocks older than X" rather than giving every block a TTL. In any case might need to be combined with other GC strategy.
- 主要语言
- Go
- 星标
- 194
- 派生
- 38
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ipfs/rainbow 的其他 Issue
-
dif/medium effort/hours help wanted kind/enhancement P3
难度 5/5 一周以上 新手友好度 18/100
-
dif/easy effort/hours help wanted kind/enhancement P2
难度 4/5 3-5 天 新手友好度 38/100
-
dif/expert effort/days P1
难度 5/5 一周以上 新手友好度 25/100
-
need/analysis P3
难度 5/5 一周以上 新手友好度 25/100
相似的 Issue
-
affects-8.5 component/session severity/moderate sig/transaction type/bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
harvester/harvester#12311 · 1 条评论 ·
维护者通常 1 天内回复
-
verifyrun --bracket-digest --credit: relative --witness is could-not-check, absolute path credits未关闭bug effort:s impact:low raised-by:desk risk:low
难度 2/5 1-3 小时 新手友好度 62/100
medici-finance/assay#6580 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
blinklabs-io/gouroboros#3026 ·
维护者通常 1 天内回复