瀏覽代碼

Improving load balancer performance

Further improving load balancer performance by expiring
connections to servers with weights set to 0.

Signed-off-by: Andrew Kim <taeyeonkim90@gmail.com>
akim01 5 年之前
父節點
當前提交
9ced389e6e
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      libnetwork/osl/namespace_linux.go

+ 3 - 0
libnetwork/osl/namespace_linux.go

@@ -44,6 +44,9 @@ var (
 		// expires connection from the IPVS connection table when the backend is not available
 		// more info: https://github.com/torvalds/linux/blob/master/Documentation/networking/ipvs-sysctl.txt#L126:1
 		"net.ipv4.vs.expire_nodest_conn": {Value: "1", CheckFn: nil},
+		// expires persistent connections to destination servers with weights set to 0
+		// more info: https://github.com/torvalds/linux/blob/master/Documentation/networking/ipvs-sysctl.txt#L144:1
+		"net.ipv4.vs.expire_quiescent_template": {Value: "1", CheckFn: nil},
 	}
 )