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

Đang mở
#10,328 0 bình luận 0 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
performance, testing

Hướng nghiên cứu

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.

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

Mô tả

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)

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.