Help with setting up LVS
Callahan, Tom
CallahanT at tessco.com
Thu Dec 7 02:03:02 EST 2006
This is the telnet output:
Trying 10.20.141.240...
telnet: connect to address 10.20.141.240: Connection refused
telnet: Unable to connect to remote host
And here is the logging from iptables for 3 connection attempts:
Dec 6 10:00:44 lvs_n1 kernel: IN= OUT=eth0 SRC=10.20.141.240
DST=10.30.25.22 LEN=92 TOS=0x10 PREC=0xC0 TTL=64 ID=31777 PROTO=ICMP TYPE=3
CODE=3 [SRC=10.30.25.22 DST=10.20.141.240 LEN=64 TOS=0x10 PREC=0x00 TTL=59
ID=54987 DF PROTO=TCP SPT=56494 DPT=1400 WINDOW=65535 RES=0x00 SYN URGP=0 ]
Dec 6 10:00:44 lvs_n1 kernel: IN= OUT=eth0 SRC=10.20.141.240
DST=10.30.25.22 LEN=92 TOS=0x10 PREC=0xC0 TTL=64 ID=31778 PROTO=ICMP TYPE=3
CODE=3 [SRC=10.30.25.22 DST=10.20.141.240 LEN=64 TOS=0x10 PREC=0x00 TTL=59
ID=55006 DF PROTO=TCP SPT=56495 DPT=1400 WINDOW=65535 RES=0x00 SYN URGP=0 ]
Dec 6 10:00:45 lvs_n1 kernel: IN= OUT=eth0 SRC=10.20.141.240
DST=10.30.25.22 LEN=92 TOS=0x10 PREC=0xC0 TTL=64 ID=31779 PROTO=ICMP TYPE=3
CODE=3 [SRC=10.30.25.22 DST=10.20.141.240 LEN=64 TOS=0x10 PREC=0x00 TTL=59
ID=55024 DF PROTO=TCP SPT=56496 DPT=1400 WINDOW=65535 RES=0x00 SYN URGP=0 ]
Anyone have any ideas?
Tom Callahan
-----Original Message-----
From: Callahan, Tom
Sent: Wednesday, December 06, 2006 9:29 AM
To: Horms; Callahan, Tom
Cc: ultramonkey-users at ultramonkey.org; linux-ha at lists.linux-ha.org
Subject: RE: Help with setting up LVS
My configuration is as follows:
--------------HA.CF------------------
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
keepalive 500ms
deadtime 10
warntime 5
initdead 30
mcast eth0 225.0.0.1 694 1 0
auto_failback off
node lvs_n1.tessco.com
node lvs_n2.tessco.com
respawn hacluster /usr/lib/heartbeat/ipfail
apiauth ipfail gid=haclient uid=hacluster
-------------END HA.CF-------------------
-------------HARESOURCES-----------------
lvs_n1.tessco.com \
ldirectord::ldirectord.cf \
LVSSyncDaemonSwap::master \
IPaddr2::10.20.141.240/24/eth0/10.20.141.255
------------END HARESOURCES--------------
------------LDIRECTORD.CF----------------
checktimeout=10
checkinterval=2
autoreload=no
logfile="/var/log/ldirectord.log"
logfile="local0"
quiescent=yes
virtual=1
real=10.20.141.43:0 masq
real=10.20.141.44:0 masq
scheduler=rr
persistent=600
checktype=connect
----------END LDIRECTORD.CF--------------
In my iptables configuration, I have the following:
iptables -t mangle -A PREROUTING -d 10.20.141.240 -p tcp -m tcp -j MARK
--set-mark 1
When I start everything up, I can connect to port 1400 on the director, but
the director does not pass it through to the real-servers. The connection
just sits there and timesout eventually.
Thanks,
Tom Callahan
-----Original Message-----
From: Horms [mailto:horms at verge.net.au]
Sent: Wednesday, December 06, 2006 2:53 AM
To: Callahan, Tom
Cc: ultramonkey-users at ultramonkey.org; linux-ha at lists.linux-ha.org
Subject: Re: Help with setting up LVS
On Tue, Dec 05, 2006 at 10:24:05AM -0500, Callahan, Tom wrote:
> I am trying to setup an HA and Load Balanced configuration for a Java
> application server. I have two real-servers ( 10.20.141.43 and
10.20.141.44)
> named glcdl385g and glcdl385f respectively, that are running JBOSS
> application server.
>
>
>
> I have two director nodes (10.20.141.51 and 10.20.141.52) named lvs_n1 and
> lvs_n2 respectively.
>
>
>
> The application connects initially on port 1400 (HA-JNDI), but then
bounces
> around ports to perform it's transactions.
>
>
>
> How do I setup LVS so that it can load-balance all connections this way? I
> have read up some information on fwmark, and done an initial setup
according
> to the documents on Ultramonkey, but it is not working.
fwmark sounds like the way to go to me. Could you give some more
information on what you have set up, and what isn't working.
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
--
Ultra Monkey - http://www.ultramonkey.org/
To UNSUBSCRIBE, email to lisa at ultramonkey.org, with a body:
unsubscribe ultramonkey-users your-email-address at some.domain
where "your-email-address at some.domain" is YOUR email address.
More information about the Ultramonkey-users
mailing list