如何配置 BIND 使用的进程数?

如何配置 BIND 使用的进程数?

BIND 中是否有与 apache 的 start-servers、spare-servers 和 server-limit 配置选项等效的选项?

答案1

您需要编辑相关的启动脚本(根据您的系统)并传递-n <number_of_processes>给bind(或named)。

-n #cpus
        Create #cpus worker threads to take advantage of multiple CPUs. If not 
        specified, named will try to determine the number of CPUs present and 
        create one thread per CPU. If it is unable to determine the number of 
        CPUs, a single worker thread will be created.

答案2

编辑/etc/sysconfig/named并设置OPTIONS变量,例如以下将 BIND 限制为 8 个线程:

OPTIONS="-N 8"

编辑相关的启动脚本现在(2021)似乎不起作用。

相关内容