Quantcast
Viewing all articles
Browse latest Browse all 49203

Use Aegir to manage bandwidth and diskspace quota per site

I need to be able to control site users' bandwidth and diskspace usage.

At this point we are primarily concerned with bandwidth.
I thought I'd get some feedback on how I'm thinking about solving this issue:

  • Create a module for Aegir that requires Apache module mod_cband (http://codee.pl/cband.html).
  • Module provides a settings panel per site that allows for bandwidth limits to be set.
  • Module implements hook_provision_apache_vhost_config which generates vhost config for each site that reflects the bandwidth settings.

And advanced features:

  • Provide a Drupal module on the client site so they can monitor their bandwidth usage.
  • Settings page to adjust CBandExceededURL (URL site goes to when bandwidth is exceeded)
  • Cron job that monitors the bandwidth usage (via /cband-status?xml) and sends email alerts when bandwidth nears limits?

For the diskspace monitoring, I've not thought about it too much, but I'm thinking a drush script that runs du on the sites/site.com/files folder?

Another issue we might like to look at in the future is managing creation of mail & ftp accounts.

Feedback very welcome.


Viewing all articles
Browse latest Browse all 49203

Trending Articles