moq-bench: catch-up groups on join count as delivery latency

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

Start in rs/moq-bench/src/connection.rs, especially read_group, and trace how subscription setup relates to the timestamp_ms used for latency samples. Decide how to separate groups published before subscription establishment from live delivery, then check the interval percentiles during a ramp; done means catch-up groups no longer inflate live delivery latency, with an optional separate catch-up histogram.

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

説明

Problem

moq-bench times every group it reads from the publisher's timestamp_ms in the group's keyframe header (rs/moq-bench/src/connection.rs, read_group). A new subscription's first groups are whatever the relay serves on join, published before the subscriber existed, so their "latency" is their age plus the join time. While connections are still ramping, those catch-up samples set the p99.

Measurement

--fanout chat --fps 1 --frame-size 200, two generators ramping linearly to 1,500 connections each at 8.3 connections/s, against one relay (moq 62c0ec81):

  • Interval p99 at 41 connections was 2.9 s against a p50 of 34-45 ms, and fell steadily as the joiners' share of the samples shrank.
  • In the first report after the ramp reached 1,500 per generator, at the same connection count, p99 fell from 791 ms to 177 ms on one generator and from 758 ms to 239 ms on the other. Through the following minute's hold it stayed at 172-289 ms.

So a ceiling run, which only measures during a ramp, reports join catch-up as delivery latency (576-814 ms p99 at ~3,800 connections in our runs, where the steady figure is likely close to 300 ms).

Ask

Count a subscription's groups published before it was established separately, or leave them out of the latency histogram, so interval percentiles measure live delivery during a ramp. A separate catch-up histogram would also make the join path's latency measurable.

(Written by Claude Opus 5.5 with medium)

主要言語
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 を短くまとめたダイジェスト。