Opened 13 years ago

Closed 13 years ago

#1425 closed Enhancement (wontfix)

peer selection priority and peer upload speed limits patch

Reported by: vzaliva Owned by:
Priority: Normal Milestone: None Set
Component: Transmission Version: 1.34
Severity: Normal Keywords: patch


We are using transmission at a pretty big site and we needed more flexibility in controlling peers selection. This patch is summary of our changes. It adds the following command line options:

. -z/-Z control number of peers per torrent and per session

. -P allows you to prioritize peers. peers are identified by CIDR mask. Each mask as assigned a priority in -1 to 255 range. -1 means the peer should not be used at all. Values between 0 and 255 control peer selection priority. Default priority is 0.

-l allows to limit upload rate to peers based on their addresses. Again, CIDR notation used for address followed by ‘@’ sign and upload rate.

For example, if you run several machines with transmission at network and would like optimize your bandwidth by preferring local traffic you can use the following options:

transmissioncli -l 1000 -l -P

the default upload limit will be 1000, but for peers in network it will be set to 8000 with peers from this network selected first, whenever possible.

Attachments (1)

affinity.diff (22.7 KB) - added by vzaliva 13 years ago.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by vzaliva


comment:1 Changed 13 years ago by charles

  • Keywords patch added

comment:2 Changed 13 years ago by charles

vzaliva: thanks for the patch!

Mind if I ask, where are you using Transmission, and what are you doing with it? I love hearing about it being used like this.

comment:3 Changed 13 years ago by vzaliva

comment:4 Changed 13 years ago by charles

vzaliva: this a good patch, but there's a lot of shear between it and trunk due to the bandwidth rewrite and, to a lesser extent, the IPv6 changes. I think the new bandwidth code would make some of this easier and leave the rest of it about the same level of work. Are you interested in updating this patch for trunk?

comment:5 Changed 13 years ago by vzaliva

I am afraid I will not have much time to port this to new code base anytime soon.

comment:6 Changed 13 years ago by livings124

  • Resolution set to wontfix
  • Status changed from new to closed

Please reopen if you can submit an updated patch. Thanks!

Note: See TracTickets for help on using tickets.