-
Notifications
You must be signed in to change notification settings - Fork 974
Description
Hello,
We have dnsdist running in front of a single gdnsd instance. We also have carbonServer configured to send data to a Graphite instance. Occasionally when gdnsd restarts (for example because of a configuration update) we see the following:
Jan 25 01:34:26 hostname dnsdist[17920]: Marking downstream 127.0.0.1:5300 as 'down'
Jan 25 01:34:27 hostname dnsdist[17920]: Marking downstream 127.0.0.1:5300 as 'up'
Jan 25 01:49:28 hostname dnsdist[17920]: Marking downstream 127.0.0.1:5300 as 'down'
Jan 25 01:49:58 hostname dnsdist[17920]: Problem sending carbon data: Too many open files
Jan 25 01:50:47 hostname dnsdist[17920]: While reading a TCP question: accepting new connection on socket: Too many open files
Jan 25 01:50:58 hostname dnsdist[17920]: Problem sending carbon data: Too many open files
Jan 25 01:52:58 hostname dnsdist[17920]: message repeated 2 times: [ Problem sending carbon data: Too many open files]
Jan 25 01:53:57 hostname dnsdist[17920]: While reading a TCP question: accepting new connection on socket: Too many open files
Even though gdnsd is available again, dnsdist does no longer see it as up. A restart of dnsdist is required.
$ dnsdist -V
dnsdist 1.0.0-alpha1
$ cat /etc/dnsdist/config
controlSocket("0.0.0.0")
webserver("0.0.0.0:8080", "")
setKey("")
setACL({"0.0.0.0/0", "::/0"})
carbonServer('', '', 60)
truncateTC(true) -- fix up possibly badly truncated answers from pdns 2.9.22
warnlog(string.format("Script starting %s", "up!"))
-- define the good servers
newServer {address="127.0.0.1:5300", useClientSubnet=true}
$ cat /proc/sys/fs/file-max
900000