首页 > 解决方案 > 从 1.5.8 升级到 1.6.7 后,未绑定速度降低 50%

问题描述

我最近执行了一次操作系统升级,随之而来的是将 unbound 从 1.5.8 升级到 1.6.7。

查看升级前后的未绑定统计数据,我发现平均递归处理时间增加了 50%。

前:

Jun 13 10:39:43 proxy-1 unbound: [26309:0] info: average recursion processing time 0.105584 sec
Jun 13 11:39:43 proxy-1 unbound: [26309:0] info: average recursion processing time 0.116293 sec
Jun 13 12:39:43 proxy-1 unbound: [26309:0] info: average recursion processing time 0.109271 sec
Jun 13 13:39:43 proxy-1 unbound: [26309:0] info: average recursion processing time 0.145702 sec

之后(高峰时段的可比时间,中午):

 Jun 15 10:02:41 proxy-1 unbound: [30571:0] info: average recursion processing time 0.170653 sec
 Jun 15 11:02:41 proxy-1 unbound: [30571:0] info: average recursion processing time 0.186744 sec
 Jun 15 12:02:41 proxy-1 unbound: [30571:0] info: average recursion processing time 0.181295 sec
 Jun 15 13:02:41 proxy-1 unbound: [30571:0] info: average recursion processing time 0.183084 sec
 Jun 15 14:02:41 proxy-1 unbound: [30571:0] info: average recursion processing time 0.179574 sec

1.5 和 1.6 之间是否有任何变化会严重影响性能?

标签: linuxdnsubuntu-18.04

解决方案


事实证明,查询的绝对数量导致 unbound 变慢(没有优化)。然后我实施了https://nlnetlabs.nl/documentation/unbound/howto-optimise/中概述的优化 ,查询时间显着下降。


推荐阅读