Sprite is killed 60–190s into sustained heavy IO (pg_restore of an ~900MB dump): root overlay unmounts, all processes SIGKILLed
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- postgresql
调研方向
从生命周期文档开始,然后使用提供的 org、sprite 名称和 2026-08-24 时间窗口,将平台日志与 overlay 的卸载和重新挂载进行关联。复现持续的 pg_restore 工作负载,并记录已确认的写入负载限制或行为,包括当前的 workaround,以及 Tasks API 和 /tmp 损坏相关的观察结果是否应归入单独的 issue。
由索引模型根据 Issue 内容生成。
描述
Symptom
Restoring an 884 MB pg_restore custom-format dump into on-sprite Postgres gets the sprite hard-killed 60–190 s in, every time: every process is SIGKILLed, the exec stream dies (local CLI exit 137, or websocket: close 1006 (abnormal closure)), and the guest's dmesg shows the root overlay being unmounted and remounted while VM uptime is preserved:
EXT4-fs warning (device loop1): ext4_convert_unwritten_extents_endio:...
EXT4-fs (loop1): unmounting filesystem <uuid>.
loop1: detected capacity change from 0 to 209715200
EXT4-fs (loop1): mounted filesystem <uuid> r/w with ordered data mode.
No guest OOM (8 GB total, several GB available throughout; cgroup memory.max = max). Reproduced 9/9 attempts across two different sprites, including a freshly created one. Org carl-fyffe-210, sprites ch-01 and www-01, 2026-08-24 00:30–02:15 UTC, if that helps you correlate platform logs.
Repro
sprite create test; sprite exec→ apt install postgresql + postgresql-18-pgvector, trust local connections.- Put a ~900 MB pg_dump custom-format dump on the sprite (the S3 download itself is fine — 884 MB to /tmp in 15 s).
createdb x && pg_restore -d x --no-owner --no-acl /tmp/dump→ killed 60–190 s in, per above.
The same dump restores cleanly on a laptop in 5:45, so the workload itself is ordinary — roughly 6 minutes of sustained mixed Postgres writes (heap + WAL, checkpoints every ~10 s at ~500 MB WAL distance).
Ruled out
Killed identically under: plain exec, exec --tty, nohup-detached (no exec session at all), a Tasks-API hold, fsync=off + synchronous_commit=off + full_page_writes=off, max_wal_size=8GB (no checkpoint storm), input throttled to 8 MB/s, and a sync && drop_caches sidecar. So it is not idle-pause, not an exec-session limit, and apparently not guest memory or raw write rate.
Controls that pass on the same sprites: 884 MB HTTP download to /tmp (15 s), a single 1.5 GB dd conv=fsync burst to the overlay at 154 MB/s, and 2.5 min of paced 64 MB dd conv=fsync chunks with sleeps. Only the sustained multi-minute restore pattern dies.
Working workaround
Chunking the restore — schema in one pass, then each TOC data item and each post-data item via pg_restore -L with settle sleeps between — completed with zero kills and a byte-equivalent result. It works, but it turns a 6-minute restore into hours, and the failure mode (silent SIGKILL of everything, half-restored database) is rough to discover.
Questions
- Is there a documented limit on sustained overlay write load that kills the sprite? If deliberate, the lifecycle docs should state it — the current docs only describe idle-based pausing.
- Two secondary observations from the same investigation, happy to split into separate issues: the Tasks API accepts a
commandfield but never executes it (only the name+expire lease works), and after one of these kills a sprite's/tmpcame back with EBADMSG corruption until destroyed.
- 主要语言
- MDX
- 星标
- 53
- 派生
- 5
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 4
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
superfly/sprites-docs 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
superfly/sprites-docs#226 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 75/100
superfly/sprites-docs#220 ·
维护者通常 1 天内回复
-
Add S3 Object Store, Anthropic, and Discourse to the connectors Providers table可能重新可做 @kcmartin 于 85 天前认领,目前没有进行中的 PR。 未关闭
superfly/sprites-docs#237 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
superfly/sprites-docs#231 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
superfly/sprites-docs#230 · 2 条评论 ·
维护者通常 1 天内回复
查看 superfly/sprites-docs 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
Solvro/web-hrownik#244 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug data-types
难度 2/5 1-3 小时 新手友好度 88/100
ClickHouse/clickhouse-js#1292 ·
维护者通常 1 天内回复
-
bug documentation queries
难度 2/5 1-3 小时 新手友好度 82/100
ClickHouse/clickhouse-cs#815 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100