enable consul catalog to use maxconn
This commit is contained in:
parent
d06b9c2992
commit
f7f17f0057
4 changed files with 31 additions and 6 deletions
|
@ -23,6 +23,13 @@
|
|||
[backends."backend-{{$service}}".loadbalancer]
|
||||
method = "{{$loadBalancer}}"
|
||||
{{end}}
|
||||
|
||||
{{if hasMaxconnAttributes .Attributes}}
|
||||
[backends."backend-{{$service}}".maxconn]
|
||||
amount = {{getAttribute "backend.maxconn.amount" .Attributes "" }}
|
||||
extractorfunc = "{{getAttribute "backend.maxconn.extractorfunc" .Attributes "" }}"
|
||||
{{end}}
|
||||
|
||||
{{end}}
|
||||
|
||||
[frontends]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue