gpt4 book ai didi

amazon-web-services - 网络数据输出 - nmon/nload 与 AWS Cloudwatch 差异

转载 作者:行者123 更新时间:2023-12-04 13:52:33 25 4
gpt4 key购买 nike

我们正在 EC2 实例中运行视频 session 服务器。
由于这是一个数据输出(导出)繁重的应用程序,我们希望密切监视网络数据(因为我们为此付出了沉重的代价)。
enter image description here
如上图所示,在我们的测试中,使用 nmon (右上角)或 nload (左)在我们的 EC2 服务器中将网络显示为 138 Mbits/s 在 nload 和 17263 KB/秒 在 nmon 中非常接近 (138/8 = 17.25)。
但是,当我们在 中 check out 网络(字节)时AWS Cloudwatch (右下),显示的数字非常高 (~ 1 GB/s) (这对我们正在运行的测试更有意义),这是我们最终要收费的数字。
为什么 nmon/nload 和 AWS Cloudwatch 差别这么大?
我们在这里缺少一些理解吗?我们是否没有正确查看 AWS Cloudwatch 指标?
感谢您的帮助!
编辑:
添加较长测试的屏幕截图,该屏幕显示 AWS Cloudwatch 中的平均网络输出指标在测试持续时间内持平在 1 GB 左右,而 nmon 显示平均网络输出为 15816 KB/s。
enter image description here

最佳答案

来自 AWS docs :

NetworkOut: The number of bytes sent out by the instance on all network interfaces. This metric identifies the volume of outgoing network traffic from a single instance.The number reported is the number of bytes sent during the period. If you are using basic (five-minute) monitoring, you can divide this number by 300 to find Bytes/second. If you have detailed (one-minute) monitoring, divide it by 60.

NetworkOut您的情况下的图表不代表当前速度,它代表所有网络接口(interface)在过去 5 分钟内发送的字节数。如果我的计算是正确的,我们应该得到以下值:
1.01 GB ~= 1027 MB (reading from your graph)

To get the average speed for the last 5 minutes:

1027 MB / 300 = 3.42333 MB/s ~= 27.38 Mbits/s
它仍然超出您的预期,尽管这只是最后 5 分钟的平均值。

关于amazon-web-services - 网络数据输出 - nmon/nload 与 AWS Cloudwatch 差异,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68070299/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com