Compare commits
2 commits
c93846d03b
...
bd055b1ac8
Author | SHA1 | Date | |
---|---|---|---|
Patrik Lundin | bd055b1ac8 | ||
Patrik Lundin | c4b9bef3c5 |
|
@ -26,6 +26,20 @@ class cdn::l4lb(
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sysctl_file = '/etc/sysctl.d/99-cdn-l4lb.conf'
|
||||||
|
file { $sysctl_file:
|
||||||
|
ensure => file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
content => template('cdn/l4lb/sysctl.erb'),
|
||||||
|
}
|
||||||
|
# Load the sysctl file if it has changed
|
||||||
|
exec { "sysctl -p ${sysctl_file}":
|
||||||
|
subscribe => File[$sysctl_file],
|
||||||
|
refreshonly => true,
|
||||||
|
}
|
||||||
|
|
||||||
file { '/opt/sunet-cdn/l4lb':
|
file { '/opt/sunet-cdn/l4lb':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Allow non-SYN packets to be accepted for a IPVS service.
|
||||||
|
# Needed if another l4lb has been taken down and routers are now sending us
|
||||||
|
# packets for existing connections that was previously handled by the other
|
||||||
|
# node.
|
||||||
|
net.ipv4.vs.sloppy_tcp=1
|
Loading…
Reference in a new issue