made seeding choking algorithm configurable

This commit is contained in:
Arvid Norberg
2010-10-09 21:11:03 +00:00
parent 6bb688f699
commit e494cb219b
5 changed files with 79 additions and 20 deletions

View File

@@ -3713,6 +3713,14 @@ session_settings
int choking_algorithm;
enum seed_choking_algorithm_t
{
round_robin,
fastest_upload
};
int seed_choking_algorithm;
bool use_parole_mode;
int cache_size;
int cache_buffer_chunk_size;
@@ -4064,6 +4072,16 @@ The options for choking algorithms are:
.. _paper: http://bittyrant.cs.washington.edu/#papers
``seed_choking_algorithm`` controls the seeding unchoke behavior. The available
options are:
* ``round_robin`` which round-robins the peers that are unchoked when seeding. This
distributes the upload bandwidht uniformly and fairly. It minimizes the ability
for a peer to download everything without redistributing it.
* ``fastest_upload`` unchokes the peers we can send to the fastest. This might be
a bit more reliable in utilizing all available capacity.
``use_parole_mode`` specifies if parole mode should be used. Parole mode means
that peers that participate in pieces that fail the hash check are put in a mode
where they are only allowed to download whole pieces. If the whole piece a peer