[STORM-167] proposal for storm topology online update

Aperta
#4,009 16 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java

Direzione di ricerca

La issue cita il comando di aggiornamento del client, Nimbus, il versionamento di ZooKeeper, i supervisori, sync-supervisor e sync-process; inizia tracciando questi punti di ingresso e leggi la issue collegata #540. Il lavoro è completato quando una topologia in esecuzione può ricevere un nuovo jar, con i worker aggiornati uno alla volta, senza modificare il DAG né interrompere completamente il servizio, e l'avanzamento è visibile tramite le versioni di heartbeat dei worker.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Java
Stelle
6.7k
Fork
4k
Merge medio
1g 5h
PR unite (30g)
86

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/storm

Tutte le issue di apache/storm

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.