Freeze break request - change haproxy check URL for MirrorManager

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can I get two +1 for this change?

    Switch to another URL for mirrormanager haproxy check
    
    The haproxy check URL for the MirrorManager web frontend was a URL
    which resulted in a large DB query. Every proxy, every minute. This
    resulted in two much memory and CPU consumption. This switches the
    check to a small static file to reduce the load on mm-frontend01.

diff --git a/roles/haproxy/files/haproxy.cfg b/roles/haproxy/files/haproxy.cfg
index 75bcf17..7a4b6cd 100644
--- a/roles/haproxy/files/haproxy.cfg
+++ b/roles/haproxy/files/haproxy.cfg
@@ -75,7 +75,7 @@ listen  voting 0.0.0.0:10007
 listen  mirrormanager 0.0.0.0:10008
     balance hdr(appserver)
     server  mm-frontend01 mm-frontend01:80 check inter 60s rise 2 fall 3
-    option  httpchk GET /mirrormanager
+    option  httpchk GET /mirrormanager/static/mirrormanager2.css
 
 listen  bodhi 0.0.0.0:10009
     balance hdr(appserver)
diff --git a/roles/haproxy/files/haproxy.cfg.stg b/roles/haproxy/files/haproxy.cfg.stg
index ef77c0d..6acc0fd 100644
--- a/roles/haproxy/files/haproxy.cfg.stg
+++ b/roles/haproxy/files/haproxy.cfg.stg
@@ -65,7 +65,7 @@ listen  voting 0.0.0.0:10007
 listen  mirrormanager 0.0.0.0:10008
     balance hdr(appserver)
     server  mm-frontend01 mm-frontend01:80 check inter 60s rise 2 fall 3
-    option  httpchk GET /mirrormanager/
+    option  httpchk GET /mirrormanager/static/mirrormanager2.css
 
 listen  bodhi 0.0.0.0:10009
     balance hdr(appserver)

		Adrian

Attachment: pgp9jGpoFWNeB.pgp
Description: PGP signature

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux