Skip to content

Commit

Permalink
Disable net/ipv4/vs/conn_reuse_mode
Browse files Browse the repository at this point in the history
Otherwise, will meet issue cloudnativelabs/kube-router#544
  • Loading branch information
panpan0000 committed Oct 16, 2019
1 parent 06fae2c commit 8f03768
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: push

# 0.0 shouldn't clobber any release builds
TAG = 0.34-dce
TAG = 0.34-dce-patch-1
HAPROXY_TAG = 0.1
# Helm uses SemVer2 versioning
CHART_VERSION = 0.2.0
Expand Down
7 changes: 7 additions & 0 deletions pkg/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ var (
"net/ipv4/ip_nonlocal_bind": 1,
// enable connection tracking for LVS connections
"net/ipv4/vs/conntrack": 1,
//to resolve the ipvs performance issue https://github.com/kubernetes/kubernetes/issues/70747
// reference: https://github.com/kubernetes/kubernetes/issues/81775
"net/ipv4/vs/conn_reuse_mode": 0,
"net/ipv4/vs/expire_nodest_conn": 1,
// Below two parameters are from kube-proxy tuning practice.
// net.ipv4.vs.expire_quiescent_template = 1,

}

vrid = flags.Int("vrid", 70,
Expand Down

0 comments on commit 8f03768

Please sign in to comment.