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

Abierto
#10,328 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)

Lenguaje dominante
Rust
Estrellas
1.6k
Forks
251
Merge medio
10 h 10 min
PR fusionados (30 d)
832

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de moq-dev/moq

Todos los issues de moq-dev/moq

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.