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
|
@ -82,8 +82,8 @@ func init() {
|
|||
Scheme: "foo",
|
||||
Path: "foo",
|
||||
Port: 42,
|
||||
Interval: "foo",
|
||||
Timeout: "foo",
|
||||
Interval: ptypes.Duration(111 * time.Second),
|
||||
Timeout: ptypes.Duration(111 * time.Second),
|
||||
Hostname: "foo",
|
||||
FollowRedirects: boolPtr(true),
|
||||
Headers: map[string]string{
|
||||
|
@ -92,7 +92,7 @@ func init() {
|
|||
},
|
||||
PassHostHeader: boolPtr(true),
|
||||
ResponseForwarding: &dynamic.ResponseForwarding{
|
||||
FlushInterval: "foo",
|
||||
FlushInterval: ptypes.Duration(111 * time.Second),
|
||||
},
|
||||
ServersTransport: "foo",
|
||||
Servers: []dynamic.Server{
|
||||
|
|
|
@ -75,8 +75,8 @@
|
|||
"scheme": "foo",
|
||||
"path": "foo",
|
||||
"port": 42,
|
||||
"interval": "foo",
|
||||
"timeout": "foo",
|
||||
"interval": "1m51s",
|
||||
"timeout": "1m51s",
|
||||
"hostname": "xxxx",
|
||||
"followRedirects": true,
|
||||
"headers": {
|
||||
|
@ -85,7 +85,7 @@
|
|||
},
|
||||
"passHostHeader": true,
|
||||
"responseForwarding": {
|
||||
"flushInterval": "foo"
|
||||
"flushInterval": "1m51s"
|
||||
},
|
||||
"serversTransport": "foo"
|
||||
}
|
||||
|
|
|
@ -75,8 +75,8 @@
|
|||
"scheme": "foo",
|
||||
"path": "foo",
|
||||
"port": 42,
|
||||
"interval": "foo",
|
||||
"timeout": "foo",
|
||||
"interval": "1m51s",
|
||||
"timeout": "1m51s",
|
||||
"hostname": "foo",
|
||||
"followRedirects": true,
|
||||
"headers": {
|
||||
|
@ -85,7 +85,7 @@
|
|||
},
|
||||
"passHostHeader": true,
|
||||
"responseForwarding": {
|
||||
"flushInterval": "foo"
|
||||
"flushInterval": "1m51s"
|
||||
},
|
||||
"serversTransport": "foo"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue