All of lore.kernel.org
 help / color / mirror / Atom feed
* Bandwidth Shaping requests coming from a web server
@ 2004-06-23  3:06 Ian Holsman
  2004-06-23  8:57 ` Antony Stone
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Holsman @ 2004-06-23  3:06 UTC (permalink / raw)
  To: netfilter

Hi.

I would like to write a apache module which limits the speed we send
out the response based on some internal algorithm (like a cookie, or a
line in the request header, or some random number ;-)).

Ideally I would like a method to tell the kernel 
use queue 'XYZ' for this socket I just opened, and then just use the
normal sendfile/write requests to send it out

Is this possible?

also .. any tips on how to this on a BSD box?

Thanks in advance
Ian Holsman


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bandwidth Shaping requests coming from a web server
  2004-06-23  3:06 Bandwidth Shaping requests coming from a web server Ian Holsman
@ 2004-06-23  8:57 ` Antony Stone
  2004-06-23 20:40   ` Ian Holsman
  0 siblings, 1 reply; 3+ messages in thread
From: Antony Stone @ 2004-06-23  8:57 UTC (permalink / raw)
  To: netfilter

On Wednesday 23 June 2004 4:06 am, Ian Holsman wrote:

> Hi.
>
> I would like to write a apache module which limits the speed we send
> out the response based on some internal algorithm (like a cookie, or a
> line in the request header, or some random number ;-)).

I don't know if Apache can do this sort of thing itself, but Squid certainly 
can (the phrase it uses for that is "delay pools").   Since you want to do 
this for a server whcih you run, rather than your clients accessing external 
servers, you want Squid in Accelerator Mode rather than Proxying Mode.

See http://www.squid-cache.org for more info.

> also .. any tips on how to this on a BSD box?

You can certainly run Squid under BSD (and you certainly can't run netfilter 
under BSD).

Regards,

Antony.

-- 
There's no such thing as bad weather - only the wrong clothes.

 - Billy Connolly

                                                     Please reply to the list;
                                                           please don't CC me.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bandwidth Shaping requests coming from a web server
  2004-06-23  8:57 ` Antony Stone
@ 2004-06-23 20:40   ` Ian Holsman
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Holsman @ 2004-06-23 20:40 UTC (permalink / raw)
  To: netfilter

yes.. fowarding it via squid is an option.
I was hoping to use netfilters queues and features.
similiar to what netnice.org can do on freebsd

On Wed, 23 Jun 2004 09:57:14 +0100, Antony Stone
<antony@soft-solutions.co.uk> wrote:
> 
> On Wednesday 23 June 2004 4:06 am, Ian Holsman wrote:
> 
> > Hi.
> >
> > I would like to write a apache module which limits the speed we send
> > out the response based on some internal algorithm (like a cookie, or a
> > line in the request header, or some random number ;-)).
> 
> I don't know if Apache can do this sort of thing itself, but Squid certainly
> can (the phrase it uses for that is "delay pools").   Since you want to do
> this for a server whcih you run, rather than your clients accessing external
> servers, you want Squid in Accelerator Mode rather than Proxying Mode.
> 
> See http://www.squid-cache.org for more info.
> 
> > also .. any tips on how to this on a BSD box?
> 
> You can certainly run Squid under BSD (and you certainly can't run netfilter
> under BSD).
> 
> Regards,
> 
> Antony.
> 
> --
> There's no such thing as bad weather - only the wrong clothes.
> 
>  - Billy Connolly
> 
>                                                      Please reply to the list;
>                                                            please don't CC me.
> 
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-23 20:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-23  3:06 Bandwidth Shaping requests coming from a web server Ian Holsman
2004-06-23  8:57 ` Antony Stone
2004-06-23 20:40   ` Ian Holsman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.