Adjust the proxy and varnish settings for mirrormanager2

This commit is contained in:
Pierre-Yves Chibon 2015-01-16 11:23:14 +01:00
parent 9aa529c9db
commit 932ab8863d
2 changed files with 14 additions and 0 deletions

View file

@ -169,6 +169,11 @@ listen kerneltest 0.0.0.0:10038
server kerneltest01 kerneltest01:80 check inter 10s rise 1 fall 2
option httpchk GET /kerneltest
listen mirrormanager2 0.0.0.0:10039
balance hdr(appserver)
server mm-frontend01 mm-frontend01:80 check inter 60s rise 2 fall 3
option httpchk GET /mirrormanager2
# Apache doesn't handle the initial connection here like the other proxy
# entries. This proxy also doesn't use the http mode like the others.
# stunnel should be sitting on port 9939 (public) and redirecting

View file

@ -118,6 +118,12 @@ backend paste {
.port = "10027";
}
backend mirrormanager2 {
.host = "localhost";
.port = "10039";
}
#acl purge {
# "192.168.1.3";
# "192.168.1.4";
@ -171,6 +177,9 @@ sub vcl_recv {
if (req.url ~ "^/mirrormanager/") {
set req.backend_hint = mirrormanager;
}
if (req.url ~ "^/mirrormanager2/") {
set req.backend_hint = mirrormanager2;
}
if (req.url ~ "^/updates/") {
set req.backend_hint = bodhi;
}