]> git.openstreetmap.org Git - chef.git/blob - cookbooks/vectortile/templates/default/render-lowzoom.erb
Manage the social_links table in the API database
[chef.git] / cookbooks / vectortile / templates / default / render-lowzoom.erb
1 #!/bin/sh
2 set -eu
3
4 # The source daily vaccum is best placed before the tilegen, as it has marginal speed benefits
5 vacuumdb --analyze \
6 -j "<%= node[:vectortile][:replication][:threads] %>" \
7 -d "<%= @source_database %>"
8
9 <%= @tilekiln_bin %> generate zooms \
10 --source-dbname "<%= @source_database %>" \
11 --storage-dbname "<%= @storage_database %>" \
12 --num-threads "<%= node[:vectortile][:replication][:threads] %>" \
13 --config <%= @config_path %> \
14 --min-zoom <%= @min_zoom %> \
15 --max-zoom <%= @max_zoom %>
16
17 # the daily render can add bloat, so the vacuum is done after it on the tile DB
18 vacuumdb --analyze \
19 -j "<%= node[:vectortile][:replication][:threads] %>" \
20 -d "<%= @storage_database %>"