PluginThrottle - Novik/ruTorrent GitHub Wiki
Plugin Throttle
Description
In rtorrent version 0.8.5 and later it is possible to set limits of speed for groups of torrents. Throttle plugin gives a convenient control over this possibility. After this plugin is installed a new option "Channels" will appear in the Settings dialog. Speed limits for some (by default - 10) channels can be set here. Assignment of channel number for a particular torrent or for a group of torrents can be made in it's contextual menu. Note - "0"-value, conventionally for rtorrent, means "no limits", but not "stop torrent". So the lowest possible limit is 1 Kbps.
How does it work
When ruTorrent starts with installed Thtottle plugin first time it makes channels with defined speed limits. As these channels will be created after first ruTorrent start only, the speed limits will not work after rtorrent start until first after that start of ruTorrent. To avoid this you need to add a special string to the rtorrent configuration file (see How to start plugins with rtorrent for details).
Some non-obvious points
- Speed limits in regard to groups of torrents only works when there are global speed limits for whole system (it is the feature of rtorrent). To get over this disadvantage, ruTorrent, during it's loading, checks if parameters upload_rate and download_rate are set to zero. If it is so, ruTorrent change "0" to a very_big_number.
- The channel of torrent can be changed only when the torrent is stopped. If the torrent is active, the plugin will stop it, change the channel and start again.
Additional tuning
Sould be done in the file plugins/throttle/conf.php
.
MAX_THROTTLE
- maximum number of channels. You can make it bigger or smaller.