httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leif W" <warp-...@usa.net>
Subject Re: [users@httpd] OTHER KIND OF LIMITATION
Date Fri, 05 Sep 2003 18:23:58 GMT
I'd probably say no (as a wild guess).  Think about the "granularity" or the
tightness of control you want.  Using an OS like Linux or FreeBSD, you can
control bandwidth per IP, or even per protocol (HTTP, FTP, SSH, etc.).  If
you can't do host-based bandwidth limiting, nor user, nor directory,
certainly you won't be able to do file "types", which is at the "tight" end
of the bandwidth shaping spectrum.

What I'd probably do is go read the Linux ADSL-Bandwidth-Management-HOWTO,
as it better explains how to do these things, and put your "heavy" files
(AVI, MP3, ZIP) on an FTP server ( http://proftpd.org/ ), and as described
in the HOWTO, set up packet queues with varying priorities, give highest
priority to interactive sessions like ssh, middle priority to the stuff on
the web server, and lowest priority to stuff on the FTP server.

This is the probably the simplest, quickest, and right now the best way to
achieve what you're both trying to do.

Leif

----- Original Message ----- 
From: "Tomas Larsson" <larssontomas@telia.com>
To: <users@httpd.apache.org>; "'Jefferson Midei'" <jmidei@wmweb.com.br>
Sent: Friday, September 05, 2003 7:51 AM
Subject: SV: [users@httpd] OTHER KIND OF LIMITATION


To be honest I'm looking for something similar, --se my earlier post.
I haven't found any solution yet.

 With best regards

Tomas Larsson

Verus amicus est tamquam alter idem


All messages originating from me are scanned with the latest updates of
Norton Antivirus 2K3.

-----Ursprungligt meddelande-----
Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
Skickat: den 5 september 2003 13:09
Till: users@httpd.apache.org
Ämne: [users@httpd] OTHER KIND OF LIMITATION


                Dear Sirs,

Seems to me that to limit the bandwidth using apache 2.0.44 is not so
easy... So, I'm thinking about to limit my bandwidth using another way...

My WebServer (Apache 2.0.44, in a linux box kernel 2.4.21) is connected to a
256 kbps link. And studing my weblogs (using webalizer), I discovered that
part (50%) of the use of my bandwidth are users downloading files like .EXE,
.MP3, .AVI, .PDF, .DOC, .ZIP, etc... The other part of the use of my
bandwidth are users downloading "www" files, like .HTM*, .PHP*, .GIF, .PNG,
.JPG, etc...

I would like to limit the bandwidth use for the first files types (.EXE,
.PDF, etc...) just to 15% of my bandwidth... These files are downloaded
through the Apache WebServer, so, I would like to know if Apache will limit
that for me, and how...

Thanks,

JM...


-----Mensagem Original-----
De: "Leif W" <warp-9.9@usa.net>
Para: <users@httpd.apache.org>
Enviada em: quinta-feira, 4 de setembro de 2003 16:59
Assunto: Re: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44


> Note, this reply may be off topic.
>
> This is a good question I think, as other web servers may already have
some
> feature like this, so there should be some focus on systems running
> Apache to find equivalent solutions, in order to continue to compete.
>
> I've done some searching with Google for "Linux host based bandwith
> management shaping" (and variations), but it's hard to find anything
> specific.
>
> First, I found the Apache mod_bandwidth page (
> http://www.cohprog.com/v3/bandwidth/intro-en.html ), but the latest
release
> was 2003-01-12, and there's no mention of Apache 1.3.x or 2.0.x
> anywhere
in
> the sparse documentation, so I am leery of this seemingly stale
> software project.
>
> The only relelvent stuff I found was the ADSL Bandwidth Management
> HOWTO (
> http://www.linux.org/docs/ldp/howto/ADSL-Bandwidth-Management-HOWTO/ )
> and the HTB queue patch (included with kernel 2.4.20 and higher,
> http://luxik.cdi.cz/~devik/qos/htb/ ).
>
> Linux Advanced Routing & Traffic Control ( http://www.lartc.org/ ).
>
> Unfortunately the only bandwidth management I could see were IP-based.
>
> I did come across various commercial hardware products claiming to do
> host-based bandwidth management, but I did not spend much time looking
> at those, as I do not have such money to throw away, when there's
> bound to be some way to do it better, for free (eventually).
>
> Leif
>
> > ----- Original Message -----
> > From: "Tomas Larsson" <larssontomas@telia.com>
> > To: <users@httpd.apache.org>; "'Jefferson Midei'"
> > <jmidei@wmweb.com.br>
> > Sent: Thursday, September 04, 2003 1:28 PM
> > Subject: SV: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> >
>
> > Hi Jefferson.
> > Have you got any solutions yet, I'm allso looking for the same,
> > haven't found anything yet, and no reply from the group either.
> >
> > With best regards
> >
> > Tomas Larsson
> >
> > Verus amicus est tamquam alter idem
> >
> >
> > All messages originating from me are scanned with the latest updates
> > of Norton Antivirus 2K3.
> >
> > > -----Ursprungligt meddelande-----
> > > Från: Jefferson Midei [mailto:jmidei@wmweb.com.br]
> > > Skickat: den 2 september 2003 19:34
> > > Till: users@httpd.apache.org
> > > Kopia: Luiz Eduardo
> > > Ämne: [users@httpd] LIMIT BANDWIDHT USING APACHE 2.0.44
> > > Prioritet: Hög
> > >
> > >
> > >                 Dear Sirs,
> > >
> > > My name is Jefferson Midei, and I'm in Brasil.
> > >
> > > I'm using a Linux Server, Conectiva (RedHat) 9.0, kernel 2.4.21,
> > > and WebServer Apache 2.0.44.
> > >
> > > I have about 150 virtual domains in my Apache Server, and I'm
> > > using a "namebased" configuration (sharing one IP)...
> > >
> > > I need to limit the usage of my bandwidth per virtual domain, and
> > > I
> don't
> > > know how to do that, or what I need to do that...
> > >
> > > I looked for "limit bandwidth" in the hystory of this maillist,
> > > but I
> just
> > > found solutions for Apache 1.3 (mod_bandwidth)...
> > >
> > > Please, help me...
> > >
> > > Thanks,
> > >
> > > Jefferson Midei
> > > jmidei@wmweb.com.br
> > >
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project. See <URL:http://httpd.apache.org/userslist.html> for more
> info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info. To
unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message