3taps net root ip-10-0-0-190 less etc haproxy haproxy cfg backend web

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
##@3taps.net
[root@ip-10-0-0-190 ~]# less /etc/haproxy/haproxy.cfg
...
backend web
balance roundrobin
server web1 10.0.0.190:8080 check
...
backend searchapi
balance roundrobin
reqrep ([^\ ]*)\ /search(.*) \1\ /api/search\2
server api1 10.0.0.180:8080 check
backend referenceapi
balance roundrobin
reqrep ([^\ ]*)\ /reference(.*) \1\ /api/reference\2
server api1 10.0.0.180:8080 check
backend geolocatorapi
balance roundrobin
reqrep ([^\ ]*)\ /geolocate(.*) \1\ /api/geolocate\2
server api1 10.0.0.180:8080 check
##@10.0.0.180
[root@ip-10-0-0-125 ~]# netstat -anp | grep 8080
tcp 0 0 :::8080 :::* LISTEN 22321/jsvc.exec
...
[root@ip-10-0-0-125 ~]# ps ax | grep 22321
22321 ? Sl 6:29 jsvc.exec -user tomcat7 -cp /opt/apache-tomcat-7.0.29/bin/commons-daemon.jar: \
/opt/apache-tomcat-7.0.29/bin/tomcat-juli.jar:/opt/apache-tomcat-7.0.29/bin/bootstrap.jar: \
/opt/apache-tomcat-7.0.29/bin:/opt/apache-tomcat-7.0.29/lib -outfile /opt/apache-tomcat-7.0.29/logs/syslog.2013-01-13.log \
-errfile /opt/apache-tomcat-7.0.29/logs/syslog.2013-01-13.log -pidfile /opt/apache-tomcat-7.0.29/apache-tomcat-7.0.29.pid \
-Djava.awt.headless=true -XX:MaxPermSize=2048M -Djava.endorsed.dirs=/opt/apache-tomcat-7.0.29/endorsed \
-Dcatalina.base=/opt/apache-tomcat-7.0.29 -Dcatalina.home=/opt/apache-tomcat-7.0.29 \
-Djava.io.tmpdir=/tmp/apache-tomcat-7.0.29 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
-Djava.util.logging.config.file=/opt/apache-tomcat-7.0.29/conf/logging.properties org.apache.catalina.startup.Bootstrap