User:SomeoneElse/map.atownsend.org.uk

From OpenStreetMap Wiki
Jump to navigation Jump to search

Introduction

map.atownsend.org.uk is a server that I look after with various bits of OSM software on it, including raster tile maps of Britain and Ireland, and various bits of QA software.

These pages are intended to describe at a high level what is where and how it was set up.

Although there are some references to commercial organisations in these pages, my relationship in each case is just "as a customer". Any mention here is not an explicit recommendation; what works for me might not work for other people.

Initial Server Setup

See here.

Other software and directories

Browse to here to see what is available.

In addition to what is mentioned elsewhere,

How to reload the main map database when something changes?

Obtain new versions of any changed software (e.g. map styles in "SomeoneElse-style" and "openstreetmap-carto-AJT").

Edit "/usr/local/sbin/update_render.sh" so that new data is loaded into "gis3".

"sudo /usr/local/sbin/update_render.sh" to load new data into the "gis3" database. People can keep using the site (using the "gis" database) while this is happening.

Use https://map.atownsend.org.uk/maps/gis3_test.html to look at the new database. If everything is OK, "sudo make_gis3_live.sh". This last script swaps the "gis" and "gis3" databases around, and also the state directories "pyosmium.gis" and "pyosmium.gis3" around as well. "munin" always shows the database lag of "gis", so this will show odd jumps up and down during this process.

If everything is not OK, fix the bug and relaod "gis3" again. Users can use the "gis" databae throughout the process apart from when the database is actually switched to live.