Hi,
has anyone achieved to load-balance a SAProuter behind a HAproxy?
SAProuter is a little peace of Software, that takes the a TCP session on
Port 3299 and forwards it to the backend SAP-ERP Systems. It has one
frontend IP and one TCP Port.
As far as I see it, it should be quite easy to put HAproxy before this
setup?
I have the following config:
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
stats socket /var/run/haproxy.sock user root group nagios mode 0660
stats socket /var/run/haproxy-admin.sock user root group root
mode 0600 level admin
stats bind-process 1
maxconn 40000
tune.bufsize 24576
tune.chksize 24576
defaults
log global
mode http
option httplog
option dontlognull
option socket-stats
option redispatch # Try another server in case of
connection failure
option contstats # Enable continuous traffic
statistics updates
option abortonclose
timeout client 7200s #alctl: client inactivity
timeout server 7200s #alctl: server
inactivity timeout
timeout connect 5s # 5 seconds max to connect or
to stay in queue
timeout queue 30s # 30 seconds max queued on load
balancer
srvtimeout 50000
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
listen stats
bind 128.130.XXX.61:80
mode http
stats enable
stats realm Haproxy\ Statistics
stats uri /
acl stats-access src 127.0.0.1
block if ! stats-access
peers zapha-cluster
peer ha1 128.130.XXX.61:1024
peer ha2 128.130.XXX.62:1024
listen router-zap
bind 128.130.XXX.60:3299 transparent name saprouter
mode tcp
log-format %ci:%cp\ [%t]\ %ft\ %s\ %si:%sp\ %Tw/%Tc/%Tt\ %B\
%ts\ %ac/%fc/%bc/%sc/%rc\ %sq/%bq
balance roundrobin
stick-table type ip size 20k peers zapha-cluster
stick on src
maxconn 8765
server router-12a 128.130.XXX.63: maxconn 5000 check
server router-12b 128.130.XXX.64: maxconn 5000 check
I can login in the SAP-Gui and a connection is established:
May 15 10:10:54 ha1 haproxy[2294]: 128.130.YY.61:50947
[15/May/2014:10:10:54.680] router-zap router-12a 128.130.XXX.63:3299
1/30/86 3306 -- 0/0/0/0/0 0/0
and then the connection is dropped and I see an error in the GUI:
May 15 10:12:04 ha1 haproxy[2294]: 128.130.YY.61:50948
[15/May/2014:10:10:54.789] router-zap router-12a 128.130.XXX.63:3299
1/0/69959 19629 sD 0/0/0/0/0 0/0
Has anyone an idea, if this setup is possible?
thanks
Philipp
--
-----------------------------------------------------------------------
DI Mag. Philipp Kolmann mail: kolm...@zid.tuwien.ac.at
Technische Universitaet Wien web: www.zid.tuwien.ac.at
Zentraler Informatikdienst (ZID) tel: +43(1)58801-42011
Wiedner Hauptstr. 8-10, A-1040 Wien DVR: 0005886
-----------------------------------------------------------------------