linux - 从 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 之间是否有任何变化会严重影响性能?
解决方案
事实证明,查询的绝对数量导致 unbound 变慢(没有优化)。然后我实施了https://nlnetlabs.nl/documentation/unbound/howto-optimise/中概述的优化 ,查询时间显着下降。
推荐阅读
- python - 是否可以将“自定义”方法添加到 python 中的原始数据类型?
- html - 如何在框中定位元素?
- matlab - MATLAB 数组和容器
- azure - 如何替换现有 azure 帐户上的组织电子邮件 ID
- apache - XAMPP localhost 工作后显示黑色
- android - 如何从 Riverpod 中的另一个提供者修改 StateNotifier 提供者的状态?
- javascript - 使用 Javascript 输出更新 Shiny UI 布局
- python - 存储文件 Django
- ios - iOS:应用程序验证 - 由于应用程序扩展包 ID 格式,包标识符错误
- ios - 为什么 kingfisher 使用 md5 创建 cacheFileName?