[Git][debian-gis-team/tirex][master] Handle tiles and stats in cache directory.

ǝɹʇʇɐʃǝ◖ xıʃǝɟ (@xamanu) gitlab at salsa.debian.org
Fri Aug 20 11:43:10 BST 2021



ǝɹʇʇɐʃǝ◖ xıʃǝɟ pushed to branch master at Debian GIS Project / tirex


Commits:
2f467ae3 by Felix Delattre at 2021-08-20T10:40:40+00:00
Handle tiles and stats in cache directory.

- - - - -


5 changed files:

- debian/etc/apache2/tirex.conf
- + debian/etc/tirex/tirex.conf
- + debian/tirex.dirs
- debian/tirex.install
- + debian/tirex.prerm


Changes:

=====================================
debian/etc/apache2/tirex.conf
=====================================
@@ -7,9 +7,9 @@ Alias /mod_tile /var/cache/tirex/tiles
     Require all granted
 
     ModTiletirexSocketName /var/run/tirex/tirex.sock
-    ModTileTileDir           /var/cache/tirex/tiles
+    ModTileTileDir         /var/cache/tirex/tiles
     ModTileRequestTimeout        0
-    ModTileMissingRequestTimeout        60
+    ModTileMissingRequestTimeout 60
     <Location "/mod_tile">
         # This is used by munin graphs.
         # Only allow local connections


=====================================
debian/etc/tirex/tirex.conf
=====================================
@@ -0,0 +1,87 @@
+#-----------------------------------------------------------------------------
+#
+#  /etc/tirex/tirex.conf
+#
+#  Configuration file for the Tirex tile rendering system.
+#
+#-----------------------------------------------------------------------------
+
+#  Directory where statistics are stored
+stats_dir=/var/cache/tirex/stats
+
+#  How many rows and columns of tiles are there in a metatile.
+#metatile_rows=8
+#metatile_columns=8
+
+#  The name of the UNIX domain socket for communicating with ModTile.
+#modtile_socket_name=/var/lib/tirex/modtile.sock
+
+#  Directory where UNIX domain sockets are created
+#socket_dir=/var/run/tirex
+
+#-----------------------------------------------------------------------------
+#  MASTER
+#-----------------------------------------------------------------------------
+
+#  The master writes its process ID into this file.
+#master_pidfile=/var/run/tirex/tirex-master.pid
+
+#  Syslog facility used in tirex-master.
+#master_syslog_facility=daemon
+
+#  Logfile where all rendered jobs are logged.
+#master_logfile=/var/log/tirex/jobs.log
+
+#  If the rendering of a metatile takes more than this many minutes the master
+#  gives up on it and removes the job from the list of currently rendering tiles.
+#  This must be larger than backend_manager_alive_timeout and should be larger than
+#  the rendering of any tile can need. Its only used to make sure that a
+#  rendering process that is long gone doesn't take up resources forever..
+#master_rendering_timeout=10
+
+#  Buckets for different priorities.
+bucket name=live       minprio=1  maxproc=4 maxload=20
+bucket name=important  minprio=10 maxproc=3 maxload=8
+bucket name=background minprio=20 maxproc=2 maxload=4
+
+#-----------------------------------------------------------------------------
+#  BACKEND-MANAGER
+#-----------------------------------------------------------------------------
+
+#  The tirex-backend-manager writes its process ID into this file
+#backend_manager_pidfile=/var/run/tirex/tirex-backend-manager.pid
+
+#  Syslog facility used by tirex-backend-manager
+#backend_manager_syslog_facility=daemon
+
+#  If a rendering process doesn't send an alive message in this many minutes
+#  to the backend-manager, it will be killed by the manager. Make this smaller
+#  than master_rendering_timeout.
+#backend_manager_alive_timeout=8
+
+#-----------------------------------------------------------------------------
+#  SYNCD
+#-----------------------------------------------------------------------------
+
+#  The syncd process writes its process ID into this file
+#syncd_pidfile=/var/run/tirex/tirex-syncd.pid
+
+#  If this is defined, the syncd will copy rendered tiles to this server..
+#  A comma-separated list is allowed.
+#sync_to_host=some.other.host,yet.another.host
+
+#  UDP port where the syncd listens for messages from master.
+#syncd_udp_port=9323
+
+#  Number of seconds syncd will sleep after doing something, to allow
+#  some tiles to collect in the replication queue. This queue is simply
+#  the UDP packet buffer of the local OS. If this number is larger than 
+#  10 or 20 seconds then there's a danger of replications being dropped
+#syncd_aggregate_delay=5
+
+#  command to execute for replicating the space-separated list of files
+#  %FILES% to host %HOST%. By default uses a ssh connection with a 
+#  persistent control connection that will be re-created on demand.
+#syncd_command=tar -C/ -cf - %FILES% | ssh %HOST% -oControlMaster=auto -oControlPersist=1h -oControlPath=/var/run/tirex/ssh-control-%h-%r-%p -Tq "tar -C/ -xf -"
+
+#-- THE END ------------------------------------------------------------------


=====================================
debian/tirex.dirs
=====================================
@@ -0,0 +1,2 @@
+var/cache/tirex/tiles
+var/cache/tirex/stats


=====================================
debian/tirex.install
=====================================
@@ -18,8 +18,8 @@ usr/share/man/man1/tirex-tiledir-check.1
 usr/share/man/man1/tirex-tiledir-stat.1
 usr/share/man/man3
 usr/share/perl5
-etc/tirex/tirex.conf
 etc/tirex/renderer/test.conf
 etc/tirex/renderer/test/checkerboard.conf
 etc/logrotate.d/tirex-master
 usr/lib/tirex/backends/test
+debian/etc/tirex/tirex.conf etc/tirex


=====================================
debian/tirex.prerm
=====================================
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+# automatically remove cached tiles
+if [ -d /var/cache/tirex/tiles ]
+then
+    rm -rf /var/cache/tirex/tiles
+fi
+
+# automatically remove stats
+if [ -d /var/cache/tirex/stats ]
+then
+    rm -rf /var/cache/tirex/stats
+fi
+
+#DEBHELPER#



View it on GitLab: https://salsa.debian.org/debian-gis-team/tirex/-/commit/2f467ae305ffcc2ec1e4f659d8cfee79f61a1e31

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/tirex/-/commit/2f467ae305ffcc2ec1e4f659d8cfee79f61a1e31
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20210820/1e4a23c5/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list