使用 setStatsSampleRate/topology.stats.sample.rate 的性能影响 [英] Performace impact of using setStatsSampleRate/topology.stats.sample.rate

查看:19
本文介绍了使用 setStatsSampleRate/topology.stats.sample.rate 的性能影响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 yaml 中设置 topology.stats.sample.rate: 1.0 对性能有什么影响?

What is the performance impact of setting topology.stats.sample.rate: 1.0 in yaml?

这是如何工作的?

推荐答案

topology.stats.sample.rate 配置计算 Storm 拓扑统计数据的速率.

topology.stats.sample.rate configures the rate at which a Storm topology statistics would be calculated.

defaults.yaml 中的默认值为 <代码>0.05.这意味着 100 个事件中只考虑了 5 个.
1 的值表示要计算每个元组的统计信息.

Default value in defaults.yaml is 0.05. This means only five out of 100 events are taken into account.
The value of 1 means each tuple's statistics is going to be calculated.

这会降低性能吗?很可能很多人会说是,但由于每个环境都不同,我会说最好自己衡量.增加和减少值并测量拓扑的吞吐量.

Is this going to decrease performance? Most likely many will say yes but since each environment is different, I would say it is better to measure it yourself. Increase and decrease the value and measure the throughput of your topology.

这篇关于使用 setStatsSampleRate/topology.stats.sample.rate 的性能影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆