File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,8 @@ Manages Gunicorn virtual hosts.
176
176
177
177
** osenv** - Allows setting environment variables for the gunicorn service. Accepts a hash of 'key': 'value' pairs. Default: false
178
178
179
+ ** timeout** - Allows setting the gunicorn idle worker process time before being killed. The unit of time is seconds. Default: 30
180
+
179
181
** template** - Which ERB template to use. Default: python/gunicorn.erb
180
182
181
183
``` puppet
@@ -188,6 +190,7 @@ Manages Gunicorn virtual hosts.
188
190
environment => 'prod',
189
191
appmodule => 'app:app',
190
192
osenv => { 'DBHOST' => 'dbserver.example.com' },
193
+ timeout => 30,
191
194
template => 'python/gunicorn.erb',
192
195
}
193
196
```
Original file line number Diff line number Diff line change 34
34
# hash of 'key': 'value' pairs.
35
35
# Default: false
36
36
#
37
+ # [*timeout*]
38
+ # Allows setting the gunicorn idle worker process time before being killed.
39
+ # The unit of time is seconds.
40
+ # Default: 30
41
+ #
37
42
# [*template*]
38
43
# Which ERB template to use. Default: python/gunicorn.erb
39
44
#
50
55
# group => 'www-data',
51
56
# appmodule => 'app:app',
52
57
# osenv => { 'DBHOST' => 'dbserver.example.com' },
58
+ # timeout => 30,
53
59
# template => 'python/gunicorn.erb',
54
60
# }
55
61
#
70
76
$group = ' www-data' ,
71
77
$appmodule = ' app:app' ,
72
78
$osenv = false ,
79
+ $timeout = 30,
73
80
$template = ' python/gunicorn.erb' ,
74
81
) {
75
82
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ CONFIG = {
32
32
'--bind=<%= @bind %> ',
33
33
<% end -%>
34
34
'--workers=<%= @processorcount.to_i*2 %> ',
35
- '--timeout=30 ',
35
+ '--timeout=<%= @timeout %> ',
36
36
<% if @mode != 'django' -%>
37
37
'<%= @appmodule %> ',
38
38
<% end -%>
Original file line number Diff line number Diff line change 13
13
environment => ' prod' ,
14
14
appmodule => ' app:app' ,
15
15
osenv => { ' DBHOST' => ' dbserver.example.com' },
16
+ timeout => 30,
16
17
template => ' python/gunicorn.erb' ,
17
18
}
You can’t perform that action at this time.
0 commit comments