[Tile-serving] Unable to serve tiles using latest instructions to build your own OSM tile server

Pawan Singh psingh at silver-peak.com
Thu Oct 22 04:41:11 UTC 2015


I did not get any response for this.


I kept on debugging. It seems like PostGreSQL is having issues getting the information from the db. I checked all indices. They are all built and ready.


If no one is going to help me, can someone at least say for loading the latest planet.pbf file and using the latest tile instructions, how much memory does one need?

16GB

or 256GB

or 1TB?


I was attracted to OSM because of "SwitchToOSM" site. But alas it seems like you get what you pay for. We probably have to move to MapBox or Google for our mapping services.


It was a nice effort though to try to build one server myself and try to see what is actually really required to host a map server. It was fun - but I have to make it work for my job and there is not enough information around to debug why PostGRESql is so slow that no tiles ever get rendered in time.


-Pawan


________________________________
From: Pawan Singh <psingh at silver-peak.com>
Sent: Tuesday, October 20, 2015 11:46 PM
To: tile-serving at openstreetmap.org
Subject: [Tile-serving] Unable to serve tiles using latest instructions to build your own OSM tile server




I built a tile server instance on AWS following the steps here:


https://switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/


The machine configuration is:

16GB of RAM

4 CPUs

Ubuntu 14.04 LTS

PostGresql: 9.3

1.5 TB of SSD Amazon Elastic Block Storage


When I request for a tile using leaflet, I see the following log entries:

Oct 21 05:49:03 ip-10-200-1-158 renderd[1339]: DEBUG: Got incoming connection, fd 8, number 1
Oct 21 05:49:03 ip-10-200-1-158 renderd[1339]: DEBUG: Got incoming request with protocol version 2
Oct 21 05:49:03 ip-10-200-1-158 renderd[1339]: DEBUG: Got command RenderPrio fd(8) xml(default), z(2), x(0), y(1), mime(image/png), options()
Oct 21 05:49:03 ip-10-200-1-158 renderd[1339]: DEBUG: START TILE default 2 0-3 0-3, new metatile
Oct 21 05:49:03 ip-10-200-1-158 renderd[1339]: Rendering projected coordinates 2 0 0 -> -20037508.342800|-20037508.342800 20037508.342800|20037508.342800 to a 4 x 4 tile
Oct 21 05:49:33 ip-10-200-1-158 renderd[1339]: DEBUG: Failed to read cmd on fd 8
Oct 21 05:49:33 ip-10-200-1-158 renderd[1339]: DEBUG: Connection 0, fd 8 closed, now 0 left


It seems like server is receiving a tile request, starts generating it - but times out.


I would have thought that resources provided would be enough. Can anyone help me debug this? One difference I see from instructions is that PostGresql version in the instructions is 9.1. But that should not make much difference.


BTW - tile requests for zoom level 1 and 2 work.



-Pawan



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151022/819cbf30/attachment.html>


More information about the Tile-serving mailing list