Freeze break request - change haproxy check URL for MirrorManager
Adrian Reber
adrian at lisas.de
Wed May 20 12:20:47 UTC 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20150520/d42d81f7/attachment.sig>
More information about the infrastructure
mailing list