[OSM-dev] Multiple instances of tiles at home (was: Tiles at home tile processing time stats?)

Dirk-Lüder Kreie osm-list at deelkar.net
Mon Apr 30 11:19:15 BST 2007

Hash: SHA1

Robert Hart schrieb:
> On 28/04/07, Ray Booysen <raybooysen at rjb.za.net> wrote:
>> On that note, can you have multiple T at H clients running out of the same
>> directory?  Or do you need seperate directories for each client?
> It does seem to mostly work, although some times it can do odd things,
> especially if both clients try to run upload.pl at the same time. I think
> all the errors are harmless though.

mostly harmless.

The problem is, the upload.pl part is not multithread safe, while
tilesGen.pl should be, except if working on the same tile area, but that
should almost never occur (but can!).
The problems with upload.pl are:

the same Zip files are being uploaded by all instances of upload.pl;
the same gatherdir is used by all instances of upload.pl, thus possibly
deleting tiles just being compressed by another upload.pl instance;
the same backoff savefile is used by all instances of upload.pl
IMO the last bit is the least problematic, because it's just read once
at the beginning and written once when upload.pl terminates. But it's
also the most difficult one to fix.

- --

Dirk-Lüder "Deelkar" Kreie
Bremen - 53.0952°N 8.8652°E

Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the dev mailing list