We have an nginx conf file that we’ve been producing with consul-template for about 2000 services, running Consul 1.6.1. We’re trying to upgrade to Consul 1.7.2 and running into an issue where consul-template DDoSes Consul node agent. Node/client agent v1.6.1 works fine, but node/client agent v1.7.2 starts refusing connections from consul-template. The template in question (simplified version) is:
{{- range services }}
{{- if (in .Tags "nginxqa1") }}
{{- range service .Name }}
{{ .Address }}
{{- end }}
{{- end }}
{{- end }}
Adding the following limits config entry on the node/client consul seems to fix the issue:
http_max_conns_per_client = 5000
But, are there any implications to this? Is there a better way of doing this?
Any ideas / suggestions appreciated.