forked from galaxyproject/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.ini.sample
80 lines (59 loc) · 1.62 KB
/
server.ini.sample
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
### server:main section used by paster web server. More advanced,
### Python3 compatible circus setup configured using sections after
### app:main (circus, watcher:web, socket:web).
[server:main]
use = egg:Paste#http
## To use chaussette w/paster deploy (no circus), use follwoing:
# use = egg:chaussette#main
## The port on which to listen.
port = 8913
## The interface(s) on which to listen. Use '0.0.0.0' for all interfaces.
host = localhost
## pem file to use to enable SSL. Set to * to generate one
## automatically.
# ssl_pem = host.pem
[app:main]
paste.app_factory = pulsar.web.wsgi:app_factory
app_config=%(here)s/app.yml
## Configure uWSGI (if used).
[uwsgi]
master = True
paste-logger = True
socket = 127.0.0.1:3031
processes = 1
enable-threads = True
## Configure circus and chaussette (if used).
[circus]
endpoint = tcp://127.0.0.1:5555
pubsub_endpoint = tcp://127.0.0.1:5556
#stats_endpoint = tcp://127.0.0.1:5557
[watcher:web]
cmd = chaussette --fd $(circus.sockets.web) paste:server.ini
use_sockets = True
# Pulsar must be single-process for now...
numprocesses = 1
[socket:web]
host = localhost
port = 8913
## Configure Python loggers.
[loggers]
keys = root,pulsar
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_pulsar]
level = DEBUG
handlers = console
qualname = pulsar
propagate = 0
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = DEBUG
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s