-
Notifications
You must be signed in to change notification settings - Fork 2
/
tirex.conf
87 lines (66 loc) · 3.49 KB
/
tirex.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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=/run/tirex/modtile.sock
# Directory where UNIX domain sockets are created
socket_dir=/run/tirex
#-----------------------------------------------------------------------------
# MASTER
#-----------------------------------------------------------------------------
# The master writes its process ID into this file.
master_pidfile=/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=3
# 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=/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=2
#-----------------------------------------------------------------------------
# SYNCD
#-----------------------------------------------------------------------------
# The syncd process writes its process ID into this file
syncd_pidfile=/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=rsync --archive --relative --no-implied-dirs --rsh="ssh -oControlMaster=auto -oControlPersist=1h -oControlPath=$SOCKET_DIR/ssh-control-%h-%r-%p -Tq" %FILES% "%HOST%:/
#-- THE END ------------------------------------------------------------------