Skip to content

Commit 45deade

Browse files
jvanlieshoutDaanHoogland
authored andcommitted
sysctl improvements. 1. ip_nonlocal_bind for smooth transition in case of a keepalived failover. 2. panic settings so that a vm dies in a way that ACS understands it's down. 3. also up the nf_conntrack limits.
Signed-off-by: Daan Hoogland <daan@onecht.net>
1 parent e7ef14a commit 45deade

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

‎systemvm/patches/debian/config/etc/sysctl.conf‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ net.ipv4.conf.default.accept_redirects = 0
2525
net.ipv4.conf.all.send_redirects = 0
2626
net.ipv4.conf.default.send_redirects = 0
2727

28+
# For smooth transition of the vip address in case of a keepalived failover
29+
net.ipv4.ip_nonlocal_bind = 1
2830

2931
# Controls the System Request debugging functionality of the kernel
3032
kernel.sysrq = 0
@@ -33,13 +35,20 @@ kernel.sysrq = 0
3335
# Useful for debugging multi-threaded applications.
3436
kernel.core_uses_pid = 1
3537

38+
# A better way for the instance to die
39+
kernel.panic = 10
40+
kernel.panic_on_oops = 1
41+
vm.panic_on_oom = 1
42+
3643
# Controls the use of TCP syncookies
3744
net.ipv4.tcp_syncookies = 1
3845

39-
net.ipv4.netfilter.ip_conntrack_max=1000000
40-
net.ipv4.tcp_tw_reuse=1
41-
net.ipv4.tcp_max_tw_buckets=1000000
42-
net.core.somaxconn=1000000
46+
net.ipv4.netfilter.ip_conntrack_max = 1000000
47+
net.ipv4.tcp_tw_reuse = 1
48+
net.ipv4.tcp_max_tw_buckets = 1000000
49+
net.core.somaxconn = 1000000
50+
net.nf_conntrack_max = 1000000
51+
net.netfilter.nf_conntrack_max = 1000000
4352

4453
# Disable IPv6
4554
net.ipv6.conf.all.disable_ipv6 = 0

0 commit comments

Comments
 (0)