how to limit bandwidth of a virtual server??

how to limit bandwidth of a virtual server??

Post by Mark » Sun, 23 Jun 1996 04:00:00



hi,
due to the very boring fact that bandwidth in germany is very expensive
we have to limit the bandwidth wich is available for a virtual web server
running on a linux machine.
this is a somehow very critical problem for our newly founded isp
company.
any idea very welcome.

markus

 
 
 

how to limit bandwidth of a virtual server??

Post by Steinar Ha » Sun, 23 Jun 1996 04:00:00


[Markus]

|   due to the very boring fact that bandwidth in germany is very expensive
|   we have to limit the bandwidth wich is available for a virtual web server
|   running on a linux machine.

You might want to look at Jef Poskanzer's thttpd, available from

        http://www.acme.com/software/thttpd/

Info about the bandwidth limiting feature:

THROTTLING

The throttle file lets you set maximum byte rates on URLs or URL groups.
There is no provision for setting a maximum request rate throttle, because
throttling a request uses as much cpu as handling it, so there would be no
point.
.
Throttling is implemented by checking each incoming URL filename against
all of the patterns in the throttle file. The server accumulates statistics
on how much bandwidth each pattern has accounted for recently (via a
rolling average). If a URL matches a pattern that has been exceeding its
specified limit, then the data returned is actually slowed down, with
pauses between each block. If that's not possible (e.g. for CGI programs),
then the server returns a special code saying 'try again later'.