maptiler / tileserver-gl

Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
https://tileserver.readthedocs.io/en/latest/
Other
2.24k stars 639 forks source link

random 404 errors from static map endpoint #467

Open durkie opened 4 years ago

durkie commented 4 years ago

Hi Maptiler team -- I'm using OMT tile data to serve a large number of static maps. At times these are being created in bursts of 1-2 times per second. I've noticed that in some of the busier periods that tileserver-gl will respond with an HTTP 404 response, even though I can later request the exact same url and have it be served correctly. Example server log:

GET /styles/basic/static/-0.2607250000000001,51.434009999999994,12.01/600x400.png 200 203073 - 599.731 ms
GET /styles/basic/static/-0.26077499999999987,51.43401000000001,12.01/600x400.png 200 203295 - 864.443 ms
GET /styles/basic/static/-0.26163000000000003,51.43306499999999,12.02/600x400.png 404 9 - 626.840 ms
GET /styles/basic/static/-0.2618200000000001,51.434765,12.02/600x400.png 200 204289 - 628.890 ms

I can't really figure out a reason behind this since the image is rendered fine if I request it a second time.

Any idea what might be happening? I'm using the latest docker image (tileserver-gl 3.0.0) on Ubuntu 18.04 with OpenMapTiles data from early July.

I do see an "error reading style file" message on startup, but it's unclear what that refers to: my style rules are honored, and there are no other signs of error aside from the random 404s.

durkie commented 4 years ago

just to add a bit more color to this: it happens with both local mbtiles sources and with remote/http sources (so it's not a 404 error that propagates from not being able to retrieve the base tile). it is something i see almost always when requesting many maps at once and often when the maps are quite similar to each other in bounds/zoom.