动态改变storm的并发度

本文介绍如何在不重启集群或拓扑的情况下,利用Storm的rebalancing特性,动态增加或减少worker进程和executor的数量。通过Storm Web UI或storm rebalance命令,可以灵活调整正在运行的拓扑结构,如调整“mytopology”的worker数量为5,spout“blue-spout”使用3个executor,bolt“yellow-bolt”使用10个executor。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

How to change the parallelism of a running topology, 动态的改变并发度

Storm支持在不restart topology的情况下, 动态的改变(增减)worker processes的数目和executors的数目, 称为rebalancing.
通过Storm web UI, 或者通过storm rebalance命令, 见下面的例子

A nifty feature of Storm is that you can increase or decrease the number of worker processes and/or executors without being required to restart the cluster or the topology. The act of doing so is called rebalancing.

You have two options to rebalance a topology:

Use the Storm web UI to rebalance the topology.(怎么使用?)
Use the CLI tool storm rebalance as described below.

Here is an example of using the CLI tool:

Reconfigure the topology “mytopology” to use 5 worker processes,

the spout “blue-spout” to use 3 executors and

the bolt “yellow-bolt” to use 10 executors.

$ storm rebalance mytopology -n 5 -e blue-spout=3 -e yellow-bolt=10

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值