限制籍由带宽 [英] Limiting Membership By Bandwidth

查看:142
本文介绍了限制籍由带宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚部署(使用S3媒体和RDS为MySQL)一个codeigniter应用Amazon EC2的。

I've just deployed a Codeigniter application to Amazon EC2 (using S3 for media and RDS for MySQL).

我需要根据带宽的使用量来限制用户帐户访问 - 帐户将根据带宽例如基本帐户£x对于高达每月20GB等。

I need to restrict user account access based on the amount of bandwidth used - accounts will be based on bandwidth e.g. Basic account £x for up to 20GB per month etc.

不过我不知道该怎么做是最好的方法就是。

However I've no idea what the best way to do this is.

我的EC2实例的Ubuntu的Apache2与是否有帮助。

My EC2 instances are Ubuntu with Apache2 if that helps.

任何想法AP preciated!

Any ideas appreciated!

谢谢!

推荐答案

您可以使用亚马逊的API来检查,而不是使用日志的带宽使用。
正如你所说,你正在使用S3来管理资产,如果您创建为每个用户一个新的水桶和检查带宽使用,然后如果他/她超过该限制限制该帐户将是不错的。

You can use the amazon's API to check the bandwidth usage , instead of using the logs . as you have said that you are using s3 for managing the assets , it will be good if you create a new bucket for every user and check the bandwidth usage and then limit the account if he/she exceeds that limit.

这篇关于限制籍由带宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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