Observability blind spots found in the 11-12 live investigation (item ledger, history retention, alerts)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, sqlite
- Lĩnh vực
- backend, observability
Hướng nghiên cứu
This is a multi-part design issue, not a single change. Start with the hourly bucket code behind npc_sale and monster_gold, then the economy_ledger writer and the history.sqlite pruner, and read #3302 for the census index. Done when each checklist box is a merged change or a recorded decision not to do it.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The 2026-11-12 live investigation (#3302, #3303 and the starter-refill issue) had to infer facts the server should record. Each line is data we lacked; fix them so the next investigation reads facts instead of joining timestamps.
Items
- No item ledger. Gold has
economy_ledger; items have nothing. A grant (starter kit, refill, quest, GM, mall, drop pickup), a merchant sale, a stall or exchange transfer and a destroy leave no row saying which item, how many, and through which door. A duplication cannot be proved or cleared after the fact without diffing nightly backups. -
npc_saleandmonster_goldfold into hourly buckets holding onlytotalandn. The item sold is lost at once. Keep a per-character, per-item hourly bucket (item ref, count, gold). -
stall_saleandexchangerows name no counterparty and no item. Finding who paid 1,000,000,000 to whom, and for what, took a self-join onat_ms. Record the counterparty character and the items on both sides.
Sessions
-
history.sqlitekept only about 90 minutes: two accounts wrote most of 200k events (every transport log line of every session becomes an event) and the pruner dropped everyone's older history. Budget events per account, and do not store per-session transport info lines as history events. - GameWorld and Agent logs live only in the Nomad alloc and vanish at the next release. Ship them to durable storage with a retention rule (they hold player names, so staff-only).
- The Agent logs only refused admission tickets. Count minted tickets per account (a counter and a journal column), so a mint rate is visible.
- The connection journal has no per-session summary of what the session did: frames in, opcodes used, time to first action. "Entered, sold, left in one second" was inferred from three stores.
Detection
- Nothing alerted.
account_session_evictionsreached 74k, one account opened 3 sessions a second for a day, and 97% of the connection journal came from four accounts. The monitor needs rate alerts: sessions per account per minute, evictions per minute, entries per character per hour, merchant sales per entry. - A websocket session with no User-Agent is not a browser (every browser sends one). It is recorded and never surfaced. Show it in the console and count it.
- The console has no "top accounts by session churn / by minted gold per hour" view; the hourly buckets already hold the gold half.
- Every free grant (kit, refill, beta silk, starter silk) needs a counter per account per day, so a mint shows as a number that grows.
Performance of the tools themselves
- The census index is quadratic in sessions per account (#3302), so the abuse it should expose degrades the server.
Done when each box is a merged change or a recorded decision not to do it.
- Ngôn ngữ chính
- Go
- Star
- 97
- Fork
- 61
- Merge trung bình
- 4 giờ 14 phút
- Pull request đã merge (30 ngày)
- 913
Chuẩn bị môi trường
- Không có Dockerfile hay 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 opensro-dev/opensro
-
area: client enhancement priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
opensro-dev/opensro#3681 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: client bug priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
opensro-dev/opensro#3228 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Format one minified client file with dprint (ongoing: one file per PR)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea: client enhancement good first issue priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
opensro-dev/opensro#1 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: server bug priority: medium
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 55/100
opensro-dev/opensro#3687 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: ops bug priority: high
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
opensro-dev/opensro#3685 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của opensro-dev/opensro
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
unbound-force/gaze#353 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug cross-seed ready-for-human
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
OneBusAway/maglev#2102 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
affects-8.5 component/session severity/moderate sig/transaction type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Waiting start: the fixed 503 body says another instance holds the lease when that may not be soĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
Judgment-Pack/judgment-pack-gateway#474 ·
Maintainer thường phản hồi trong vòng 1 ngày