Disabling JIT for map database as recommended by mod_tile because of excess memory usgae.

This commit is contained in:
Roland 2025-01-11 11:06:01 -07:00
parent f9ed86e31a
commit af5d4dfd51
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
5 changed files with 10 additions and 2 deletions

View file

@ -27,6 +27,8 @@ systemctl stop renderd
# Create new cluster for the map.
pg_createcluster 15 map --port=5433 --start
# Disable JIT as recommended by mod_tile
sed -i 's/#jit =.*/jit = off/' /etc/postgresql/15/map/postgresql.conf
# Create user permissions for map user.
sudo -iu postgres psql -c '\l' --port=5433 | grep gis || (