Stab at making our lower mem proxies happier so they don't nagios flood us
This commit is contained in:
parent
7da6b77404
commit
73dee1dc7f
5 changed files with 20 additions and 5 deletions
|
@ -1,9 +1,14 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
lvm_size: 30000
|
||||
mem_size: 4192
|
||||
mem_size: 8192
|
||||
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: [
|
||||
# For apache, generally.
|
||||
80,
|
||||
|
|
|
@ -4,6 +4,11 @@ lvm_size: 30000
|
|||
mem_size: 8192
|
||||
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: [
|
||||
# For apache, generally.
|
||||
80,
|
||||
|
|
|
@ -18,3 +18,8 @@ postfix_group: vpn
|
|||
|
||||
nrpe_procs_warn: 900
|
||||
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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
- name: Copy in the main httpd.conf file for proxy nodes
|
||||
copy: >
|
||||
src=httpd.conf dest=/etc/httpd/conf/httpd.conf
|
||||
template: >
|
||||
src=httpd.conf.j2 dest=/etc/httpd/conf/httpd.conf
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart httpd
|
||||
|
|
|
@ -108,8 +108,8 @@ KeepAliveTimeout 15
|
|||
StartServers 150
|
||||
MinSpareServers 50
|
||||
MaxSpareServers 100
|
||||
ServerLimit 950
|
||||
MaxClients 900
|
||||
ServerLimit {{ maxrequestworkers }}
|
||||
MaxRequestWorkers {{ maxrequestworkers }}
|
||||
MaxRequestsPerChild 10000
|
||||
|
||||
#
|
Loading…
Add table
Add a link
Reference in a new issue