This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Streaming tiles (mod_tile) and rendering (renderd) on another server

1
1

Hello everyone,

I have a rather technical question but I'm sure I can find someone who knows the answer here :)

We put https://tile.openstreetmap.be/ online. The goal is to provide baselayers for Belgium and surroundings with default name tag but also with name:fr and name:nl only.

So here are my questions :
I want to render the tiles on a powerful server and only "stream" the tiles on the "tile.openstreetmap.be" (no rendering).
It works rather well but how can I make sure my tiles never expire ?
How can I "disable" the /dirty option ?
I see, using munin that all the tiles are "Old tile, attempted render". How can I disabled the "attempted render" ?

If needed, everything is documented here : https://github.com/jbelien/openstreetmap-carto-be/wiki

Thanks a lot :)

asked 16 May '18, 13:42

jbelien's gravatar image

jbelien
146129
accept rate: 16%

edited 16 May '18, 13:44


One Answer:

2

Without looking too closely at your setup:

  • You can disable /dirty in your Apache config through a rewrite rule that rewrites everything that ends in "dirty" to some other page, or returns a "forbidden" error, e.g. RewriteRule ^/.*/dirty$ / [F]
  • You can keep mod_tile from issuing low-priority "attempted render" requests by telling it that your database is 10 years old (or so): touch -d '10 years ago' /var/lib/mod_tile/planet-import-complete

answered 16 May '18, 16:19

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Thanks Frederik, I'll try that.

About /dirty what append if someone makes that query but renderd can't render it (because the database is not there). Is the tile deleted or does it "stay" ?

Thanks :)

(16 May '18, 16:23) jbelien
2

It stays. If you don't have renderd running, you could also just ignore everything since all render requests will fizzle out anyway, just make sure to set ModTileRequestTimeout to 0.

(16 May '18, 16:26) Frederik Ramm ♦

I just checked, ModTileRequestTimeout is already set to 0.

Should I also set ModTileMissingRequestTimeout to 0, I guess so right ?

(16 May '18, 16:31) jbelien

Source code available on GitHub .