Squid 配置指令 dns_children
可用版本:
此指令在 Squid 的 v8 版本中不可用。
此指令在 Squid 的 v7 版本中不可用。
此指令在 Squid 的 v6 版本中不可用。
此指令在 Squid 的 v5 版本中不可用。
对于 v5 之前的旧版本,请参阅以上链接页面。
配置详情
| 选项名称 | dns_children |
|---|---|
| 替代 | |
| 要求 | --disable-internal-dns |
| 默认值 | dns_children 32 startup=1 idle=1 |
| 建议配置 |
|
The maximum number of processes spawn to service DNS name lookups. If you limit it too few Squid will have to wait for them to process a backlog of requests, slowing it down. If you allow too many they will use RAM and other system resources noticably. The maximum this may be safely set to is 32. The startup= and idle= options allow some measure of skew in your tuning. startup= Sets a minimum of how many processes are to be spawned when Squid starts or reconfigures. When set to zero the first request will cause spawning of the first child process to handle it. Starting too few will cause an initial slowdown in traffic as Squid attempts to simultaneously spawn enough processes to cope. idle= Sets a minimum of how many processes Squid is to try and keep available at all times. When traffic begins to rise above what the existing processes can handle this many more will be spawned up to the maximum configured. A minimum setting of 1 is required. |
|
