• Welcome to The Network People Support Forums. Please login or sign up.

What happens when the data.cdb is updated via rsync?

Started by rainer_d, September 08, 2006, 01:45:46 AM

Previous topic - Next topic



does tinydns report errors in the time when the cdb-file is replaced by a different one?
Is there a race-condition?
We had reports yesterday of people being unable to resolve some of the domains hosted at our site.
They were using different ISPs and the results were not really reproducible.
We were doing some updates to zones yesterday, but as the rsync-intervall is set to 20 Minutes, this should not have been a problem (IMO).
We have something around 11k zones, so this is really a small site, compared with the dimension the original system was designed for...

FreeBSD - The Power To Serve


If you watch what happens when rsync copies a file, you'll notice that it creates a temp file on the remote server which it copies all the data to. Only when the transfer is complete does it move that temp file over top of the old one. Now, I can't say exactly how it does that (there are several means it could use) but I can tell you that I've never had a problem with it, and 11k zones is 2% of what I know NicTool is capable of supporting reliably. :)