I only have a high-level understanding of how On my tile server, I pre-rendered the most important parts of the map. Some parts of the map are not pre-rendered. I want to make it so that For any map tiles that are not cached, I want The reasoning behind this is I'd prefer users to see an outdated tile than to wait 5 seconds to wait for an updated tile to load. Is there some way I can configure asked 28 Mar '19, 19:45 valachio |
Firstly, you can achieve your goal by doing something else than you are sketching, namely set But if you really want to do it as you've described (i.e. serve old tile and not kick off a re-render), then you can disable all re-rendering by adding an empty "planet-import-complete" file to the root of your tile directory having a timestamp that is older than the oldest tile. This will make mod_tile think that all tiles are current. Your assumption that mod_tile is in any way involved when running render_list is wrong; render_list works without mod_tile. render_list, when run without Also you might have a mistaken assumption about "checking if a tile is outdated", there's not really any magic that can do this. If you do database reloads in regular intervals then every tile older than the latest import is considered outdated; if you do differential updates then you have to create lists of expired tiles during the import and "touch" meta tiles with an old time stamp OR feed the list of expired tiles to render_list. answered 28 Mar '19, 22:05 Frederik Ramm ♦ If I understood your first paragraph correctly - If mod_tile detects an outdated tile upon a request, it will send the outdated tile off to the user first, and then run a re-render in the background. This means that users will never have to wait for any tiles that are rendered already right? The worse thing that can happen is that they receive an outdated tile. The next user who requests the same tile will get the updated tile (assuming the re-render has been completed). If that's the case, then my concerns are addressed since - A follow-up question to your last paragraph. I'm assuming when you say "database reloads", you are referring to adding an OSM data file ( If I were to re-upload the exact same OSM data file as last time, mod_tile would think that all tiles are outdated, despite the fact that the map data is still the same?
(28 Mar '19, 22:51)
valachio
Yes, with
(29 Mar '19, 08:24)
Frederik Ramm ♦
|