Stab at making our lower mem proxies happier so they don't nagios flood us

This commit is contained in:
Kevin Fenzi 2015-02-06 18:16:31 +00:00
parent 7da6b77404
commit 73dee1dc7f
5 changed files with 20 additions and 5 deletions

View file

@ -1,9 +1,14 @@
--- ---
# Define resources for this group of hosts here. # Define resources for this group of hosts here.
lvm_size: 30000 lvm_size: 30000
mem_size: 4192 mem_size: 8192
num_cpus: 4 num_cpus: 4
# This is used in the httpd.conf to determine the value for serverlimit and
# maxrequestworkers. On 8gb proxies, 900 seems fine. But on 4gb proxies, this
# should be lowered in the host vars for that proxy.
maxrequestworkers: 900
tcp_ports: [ tcp_ports: [
# For apache, generally. # For apache, generally.
80, 80,

View file

@ -4,6 +4,11 @@ lvm_size: 30000
mem_size: 8192 mem_size: 8192
num_cpus: 2 num_cpus: 2
# This is used in the httpd.conf to determine the value for serverlimit and
# maxrequestworkers. On 8gb proxies, 900 seems fine. But on 4gb proxies, this
# should be lowered in the host vars for that proxy.
maxrequestworkers: 900
tcp_ports: [ tcp_ports: [
# For apache, generally. # For apache, generally.
80, 80,

View file

@ -18,3 +18,8 @@ postfix_group: vpn
nrpe_procs_warn: 900 nrpe_procs_warn: 900
nrpe_procs_crit: 1000 nrpe_procs_crit: 1000
# This is used in the httpd.conf to determine the value for serverlimit and
# maxrequestworkers. On 8gb proxies, 900 seems fine. But on 4gb proxies, this
# should be lowered in the host vars for that proxy.
maxrequestworkers: 400

View file

@ -1,6 +1,6 @@
- name: Copy in the main httpd.conf file for proxy nodes - name: Copy in the main httpd.conf file for proxy nodes
copy: > template: >
src=httpd.conf dest=/etc/httpd/conf/httpd.conf src=httpd.conf.j2 dest=/etc/httpd/conf/httpd.conf
owner=root group=root mode=0644 owner=root group=root mode=0644
notify: notify:
- restart httpd - restart httpd

View file

@ -108,8 +108,8 @@ KeepAliveTimeout 15
StartServers 150 StartServers 150
MinSpareServers 50 MinSpareServers 50
MaxSpareServers 100 MaxSpareServers 100
ServerLimit 950 ServerLimit {{ maxrequestworkers }}
MaxClients 900 MaxRequestWorkers {{ maxrequestworkers }}
MaxRequestsPerChild 10000 MaxRequestsPerChild 10000
# #