chore(infra): `GET /healthz?deep=1` through the database and a `status.woven` probe; SLO measured on it
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- postgresql, rust
調査の方向性
Start with crates/thrust-api/src/lib.rs and the Database port in crates/thrust-ports/src/lib.rs; read the existing /healthz handler and the blocker #37 outcome before choosing the probe path. Check the contract test and the Gatus configuration in the infrastructure repository, since both repositories are involved. Done means the deep probe reports database availability, Gatus records it as the SLO source, and the specified ADR, questions, and spec updates are complete.
索引モデルが issue の本文から書いたものです。
説明
Context
/healthz returns ok without touching the database (crates/thrust-api/src/lib.rs:132-134, mounted at line 271; research/0004:389), and the Database port has no ping method (crates/thrust-ports/src/lib.rs:92-138). status.woven is the Gatus page, configured in shared/aws/status-page/files/gatus.yaml in the infra repository (process: infrastructure/.claude/rules/status-page.md). It does not probe the Thrust database path (research/0010:176). Q-0130.3 was answered in round 18: Gatus probes health and API SLIs (QUESTIONS.md:247). The SLO is 99.5 % availability (SPEC.md:78), which over 30 days allows about 3.6 hours of downtime.
Problem
Product availability now includes:
woven-o11y, an observability cluster that was upgraded from 1.32 to 1.37 four days before the Postgres landed, with a primary PodDisruptionBudget of 0 onthrust-pg;- the tunnel's
cloudflaredpods, which both clusters share; - a beta Workers VPC (ADR-0094:39;
research/0010§6 risks 1, 2 and 7).
Q-0094.4 (QUESTIONS.md:303) asks whether that is acceptable for the SLO and whether status.woven should probe the path; Q-0094.7 (QUESTIONS.md:339) lists the probe too. Nothing measures the coupling today, so a breach of the budget would go unseen.
Proposal
Answer Q-0094.4 with three conditions (ADR-0094 round-29 note):
- Deep probe.
GET /healthz?deep=1on the product hostname runs one statement through the database and returns 200ok, or 503 with no error detail; plain/healthzstays database-free. Add an untenantedpingto theDatabaseport (under theSystemScopefrom #35). Use a statement that Hyperdrive never caches, such asSELECT now(): Hyperdrive caches reads that use onlyIMMUTABLEfunctions, soselect 1could be answered from its cache on any config with caching enabled (hyperdrive/concepts/query-caching). If #37 picks the Durable Object, the probe goes through the object instead. - Probe and SLO.
status.wovenprobes that URL every 60 s, and the SLO is measured on the probe end to end, so cluster upgrades and tunnel outages count against the budget. - Exit trigger, written into ADR-0094: two breaches of the monthly budget in one quarter, or an EKS upgrade that needs more than the budget, moves the database to ADR-0094 Option 3 (managed Postgres) or to the #37 outcome.
The probed path must stay outside any Access gate. The prober is a non_identity WARP session, and gating a probed host breaks it (ADR-0141:17). Product hostnames are planned behind Access (SPEC.md:89), so the bypass for /healthz belongs with #50.
Acceptance criteria
- Contract test
deep_healthz_reports_the_databasereturns 200 with the database up and 503 with it unreachable. The control is aConnectorthat always fails, or a stoppednative-pgcontainer. -
curl -s http://status.woven/api/v1/endpoints/statuseslists the Thrust deep probe with recent results. A deliberate failure (stopping the dev database, or pointing at a wrong path) turns it red within two intervals, and it turns green again afterwards. - A 30-day availability figure is read from the probe's Gatus uptime, and SPEC §6.4 and Q-G5.2 name the probe as the SLO source.
- ADR-0094 carries the exit trigger, Q-0094.4 is answered, and the probe item of Q-0094.7 is closed.
References
- Review: .agents/plans/contrail/reviews/2026-10-19-fable-architecture-review.md (FR-10)
crates/thrust-api/src/lib.rs:132-134,271;crates/thrust-ports/src/lib.rs:92-138- ADR-0094 (
.agents/plans/contrail/adrs/infra/0094-postgres-hosting-cnpg-tunnel-vpc.md:39,44,58-61); ADR-0141:17; ADR-0130 (Q-0130.3) - Q-0094.4 (
QUESTIONS.md:303), Q-0094.7 (QUESTIONS.md:339), Q-G5.2 (QUESTIONS.md:299); SPEC §6.4 (SPEC.md:78,83,89) research/0010-thrust-postgres-infra-plan.md:174-187;research/0004-rust-on-workers-binding-matrix.md:389- Infra repository:
shared/aws/status-page/files/gatus.yaml,infrastructure/.claude/rules/status-page.md - Cloudflare docs: hyperdrive/concepts/query-caching
Blocked by: #37
Finding: FR-10
- 主要言語
- Rust
- スター
- 0
- フォーク
- 0
- 平均マージ
- 1時間 35分
- マージ済み PR(30日)
- 67
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aRustyDev/thrust のほかの issue
-
area:process prio:p1 type:security
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
area:process bug prio:p1
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
メンテナーはふだん 1 日以内に返信
-
area:process prio:p1
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
area:process prio:p1
難易度 4/5 1〜2日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
area:process prio:p1
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
メンテナーはふだん 1 日以内に返信
aRustyDev/thrust の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
area:frontend kind:bug priority:p3 ready
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug priority: medium ui
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
storytold/vectorcraft#6333 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug lexer
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
yara-x fails to build with rsa 0.10.0: unresolved import rsa::Pkcs1v15Sign対応中かも @CfirTsabari が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 87/100
VirusTotal/yara-x#865 ·
メンテナーはふだん 1 日以内に返信