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

オープン
#10,264 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
Rust
スター
1.6k
フォーク
251
平均マージ
10時間 10分
マージ済み PR(30日)
832

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

moq-dev/moq のほかの issue

moq-dev/moq の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。