-
Notifications
You must be signed in to change notification settings - Fork 2
/
supervisor.conf.tpl
58 lines (51 loc) · 1.75 KB
/
supervisor.conf.tpl
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
; This is the cockroach supervisor config template.
; It is first rendered by terraform, filling in stores, join_address, node_address,
; and cockroach_port.
[inet_http_server]
port=*:9001
[supervisord]
logfile=%(here)s/logs/supervisor.log
pidfile=%(here)s/supervisor.pid
childlogdir=%(here)s/logs
directory=%(here)s
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
[program:cockroach]
directory=%(here)s
command=%(here)s/cockroach start --logtostderr=true ${stores} --insecure --join=${join_address}
process_name=%(program_name)s
numprocs=1
autostart=false
autorestart=false
startsecs=2
startretries=0
stopwaitsecs=90
stderr_logfile=%(here)s/logs/%(program_name)s.stderr
stdout_logfile=%(here)s/logs/%(program_name)s.stdout
[program:block_writer]
directory=%(here)s
command=%(here)s/block_writer --tolerate-errors 'postgres://root@${node_address}:${cockroach_port}/?sslmode=disable'
process_name=%(program_name)s
numprocs=1
autostart=false
autorestart=false
startsecs=2
startretries=0
stderr_logfile=%(here)s/logs/%(program_name)s.stderr
stdout_logfile=%(here)s/logs/%(program_name)s.stdout
[program:photos]
directory=%(here)s
command=%(here)s/photos --users 3 --db postgres://root@${node_address}:${cockroach_port}/photos?sslmode=disable
process_name=%(program_name)s
numprocs=1
autostart=false
autorestart=false
startsecs=2
startretries=0
stderr_logfile=%(here)s/logs/%(program_name)s.stderr
stdout_logfile=%(here)s/logs/%(program_name)s.stdout