Provide for RAM-constrained environments
authorJiri Stransky <jistr@redhat.com>
Wed, 21 Sep 2016 11:53:19 +0000 (13:53 +0200)
committerJiri Stransky <jistr@redhat.com>
Wed, 21 Sep 2016 13:14:20 +0000 (15:14 +0200)
commitb524c0999f447d7931fcacb37e2989d3bf66ad26
treeacf5bc8e2ebbce630cae7b77ba1e619d4b8271b7
parenta87939a39820d9190d2cd74be445e29951d0c6ad
Provide for RAM-constrained environments

We hit problems in environments which don't have a lot of RAM (e.g. dev
envs, could be also CI) that Apache ate too much memory due to
too many worker processes being spawned.

This commit allows customizing the Apache MaxRequestWorkers and
ServerLimit directives via Heat parameters. The default stays 256 as
that's the default in the Puppet module, to be suited for production
environments with powerful machines. Also low-memory-usage.yaml
environment file is added, which can be used to make dev/test/CI
overclouds less memory hungry, where the limits are now set to 32.

Change-Id: Ibcf1d9c3326df8bb5b380066166c4ae3c4bf8d96
Co-Authored-By: Carlos Camacho <ccamacho@redhat.com>
Closes-Bug: #1619205
environments/low-memory-usage.yaml [new file with mode: 0644]
puppet/services/apache.yaml