Defaults kernel.pid_max to 1048576
authorGiulio Fidente <gfidente@redhat.com>
Fri, 4 Nov 2016 10:12:43 +0000 (11:12 +0100)
committerGiulio Fidente <gfidente@redhat.com>
Fri, 4 Nov 2016 10:12:43 +0000 (11:12 +0100)
In some scenarios we reach the kernel.pid_max value, this change
adds a parameter to the Kernel service for configuration of the
sysctl key and defaults it to 1048576.

Change-Id: Id8f3e6b7ed9846022898d7158fe9180418847085
Closes-Bug: #1639191

puppet/services/kernel.yaml

index 1fc88bf..6989871 100644 (file)
@@ -18,6 +18,10 @@ parameters:
     description: Mapping of service endpoint -> protocol. Typically set
                  via parameter_defaults in the resource registry.
     type: json
+  KernelPidMax:
+    default: 1048576
+    description: Configures sysctl kernel.pid_max key
+    type: number
 
 outputs:
   role_data:
@@ -49,5 +53,7 @@ outputs:
             value: 0
           net.core.netdev_max_backlog:
             value: 10000
+          kernel.pid_max:
+            value: {get_param: KernelPidMax}
       step_config: |
         include ::tripleo::profile::base::kernel