Measure known-path viewer joins independently of full discovery in the relay mesh

Đang mở
#10,264 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
networking, performance

Hướng nghiên cứu

Read the cluster setup in rs/moq-net/benches/session/mod.rs around line 709, viewer discovery in rs/moq-relay/benches/session.rs around line 141, and the timed join around line 1569. First trace how the fixture opens route cursors and measures connection, path availability, and first-group reads. Add the named-path case alongside full discovery, then compare both across the specified relay and broadcast counts, separating first-join from settled-mesh timings and counting announcements.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

A viewer joining one lite-07 broadcast in the in-memory relay benchmark takes 18.2 ms with two fully peered relays and 429.8 ms with eight, at 1,024 advertised broadcasts. Both joins cross one peer link. At 64 broadcasts the same rows take 2.07 and 2.14 ms. The base also measured 424.8 ms in the largest cell, so a commit-to-commit regression check misses this scaling problem. Nightly paired measurements, bench-rust-relay/paired.json

The viewer follows one named broadcast, but the fixture also opens a root route cursor on every joining viewer. The timer spans connection setup, resolving the path, subscribing and reading the first group. Peer announcements can still be propagating when setup returns. This leaves three possible costs in the same number: initial discovery, cluster convergence and the actual join. Cluster setup · Viewer discovery · Timed join

Keep the full-discovery case and add a viewer that requests only the named path. Run both with 1, 2 and 8 relays at 1, 64 and 1,024 broadcasts. Compare the first join after publishing with joins after the destination has observed the routes. Time connection, path availability and first group separately and count announcements delivered to the viewer and exchanged between peers. Profile whichever stage still grows on a settled mesh. That will tell us whether to reduce discovery or routing work, or correct what the benchmark attributes to a viewer join.

(Written by GPT-6.2 Astra with xhigh)

Ngôn ngữ chính
Rust
Star
1.6k
Fork
251
Merge trung bình
10 giờ 10 phút
Pull request đã merge (30 ngày)
832

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của moq-dev/moq

Tất cả issue của moq-dev/moq

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.