From d6b0908bcf01e17bbe9cfd5c7220f271562a35e0 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Sun, 1 Nov 2015 21:41:11 +0000 Subject: [PATCH] stg proxy config for statscache frontend. --- playbooks/include/proxies-reverseproxy.yml | 8 ++++++++ roles/haproxy/templates/haproxy.cfg.stg | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 4fc0342ab4..218228c2a6 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -267,6 +267,14 @@ remotepath: /autocloud proxyurl: http://localhost:10041 + - role: httpd/reverseproxy + website: apps.fedoraproject.org + destname: statscache + localpath: /statscache + remotepath: /statscache + proxyurl: http://localhost:10042 + when: env == "staging" + - role: httpd/reverseproxy website: admin.fedoraproject.org destname: yk-val diff --git a/roles/haproxy/templates/haproxy.cfg.stg b/roles/haproxy/templates/haproxy.cfg.stg index f9f85856dd..acfa189c0c 100644 --- a/roles/haproxy/templates/haproxy.cfg.stg +++ b/roles/haproxy/templates/haproxy.cfg.stg @@ -185,6 +185,12 @@ listen autocloud 0.0.0.0:10041 server autocloud-web02 autocloud-web02:80 check inter 10s rise 1 fall 2 option httpchk GET /autocloud/ +listen statscache 0.0.0.0:10042 + balance hdr(appserver) + server statscache-web01 statscache-web01:80 check inter 10s rise 1 fall 2 + server statscache-web02 statscache-web02:80 check inter 10s rise 1 fall 2 + option httpchk GET /statscache/ + # 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