Skip to content

Commit 6e9d89c

Browse files
committed
Deploy the proxies in production
1 parent 0eeff61 commit 6e9d89c

File tree

2 files changed

+9
-56
lines changed

2 files changed

+9
-56
lines changed

ansible/roles/lvs-iptables/files/scripts-iptables.rules.v4

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@
7373

7474
# Clear external DSCP bits
7575
-A test -j DSCP --set-dscp 0
76-
# send web traffic to HAProxy and everything else to f20
77-
-A test -m tcp -m multiport -p tcp --dports 80,443,444 -j MARK --set-mark 92
78-
-A test -m tcp -p tcp --dport 25 -j MARK --set-mark 23
79-
-A test -m tcp -p tcp --dport 78:79 -j RETURN
80-
-A test -m mark --mark 0 -j MARK --set-mark 21
76+
# Handle test traffic exactly the same as f30 traffic
77+
-A test -j f30
8178

8279
COMMIT

ansible/roles/lvs-ldirectord/templates/ldirectord.cf.j2

Lines changed: 7 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,17 @@ virtual=3
3030
checktype=negotiate
3131
checkport=80
3232

33+
# The proxy servers get only web traffic
3334
# Apache (80, 443, and 444) uses FWM 2
3435
virtual=2
35-
#real=18.4.86.53 gate 4096 # old-faithful
36-
#real=18.4.86.57 gate 4096 # better-mousetrap
37-
real=18.4.86.167 gate 4096 # bees-knees
38-
real=18.4.86.228 gate 1024 # cats-whiskers
39-
real=18.4.86.234 gate 4096 # busy-beaver
40-
#real=18.4.86.235 gate 4096 # real-mccoy
41-
real=18.4.86.237 gate 4096 # pancake-bunny
42-
#real=18.4.86.236 gate 1024 # whole-enchilada
43-
real=18.4.86.135 gate 4096 # shining-armor
44-
#real=18.4.86.141 gate 4096 # golden-egg
45-
#real=18.4.86.203 gate 4096 # miracle-cure
46-
#real=18.4.86.204 gate 4096 # lucky-star
36+
{% for hostname in groups['scripts-proxy-prod']|sort %}
37+
{% with info = hostvars[hostname] %}
38+
real={{ info['ip'] }} gate 4096 # {{ hostname }}
39+
{% endwith %}
40+
{% endfor %}
4741
fallback=127.0.0.1 gate
4842
service=http
49-
request="heartbeat/http"
43+
request="heartbeat/http?codename=ANY"
5044
virtualhost="scripts.mit.edu"
5145
receive="1"
5246
checktype=negotiate
@@ -55,26 +49,6 @@ virtual=2
5549
persistent=600
5650
protocol=fwm
5751

58-
# Everything else uses FWM 1 and gets sent only to the primary
59-
virtual=1
60-
#real=18.4.86.53 gate "heartbeat/services", "1" # old-faithful
61-
#real=18.4.86.57 gate "heartbeat/services", "2" # better-mousetrap
62-
real=18.4.86.167 gate "heartbeat/services", "3" # bees-knees
63-
real=18.4.86.228 gate "heartbeat/services", "4" # cats-whiskers
64-
real=18.4.86.234 gate "heartbeat/services", "5" # busy-beaver
65-
#real=18.4.86.235 gate "heartbeat/services", "6" # real-mccoy
66-
real=18.4.86.237 gate "heartbeat/services", "7" # pancake-bunny
67-
#real=18.4.86.236 gate "heartbeat/services", "8" # whole-enchilada
68-
real=18.4.86.135 gate "heartbeat/services", "9" # shining-armor
69-
#real=18.4.86.141 gate "heartbeat/services", "10" # golden-egg
70-
#real=18.4.86.203 gate "heartbeat/services", "11" # miracle-cure
71-
#real=18.4.86.204 gate "heartbeat/services", "12" # lucky-star
72-
service=http
73-
scheduler=wrr
74-
protocol=fwm
75-
checktype=negotiate
76-
checkport=80
77-
7852
## sipb.mit.edu needs an FTP server
7953
#virtual=4
8054
# real=18.181.2.75 gate 1
@@ -122,21 +96,3 @@ virtual={{ offset + 1 }}
12296
checktype=negotiate
12397
checkport=80
12498
{% endfor %}
125-
126-
# The proxy servers get only web traffic
127-
virtual=92
128-
{% for hostname in groups['scripts-proxy-prod']|sort %}
129-
{% with info = hostvars[hostname] %}
130-
real={{ info['ip'] }} gate 4096 # {{ hostname }}
131-
{% endwith %}
132-
{% endfor %}
133-
fallback=127.0.0.1 gate
134-
service=http
135-
request="heartbeat/http?codename=ANY"
136-
virtualhost="scripts.mit.edu"
137-
receive="1"
138-
checktype=negotiate
139-
checkport=80
140-
scheduler=wlc
141-
persistent=600
142-
protocol=fwm

0 commit comments

Comments
 (0)