2014-12-07 23:35:44 +00:00
|
|
|
# this config needs haproxy-1.1.28 or haproxy-1.2.1
|
|
|
|
|
|
|
|
global
|
|
|
|
log 127.0.0.1 local0 warning
|
|
|
|
# Set this to 4096 + 16384
|
|
|
|
# 16384 for the fedmsg gateway and 4096 for everybody else.
|
|
|
|
maxconn 20480
|
|
|
|
chroot /var/lib/haproxy
|
|
|
|
user haproxy
|
|
|
|
group haproxy
|
|
|
|
daemon
|
|
|
|
stats socket /var/run/haproxy-stat user haproxy group nrpe mode 0664
|
2017-11-22 19:37:13 +00:00
|
|
|
stats socket /var/run/haproxy-admin level admin user root group root mode 0660
|
2014-12-07 23:35:44 +00:00
|
|
|
#debug
|
|
|
|
#quiet
|
|
|
|
|
|
|
|
defaults
|
|
|
|
log global
|
|
|
|
mode http
|
|
|
|
option httplog
|
|
|
|
option dontlognull
|
|
|
|
option httpclose
|
|
|
|
option redispatch
|
|
|
|
retries 3
|
2015-01-27 18:37:51 +00:00
|
|
|
maxconn 5000
|
2014-12-07 23:35:44 +00:00
|
|
|
timeout connect 5s
|
|
|
|
timeout client 500s
|
|
|
|
timeout server 500s
|
|
|
|
errorfile 503 /etc/haproxy/503.http
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend stats-frontend
|
|
|
|
bind 0.0.0.0:8080
|
|
|
|
default_backend stats-backend
|
|
|
|
|
|
|
|
backend stats-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
stats enable
|
|
|
|
stats uri /
|
|
|
|
|
2021-09-04 10:51:00 -07:00
|
|
|
{% if env == "production" and 'iad2' in inventory_hostname %}
|
2021-08-30 13:12:45 +09:00
|
|
|
frontend ocp-masters-kapi
|
|
|
|
mode tcp
|
|
|
|
bind 0.0.0.0:6443
|
|
|
|
default_backend ocp-masters-backend-kapi
|
|
|
|
|
|
|
|
backend ocp-masters-backend-kapi
|
|
|
|
mode tcp
|
|
|
|
server ocp01.ocp.iad2.fedoraproject.org ocp01.ocp.iad2.fedoraproject.org:6443 weight 1 maxconn 16384 check
|
|
|
|
server ocp02.ocp.iad2.fedoraproject.org ocp02.ocp.iad2.fedoraproject.org:6443 weight 1 maxconn 16384 check
|
|
|
|
server ocp03.ocp.iad2.fedoraproject.org ocp03.ocp.iad2.fedoraproject.org:6443 weight 1 maxconn 16384 check
|
|
|
|
# temp bootstrap node
|
2021-09-08 12:35:48 +09:00
|
|
|
# server bootstrap.ocp.iad2.fedoraproject.org bootstrap.ocp.iad2.fedoraproject.org:6443 weight 1 maxconn 16384 check
|
2021-08-30 13:12:45 +09:00
|
|
|
|
|
|
|
frontend ocp-masters-machineconfig
|
|
|
|
mode tcp
|
|
|
|
bind 0.0.0.0:22623
|
|
|
|
default_backend ocp-masters-backend-machineconfig
|
|
|
|
|
|
|
|
backend ocp-masters-backend-machineconfig
|
|
|
|
mode tcp
|
|
|
|
server ocp01.ocp.iad2.fedoraproject.org ocp01.ocp.iad2.fedoraproject.org:22623 weight 1 maxconn 16384 check
|
|
|
|
server ocp02.ocp.iad2.fedoraproject.org ocp02.ocp.iad2.fedoraproject.org:22623 weight 1 maxconn 16384 check
|
|
|
|
server ocp03.ocp.iad2.fedoraproject.org ocp03.ocp.iad2.fedoraproject.org:22623 weight 1 maxconn 16384 check
|
|
|
|
# temp bootstrap node
|
2021-09-08 12:35:48 +09:00
|
|
|
# server bootstrap.ocp.iad2.fedoraproject.org bootstrap.ocp.iad2.fedoraproject.org:22623 weight 1 maxconn 16384 check
|
2021-08-30 13:12:45 +09:00
|
|
|
{% endif %}
|
|
|
|
|
2021-09-04 10:51:00 -07:00
|
|
|
{% if env != "production" and 'iad2' in inventory_hostname %}
|
2021-07-27 13:17:51 -07:00
|
|
|
frontend ocp-masters-kapi
|
|
|
|
mode tcp
|
2021-08-10 18:02:14 -07:00
|
|
|
bind 0.0.0.0:6443
|
2021-07-27 13:17:51 -07:00
|
|
|
default_backend ocp-masters-backend-kapi
|
|
|
|
|
|
|
|
backend ocp-masters-backend-kapi
|
|
|
|
mode tcp
|
|
|
|
server ocp01.ocp.stg.iad2.fedoraproject.org ocp01.ocp.stg.iad2.fedoraproject.org:6443 weight 1 maxconn 16384 check
|
|
|
|
server ocp02.ocp.stg.iad2.fedoraproject.org ocp02.ocp.stg.iad2.fedoraproject.org:6443 weight 1 maxconn 16384 check
|
|
|
|
server ocp03.ocp.stg.iad2.fedoraproject.org ocp03.ocp.stg.iad2.fedoraproject.org:6443 weight 1 maxconn 16384 check
|
|
|
|
# temp bootstrap node
|
2021-08-11 12:46:46 +09:00
|
|
|
# server bootstrap.ocp.stg.iad2.fedoraproject.org bootstrap.ocp.stg.iad2.fedoraproject.org:6443 weight 1 maxconn 16384 check
|
2021-07-27 13:17:51 -07:00
|
|
|
|
|
|
|
frontend ocp-masters-machineconfig
|
|
|
|
mode tcp
|
|
|
|
bind 0.0.0.0:22623
|
|
|
|
default_backend ocp-masters-backend-machineconfig
|
|
|
|
|
2021-07-27 13:22:56 -07:00
|
|
|
backend ocp-masters-backend-machineconfig
|
2021-07-27 13:17:51 -07:00
|
|
|
mode tcp
|
|
|
|
server ocp01.ocp.stg.iad2.fedoraproject.org ocp01.ocp.stg.iad2.fedoraproject.org:22623 weight 1 maxconn 16384 check
|
|
|
|
server ocp02.ocp.stg.iad2.fedoraproject.org ocp02.ocp.stg.iad2.fedoraproject.org:22623 weight 1 maxconn 16384 check
|
|
|
|
server ocp03.ocp.stg.iad2.fedoraproject.org ocp03.ocp.stg.iad2.fedoraproject.org:22623 weight 1 maxconn 16384 check
|
|
|
|
# temp bootstrap node
|
2021-08-11 12:46:46 +09:00
|
|
|
# server bootstrap.ocp.stg.iad2.fedoraproject.org bootstrap.ocp.stg.iad2.fedoraproject.org:22623 weight 1 maxconn 16384 check
|
2021-07-27 13:17:51 -07:00
|
|
|
{% endif %}
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend fp-wiki-frontend
|
|
|
|
bind 0.0.0.0:10001
|
|
|
|
default_backend fp-wiki-backend
|
|
|
|
|
|
|
|
backend fp-wiki-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server wiki01 wiki01:80 check inter 15s rise 2 fall 5
|
2020-07-14 14:32:25 -07:00
|
|
|
{% if env == "production" %}
|
|
|
|
server wiki02 wiki02:80 check inter 15s rise 2 fall 5
|
|
|
|
{% endif %}
|
2014-12-07 23:35:44 +00:00
|
|
|
option httpchk GET /wiki/Main_Page
|
|
|
|
|
2018-01-12 20:05:41 +00:00
|
|
|
frontend mirror-lists-frontend
|
|
|
|
bind 0.0.0.0:10002
|
|
|
|
default_backend mirror-lists-backend
|
|
|
|
|
|
|
|
backend mirror-lists-backend
|
|
|
|
balance hdr(appserver)
|
|
|
|
timeout connect 30s
|
2018-12-12 20:06:59 +00:00
|
|
|
server mirrorlist-local1 127.0.0.1:18081 check inter 1s rise 2 fall 3 weight 100
|
|
|
|
server mirrorlist-local2 127.0.0.1:18082 check inter 1s rise 2 fall 3 weight 100
|
2019-02-25 18:30:00 +00:00
|
|
|
option httpchk GET /metalink?repo=epel-7&arch=x86_64
|
2018-01-12 20:05:41 +00:00
|
|
|
option allbackups
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend mirrormanager-frontend
|
|
|
|
bind 0.0.0.0:10008
|
|
|
|
default_backend mirrormanager-backend
|
|
|
|
|
|
|
|
backend mirrormanager-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
2015-05-05 14:08:11 +00:00
|
|
|
server mm-frontend01 mm-frontend01:80 check inter 60s rise 2 fall 3
|
2015-05-20 12:13:49 +00:00
|
|
|
option httpchk GET /mirrormanager/static/mirrormanager2.css
|
2014-12-07 23:35:44 +00:00
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend freemedia-frontend
|
|
|
|
bind 0.0.0.0:10011
|
|
|
|
default_backend freemedia-backend
|
|
|
|
|
|
|
|
backend freemedia-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server sundries01 sundries01:80 check inter 60s rise 2 fall 3
|
2020-07-14 14:32:25 -07:00
|
|
|
{% if env == "production" %}
|
|
|
|
server sundries02 sundries01:80 check inter 60s rise 2 fall 3
|
|
|
|
{% endif %}
|
2014-12-07 23:35:44 +00:00
|
|
|
option httpchk GET /freemedia/FreeMedia-form.html
|
|
|
|
|
2020-07-25 09:56:35 -07:00
|
|
|
#frontend packages-frontend
|
|
|
|
# bind 0.0.0.0:10016
|
|
|
|
# default_backend packages-backend
|
|
|
|
#
|
|
|
|
#backend packages-backend
|
|
|
|
# balance hdr(appserver)
|
|
|
|
# server packages03 packages03:80 check inter 5s rise 2 fall 3
|
|
|
|
#{% if env == "production" %}
|
|
|
|
# server packages04 packages04:80 check inter 5s rise 2 fall 3
|
|
|
|
#{% endif %}
|
|
|
|
# option httpchk GET /packages/_heartbeat
|
2014-12-07 23:35:44 +00:00
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend blockerbugs-frontend
|
|
|
|
bind 0.0.0.0:10022
|
|
|
|
default_backend blockerbugs-backend
|
|
|
|
|
|
|
|
backend blockerbugs-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server blockerbugs01 blockerbugs01:80 check inter 10s rise 1 fall 2
|
|
|
|
option httpchk GET /blockerbugs
|
|
|
|
|
|
|
|
# IMPORTANT: 10023-10026 will NOT work because of selinux policies
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend geoip-city-frontend
|
|
|
|
bind 0.0.0.0:10029
|
|
|
|
default_backend geoip-city-backend
|
|
|
|
|
|
|
|
backend geoip-city-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server sundries01 sundries01:80 check inter 30s rise 2 fall 3
|
2020-07-14 14:32:25 -07:00
|
|
|
{% if env == "production" %}
|
|
|
|
server sundries02 sundries02:80 check inter 30s rise 2 fall 3
|
|
|
|
{% endif %}
|
2014-12-07 23:35:44 +00:00
|
|
|
option httpchk GET /city?ip=18.0.0.1
|
|
|
|
|
|
|
|
# IMPORTANT: 10031 will NOT work because of selinux policies
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend badges-frontend
|
|
|
|
bind 0.0.0.0:10032
|
|
|
|
default_backend badges-backend
|
|
|
|
|
|
|
|
backend badges-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server badges-web01 badges-web01:80 check inter 10s rise 1 fall 2
|
|
|
|
option httpchk GET /heartbeat
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend nuancier-frontend
|
|
|
|
bind 0.0.0.0:10035
|
|
|
|
default_backend nuancier-backend
|
|
|
|
|
|
|
|
backend nuancier-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server nuancier01 nuancier01:80 check inter 10s rise 1 fall 2
|
|
|
|
server nuancier02 nuancier02:80 check inter 10s rise 1 fall 2
|
|
|
|
option httpchk GET /nuancier/
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend notifs-web-frontend
|
|
|
|
bind 0.0.0.0:10036
|
|
|
|
default_backend notifs-web-backend
|
|
|
|
|
|
|
|
backend notifs-web-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server notifs-web01 notifs-web01:80 check inter 10s rise 1 fall 2
|
2020-07-25 09:56:35 -07:00
|
|
|
{% if env == "production" %}
|
2021-05-05 17:40:18 -07:00
|
|
|
# server notifs-web02 notifs-web02:80 check inter 10s rise 1 fall 2
|
2020-07-25 09:56:35 -07:00
|
|
|
{% endif %}
|
2014-12-07 23:35:44 +00:00
|
|
|
option httpchk GET /notifications/_heartbeat
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend github2fedmsg-frontend
|
|
|
|
bind 0.0.0.0:10037
|
|
|
|
default_backend github2fedmsg-backend
|
|
|
|
|
|
|
|
backend github2fedmsg-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server github2fedmsg01 github2fedmsg01:80 check inter 10s rise 1 fall 2
|
|
|
|
option httpchk GET /github2fedmsg/
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend kerneltest-frontend
|
|
|
|
bind 0.0.0.0:10038
|
|
|
|
default_backend kerneltest-backend
|
|
|
|
|
|
|
|
backend kerneltest-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server kerneltest01 kerneltest01:80 check inter 10s rise 1 fall 2
|
|
|
|
option httpchk GET /kerneltest
|
|
|
|
|
2020-07-25 09:56:35 -07:00
|
|
|
{% if env == "production" %}
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend openqa-frontend
|
|
|
|
bind 0.0.0.0:10044
|
|
|
|
default_backend openqa-backend
|
|
|
|
|
|
|
|
backend openqa-backend
|
2015-12-01 22:47:08 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server openqa01 openqa01:80 check inter 10s rise 1 fall 2
|
2016-11-30 18:58:51 +00:00
|
|
|
option httpchk GET /api/v1/job_groups/1
|
2020-07-25 09:56:35 -07:00
|
|
|
{% endif %}
|
2015-12-01 22:47:08 +00:00
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend pdc-frontend
|
|
|
|
bind 0.0.0.0:10045
|
2020-10-06 15:49:06 +02:00
|
|
|
default_backend pdc-backend
|
|
|
|
|
|
|
|
backend pdc-backend
|
|
|
|
balance hdr(appserver)
|
2017-10-05 13:33:08 +00:00
|
|
|
|
|
|
|
{% if env != "staging" %}
|
2017-08-01 17:27:07 +00:00
|
|
|
# Set session persistence with a cookie.
|
|
|
|
# https://jdennis.fedorapeople.org/doc/rhsso-tripleo-federation/html/rhsso-tripleo-federation.html#step-18-use-proxy-persistence-for-keystone-on-each-controller
|
|
|
|
cookie SERVERID insert indirect nocache
|
2017-10-05 13:33:08 +00:00
|
|
|
{% endif %}
|
2017-08-01 17:27:07 +00:00
|
|
|
|
|
|
|
server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2 cookie pdc-web01
|
2017-10-05 13:33:08 +00:00
|
|
|
{% if env != "staging" %}
|
2017-08-01 17:27:07 +00:00
|
|
|
server pdc-web02 pdc-web02:80 check inter 10s rise 1 fall 2 cookie pdc-web02
|
2017-10-05 13:33:08 +00:00
|
|
|
{% endif %}
|
2017-08-01 17:27:07 +00:00
|
|
|
|
2016-01-12 13:52:32 -05:00
|
|
|
option httpchk GET /rest_api/v1/
|
2016-01-25 16:45:03 +00:00
|
|
|
timeout server 3600000
|
|
|
|
timeout connect 3600000
|
2016-01-12 13:26:56 -05:00
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend osbs-frontend
|
|
|
|
bind 0.0.0.0:10047
|
|
|
|
default_backend osbs-backend
|
|
|
|
|
|
|
|
backend osbs-backend
|
2016-04-05 17:02:10 +00:00
|
|
|
balance hdr(appserver)
|
2016-04-15 11:01:02 +00:00
|
|
|
server osbs-master01 osbs-master01:8443 check inter 10s rise 1 fall 2 check ssl verify none
|
2016-04-05 17:02:10 +00:00
|
|
|
|
2018-08-28 22:13:37 +00:00
|
|
|
frontend oci-registry-frontend
|
2017-10-08 23:32:20 +00:00
|
|
|
bind 0.0.0.0:10048
|
2018-08-28 22:13:37 +00:00
|
|
|
default_backend oci-registry-backend
|
2017-10-08 23:32:20 +00:00
|
|
|
|
2018-08-28 22:13:37 +00:00
|
|
|
backend oci-registry-backend
|
2016-04-05 17:02:10 +00:00
|
|
|
balance hdr(appserver)
|
2018-08-21 22:19:54 +00:00
|
|
|
server oci-registry01 oci-registry01:5000 check inter 10s rise 1 fall 2
|
2018-10-11 22:07:33 +00:00
|
|
|
{% if env == "production" %}
|
2018-08-21 22:19:54 +00:00
|
|
|
server oci-registry02 oci-registry02:5000 check inter 10s rise 1 fall 2
|
2018-10-11 22:07:33 +00:00
|
|
|
{% endif %}
|
2018-08-28 22:13:37 +00:00
|
|
|
|
2016-04-05 17:03:23 +00:00
|
|
|
{% if env == "staging" %}
|
2016-08-08 17:08:42 +00:00
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend pps-frontend
|
|
|
|
bind 0.0.0.0:10051
|
|
|
|
default_backend pps-backend
|
|
|
|
|
|
|
|
backend pps-backend
|
2016-07-27 15:19:24 +02:00
|
|
|
balance hdr(appserver)
|
2016-07-27 15:59:00 +02:00
|
|
|
server mdapi01 mdapi01:80 check inter 10s rise 1 fall 2
|
2016-07-27 15:19:24 +02:00
|
|
|
option httpchk GET /pps
|
2016-07-27 15:59:00 +02:00
|
|
|
|
2016-08-08 17:08:42 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2020-10-07 10:59:41 +02:00
|
|
|
frontend ipsilon-frontend
|
|
|
|
bind 0.0.0.0:10020
|
|
|
|
default_backend ipsilon-backend
|
|
|
|
|
|
|
|
backend ipsilon-backend
|
|
|
|
balance hdr(appserver)
|
2021-03-31 09:36:13 -07:00
|
|
|
server ipsilon01 ipsilon01:80 check inter 10s rise 1 fall 3
|
2020-10-07 10:59:41 +02:00
|
|
|
{% if env == "production" %}
|
2021-03-31 09:36:13 -07:00
|
|
|
server ipsilon02 ipsilon02:80 check inter 10s rise 1 fall 3
|
2020-10-07 10:59:41 +02:00
|
|
|
{% endif %}
|
|
|
|
option httpchk GET /
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend ipa-frontend
|
|
|
|
bind 0.0.0.0:10053
|
|
|
|
default_backend ipa-backend
|
|
|
|
|
|
|
|
backend ipa-backend
|
2016-08-04 21:23:07 +00:00
|
|
|
balance hdr(appserver)
|
2016-08-04 21:26:40 +00:00
|
|
|
server ipa01 ipa01:443 check inter 10s rise 1 fall 2 ssl verify required ca-file /etc/haproxy/ipa.pem
|
2016-10-13 11:21:46 +00:00
|
|
|
{% if env != "staging" %}
|
2017-09-15 22:50:02 +00:00
|
|
|
server ipa02 ipa02:443 check inter 10s rise 1 fall 2 ssl verify required ca-file /etc/haproxy/ipa.pem backup
|
2021-05-17 09:55:58 -07:00
|
|
|
server ipa03 ipa03:443 check inter 10s rise 1 fall 2 ssl verify required ca-file /etc/haproxy/ipa.pem backup
|
2016-08-29 16:44:36 +00:00
|
|
|
{% endif %}
|
2016-12-04 02:47:40 +00:00
|
|
|
option httpchk GET /ipa/ui/
|
2016-08-29 16:44:36 +00:00
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend krb5-frontend
|
|
|
|
mode tcp
|
|
|
|
bind 0.0.0.0:1088
|
|
|
|
default_backend krb5-backend
|
|
|
|
|
|
|
|
backend krb5-backend
|
2016-10-25 16:46:32 +00:00
|
|
|
mode tcp
|
|
|
|
option tcplog
|
|
|
|
balance roundrobin
|
|
|
|
maxconn 16384
|
|
|
|
timeout queue 5000
|
|
|
|
timeout server 86400000
|
|
|
|
timeout connect 86400000
|
2016-10-25 16:52:01 +00:00
|
|
|
server ipa01 ipa01:88 weight 1 maxconn 16384
|
2016-10-25 16:46:32 +00:00
|
|
|
{% if env == "production" %}
|
2020-07-14 14:32:25 -07:00
|
|
|
server ipa02 ipa02:88 weight 1 maxconn 16384
|
2021-05-17 09:55:58 -07:00
|
|
|
server ipa03 ipa03:88 weight 1 maxconn 16384
|
2016-10-25 16:46:32 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2018-08-28 22:13:37 +00:00
|
|
|
frontend oci-candidate-registry-frontend
|
2017-10-08 23:32:20 +00:00
|
|
|
bind 0.0.0.0:10054
|
2018-08-28 22:13:37 +00:00
|
|
|
default_backend oci-candidate-registry-backend
|
2017-10-08 23:32:20 +00:00
|
|
|
|
2018-08-28 22:13:37 +00:00
|
|
|
backend oci-candidate-registry-backend
|
2016-08-29 16:44:36 +00:00
|
|
|
balance hdr(appserver)
|
2018-08-22 11:16:13 +02:00
|
|
|
server oci-candidate-registry01 oci-candidate-registry01:5000 check inter 10s rise 1 fall 2
|
2016-08-29 16:44:36 +00:00
|
|
|
|
2020-06-10 09:18:11 -04:00
|
|
|
{% if 'iad2' in inventory_hostname %}
|
2016-12-13 01:23:46 +00:00
|
|
|
|
2020-06-10 09:18:11 -04:00
|
|
|
# Only enable this on iad2 proxies
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend src-frontend
|
|
|
|
bind 0.0.0.0:10057
|
|
|
|
default_backend src-backend
|
|
|
|
|
|
|
|
backend src-backend
|
2016-12-09 03:33:45 +00:00
|
|
|
balance hdr(appserver)
|
2016-12-10 03:22:33 +00:00
|
|
|
{% if env == "staging" %}
|
2016-12-09 04:36:05 +00:00
|
|
|
server pkgs01 pkgs01:80 check inter 10s rise 1 fall 2
|
2020-05-26 19:37:13 -07:00
|
|
|
{% elif datacenter == 'iad2' %}
|
|
|
|
server pkgs01 pkgs01:80 check inter 10s rise 1 fall 2
|
2016-12-10 03:22:33 +00:00
|
|
|
{% endif %}
|
2016-12-09 03:33:45 +00:00
|
|
|
option httpchk GET /
|
|
|
|
|
2016-12-20 06:01:34 +00:00
|
|
|
{% endif %}
|
2016-12-20 05:50:43 +00:00
|
|
|
# This is an endpoint using only ipa01. This is used for API access, since sessions
|
|
|
|
# are not synchronized.
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend ipa01-frontend
|
|
|
|
bind 0.0.0.0:10061
|
|
|
|
default_backend ipa01-backend
|
|
|
|
|
|
|
|
backend ipa01-backend
|
2016-12-20 05:50:43 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server ipa01 ipa01:443 check inter 10s rise 1 fall 2 ssl verify required ca-file /etc/haproxy/ipa.pem
|
|
|
|
option httpchk GET /ipa/ui/
|
|
|
|
|
2020-06-10 09:18:11 -04:00
|
|
|
{% if env == "production" and 'iad2' in inventory_hostname %}
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend kojipkgs-frontend
|
|
|
|
bind 0.0.0.0:10062
|
|
|
|
default_backend kojipkgs-backend
|
|
|
|
|
|
|
|
backend kojipkgs-backend
|
2019-07-21 18:43:08 +00:00
|
|
|
balance uri
|
2020-05-26 18:34:27 -07:00
|
|
|
server kojipkgs01.{{ datacenter }}.fedoraproject.org kojipkgs01.{{ datacenter }}.fedoraproject.org:80 check inter 10s rise 1 fall 2
|
|
|
|
server kojipkgs02.{{ datacenter }}.fedoraproject.org kojipkgs02.{{ datacenter }}.fedoraproject.org:80 check inter 10s rise 1 fall 2
|
2017-01-15 20:16:41 +00:00
|
|
|
option httpchk GET /
|
|
|
|
{% endif %}
|
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend mbs-frontend
|
|
|
|
bind 0.0.0.0:10063
|
|
|
|
default_backend mbs-backend
|
|
|
|
|
|
|
|
backend mbs-backend
|
2017-02-01 12:36:19 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server mbs-frontend01 mbs-frontend01:80 check inter 20s rise 2 fall 3
|
2020-07-25 10:06:20 -07:00
|
|
|
{% if env == "production" %}
|
2017-02-01 12:36:19 +00:00
|
|
|
server mbs-frontend02 mbs-frontend02:80 check inter 20s rise 2 fall 3
|
2020-07-25 09:56:35 -07:00
|
|
|
{% endif %}
|
2018-05-21 02:29:47 +00:00
|
|
|
option httpchk GET /module-build-service/1/component-builds/
|
2017-02-01 12:36:19 +00:00
|
|
|
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend odcs-frontend
|
|
|
|
bind 0.0.0.0:10066
|
|
|
|
default_backend odcs-backend
|
|
|
|
|
|
|
|
backend odcs-backend
|
2017-09-25 18:01:11 +00:00
|
|
|
balance hdr(appserver)
|
|
|
|
server odcs-frontend01 odcs-frontend01:80 check inter 20s rise 2 fall 3
|
2017-10-05 18:02:31 +00:00
|
|
|
option httpchk GET /api/1/composes/
|
2017-10-13 14:45:10 +00:00
|
|
|
|
2020-06-10 09:18:11 -04:00
|
|
|
{% if datacenter == "iad2" %}
|
2019-03-06 21:11:12 +01:00
|
|
|
# These ports are for proxying rabbitmq (AMQP) protocol through.
|
|
|
|
# At this moment, internal- and public-rabbitmq both point to the exact same set of
|
|
|
|
# brokers on the backend, but the internal- is intended for applications we directly control.
|
|
|
|
# This allows us to move to a separate cluster for public access if that became necessary
|
|
|
|
# on just the infra side, with no need to ask users to change anything.
|
|
|
|
frontend internal-rabbitmq
|
|
|
|
mode tcp
|
|
|
|
bind 0.0.0.0:15671
|
|
|
|
default_backend rabbitmq
|
|
|
|
|
|
|
|
frontend public-rabbitmq
|
|
|
|
mode tcp
|
|
|
|
bind 0.0.0.0:5671
|
|
|
|
default_backend rabbitmq
|
|
|
|
|
|
|
|
backend rabbitmq
|
|
|
|
mode tcp
|
|
|
|
option tcplog
|
|
|
|
balance roundrobin
|
|
|
|
maxconn 16384
|
|
|
|
server rabbitmq01 rabbitmq01:5671 weight 1 maxconn 16384
|
|
|
|
server rabbitmq02 rabbitmq02:5671 weight 1 maxconn 16384
|
|
|
|
server rabbitmq03 rabbitmq03:5671 weight 1 maxconn 16384
|
|
|
|
{% endif %}
|
|
|
|
|
2014-12-07 23:35:44 +00:00
|
|
|
# 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
|
|
|
|
# connections from there to here, port 9938. This then proxies to the
|
|
|
|
# fedmsg-hub's websocket server on busgateway01, port 9919.
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend fedmsg-websockets-frontend
|
|
|
|
mode tcp
|
|
|
|
bind 0.0.0.0:9938
|
|
|
|
default_backend fedmsg-websockets-backend
|
|
|
|
|
|
|
|
backend fedmsg-websockets-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
mode tcp
|
2015-11-24 22:20:14 +00:00
|
|
|
option tcplog
|
2014-12-07 23:35:44 +00:00
|
|
|
balance roundrobin
|
|
|
|
maxconn 16384
|
|
|
|
timeout queue 5000
|
|
|
|
timeout server 86400000
|
|
|
|
timeout connect 86400000
|
|
|
|
server busgateway01 busgateway01:9919 weight 1 maxconn 16384
|
|
|
|
|
|
|
|
# This, unlike the websockets entry just above, is listening directly to the
|
|
|
|
# outside world with no stunnel inbetween.
|
|
|
|
# Simply redirect tcp connections to a local fedmsg-gateway slave. It should be
|
|
|
|
# forwarding messages from the master gateway on busgateway01.
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend fedmsg-raw-zmq-outbound-frontend
|
|
|
|
mode tcp
|
|
|
|
bind 0.0.0.0:9940
|
|
|
|
default_backend fedmsg-raw-zmq-outbound-backend
|
|
|
|
|
|
|
|
backend fedmsg-raw-zmq-outbound-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
mode tcp
|
2015-11-24 22:20:14 +00:00
|
|
|
option tcplog
|
2014-12-07 23:35:44 +00:00
|
|
|
balance roundrobin
|
|
|
|
maxconn 16384
|
|
|
|
timeout queue 5000
|
|
|
|
timeout server 86400000
|
|
|
|
timeout connect 86400000
|
2019-01-10 18:22:05 +00:00
|
|
|
server localhost 127.0.0.1:9942 weight 1 maxconn 16384
|
2014-12-07 23:35:44 +00:00
|
|
|
|
|
|
|
# While the above fedmsg-raw-zmq-outbound forwards incoming connections to an
|
|
|
|
# instance of the "fedmsg-gateway" daemon (which pushes internal messages out),
|
|
|
|
# this entry forwards incoming connections to a secondary instance of the
|
|
|
|
# "fedmsg-relay" daemon (which pushes messages *onto* the internal bus). We
|
|
|
|
# have a primary instance of fedmsg-relay running on app01 for most internal
|
|
|
|
# use. Here we forward to a secondary one on busgateway01.
|
2017-10-08 23:32:20 +00:00
|
|
|
frontend fedmsg-raw-zmq-inbound-frontend
|
|
|
|
mode tcp
|
|
|
|
bind 0.0.0.0:9941
|
|
|
|
default_backend fedmsg-raw-zmq-inbound-backend
|
|
|
|
|
|
|
|
backend fedmsg-raw-zmq-inbound-backend
|
2014-12-07 23:35:44 +00:00
|
|
|
mode tcp
|
2015-11-24 22:20:14 +00:00
|
|
|
option tcplog
|
2014-12-07 23:35:44 +00:00
|
|
|
balance roundrobin
|
|
|
|
maxconn 16384
|
|
|
|
timeout queue 5000
|
|
|
|
timeout server 86400000
|
|
|
|
timeout connect 86400000
|
|
|
|
server busgateway01 busgateway01:9941 weight 1 maxconn 16384
|
2021-03-17 10:34:30 +01:00
|
|
|
|
|
|
|
{% if env == "staging" %}
|
|
|
|
frontend zabbix-frontend
|
|
|
|
bind 0.0.0.0:10068
|
|
|
|
default_backend zabbix-backend
|
|
|
|
|
|
|
|
backend zabbix-backend
|
|
|
|
balance hdr(appserver)
|
|
|
|
server zabbix01 zabbix01:80 check inter 10s rise 1 fall 2
|
2021-03-18 10:11:03 +01:00
|
|
|
# option httpchk GET /
|
|
|
|
# http-check expect status 200,401,302
|
2021-03-17 10:34:30 +01:00
|
|
|
{% endif %}
|