File tree 2 files changed +13
-1
lines changed
templates/etc/apache2/sites-available
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 358
358
# Trigges the creation of metricaccess.log which logs access to Whisper
359
359
# and RRD data files
360
360
# Default is 'False' (String)
361
+ # [*wsgi_processes*]
362
+ # WSGI process count.
363
+ # Default is 5
364
+ # [*wsgi_threads*]
365
+ # WSGI process threads.
366
+ # Default is 5
367
+ # [*wsgi_inactivity-timeout*]
368
+ # WSGI inactivity-timeout in seconds.
369
+ # Default is 120
361
370
#
362
371
# === Examples
363
372
#
520
529
$gr_log_cache_performance = ' False' ,
521
530
$gr_log_rendering_performance = ' False' ,
522
531
$gr_log_metric_access = ' False' ,
532
+ $wsgi_processes = 5,
533
+ $wsgi_threads = 5,
534
+ $wsgi_inactivity_timeout = 120,
523
535
) inherits graphite::params {
524
536
# Validation of input variables.
525
537
# TODO - validate all the things
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ WSGISocketPrefix <%= scope.lookupvar('graphite::params::apache_wsgi_socket_prefi
26
26
27
27
# I've found that an equal number of processes & threads tends
28
28
# to show the best performance for Graphite (ymmv).
29
- WSGIDaemonProcess graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120
29
+ WSGIDaemonProcess graphite processes=<%= scope . lookupvar ( 'graphite::wsgi_processes' ) -%> threads=<%= scope . lookupvar ( 'graphite::wsgi_threads' ) -%> display-name='%{GROUP}' inactivity-timeout=<%= scope . lookupvar ( 'graphite::wsgi_inactivity_timeout' ) %>
30
30
WSGIProcessGroup graphite
31
31
WSGIApplicationGroup %{GLOBAL}
32
32
WSGIImportScript /opt/graphite/conf/graphite.wsgi process-group=graphite application-group=%{GLOBAL}
You can’t perform that action at this time.
0 commit comments