Bandwidth Control - Continued
This is an
nsapi plugin for applying bandwidth control in Sun Proxy Server 4.0. Installation is
fairly straightforward - gunzip, untar, copy libbwcontrol.so to somewhere,
configure obj.conf to load the plugin on startup, and also configure obj.conf to
apply the bandwidth-control filter to specific (or all) downloads.
For example, after configuration, an obj.conf can look like:
...
...
Init fn="load-modules" shlib="/myplugins/libbwcontrol.so" shlib_flags="(global|now)"
<Object name="default">
...
...
</Object>
<Object ppath="http://.*mp3">
Output fn="insert-filter" filter="bandwidth-control" maxkbps=100
</Object>
...
...
A maxkbps argument can be used to specify the target download limit. If not
specified, a default of 256 kbps is applied.
NOTE: The binary is intended for Solaris Sparc.
Trackback URL: http://blogs.sun.com/motor/entry/bandwidth_control_continued
This is what I have been looking for. Thanks.
Posted by turk porno on prill 09, 2008 at 09:22 MD PDT #
This seems to work as advertised. Would you be willing to supply sample source code, so I could understand a little more about how this works? In particular, over what interval does it sample to obtain its utilization measurement, etc? I've noticed a few instances where the log message states a higher utilization than the limit, but these have been small files.
Thanks,
--Robert
Posted by Robert J. Slover on shtator 19, 2008 at 02:21 PD PDT #
Greetings,
This seems to work as advertised. I was curious if I could get a look at the source though, to understand how it works and to potentially modify it (I'd like a parameter that specifies over what period to measure the throughput).
Thanks.
--Robert
Posted by Robert J. Slover on shtator 23, 2008 at 10:07 PD PDT #