[mirror-admin] Rate Limiting on our mirror server
Paulo Licio de Geus
paulo at las.ic.unicamp.br
Wed Aug 18 15:00:05 EDT 2010
We had to live off this script for a couple of years, consistently keeping external traffic at the required 25 Mbps cap during working hours. It was done by one of my students, Arthur Castro, and our system is Gentoo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shaping
Type: application/octet-stream
Size: 5109 bytes
Desc: not available
Url : http://mail.ale.org/pipermail/mirror-admin/attachments/20100818/2b4ab735/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shaping_stats
Type: application/octet-stream
Size: 750 bytes
Desc: not available
Url : http://mail.ale.org/pipermail/mirror-admin/attachments/20100818/2b4ab735/attachment-0001.obj
-------------- next part --------------
Poorly commented, of course:-), but the usage is "shaping on | off", and our local network is 143.106.0.0/16, which of course was exempted from restrictions.
Hope this helps.
On 18 Aug 2010, at 14:49, Scott Baker wrote:
> I need to keep my mirror choked to a certain bandwidth so it doesn't flood our network. I'm using cbq to do this, is there a better tool?
>
> I have two CBQ classes: my network, and "teh internetz"
>
> root at white(/etc/sysconfig/cbq)
> :cat cbq-1000.cta
> DEVICE=eth0,1000Mbit,100Mbit
> RATE=400Mbit
> WEIGHT=40Mbit
> PRIO=1
> RULE=0.0.0.0/0,65.182.224.0/19
> RULE=0.0.0.0/0,66.206.80.56/29
> RULE=0.0.0.0/0,65.182.230.0/28
> RULE=0.0.0.0/0,67.22.240/20
>
> root at white(/etc/sysconfig/cbq)
> :cat cbq-9999.inet
> DEVICE=eth0,1000Mbit,100Mbit
> RATE=100Mbit
> WEIGHT=10Mbit
> PRIO=5
> RULE=0.0.0.0/0,0.0.0.0/0
>
> This works, but I think it's arbitrarily keeping my traffic well below the 100Mb/s threshold. With this on, my internet traffic hovers around 30Mb/s. If I turn this off my internet bandwidth goes up to at least 50Mb/s.
>
> Any CBQ experts out there that can tell me what I'm doing wrong?
>
> --
> Scott Baker - Canby Telcom
> System Administrator - RHCE - 503.266.8253
>
> --
--
Paulo Licio de Geus Internet: paulo at las.ic.unicamp.br
Instituto de Computa??o - UNICAMP Av. Albert Einstein, 1251
13083-852 Campinas SP Brazil http://www.las.ic.unicamp.br/paulo
phone: +55 19 3521-5865 fax: +55 19 3521-5847
cell: +55 19 8160-9841 skype: paulo.licio.de.geus
ICQ: 296462565 GTalk: paulo.de.geus at gmail.com MSN: paulo at ic.unicamp.br
-------------- next part --------------
--
More information about the Mirror-admin
mailing list