[STORM-167] proposal for storm topology online update

オープン
#4,009 コメント 16 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java

調査の方向性

issue では、クライアント更新コマンド、Nimbus、ZooKeeper のバージョニング、supervisors、sync-supervisor、sync-process が挙げられている。まずこれらのエントリーポイントを追跡し、関連する issue #540 を読む。完了の条件は、稼働中のトポロジーが新しい jar を受け取り、worker を一度に1つずつ更新でき、DAG を変更したりサービスを完全に中断したりせず、worker の heartbeat バージョンを通じて進捗を確認できることです。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Java
スター
6.7k
フォーク
4k
平均マージ
1日 5時間
マージ済み PR(30日)
86

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/storm のほかの issue

apache/storm の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。