We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f74c06d commit 768cbf5Copy full SHA for 768cbf5
internal/nginx/config/upstreams_template.go
@@ -1,11 +1,12 @@
1
package config
2
3
-// FIXME(kate-osborn): Add upstream zone size for each upstream.
4
-// This should be dynamically calculated based on the number of upstreams.
+// FIXME(kate-osborn): Dynamically calculate upstream zone size based on the number of upstreams.
+// 512k will support up to 648 upstream servers.
5
var upstreamsTemplateText = `
6
{{ range $u := . }}
7
upstream {{ $u.Name }} {
8
random two least_conn;
9
+ zone {{ $u.Name }} 512k;
10
{{ range $server := $u.Servers }}
11
server {{ $server.Address }};
12
{{- end }}
0 commit comments