Merge lp:~pedronis/charms/trusty/tanuki-spec-manager/ctl-gunicorn-num-workers into lp:~tanuki/charms/trusty/tanuki-spec-manager/trunk

Proposed by Samuele Pedroni
Status: Merged
Approved by: Samuele Pedroni
Approved revision: 23
Merged at revision: 23
Proposed branch: lp:~pedronis/charms/trusty/tanuki-spec-manager/ctl-gunicorn-num-workers
Merge into: lp:~tanuki/charms/trusty/tanuki-spec-manager/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-spec-manager/ctl-gunicorn-num-workers
Reviewer Review Type Date Requested Status
Celso Providelo (community) Approve
Guillermo Gonzalez Approve
Review via email: mp+270161@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
Guillermo Gonzalez (verterok) wrote :

LGTM

review: Approve
Revision history for this message
Celso Providelo (cprov) wrote :

Samuele,

Looks very good, but to avoid hitting the missing DB perms in staging, it can only land after that is fixed (facu is working on it).

Pre-approved.

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 14:17:12 +0000
3+++ config.yaml 2015-09-04 11:39:32 +0000
4@@ -4,6 +4,11 @@
5 default: "devel"
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:20:45 +0000
19+++ templates/upstart.conf 2015-09-04 11:39:32 +0000
20@@ -25,6 +25,7 @@
21 exec ./env/bin/gunicorn \
22 --name=spec-manager \
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: