-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This uses the new flex expiry code in spirit/shortbread to reduce the number of tiles that need to be re-rendered each update.
- Loading branch information
Showing
5 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
#!/bin/sh | ||
set -eu | ||
<%= @tilekiln_bin %> generate tiles \ | ||
|
||
cd "<%= @expiry_dir %>" | ||
|
||
wc -l z*.txt | ||
cat z*.txt | <%= @tilekiln_bin %> generate tiles \ | ||
--source-dbname "<%= @source_database %>" \ | ||
--storage-dbname "<%= @storage_database %>" \ | ||
--num-threads "<%= node[:vectortile][:replication][:threads] %>" \ | ||
--config <%= @config_path %> < <%= @tiles_file %> | ||
--config <%= @config_path %> |
5 changes: 3 additions & 2 deletions
5
cookbooks/vectortile/templates/default/vector-update-notile.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/sh | ||
|
||
# Usage | ||
# sudo -u tilekiln vector-update | ||
# sudo -u tileupdate vector-update | ||
|
||
set -eu | ||
|
||
export LUA_PATH='/srv/vector.openstreetmap.org/osm2pgsql-themepark/lua/?.lua;/srv/vector.openstreetmap.org/spirit/?.lua;;' | ||
export LUA_PATH='/srv/vector.openstreetmap.org/osm2pgsql-themepark/lua/?.lua;;' | ||
|
||
cd "<%= @expiry_dir %>" | ||
osm2pgsql-replication update \ | ||
-d "<%= @source_database %>" \ | ||
--max-diff-size "<%= @diff_size %>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters