WASM components: add a wall-clock cutoff (Wasmtime epoch interruption) next to fuel and memory limits
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 39/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- backend, performance
Línea de trabajo
Start with elastos/crates/elastos-compute/src/providers/component.rs and trace how component calls configure fuel and memory limits. Read the Wasmtime 36.0.19 epoch interruption APIs, then identify the Runtime ticker and per-capsule configuration entry points. Done means deadline errors stop overdue calls while keeping the Runtime responsive, configurable limits and coverage for all three call scenarios, plus Jetson overhead measurements.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Today: component capsules run with a fuel limit and a memory limit (elastos/crates/elastos-compute/src/providers/component.rs: consume_fuel, set_fuel(COMPONENT_FUEL), StoreLimitsBuilder::memory_size). They have no time-based limit.
Proposal (Sash, 22 Oct): enable Wasmtime epoch interruption (Config::epoch_interruption), with a Runtime ticker and a per-call deadline, so a call also ends after a set wall-clock time. That covers time spent outside fuel accounting.
Done means:
- a component call that exceeds its deadline is stopped with a clear error, and the Runtime stays responsive;
- the deadline is configurable per capsule class;
- tests cover a busy loop, a long host-call wait and a normal call under the limit;
- the overhead is measured on the Jetson.
Not in 0.8.0. The Wasmtime 36.0.19 security update is already on the 0.8.0 train.
- Lenguaje dominante
- Rust
- Estrellas
- 6
- Forks
- 2
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 42
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de elastos/elastos-runtime
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
elastos/elastos-runtime#563 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
elastos/elastos-runtime#508 ·
Los mantenedores suelen responder en 1 día
-
Documents: Markdown preview web links go through Home's confirmed link flow (#430 follow-up)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
elastos/elastos-runtime#436 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
elastos/elastos-runtime#427 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
elastos/elastos-runtime#405 ·
Los mantenedores suelen responder en 1 día
Todos los issues de elastos/elastos-runtime
Issues similares
-
bug good first issue help wanted linux macos testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
area: app type: test
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
storytold/photocraft#12706 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug priority-low to-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
examples/dca and limit-order: swap always fails on the real Soroswap router (deadline equals now)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
sorocon-labs/sorocron#172 ·
Los mantenedores suelen responder en 1 día