Skip to content

Commit

Permalink
fix tcp_tw_recycle settings issue easzlab#714
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Oct 27, 2019
1 parent 8ae76e6 commit afbba63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/prepare/templates/95-k8s-sysctl.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-arptables = 1
{% if ansible_distribution in ["CentOS","RedHat","Amazon"] %}
{% if KERNEL_VER|float < 4.12 %}
net.ipv4.tcp_tw_recycle = 0
{% endif %}
net.ipv4.tcp_tw_reuse = 0
Expand Down

0 comments on commit afbba63

Please sign in to comment.