Bump RLimitNPROC for bugs web hosts
authorJulien Cristau <jcristau@debian.org>
Wed, 16 Jan 2019 07:08:07 +0000 (08:08 +0100)
committerJulien Cristau <jcristau@debian.org>
Wed, 16 Jan 2019 07:09:32 +0000 (08:09 +0100)
Bug#919316

modules/apache2/manifests/init.pp
modules/apache2/templates/resource-limits.erb

index 5f289cb..b508416 100644 (file)
@@ -54,6 +54,12 @@ class apache2 {
        } else {
                $memlimit = 192 * 1024 * 1024
        }
+       # debbugs cgis like to fork and don't deal well with EAGAIN
+       if has_role('bugs_base') {
+               $proclimit = 450
+       } else {
+               $proclimit = 256
+       }
 
        apache2::config { 'resource-limits':
                content => template('apache2/resource-limits.erb'),
index 10c6b41..d4da647 100644 (file)
@@ -5,4 +5,4 @@
 
 RLimitCPU 180
 RLimitMEM <%= @memlimit %>
-RLimitNPROC 256
+RLimitNPROC <%= @proclimit %>