[STORM-167] proposal for storm topology online update

Abierto
#4,009 16 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
java

Línea de trabajo

El issue menciona el comando de actualización del cliente, Nimbus, el versionado de ZooKeeper, los supervisores, sync-supervisor y sync-process; empieza rastreando esos puntos de entrada y lee el issue enlazado #540. Se considera terminado cuando una topología en ejecución puede recibir un jar nuevo con los workers actualizados uno a uno, sin cambiar el DAG ni interrumpir completamente el servicio, y el progreso es visible a través de las versiones de heartbeat de los workers.

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

Descripción

enhancement

https://github.com/nathanmarz/storm/issues/540

Now update topology code can only be done by kill it and re-submit a new one. During the kill and re-submit process some request may delay or fail. It is not so good for online service. So we consider to add topology online update recently.

Mission

update running topology code gracefully one worker after another without service total interrupted. Just update topology code, not update topology DAG structure including component, stream and task number.

Proposal

  • client use "storm update topology-name new-jar-file" to submit new-jar-file update request
  • nimbus update stormdist dir, link topology-dir to new one
  • nimbus update topology version on zk
  • the supervisors that running this topology update it
    • check topology version on zk, if it is not the same as local version, a topology update begin
    • each supervisor schedule the topology's worker update at a rand(expect-max-update-time) time point
    • sync-supervisor download the latest code from nimbus
    • sync-process check local worker heartbeat version(to be added), if it is not the same with sync-supervisor downloaded version, kill the worker
    • sync-process restart killed worker
    • new worker heartbeat to zk with version(to be added), it can be displayed on web ui to check update progress.

This feature is deployed in our production clusters. It's really useful for topologys handling online request waiting for response. Topology jar can be updated without entire service offline.

We hope that this feature is useful for others too.


Originally reported by xumingming, imported from: proposal for storm topology online update
  • assignee: parth.brahmbhatt
  • status: Closed
  • priority: Minor
  • resolution: Abandoned
  • resolved: 2024-07-02T10:54:46+01:00
  • imported: 2025-01-24
Lenguaje dominante
Java
Estrellas
6.7k
Forks
4k
Merge medio
1 d 5 h
PR fusionados (30 d)
86

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

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 apache/storm

Todos los issues de apache/storm

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.