config.default.ini 4.12 KB
Newer Older
1
[paths]
2
datadir = ${sbws_home}/datadir
3
4
v3bw_dname = ${sbws_home}/v3bw
v3bw_fname = ${v3bw_dname}/{}.v3bw
5
state_fname = ${sbws_home}/state.dat
6
log_dname = ${sbws_home}/log
7

8
[destinations]
9
10
# How often to check if a destional is usable
usability_test_interval = 300
11

12
13
14
[general]
# Days into the past that measurements are considered valid
data_period = 5
Matt Traudt's avatar
Matt Traudt committed
15
16
17
18
19
# Timeout in seconds to give to the python Requests library. It MUST be a
# single float. Requests will use it both as the connect() timeout and the
# timeout between bytes received from the server. See
# http://docs.python-requests.org/en/master/user/advanced/#timeouts
http_timeout = 10
20
21
22
23
24
25
# Timeout in seconds for waiting on a circuit to be built. It MUST be an
# **int**. We will use this both as the CircuitBuildTimeout and a timeout
# to give to stem for waiting on a circuit to be built since
# CircuitBuildTimeout doesn't handle the case of a TLS connection to a relay
# taking forever, and probably other not-yet-discovered cases.
circuit_timeout = 10
Matt Traudt's avatar
Matt Traudt committed
26
27
28
29
# Whether or not to reset the bandwidth measurements when the relay's IP
# address changes. If it changes, we only consider results for the relay that
# we obtained while the relay was located at its most recent IP address.
# This is NOT implemented for IPv6.
30
31
reset_bw_ipv4_changes = on
reset_bw_ipv6_changes = off
32

Matt Traudt's avatar
Matt Traudt committed
33
[scanner]
34
35
# A human-readable string with chars in a-zA-Z0-9 to identify your scanner
nickname = IDidntEditTheSBWSConfig
36
37
38
39
40
# Limits on what download times are too fast/slow/etc.
download_toofast = 1
download_min = 5
download_target = 6
download_max = 10
41
42
# How many RTT measurements to make
num_rtts = 10
43
44
45
46
47
48
49
# Number of downloads with acceptable times we must have for a relay before
# moving on
num_downloads = 5
# The number of bytes to initially request from the server
initial_read_request = 16384
# How many measurements to make in parallel
measurement_threads = 3
50
51
52
53
54
# Minimum number of bytes we should ever try to download in a measurement
min_download_size = 1
# Maximum number of bytes we should ever try to download in a measurement
# 1073741824 == 1 GiB
max_download_size = 1073741824
55
56

[tor]
Matt Traudt's avatar
Matt Traudt committed
57
58
59
datadir = ${paths:sbws_home}/tor
control_socket = ${tor:datadir}/control_socket
log = ${tor:datadir}/log.txt
60
extra_lines =
61
62
63
64
65
66

[cleanup]
# After this many days, compress data files
stale_days = 10
# After this many days, delete data files
rotten_days = 90
67
68

[relayprioritizer]
69
70
# Whether or not to measure authorities
measure_authorities = off
71
72
73
74
75
76
77
78
79
80
81
82
83
# The target fraction of best priority relays we would like to return.
# 0.05 is 5%. In a 7000 relay network, 5% is 350 relays.
#
# In a network of ~6500 relays and with a ResultDump containing 1 result per
# relay, the best_priority() function takes ~11 seconds to complete on my
# home desktop. Using this parameter allows us to balance between calling
# best_priority() more often (but wasting more CPU), and calling it less
# often (but taking longer to get back to relays with non-successful results).
#
# Alternatively, we could rewrite best_priority() to not suck so much.
fraction_relays = 0.05
# The minimum number of best priority relays we are willing to return
min_relays = 50
84
85
86
87
88
89

[logging]
# Whether or not to log to a rotating file the directory paths.log_dname
to_file = yes
# Whether or not to log to stdout
to_stdout = no
juga's avatar
juga committed
90
91
# Whether or not to log to syslog
to_syslog = no
92
93
94
95
96
97
98
# If logging to file, how large (in bytes) should the file be allowed to get
# before rotating to a new one. 10485760 is 10 MiB. If zero or number of
# backups is zero, never rotate the log file.
to_file_max_bytes = 10485760
# If logging to file, how many backups to keep. If zero or max bytes is zero,
# never rotate the log file.
to_file_num_backups = 50
Matt Traudt's avatar
Matt Traudt committed
99
100
101
102
# Level to log at. Debug, info, warning, error, critical.
level = info
to_file_level = ${level}
to_stdout_level = ${level}
juga's avatar
juga committed
103
to_syslog_level = ${level}
104
105
# Format string to use when logging
format = [%(asctime)s] [%(name)s] [%(levelname)s] %(message)s
Matt Traudt's avatar
Matt Traudt committed
106
107
to_file_format = ${format}
to_stdout_format = ${format}
juga's avatar
juga committed
108
to_syslog_format = %(module)s[%(process)s]: <%(levelname)s> %(message)s
Matt Traudt's avatar
Matt Traudt committed
109
110
# verbose formatter useful for debugging
#format = %(asctime)s %(levelname)s %(threadName)s %(filename)s:%(lineno)s - %(funcName)s - %(message)s