1
0
Fork 0

enable consul catalog to use maxconn

This commit is contained in:
Bruce Lee 2016-08-24 23:46:47 -04:00
parent d06b9c2992
commit f7f17f0057
4 changed files with 31 additions and 6 deletions

View file

@ -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]