【发布时间】:2018-09-04 23:14:11
【问题描述】:
我正在从文件中读取文本数据并使用 apachestorm 对其进行处理以产生结果。我想尝试不同的输入数据速率。我想知道,我将如何在此设置中更改 apache Storm 中的输入数据速率。也就是输入数据率是:
spout/Time 发出的元组数
【问题讨论】:
标签: apache-storm
我正在从文件中读取文本数据并使用 apachestorm 对其进行处理以产生结果。我想尝试不同的输入数据速率。我想知道,我将如何在此设置中更改 apache Storm 中的输入数据速率。也就是输入数据率是:
spout/Time 发出的元组数
【问题讨论】:
标签: apache-storm
默认情况下,Storm 会尽快将元组拉出 spout。您可以通过一些设置与之交互:
topology.max.spout.pending 定义了在 Storm 将限制 spout 并等待一些元组被确认之前可以将多少元组发送到拓扑中。默认情况下,这是不封顶的。
topology.sleep.spout.wait.strategy.time.ms 定义了如果调用 nextTuple 没有产生输出,Storm 将在 spout 上调用 nextTuple 之间暂停多少毫秒。默认为 1ms。
【讨论】: