The Network People Support Forums

Other TNPI Software => NicTool => Topic started by: rainer_d on September 08, 2006, 08:45:46 AM

Title: What happens when the data.cdb is updated via rsync?
Post by: rainer_d on September 08, 2006, 08:45:46 AM
Hi,

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...


Rainer
Title: Re: What happens when the data.cdb is updated via rsync?
Post by: matt on September 13, 2006, 09:57:39 AM
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. :)