[STORM-167] proposal for storm topology online update
メンテナーはふだん 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 の本文から書いたものです。
説明
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 ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/storm のほかの issue
-
docker-to-squash.py: check_dependencies should find mksquashfs on PATH対応中かも @linzch3 が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
docker-to-squash.py: get_working_dir creates a new directory on every call, so push-update cannot find pulled images対応中かも @linzch3 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
docker-to-squash.py does not run on Python 3対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
apache/storm#9155 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
Kafka spout cannot commit past a message that always fails to deserialize対応中かも @linzch3 が 10 日前に担当しました。 オープンbug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
apache/storm#9078 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
micronaut-projects/micronaut-core#14585 ·
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
opensearch-project/cross-cluster-replication#1805 ·
メンテナーはふだん 1 日以内に返信
-
feature request needs triage
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
TeamNewPipe/NewPipe#14083 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
PCL-Community/PCL-CE#3907 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 2 日以内に返信