Sprite is killed 60–190s into sustained heavy IO (pg_restore of an ~900MB dump): root overlay unmounts, all processes SIGKILLed
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 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時間
- マージ済み PR(30日)
- 4
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
superfly/sprites-docs#237 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
superfly/sprites-docs#231 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 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