-
Notifications
You must be signed in to change notification settings - Fork 11
Vector Tile Runbook
Paul Norman edited this page May 9, 2025
·
6 revisions
- Remove a server from the active backends in the Fastly management console
- Update chef for the server role to set the
[:vectortile][:replication][:enabled]and[:vectortile][:replication][:tileupdate]attributes tofalse, as well as updating the version of spirit and/or themepark. - SSH into the server and
- Start a
screensession to protect against disconnections - Stop tilekiln with
sudo service tilekiln stop - Remove any monitoring connections and drop the database with
sudo -u postgres psql -d postgres -c "select pg_terminate_backend(pid) from pg_stat_activity where datname = 'spirit'" && sudo -u postgres dropdb spirit - Update columns or drop tiles DB if schema columns have changed, e.g.
psql -d tiles -c 'DROP SCHEMA tilekiln CASCADE'; - Download the latest planet to your home directory
- Check that chef has recreated the
spiritdatabase withpsql -l - Import the planet file with
sudo -u tileupdate import-planet --cache 60000 <planet file pbf>. Adjust the--cacheparameter if needed. - Restart the osm2pgsql prometheus exporter with
sudo service prometheus-osm2pgsql-exporter restart - Set
[:vectortile][:replication][:enabled]totruefor the node and wait for chef to update -
OPTIONAL Delete existing tiles with
sudo -u tileupdate /opt/tilekiln/bin/tilekiln storage delete --config /srv/vector.openstreetmap.org/spirit/shortbread.yaml --storage-dbname tiles
- Start a