如何在 apache 风暴中以字节为单位监视元组大小?

How to monitor the tuple size in byte in apache storm?

我想知道在所有螺栓和喷口之间传输的数据大小。有谁知道如何以字节为单位找到元组大小?

您可以启用 topology.serialized.message.size.metrics。文档说:

Enable tracking of network message byte counts per source-destination task. This is off by default as it creates tasks2 metric values, but is useful for debugging as it exposes data skew when tuple sizes are uneven.

那么您的尺码应该可以使用标准指标。

请注意,并置在单个 worker 上的 bolts 显然在本地传输它们的元组,没有任何序列化,因此它们的传输大小将为 0。