From 900552f038ddae7a5c16c9b3f0c0308e011dca36 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Wed, 20 May 2015 12:13:49 +0000 Subject: [PATCH] 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. --- roles/haproxy/files/haproxy.cfg | 2 +- roles/haproxy/files/haproxy.cfg.stg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/haproxy/files/haproxy.cfg b/roles/haproxy/files/haproxy.cfg index 75bcf1738d..7a4b6cd147 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 ef77c0d0ba..6acc0fd3e7 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)