NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

If you have all the tiles rendered using render_list the way you want them and you don't need to update them regularly, is it possible to host a server that just has the .meta files?

Or if perhaps you are going to load balance, you really only need one server to have the database to rerender everything, on all the other servers couldn't you just host the rendered tiles and use rsync on a cronjob to keep them all updated?

What would I do if that is possible? In the Apache configuration it gives the sock location:

LoadTileConfigFile /usr/local/etc/renderd.conf
ModTileRenderdSocketName /var/run/renderd/renderd.sock

So you would assume you have to run the renderd process:

renderd -f -c /usr/local/etc/renderd.conf

But if you try running that without the Postgres server, it doesn't work.

asked 14 Jan '19, 18:45

ajhalls's gravatar image

ajhalls
26113
accept rate: 0%

edited 14 Jan '19, 18:46


It is possible. You don't need renderd; mod_tile will attempt to connect to renderd only when it thinks a tile needs to be rendered.

mod_tile will attempt to render a tile if (a) it is considered outdated, or (b) it is missing. If this happens and renderd is not available, mod_tile will serve (a) the old tile, (b) a 404 error.

You can ensure that mod_tile never considers a tile outdated by creating an empty file named "planet-import-complete" in /var/lib/mod_tile that has a time stamp older than your oldest tile.

You cannot keep mod_tile from attempting to render non-existing tiles on demand, but with renderd not available this should fail quickly.

permanent link

answered 14 Jan '19, 22:02

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×105
×80

question asked: 14 Jan '19, 18:45

question was seen: 1,789 times

last updated: 14 Jan '19, 22:02

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum