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!
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With