[cardano-testnet] Enhancements for status command
Maintainer thường phản hồi trong vòng 2 ngày
@palas đang làm issue này rồi.
Từ ngày 27/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Today each node row shows the name, role, state, pid and tip (slot, block, age), and the JSON adds pidAlive and the tip hash. A few additions would make the report more useful when something goes wrong:
- Point at the logs of a node that is down or unreachable. The manifest already records each node's
stdoutFileandstderrFile, butstatusdoes not read them. Printing thestderr.logpath, or its last line, for an unhealthy node answers the first question a user has, with one file read and no network call. - Mempool size and capacity per node. This shows transactions that are stuck or not accepted. cardano-api exposes it through
queryTxMonitoringLocalwithLocalTxMonitoringMempoolInformation. The tx monitor cannot share a state-query session, so this needs a second N2C connection per node, with its own timeout, run only after the tip query has succeeded. - Era, epoch and slot in epoch. The report does not show where the chain is in time. One
executeLocalStateQueryExprsession can bundlequeryCurrentEraandqueryEpoch. These are the same on every node, so querying one healthy node is enough, and slot in epoch can be computed from the Shelley genesis thatstatusalready reads. The manifest'snetwork.erais the era the testnet started in, so it can be stale after a hard fork.
Two lighter ideas, which need no new queries because they use data status already fetches:
- Blocks behind the best tip. A column with each node's distance from the best tip in block numbers shows which node is falling behind before it counts as stalled.
- Fork detection. Two nodes at the same block number with different tip hashes are on different forks. The hash is already in the JSON, so a warning in the summary would be cheap.
Potential enhancement, out of scope for this PR: node metrics such as peer counts, blocks forged, missed slots and memory use. They come from cardano-tracer's Prometheus endpoint, which exists only with --enable-tracer, and its port is not written to the manifest (only the in-memory TestnetRuntime has it). Supporting this needs an optional manifest field and an HTTP client, so it fits a follow-up PR better.
Originally posted by @carbolymer in https://github.com/IntersectMBO/cardano-node/pull/6741#discussion_r4349049608
- Ngôn ngữ chính
- Haskell
- Star
- 3.2k
- Fork
- 763
- Merge trung bình
- 3 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của IntersectMBO/cardano-node
-
Stale
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 75/100
IntersectMBO/cardano-node#6597 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
IntersectMBO/cardano-node#6522 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
IntersectMBO/cardano-node#6755 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Dijkstra PV12 needs triage type: regression
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
IntersectMBO/cardano-node#6748 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[cardano-testnet] Modify `renderStatusReportHumanReadable` to return `Doc Ann` instead.Có thể đã có người làm @palas đã nhận 7 ngày trước. Đang mở
IntersectMBO/cardano-node#6746 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của IntersectMBO/cardano-node
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
halogenandtoast/ArkhamHorror#5951 ·
-
no source repo for time-managerĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
yesodweb/wai#1163 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
clash-lang/clash-compiler#3521 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Web.Scotty.Trans.Lazy.setHeader calls addHeader instead of setHeaderCó thể đã có người làm @tusharad đã nhận 2 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
scotty-web/scotty#436 ·
-
Broken links in the docsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
input-output-hk/haskell.nix#2617 ·