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

Abierto
#10,264 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

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.

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

Descripción

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)

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.