Browse code

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 authored on 2020/02/15 06:24:06
Showing 1 changed files
... ...
@@ -44,6 +44,9 @@ var (
44 44
 		// expires connection from the IPVS connection table when the backend is not available
45 45
 		// more info: https://github.com/torvalds/linux/blob/master/Documentation/networking/ipvs-sysctl.txt#L126:1
46 46
 		"net.ipv4.vs.expire_nodest_conn": {Value: "1", CheckFn: nil},
47
+		// expires persistent connections to destination servers with weights set to 0
48
+		// more info: https://github.com/torvalds/linux/blob/master/Documentation/networking/ipvs-sysctl.txt#L144:1
49
+		"net.ipv4.vs.expire_quiescent_template": {Value: "1", CheckFn: nil},
47 50
 	}
48 51
 )
49 52