Commit graph

5 commits

Author SHA1 Message Date
friendica
66f427db5e directory sync optimisations to save redundant processing 2013-10-15 02:33:35 -07:00
friendica
b75163fb80 why do these have invalid id's? 2013-10-14 22:04:45 -07:00
friendica
83daf51460 extra logging 2013-10-14 21:56:56 -07:00
friendica
6dbaaef7b7 don't update old entries with no address 2013-10-14 21:19:23 -07:00
friendica
e992cfeca9 directory sync - this will either work, or it won't work, or it will possibly recurse and blow up the matrix. Hard to say. Do you feel lucky? Well do ya' ... punk? Rule #1 - don't mess with anything unless it's blowing up the matrix. If it doesn't blow up the matrix, but doesn't work, just let it go and let's figure out what it is doing and what it isn't doing.
The flow is as follows:
Once a day go out to all the directory servers besides yourself and grab a list of updates. This happens in the poller. If we've never seen them before add them to the updates table. The poller also looks to see if we're a directory server and have updates that haven't yet been processed. It calls onedirsync.php to process each one. If we contact the channel to update and don't find anything (we're just doing a basic zot_finger), set a ud_last timestamp. If this is set we will only try once a day for seven days. Then we stop trying to update.

This will probably cause a spike the first time through because you haven't seen any updates before, but we spread out the load over your delivery interval.
2013-09-30 18:33:27 -07:00