Merge pull request #43670 from evol262/ipvs-module-idempotency

Ensure performance tuning is always applied
This commit is contained in:
Sebastiaan van Stijn 2022-05-31 22:00:40 +02:00 committed by GitHub
commit 5a8304c9c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,6 +167,10 @@ func (n *network) addLBBackend(ip net.IP, lb *loadBalancer) {
if err := i.NewDestination(s, d); err != nil && err != syscall.EEXIST { if err := i.NewDestination(s, d); err != nil && err != syscall.EEXIST {
logrus.Errorf("Failed to create real server %s for vip %s fwmark %d in sbox %.7s (%.7s): %v", ip, lb.vip, lb.fwMark, sb.ID(), sb.ContainerID(), err) logrus.Errorf("Failed to create real server %s for vip %s fwmark %d in sbox %.7s (%.7s): %v", ip, lb.vip, lb.fwMark, sb.ID(), sb.ContainerID(), err)
} }
// Ensure that kernel tweaks are applied in case this is the first time
// we've initialized ip_vs
sb.osSbox.ApplyOSTweaks(sb.oslTypes)
} }
// Remove loadbalancer backend the load balancing endpoint for this // Remove loadbalancer backend the load balancing endpoint for this