Merge lp:~pedronis/charms/trusty/tanuki-result-enum-api/ctl-gunicorn-num-workers into lp:~tanuki/charms/trusty/tanuki-result-enum-api/trunk

Proposed by Samuele Pedroni
Status: Merged
Approved by: Samuele Pedroni
Approved revision: 20
Merged at revision: 20
Proposed branch: lp:~pedronis/charms/trusty/tanuki-result-enum-api/ctl-gunicorn-num-workers
Merge into: lp:~tanuki/charms/trusty/tanuki-result-enum-api/trunk
Diff against target: 27 lines (+6/-0)
2 files modified
config.yaml (+5/-0)
templates/upstart.conf (+1/-0)
To merge this branch: bzr merge lp:~pedronis/charms/trusty/tanuki-result-enum-api/ctl-gunicorn-num-workers
Reviewer Review Type Date Requested Status
Celso Providelo (community) Approve
Review via email: mp+270165@code.launchpad.net

Commit message

control number of gunicorn workers

Description of the change

control number of gunicorn workers

To post a comment you must log in.
Revision history for this message
Celso Providelo (cprov) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2015-08-13 03:31:51 +0000
3+++ config.yaml 2015-09-04 11:59:49 +0000
4@@ -4,6 +4,11 @@
5 default: "production"
6 description: |
7 Environment (devel, staging, production, etc.) that we're running.
8+ gunicorn_num_workers:
9+ type: int
10+ default: 3
11+ description: |
12+ The number of gunicorn worker processes for handling requests.
13 config-file:
14 type: string
15 description: |
16
17=== modified file 'templates/upstart.conf'
18--- templates/upstart.conf 2015-08-25 10:21:47 +0000
19+++ templates/upstart.conf 2015-09-04 11:59:49 +0000
20@@ -25,6 +25,7 @@
21 exec ./ve/bin/gunicorn \
22 --name=result-enum-api \
23 --bind=0.0.0.0 \
24+ --workers={{ gunicorn_num_workers }} \
25 --log-file=${LOG_DIR}/gunicorn.log \
26 --log-level=INFO \
27 --access-logfile=${LOG_DIR}/access.log \

Subscribers

People subscribed via source and target branches

to all changes: