]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
LUA records: describe shared state UDP/TCP difference
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 2 Aug 2022 12:48:33 +0000 (14:48 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 2 Aug 2022 12:54:03 +0000 (14:54 +0200)
docs/lua-records/index.rst

index 37f46e9cc3eaf7e6e083b28b42e3838b3f0b7c6c..c3e08efbcde223dfcec38475b448e660b609ba8f 100644 (file)
@@ -219,7 +219,7 @@ The default mode of operation for LUA records is to create a fresh Lua state for
 This way, different LUA records cannot accidentally interfere with each other, by leaving around global objects, or perhaps even deleting relevant functions.
 However, creating a Lua state (and registering all our functions for it, see Reference below) takes measurable time.
 For users that are confident they can write Lua scripts that will not interfere with eachother, a mode is supported where Lua states are created on the first query, and then reused forever.
-Note that the state is per-thread, so while data sharing between LUA invocations is possible (useful for caching and reducing the cost of ``require``), there is not a single shared Lua environment.
+Note that the state is per-thread (for UDP, plus one shared state for all TCP), so while data sharing between LUA invocations is possible (useful for caching and reducing the cost of ``require``), there is no single shared Lua environment.
 In non-scientific testing this has yielded up to 10x QPS increases.
 
 To use this mode, set ``enable-lua-records=shared``.