[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shaping a little (only some files)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Leonardo Boselli wrote:
> I have a server, it is connected via a 100 mb NIC to a router that in turn 
> is connected, together with other servers and ws to internet.
> I have observed that if no one is using the net (for example at 0600 on 
> sunday) people can download from apache up to a rate that is limited 
> just by the ide interface.
> Of course if this occour when many (about 600) people are connected 
> using up to 60 Mb of bandwidth is not acceptable.
> I wish then set three timeslot: one weekdays 8 to 19 , one 19 to 24 and  
> 7 to 8 and the third 24 to 7.
> also the directories would be divided in three groups: Istitutional pages, 
> Documentation (reports), Documentation (full documents).
> First group would be allowed maximun speed at any time, the second 
> wpuld be allowed maximun speed at peak time only for certain subnets, 
> while the third group at peak time and intermediate time should be 
> throttled to a maximum of 2 mb/S.
> How to do ? i thought to set the three group of pages on different 
> servers and throttle each one via cron, but this would require to have a 
> separate one. 
> Can i do wuth just one server, possibly by redirectioning the two 
> "heavy" dir4ectories to a diferent virtual address used by the redirector 
> an throttled at time ?


If you want to do shaping like this (timeslots & paths) you probably
want to look at running a transparent proxy in front of the web server
like squid. What you want to do would be very easy and can be done all
on the one server.	

- --
Robert Vangel :: http://zilla.id.au

 * redflag networks, Network Operations & Management
 * netops@rfgt.net
 * +61 419 961 529
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDBra4V63eDkW7v4cRAhIBAJ9hiE4TAmQ1Hpuh8EjeiYmUTeqJGQCfduVZ
wjgCFEtkAS3uVOBIeHQtyT8=
=P4A6
-----END PGP SIGNATURE-----



Reply to: