DNS server in Go - Big NTP Pool upgrade(news.ntppool.org)
news.ntppool.org
DNS server in Go - Big NTP Pool upgrade
http://news.ntppool.org/2012/10/new-dns-server.html
9 comments
Thanks dfc. I made a note for myself to update the site to mention/recommend the pool statement as well:
https://github.com/abh/ntppool/issues/69
https://github.com/abh/ntppool/issues/69
Miek Gieben's [1] DNS library [2] is truly excellent. I use it at Port 6379 for an authoritative DNS server,
looking up Redis instances [3]. I too have found Go surprisingly productive and enjoyable to code, and our servers seem very stable so far.
[1] http://www.miek.nl/
[2] https://github.com/miekg/dns
[3] https://port6379.com/blog/2012/09/03/using-dns-to-find-insta...
[1] http://www.miek.nl/
[2] https://github.com/miekg/dns
[3] https://port6379.com/blog/2012/09/03/using-dns-to-find-insta...
> Since mid-September, twenty of the name servers have been running the new software and except for a bit of trouble on i386 (32-bit) and low-memory systems, it's been running very smoothly.
So is http://code.google.com/p/go/issues/detail?id=909 a real-world problem?
So is http://code.google.com/p/go/issues/detail?id=909 a real-world problem?
If 32-bit, low-memory machines are part of your world, I would say obviously yes.
4GB of addressable memory per process is hardly low memory, x32 was recently merged into Linux so I doubt it's going away anytime.
How can this even exist without generics, template meta-programming or a turing complete type system? I doubt that they know what they're doing.
The first time I read one of these comments by you on reddit[1] I thought it was sincere - replies to it suggested I was not alone, although I was surprised that one was on your side.
So, I guess your sarcasm was a bit too subtle. This one is better :)
[1] http://www.reddit.com/r/programming/comments/10zsz4/i_wrote_...
So, I guess your sarcasm was a bit too subtle. This one is better :)
[1] http://www.reddit.com/r/programming/comments/10zsz4/i_wrote_...
FYI I'm the guy that replied to that, I was really interested to see how the OP of that post got around it.
For people searching for performance benchmarks like me, here are the numbers I dug around from the post (
http://geo.bitnames.com)
If you need less than 200 DNS lookups per second per DNS server the Perl version is fine and might be a little easier to setup. The Go version is much faster (in prodution we've seen it do 5-6000 requests a second on commodity hardware and even virtual servers).
Is 6000 rps a high number for a DNS server? Let me do a back of the envelope calculation: one simple dns request (assuming udp here) response msg size is 100bytes, 6000rps x 100bytes /1024/1024 x 8 = 4.69mbps. Even we consider the request msg size is equal to that of response msg, the throughput is still 9.38mbps, far from saturating the network pipe. It sounds to me there is still space for improvement.
If you need less than 200 DNS lookups per second per DNS server the Perl version is fine and might be a little easier to setup. The Go version is much faster (in prodution we've seen it do 5-6000 requests a second on commodity hardware and even virtual servers).
Is 6000 rps a high number for a DNS server? Let me do a back of the envelope calculation: one simple dns request (assuming udp here) response msg size is 100bytes, 6000rps x 100bytes /1024/1024 x 8 = 4.69mbps. Even we consider the request msg size is equal to that of response msg, the throughput is still 9.38mbps, far from saturating the network pipe. It sounds to me there is still space for improvement.
High performance DNS software can handle well over 100k QPS on a single core on commodity hardware, but that's not an apples to apples comparison since the benchmarks I'm remembering didn't include any weighting or geo-distribution special sauce.
Was it implied that the 6000 requests was peak performance of the software, or was it just the current max usage they've seen?
5-6000 requests was just the number I remembered seeing for sure. I haven't tried pushing the software to get some benchmark number.
It was just on one core (all the production servers are currently just using one core for the geodns process), but the response time was similar to idle load so I think there's lots of head-room
The monitoring doesn't log data at the second granularity and the traffic is very bursty, so the number was just from staring at the real-time monitoring dashboard I have.
It was just on one core (all the production servers are currently just using one core for the geodns process), but the response time was similar to idle load so I think there's lots of head-room
The monitoring doesn't log data at the second granularity and the traffic is very bursty, so the number was just from staring at the real-time monitoring dashboard I have.
I suppose it's the latter. That number is pretty much hardware-specific, though it would give us a bit more details if they mentioned the hardware profile.
The DNS servers are (mostly) virtual machines on all sorts of hardware. In many cases I don't actually know the exact hardware specs or how much other load the boxes have.
http://www.pool.ntp.org/dns-server.html
http://www.pool.ntp.org/dns-server.html
I'm in love with Go. The more I use it the more i fall in love with it.
I've seen a number of near-identical comments, but they're not interesting unless you expand on why.
In no particular order:
- new, shiny, toy (boys will be boys)
- sufficiently different (allows for think different moments)
- sufficiently subtle (does promote deep think moments)
- bipolars are sexy (Go is seriously bipolar.)
- pedigree (Go is something of a pedagogue)Source code linked by the OP: https://github.com/abh/geodns/
pretty neat. hopefully this will get some tractions.
thanks for sharing.
thanks for sharing.
[deleted](2)
http://www.pool.ntp.org/en/join.html
My firewall at home is part of the pool. You can configure how much traffic you can handle in the manage servers interface. With any decent cable connection you can set the speed to 768Kbit and never notice the traffic (ntp is just tiny udp datagrams).
While we are at it lets go through /etc/ntp.conf and remove any references to stratum one servers. With a recent version of ntp you can replace all of your server lines with:
Where CC is your country code {us,ca,de,mx,fr,etc}. I decided to err on the side of caution and give an example that will work with any reasonably recent version of ntp. With the most recent stable release the following one line will suffice:
That one line will work for Mountain Lion, debian/unstable and the most recent ubuntu release and ntp will automatically poll more servers as needed.
More info on using the pool can be found here:
http://www.pool.ntp.org/en/use.html