Hi,<div>Thanks for the replies - You are right that bulk upload will work, I just have an aspiration to getting it to work closer to real time so want to explore other possibilities.</div><div><br></div><div>At the moment I have not tried to get mod_tile working, but am using tilecache on my home server to generate the tiles (because it is very easy - just a simple python program and minimal configuration - this will seed down to zoom level 12 nice and quickly.</div>
<div>I then have another instance of tilecache running on the commercial web host that caches tiles from my home server to give a quicker response (provided the tiles have been accessed previously). I will do a little wiki page write up on how it is configured, because it took a bit of doing to get the projections working so that they talk to each other properly....</div>
<div><br></div><div>It seems to be working, but needs a bit more testing because sometimes it seems to take a very long time to produce a tile - this may be my home server putting its disks to sleep to save power, but I haven't checked. Disk sleeping is not a feature I would want to turn off though, because using my old laptop as a server is working quite nicely power-wise - I think it takes less than 20W normally, which is not too bad.</div>
<div><br></div><div><br>Graham.<br><br><div class="gmail_quote">On 27 October 2011 13:03, Nick Whitelegg <span dir="ltr"><<a href="mailto:Nick.Whitelegg@solent.ac.uk">Nick.Whitelegg@solent.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hello Graham,<br>
<br>
I am currently doing this, and using option one. This is probably feasible if the area you're trying to render is relatively small: I render Hampshire, Wiltshire, Surrey and West Sussex down to zoom level 14. The rendering takes an hour or two, the upload (just over 100MB) takes a little over 30 minutes. It's fairly feasible to do on a weekly basis.<br>
<br>
Can't speak for the other two options - I don't run an always-on home server so that one's a non-starter for me. I'd guess for occasional tile rendering it would be ok.<br>
<br>
Nick<br>
<br>
-----Graham Jones <<a href="mailto:grahamjones139@gmail.com">grahamjones139@gmail.com</a>> wrote: -----<br>
To: OSM-Dev Openstreetmap <<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a>><br>
From: Graham Jones <<a href="mailto:grahamjones139@gmail.com">grahamjones139@gmail.com</a>><br>
Date: 27/10/2011 12:11PM<br>
Subject: [OSM-dev] Deploying Map Tiles on a Commercial Web Host<br>
<div><div></div><div class="h5"><br>
Hi,<br>
I am trying to host my own map tiles 'on the cheap' using a commercial web host (rather than virtual server etc.) and am trying to decide the most efficient way of doing it, and wondered if anyone had any suggestions. The idea is to use my home server to generate the tiles, but that is behind a slow internet connection, so is no good for serving them to the outside world (works fine in my house!). The options I have thought of are:<br>
Generate the tiles on my server, and upload them to the web host via ftp - this is what I have done up to now, but it is very slow to do the initial upload. I haven't got a clever way of updating the tiles yet either - will need to use osm2pgsql tile expiry and only upload the expired tiles.<br>
Generate the tiles as a large mbtiles file and upload it to the server as one big file rather than thousands of little ones - this may help the initial upload. I am not sure how to do updates though - would need some way of uploading a mbtiles 'changeset' that can be applied to the file on the web host using php (I have php scripting on the web host)<br>
Set up my home server to run mod_tile, and write some sort of proxy / cache thing on the web host that takes a tile request and either serves it from its cache, or gets it from my home server if necessary after checking to see if the tile in the cache is out of date.<br>
<br>
My feeling is that the third option is most efficient, because it will not bother uploading tiles that no-one accesses, and my server will not bother rendering them. First use of a tile will seem sluggish though because it will use my slow broadband connection, so will probably have it pre-load a few zoom levels. My web host lets me run python, so I think I could run tilecache (<a href="http://tilecache.org" target="_blank">http://tilecache.org</a>), but I am not sure how I would deal with tile expiry then - has anyone used such a set-up successfully? If not, I will give it a try over the next few days and see how it goes....<br>
<br>
Thanks<br>
<br>
<br>
Graham.<br>
<br>
--<br>
Graham Jones<br>
Hartlepool, UK.<br>
</div></div> _______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>
</div>