本文介绍了如何监控Amazon S3服务中对象的带宽?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以编程方式监视AWS S3服务中对象的带宽?我想这样做是为了防止正在使用我们的服务的客户过度使用带宽,并使我们付出的费用超出我们的承受能力.我们希望将每个对象的带宽限制为1TB.

How can programmatically monitor the bandwidth of an object in AWS S3 service? I would like to do this to prevent excessive bandwidth usage by clients who are using our services and costing us more than we can afford. We like to limit 1TB bandwidth for each object.

推荐答案

详细的使用情况报告仅针对每个存储桶,而不针对每个对象.

The detailed usage reports are just per bucket, not per object.

您可以做的是启用日志记录并解析一次日志一个小时左右.这当然不是即时的,但是它将阻止人们前进超出您的使用限制.

What you could do is enable logging and parse the logs once an hour or so. It's certainly not instant, but it would prevent people from going way over your usage limits.

从某种意义上说,s3stat是一个不错的选择.一旦您每月开始执行超过5000万个请求,它们就会难以处理数据.

Also, s3stat is a good option up to a point. Once you start doing more than ~ 50 million requests per month, they have trouble crunching the data.

这篇关于如何监控Amazon S3服务中对象的带宽?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 08:02