mod_cband

Some people who know me will be aware of my recent problems with high traffic loads on one of my sites. With a constant load of 6Mbps. the projected total traffic is far too much for me to supply. mod_cband to the rescue.

mod_cband source [ sourceforge.net ]

quick and easy install guide [ howtoforge.com ]

note: a problem that the howtoforge guide doesn’t tell you about is that apxs, the apache extension tool doesn’t work perfectly on debian. apxs requires httpd.conf to be populated with at least one LoadModule directive (even if it is mod_foo). so you’ll have to add something like the following into httpd.conf before executing make install.

# This is here for backwards compatability reasons and to support
#  installing 3rd party modules directly via apxs2, rather than
#  through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so

Quick Tip:

Don’t just use any arbitrary value for the CBandSpeed configuration. It may cause more harm than good. Always set to a reasonable value, watch your system resources and keep tuning the values until you hit a good balance. Queuing of packets due to bandwidth limiting can consume a lot of RAM. You can check the queue length with netstat.

Related posts:

  1. cisco vpn client on ubuntu 6.06 LTS
  2. Finch
  3. Control Plane Policing
  4. multi-threaded apache and php5

This entry was posted on Sunday, January 13th, 2008 at 7:59 pm and is filed under technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply