Rails App, Nginx, Virtual Hosts and bandwidth shaping


#1

Hi,
I’m testing a Rails app that serves multiple different sites with a
virtual hosts configuration (nginx web server). I need to set a limit
per host basis so a single site is unable to eat all the bandwidth and
server resources. Which solution can be more useful? Some hypothesis:

  • A web server module (mod_band, etc…)
  • A monitor/filter inside the app
  • A system level way (es TC).

Any hint?
Thank you in advance :slight_smile:

d.


#2

Anton Y. Hi! This means that EVERY virtualhost have that limit
or all virtualhosts together? How I could do that to limit for example
10 virtualhosts to have all together 25mbps limited bandwidth, is it
possible? 10 virtualhosts together = 25mbps limit not each…

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,265,218247#msg-218247