Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exporter impact on my dns bind performance #40

Closed
kaiwisdom opened this issue Jun 26, 2018 · 7 comments
Closed

exporter impact on my dns bind performance #40

kaiwisdom opened this issue Jun 26, 2018 · 7 comments

Comments

@kaiwisdom
Copy link

kaiwisdom commented Jun 26, 2018

this is my environment:
bind version: 9.10.7
bind_exporter: version 0.2.0-dev (branch: master, revision: fdbe49f)
go version: go1.9.4
pull_interval: 1m

test via go program :
startDomain := time.Now()
_, err := net.LookupHost("test.com")
elapsed := time.Since(startDomain)

in every same interval time ,i find client query is very slow than other time ,query time about is 100ms , and this time is monitor pull data;

image

@grobie
Copy link
Contributor

grobie commented Jun 26, 2018

Unfortunately we at SoundCloud have experienced the same, even in newer versions and the API v3. Pulling statistics impacts the latency of client requests, presumably due to locking. We've since replaced bind with CoreDNS at our edges to improve the long-tail latency.

@dswarbrick
Copy link
Member

Out of curiosity, do you think the JSON stats endpoint supported by BIND 9.10+ has any less impact than the XML endpoint?

@SuperQ
Copy link
Contributor

SuperQ commented Jan 6, 2020

Has any of the newer upstream bind releases improved this situation?

@SuperQ
Copy link
Contributor

SuperQ commented Jan 12, 2020

I've been doing a few tests on bind 9.11.5. It seems like the tasks endpoint is the slowest, it also doesn't seem to produce that many useful metrics. It looks like it was enabled by default with #50.

But the impact on the server is pretty big, the scrape time goes up by ~800ms.

bind_tasks_running 1
bind_worker_threads 32

The JSON output does seem a little faster in some of my local curl tests, it might be worth implementing support for it to compare against the XML format.

@yjlmzh
Copy link

yjlmzh commented Oct 14, 2020

我一直在对绑定9.11.5进行一些测试。tasks端点似乎是最慢的,它似乎也没有产生那么多有用的指标。似乎默认情况下已使用#50启用它。

但是对服务器的影响很大,抓取时间增加了约800毫秒。

bind_tasks_running 1
bind_worker_threads 32

在我的某些本地curl测试中,JSON输出的速度似乎更快一些,可能值得实现对其进行支持以与XML格式进行比较的支持。

hi Using JSON, you can avoid this problem.
curl 127.0.0.1:8053/json
Then observe the single thread CPU usage. Or dig parsing time. Basically no effect
When will the JSON channel be supported 😂

@dswarbrick
Copy link
Member

Refs #82

@SuperQ
Copy link
Contributor

SuperQ commented Sep 18, 2021

Closing this in favor of #82.

@SuperQ SuperQ closed this as completed Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants