summaryrefslogtreecommitdiff
path: root/opentracker.conf.sample
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-28 19:40:34 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-10-28 19:40:34 +0100
commitdd0ad26ea9824b75accced2b56328cbb222c4c6d (patch)
tree2b58b194f47edf83426d48b0623a7529461f157d /opentracker.conf.sample
parent82faf0af92e6c3a8c56d591e674b33708f60aa32 (diff)
Default udp workers to 1, as it is the most sane choice everywhere, also reflect the new udp parallelism in the man pages
Diffstat (limited to 'opentracker.conf.sample')
-rw-r--r--opentracker.conf.sample14
1 files changed, 13 insertions, 1 deletions
diff --git a/opentracker.conf.sample b/opentracker.conf.sample
index 4adb736..1d535e8 100644
--- a/opentracker.conf.sample
+++ b/opentracker.conf.sample
@@ -23,7 +23,7 @@
23# 23#
24# workers=<count> handle this udp socket in blocking reads in that 24# workers=<count> handle this udp socket in blocking reads in that
25# many dedicated worker threads instead of in the 25# many dedicated worker threads instead of in the
26# event loop. Ignored for tcp. 26# event loop. Defaults to 1. Ignored for tcp.
27# shared allow another process to bind the same address and 27# shared allow another process to bind the same address and
28# let the kernel share the traffic. Only useful if you 28# let the kernel share the traffic. Only useful if you
29# deliberately run a second tracker there. 29# deliberately run a second tracker there.
@@ -37,6 +37,18 @@
37# listen.udp.workers 4 37# listen.udp.workers 4
38# listen.shared 1 38# listen.shared 1
39# 39#
40# Raising the worker count pays off where the kernel spreads arriving
41# datagrams over a group of sockets bound to one address. Linux does so
42# and FreeBSD has since 12.0, Darwin does not. opentracker asks at start
43# up and binds one socket per worker only where the answer is yes. Where
44# it is no, all workers read the one socket and contend for its receive
45# queue, which costs more than it returns. See the TUNING section of
46# opentracker.conf(5); tests/udp_scaling.py sweeps the setting on the
47# machine that will carry the traffic.
48#
49# A count of 0 answers udp from the event loop, in the thread that also
50# serves tcp, which is what opentracker did before.
51#
40# Note, that using 0.0.0.0 for udp sockets may yield surprising results. 52# Note, that using 0.0.0.0 for udp sockets may yield surprising results.
41# An answer packet sent on that socket will not necessarily have the 53# An answer packet sent on that socket will not necessarily have the
42# source address that the requesting client may expect, but any address 54# source address that the requesting client may expect, but any address