##// END OF EJS Templates
ini: lower the amount of workers by default
ergo -
r8:1458ded3
parent child Browse files
Show More
@@ -1,176 +1,176 b''
1 1 [app:appenlight]
2 2 use = egg:appenlight
3 3 reload_templates = false
4 4 debug_authorization = false
5 5 debug_notfound = false
6 6 debug_routematch = false
7 7 debug_templates = false
8 8 default_locale_name = en
9 9 sqlalchemy.url = {{ appenlight_dbstring }}
10 10 sqlalchemy.pool_size = 10
11 11 sqlalchemy.max_overflow = 50
12 12 sqlalchemy.echo = false
13 13 jinja2.directories = appenlight:templates
14 14 jinja2.filters = nl2br = appenlight.lib.jinja2_filters.nl2br
15 15
16 16 #includes
17 17 appenlight.includes =
18 18
19 19 #redis
20 20 redis.url = redis://localhost:6379/0
21 21 redis.redlock.url = redis://localhost:6379/3
22 22
23 23 #elasticsearch
24 24 elasticsearch.nodes = http://127.0.0.1:9200
25 25
26 26 #dirs
27 27 webassets.dir = %(here)s/webassets/
28 28
29 29 # encryption
30 30 encryption_secret = {{appenlight_encryption_secret}}
31 31
32 32 #authtkt
33 33 # uncomment if you use SSL
34 34 # authtkt.secure = true
35 35 authtkt.secret = {{appenlight_authtkt_secret}}
36 36 # session settings
37 37 redis.sessions.secret = {{appenlight_redis_session_secret}}
38 38 redis.sessions.timeout = 86400
39 39
40 40 # session cookie settings
41 41 redis.sessions.cookie_name = appenlight
42 42 redis.sessions.cookie_max_age = 2592000
43 43 redis.sessions.cookie_path = /
44 44 redis.sessions.cookie_domain =
45 45 # uncomment if you use SSL
46 46 redis.sessions.cookie_secure = True
47 47 redis.sessions.cookie_httponly = True
48 48 redis.sessions.cookie_on_exception = True
49 49 redis.sessions.prefix = appenlight:session:
50 50
51 51 #cache
52 52 cache.regions = default_term, second, short_term, long_term
53 53 cache.type = ext:memcached
54 54 cache.url = 127.0.0.1:11211
55 55 cache.lock_dir = %(here)s/data/cache/lock
56 56 cache.second.expire = 1
57 57 cache.short_term.expire = 60
58 58 cache.default_term.expire = 300
59 59
60 60 #mailing
61 61 mailing.app_url = https://{{appenlight_domain}}
62 62 mailing.from_name = App Enlight
63 63 mailing.from_email = no-reply@{{appenlight_domain}}
64 64
65 65 ###
66 66 # Authomatic configuration
67 67 ###
68 68
69 69 authomatic.secret =
70 70 authomatic.pr.facebook.app_id =
71 71 authomatic.pr.facebook.secret =
72 72 authomatic.pr.twitter.key =
73 73 authomatic.pr.twitter.secret =
74 74 authomatic.pr.google.key =
75 75 authomatic.pr.google.secret =
76 76 authomatic.pr.github.key =
77 77 authomatic.pr.github.secret =
78 78 authomatic.pr.github.scope =
79 79 authomatic.pr.bitbucket.key =
80 80 authomatic.pr.bitbucket.secret =
81 81
82 82 #ziggurat
83 83 ziggurat_foundations.model_locations.User = appenlight.models.user:User
84 84 ziggurat_foundations.sign_in.username_key = sign_in_user_name
85 85 ziggurat_foundations.sign_in.password_key = sign_in_user_password
86 86 ziggurat_foundations.sign_in.came_from_key = came_from
87 87
88 88 #cometd
89 89 cometd.server = http://127.0.0.1:8088
90 90 cometd.secret = secret
91 91 cometd.ws_url = wss://{{appenlight_domain}}/channelstream
92 92
93 93 # for celery
94 94 appenlight.api_key =
95 95 appenlight.transport_config =
96 96 appenlight.public_api_key =
97 97
98 98 # celery
99 99 celery.broker_type = redis
100 100 celery.broker_url = redis://localhost:6379/3
101 celery.concurrency = 8
101 celery.concurrency = 2
102 102 celery.timezone = UTC
103 103
104 104 [filter:paste_prefix]
105 105 use = egg:PasteDeploy#prefix
106 106
107 107
108 108 [filter:appenlight_client]
109 109 use = egg:appenlight_client
110 110 appenlight.api_key =
111 111 appenlight.transport_config =
112 112 appenlight.report_local_vars = true
113 113 appenlight.report_404 = true
114 114 appenlight.timing.dbapi2_psycopg2 = 0.3
115 115
116 116
117 117
118 118 [pipeline:main]
119 119 pipeline = paste_prefix
120 120 appenlight_client
121 121 appenlight
122 122
123 123
124 124
125 125 [server:main]
126 126 use = egg:gunicorn#main
127 127 host = 0.0.0.0:6543, unix:/tmp/appenlight.sock
128 workers = 6
128 workers = 2
129 129 timeout = 90
130 130 max_requests = 10000
131 131
132 132 [server:api]
133 133 use = egg:gunicorn#main
134 134 host = 0.0.0.0:6553, unix:/tmp/api.appenlight.sock
135 workers = 8
135 workers = 2
136 136 max_requests = 10000
137 137
138 138
139 139 # Begin logging configuration
140 140
141 141 [loggers]
142 142 keys = root, appenlight, sqlalchemy
143 143
144 144 [handlers]
145 145 keys = console
146 146
147 147 [formatters]
148 148 keys = generic
149 149
150 150 [logger_root]
151 151 level = WARN
152 152 handlers = console
153 153
154 154 [logger_appenlight]
155 155 level = WARN
156 156 handlers =
157 157 qualname = appenlight
158 158
159 159 [logger_sqlalchemy]
160 160 level = WARN
161 161 handlers =
162 162 qualname = sqlalchemy.engine
163 163 # "level = INFO" logs SQL queries.
164 164 # "level = DEBUG" logs SQL queries and results.
165 165 # "level = WARN" logs neither. (Recommended for production systems.)
166 166
167 167 [handler_console]
168 168 class = StreamHandler
169 169 args = (sys.stderr,)
170 170 level = NOTSET
171 171 formatter = generic
172 172
173 173 [formatter_generic]
174 174 format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
175 175
176 176 # End logging configuration
General Comments 0
You need to be logged in to leave comments. Login now