Weights
This commit is contained in:
parent
46ef489b03
commit
4dc5b34122
8 changed files with 40 additions and 11 deletions
|
@ -137,7 +137,7 @@ func LoadConfig(configuration *Configuration) *mux.Router {
|
|||
for serverName, server := range configuration.Backends[route.Backend].Servers {
|
||||
log.Println("Creating server", serverName)
|
||||
url, _ := url.Parse(server.Url)
|
||||
rb.UpsertServer(url)
|
||||
rb.UpsertServer(url, roundrobin.Weight(server.Weight))
|
||||
}
|
||||
backends[route.Backend]=lb
|
||||
}else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue