From: Andrew Beverley Date: Sun, 18 Feb 2007 11:58:34 +0000 Subject: Re: [LARTC] Modifying traffic shaping rates according to the Message-Id: <1171799915.4251.5.camel@andybev.localdomain> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > I'm trying to divide my bandwidth between different services, but I'd > like to take into account the number of active users. > > For example, l want divide my bandwidth between HTTP and SMTP and > guarantee HTTP 80% of the bandwidth. > > However, I have many users on my system (tens of thousands) and if > only 1% of my active users are using HTTP (and the other 99% SMTP), > I'd like somehow to change the HTTP rate to a lower limit. > > Is there any way to do it automatically, assuming that each user has a > different IP? How about use HTB? Set the HTTP guaranteed rate to 80%, and the upper (ceil) limit of other classes to 100%. This then means that if HTTP is not using 80% of your link, then the spare bandwidth not used will be shared between the other classes. Andy Beverley _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc