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

@ -116,6 +116,8 @@ grep -q 'port: 5433' /opt/openstreetmap-carto/project.mml || (
(cd /opt/openstreetmap-carto/ && carto project.mml >mapnik.xml)
)
chown -R _renderd:_renderd /opt/openstreetmap-carto
# Disable JIT as recommended by mod_tile
sed -i 's/#jit =.*/jit = off/' /etc/postgresql/15/map/postgresql.conf
cp /opt/wrolpi/etc/raspberrypios/renderd.conf /etc/renderd.conf
# Configure Apache2 to listen on 8084.

View file

@ -58,7 +58,7 @@ file permissions if necessary:
Start the WROLPi services using:
# sudo systemctl start wrolpi.target
then navigate to: http://wrolpi.local
then navigate to: https://$(hostnmae).local
Or, join to the Wifi hotspot:
SSID: WROLPi

View file

@ -58,7 +58,7 @@ file permissions if necessary:
Start the WROLPi services using:
# sudo systemctl start wrolpi.target
then navigate to: http://wrolpi.local
then navigate to: https://$(hostname).local
Or, join to the Wifi hotspot:
SSID: WROLPi

View file

@ -27,6 +27,10 @@ set -x
systemctl stop renderd
# Delete old map database, if it exists.
sudo -iu postgres dropdb --port=5433 gis || :
sudo -iu postgres dropuser --port=5433 _renderd || :
# Delete new map database, it will be created again.
sudo -iu postgres dropdb --port=5433 gis || :
sudo -iu postgres dropuser --port=5433 _renderd || :

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 || (