From 833c8ef9053159b61021b0ef05949afa5d3e1536 Mon Sep 17 00:00:00 2001 From: Arnaud DABY-SEESARAM Date: Thu, 24 Mar 2022 11:25:58 +0100 Subject: [PATCH] [unbound] multi-threading --- roles/unbound/templates/unbound.conf.j2 | 38 +++++++++++++------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/roles/unbound/templates/unbound.conf.j2 b/roles/unbound/templates/unbound.conf.j2 index 3de6cc41..036dcf47 100644 --- a/roles/unbound/templates/unbound.conf.j2 +++ b/roles/unbound/templates/unbound.conf.j2 @@ -1,5 +1,5 @@ server: - verbosity: {{ unbound['verbosity'] | default(1) }} + verbosity: {{ unbound['verbosity'] | default(1) }} {% for adr in unbound['interfaces'] %} interface: {{ adr }} @@ -12,27 +12,29 @@ server: {% endfor %} {% endfor %} - # chroot: "/etc/unbound" - # username: "unbound" - # directory: "/etc/unbound" + # chroot: "/etc/unbound" + # username: "unbound" + # directory: "/etc/unbound" + + num-threads: 8 - # the log file, "" means log to stderr. - # Use of this option sets use-syslog to "no". - # logfile: "" + # the log file, "" means log to stderr. + # Use of this option sets use-syslog to "no". + # logfile: "" - use-syslog: yes + use-syslog: yes - # Log identity to report. if empty, defaults to the name of argv[0] - # (usually "unbound"). - # log-identity: "" + # Log identity to report. if empty, defaults to the name of argv[0] + # (usually "unbound"). + # log-identity: "" - # print UTC timestamp in ascii to logfile, default is epoch in seconds. - # log-time-ascii: no + # print UTC timestamp in ascii to logfile, default is epoch in seconds. + # log-time-ascii: no - #log-queries: yes - #log-replies: yes + #log-queries: yes + #log-replies: yes - root-hints: "root.hints" + root-hints: "root.hints" module-config: "validator iterator" auto-trust-anchor-file: "/etc/unbound/root.key" @@ -42,10 +44,10 @@ server: python: - # ... + # ... dynlib: - # ... + # ... # Remote control config section. remote-control: