Allows us to use weights for the registry haproxy backend
For gitlab-com/gl-infra/delivery#940 (closed)
This allows us to set haproxy weights, which will allow us to send a bit more traffic to the canary registry.
With a default weight set to 3
, we will generate this backend config:
+backend registry
+ mode http
+ balance roundrobin
+ option forwardfor
+ option splice-auto
+ timeout server-fin 5s
+ option httpchk GET /debug/health HTTP/1.1\r\nHost:\ registry.gitlab.com
+ server registry-01-sv-gstg registry-01-sv-gstg.c.gitlab-staging-1.internal:5000 weight 100 check inter 2s fastinter 1s downinter 5s fall 3 port 5001
+ server gke-cny-registry 1.1.1.1:5000 weight 3 check inter 2s fastinter 1s downinter 5s fall 3 port 5001
+
Edited by John Jarvis