Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Limiting Membership By Bandwidth

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

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.

My EC2 instances are Ubuntu with Apache2 if that helps.

Any ideas appreciated!

Thanks!

like image 264
logic-unit Avatar asked Jun 16 '11 13:06

logic-unit


People also ask

What does limiting the bandwidth do?

Bandwidth limitations are available to restrict the amount of network bandwidth used for Double-Take Move data transmissions. When a bandwidth limit is specified, Double-Take Move never exceeds that allotted amount. The bandwidth not in use by Double-Take Move is available for all other network traffic.

How do I limit bandwidth convergence?

Click Manage Device, select the phone or computer that you want to set a limit on, toggle on Limit Rate, and click the icon in Speed limit Values to set the maximum upload and download rate.

What is bandwidth limiter?

A bandwidth limiter can “level the playing field” and make sure that each computer receives adequate bandwidth. This helps to prevent pages from loading slowly when someone else on the network is downloading music, videos, etc.


1 Answers

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.

like image 166
Vamsi Krishna B Avatar answered Oct 17 '22 08:10

Vamsi Krishna B