forked from ISTI-ansible-roles/ansible-roles
haproxy: add a task that increases the dimension of the conntrack table.
This commit is contained in:
parent
78872533ad
commit
4a9636fe3f
|
@ -25,3 +25,5 @@ haproxy_nagios_check_c: 90
|
|||
haproxy_check_interval: 3s
|
||||
haproxy_backend_maxconn: 2048
|
||||
|
||||
haproxy_sysctl_conntrack_max: 131072
|
||||
|
||||
|
|
|
@ -45,10 +45,18 @@
|
|||
with_items:
|
||||
- net.ipv4.ip_nonlocal_bind
|
||||
when: haproxy_k_bind_non_local_ip
|
||||
tags: [ 'haproxy', 'haproxy_sysctl' ]
|
||||
|
||||
- name: Disable kernel binding non local IP addresses
|
||||
sysctl: name={{ item }} value=0 reload=yes state=present
|
||||
with_items:
|
||||
- net.ipv4.ip_nonlocal_bind
|
||||
when: not haproxy_k_bind_non_local_ip
|
||||
tags: [ 'haproxy', 'haproxy_sysctl' ]
|
||||
|
||||
- name: Increase the connection tracking table capacity
|
||||
sysctl: name={{ item }} value={{ haproxy_sysctl_conntrack_max }} reload=yes state=present
|
||||
with_items:
|
||||
- net.nf_conntrack_max
|
||||
tags: [ 'haproxy', 'haproxy_sysctl' ]
|
||||
|
||||
|
|
Loading…
Reference in New Issue