Rework servers load-balancer to use the WRR
Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
This commit is contained in:
parent
67d9c8da0b
commit
fadee5e87b
70 changed files with 2085 additions and 2211 deletions
|
@ -307,7 +307,13 @@ func (c configBuilder) buildServersLB(namespace string, svc v1alpha1.LoadBalance
|
|||
passHostHeader := true
|
||||
lb.PassHostHeader = &passHostHeader
|
||||
}
|
||||
lb.ResponseForwarding = conf.ResponseForwarding
|
||||
|
||||
if conf.ResponseForwarding != nil && conf.ResponseForwarding.FlushInterval != "" {
|
||||
err := lb.ResponseForwarding.FlushInterval.Set(conf.ResponseForwarding.FlushInterval)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to parse flushInterval: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
lb.Sticky = svc.Sticky
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue