8000 write_tsdb plugin: Prevent DNS flooding on connection error. by octo · Pull Request #2059 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

write_tsdb plugin: Prevent DNS flooding on connection error. #2059

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

Merged
merged 8 commits into from
Dec 22, 2016

Conversation

octo
Copy link
Member
@octo octo commented Nov 27, 2016

No description provided.

=item B<DNS_Random_Cache_TTL> I<ttl>

When Collectd connects to a TSDB node, it will request the DNS. This can become
a problem is the TSDN node is unavailable or badly configured because Collected
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Collected

will request DNS in order to reconnect for every metric, which can flood your DNS.
So you can cache the last value for C<ttl> seconds (default: 600s e.g; 10 min).
When I<collectd> connects to a TSDB node, it will request the DNS. This can
become a problem if the TSDN node is unavailable or badly configured because
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TSDN->TSDB

request the DNS at the same time when the connection fails. Default value is
15 * the write_tsdb interval (or the global interval if write_tsdb interval is not
defined).
You can also define a jitter, a random interval to wait in addition to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would instead suggest calling this a "splay" in both config param and documentation, but just a minor nit.

@kev009
Copy link
Contributor
kev009 commented Dec 8, 2016

Since it got buried in the commit diff, I suggest splay in place of jitter for describing the option but otherwise LGTM

@octo
Copy link
Member Author
octo commented Dec 20, 2016

Personally, I haven't heard "splay" before but am quite familiar with the "jitter" term. Anybody else have any opinion? @rubenk? @tokkee?

@rubenk
Copy link
Contributor
rubenk commented Dec 20, 2016

As a non-native english speaker I've had to look up splay, so jitter sounds better.

@kev009
Copy link
Contributor
kev009 commented Dec 21, 2016

I stole splay from cfengine, which seems to have spread it to Chef and Salt

@octo
Copy link
Member Author
octo commented Dec 22, 2016

Alright, we're going to stick with "jitter" then.

@octo octo merged commit 94aeb39 into collectd:master Dec 22, 2016
@octo octo deleted the write_tsdb_dns branch December 22, 2016 05:54
@octo octo added this to the 5.8 milestone Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0