diff options
author | teor <teor2345@gmail.com> | 2017-12-23 00:00:18 +1100 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2017-12-23 00:01:31 +1100 |
commit | 30e13716754bc3d991500f5f68eb83a19aea9b11 (patch) | |
tree | 0ebc7f5e7bdb589b7cf0eb6b74e480432e81225d /src/or/config.c | |
parent | 7d845976e3897fac8e78a4a26688ac57b660151b (diff) | |
download | tor-30e13716754bc3d991500f5f68eb83a19aea9b11.tar.gz tor-30e13716754bc3d991500f5f68eb83a19aea9b11.zip |
Make the default DirAuthorityFallbackRate 0.1
This makes clients on the public tor network prefer to bootstrap off fallback
directory mirrors.
This is a follow-up to 24679, which removed weights from the default fallbacks.
Implements ticket 24681.
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 557790a81e..2a0d091a21 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -225,7 +225,14 @@ static config_var_t option_vars_[] = { VAR("DirReqStatistics", BOOL, DirReqStatistics_option, "1"), VAR("DirAuthority", LINELIST, DirAuthorities, NULL), V(DirCache, BOOL, "1"), - V(DirAuthorityFallbackRate, DOUBLE, "1.0"), + /* A DirAuthorityFallbackRate of 0.1 means that 0.5% of clients try an + * authority when all fallbacks are up, and 2% try an authority when 25% of + * fallbacks are down. (We rebuild the list when 25% of fallbacks are down). + * + * We want to reduce load on authorities, but keep these two figures within + * an order of magnitude, so there isn't too much load shifting to authorities + * when fallbacks go down. */ + V(DirAuthorityFallbackRate, DOUBLE, "0.1"), V(DisableAllSwap, BOOL, "0"), V(DisableDebuggerAttachment, BOOL, "1"), V(DisableIOCP, BOOL, "1"), |