-
Notifications
You must be signed in to change notification settings - Fork 2
/
circus-dev.ini
57 lines (52 loc) · 1.37 KB
/
circus-dev.ini
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
[circus]
check_delay = 5
endpoint = tcp://127.0.0.1:5555
pubsub_endpoint = tcp://127.0.0.1:5556
[watcher:grpc]
cmd = python3
args = -m service.moses_service_server $(circus.env.grpc)
warmup_delay = 0
numprocesses = 1
autostart = true
working_dir = $(circus.env.wdir)
stdout_stream.class = StdoutStream
stderr_stream.class = StdoutStream
copy_env = true
priority = 1
[watcher:celery]
cmd = celery
args = worker -A task.task_runner.celery
warmup_delay = 0
numprocesses = 1
autostart = true
working_dir = $(circus.env.wdir)
stdout_stream.class = StdoutStream
stderr_stream.class = StdoutStream
copy_env = true
priority = 2
[watcher:webserver]
cmd = gunicorn
args = -w 2 -b $(circus.env.web) webserver.apimain:app
warmup_delay = 0
numprocesses = 1
autostart = true
working_dir = $(circus.env.wdir)
copy_env = true
stdout_stream.class = StdoutStream
stderr_stream.class = StdoutStream
priority = 3
[watcher:grpc-proxy]
cmd = ./grpc-proxy
args = --backend_addr=127.0.0.1:5003 --server_http_debug_port=7001 --run_tls_server=false --backend_tls=false --server_http_max_write_timeout="1h" --backend_max_call_recv_msg_size=1073741824 --allow_all_origins
warmup_delay = 0
numprocesses = 1
autostart = true
working_dir = $(circus.env.wdir)
copy_env = true
stdout_stream.class = StdoutStream
stderr_stream.class = StdoutStream
priority = 3
[env]
wdir = /home/root/mozi_snet_service
web = 0.0.0.0:5000
grpc = 5003