.. SPDX-License-Identifier: GPL-3.0-or-later .. _config-defer: Request prioritization (defer) ============================== Defer tries to mitigate DoS attacks by measuring cpu time consumption of different hosts and networks and deferring future requests from the same origin. If there is not enough time to process all the requests, the lowest priority ones are dropped. The time measurements are taken into account only for TCP-based queries (including DoT and DoH), as the source address of plain UDP can be forged. We aim to spend half of the time for UDP without prioritization and half of the time for non-UDP with prioritization, if there are enough requests of both types. Detailed configuration is printed by ``defer`` group on ``info`` level on startup (unless disabled). .. note:: The data of all deferred queries may occupy 64 MiB of memory per :ref:`worker `. .. option:: defer/enabled: true|false :default: false Enable request prioritization. If disabled, requests are processed in order of their arrival and their possible dropping in case of overloading is caused only by the overflow of kernel queues. .. option:: defer/log-period: