Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] LVS Routing Problems

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


madan.kn at gmail

Apr 19, 2008, 4:07 AM

Post #1 of 16 (1481 views)
Permalink
[lvs-users] LVS Routing Problems

Hi Folks,
Am having problems load balancing tomcat port 8080 with the following
configurations:
Btw, Am new to configuring LVS. So please help me resolving my problem.

----------------------------------------------------------
Trying to use LVS-NAT
----------------------------------------------------------
Director1 192.168.1.10
Real Server 1: 192.168.1.58
Real Server 2: 192.168.1.60
Real Server 3: 192.168.1.62


--------------------------------------------
Problem:
--------------------------------------------
* When try to connect 192.168.1.10:8080 says connection timed out.
* All the IP's Ping's from local network
* All the Real Servers respond on port 8080

---------------------------
IPVSADMN Config
---------------------------
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.1.10:8080 rr
-> 192.168.1.62:8080 Masq 1 0 0
-> 192.168.1.60:8080 Masq 1 0 0
-> 192.168.1.58:8080 Masq 1 0 0


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Director1 tcpdump port 8080
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
16:38:57.180043 IP 192.168.1.10.59726 > 192.168.1.58.webcache: . ack 1 win
46 <nop,nop,timestamp 66551394 266160525>
16:38:57.180412 IP 192.168.1.10.59726 > 192.168.1.58.webcache: P 1:124(123)
ack 1 win 46 <nop,nop,timestamp 66551394 266160525>
16:38:57.180555 IP 192.168.1.58.webcache > 192.168.1.10.59726: . ack 124 win
46 <nop,nop,timestamp 266160525 66551394>
16:38:57.180831 IP 192.168.1.58.webcache > 192.168.1.10.59726: P 1:224(223)
ack 124 win 46 <nop,nop,timestamp 266160526 66551394>
16:38:57.180837 IP 192.168.1.58.webcache > 192.168.1.10.59726: F 224:224(0)
ack 124 win 46 <nop,nop,timestamp 266160526 66551394>
16:38:57.180870 IP 192.168.1.10.59726 > 192.168.1.58.webcache: . ack 224 win
54 <nop,nop,timestamp 66551394 266160526>
16:38:57.181417 IP 192.168.1.10.59726 > 192.168.1.58.webcache: F 124:124(0)
ack 225 win 54 <nop,nop,timestamp 66551394 266160526>
16:38:57.181534 IP 192.168.1.58.webcache > 192.168.1.10.59726: . ack 125 win
46 <nop,nop,timestamp 266160526 66551394>
16:38:57.182283 IP 192.168.1.10.43478 > 192.168.1.60.webcache: S
1565009245:1565009245(0) win 5840 <mss 1460,sackOK,timestamp 66551394
0,nop,wscale 7>
16:38:57.182400 IP 192.168.1.60.webcache > 192.168.1.10.43478: S
1433988202:1433988202(0) ack 1565009246 win 5792 <mss 1460,sackOK,timestamp
266160286 66551394,nop,wscale 7>
16:38:57.182418 IP 192.168.1.10.43478 > 192.168.1.60.webcache: . ack 1 win
46 <nop,nop,timestamp 66551394 266160286>
16:38:57.182801 IP 192.168.1.10.43478 > 192.168.1.60.webcache: P 1:124(123)
ack 1 win 46 <nop,nop,timestamp 66551394 266160286>
16:38:57.182937 IP 192.168.1.60.webcache > 192.168.1.10.43478: . ack 124 win
46 <nop,nop,timestamp 266160286 66551394>
16:38:57.183139 IP 192.168.1.60.webcache > 192.168.1.10.43478: P 1:224(223)
ack 124 win 46 <nop,nop,timestamp 266160286 66551394>
16:38:57.183146 IP 192.168.1.60.webcache > 192.168.1.10.43478: F 224:224(0)
ack 124 win 46 <nop,nop,timestamp 266160286 66551394>
16:38:57.183165 IP 192.168.1.10.43478 > 192.168.1.60.webcache: . ack 224 win
54 <nop,nop,timestamp 66551395 266160286>
16:38:57.183694 IP 192.168.1.10.43478 > 192.168.1.60.webcache: F 124:124(0)
ack 225 win 54 <nop,nop,timestamp 66551395 266160286>
16:38:57.183785 IP 192.168.1.60.webcache > 192.168.1.10.43478: . ack 125 win
46 <nop,nop,timestamp 266160287 66551395>
16:38:57.184528 IP 192.168.1.10.53914 > 192.168.1.62.webcache: S
1565858641:1565858641(0) win 5840 <mss 1460,sackOK,timestamp 66551395
0,nop,wscale 7>
16:38:57.184648 IP 192.168.1.62.webcache > 192.168.1.10.53914: S
1470807437:1470807437(0) ack 1565858642 win 5792 <mss 1460,sackOK,timestamp
266154550 66551395,nop,wscale 7>
16:38:57.184665 IP 192.168.1.10.53914 > 192.168.1.62.webcache: . ack 1 win
46 <nop,nop,timestamp 66551395 266154550>
16:38:57.185032 IP 192.168.1.10.53914 > 192.168.1.62.webcache: P 1:124(123)
ack 1 win 46 <nop,nop,timestamp 66551395 266154550>
16:38:57.185169 IP 192.168.1.62.webcache > 192.168.1.10.53914: . ack 124 win
46 <nop,nop,timestamp 266154550 66551395>
16:38:57.185427 IP 192.168.1.62.webcache > 192.168.1.10.53914: P 1:224(223)
ack 124 win 46 <nop,nop,timestamp 266154550 66551395>
16:38:57.185433 IP 192.168.1.62.webcache > 192.168.1.10.53914: F 224:224(0)
ack 124 win 46 <nop,nop,timestamp 266154550 66551395>
16:38:57.185450 IP 192.168.1.10.53914 > 192.168.1.62.webcache: . ack 224 win
54 <nop,nop,timestamp 66551395 266154550>
16:38:57.185932 IP 192.168.1.10.53914 > 192.168.1.62.webcache: F 124:124(0)
ack 225 win 54 <nop,nop,timestamp 66551395 266154550>
16:38:57.186024 IP 192.168.1.62.webcache > 192.168.1.10.53914: . ack 125 win
46 <nop,nop,timestamp 266154551 66551395>

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
RealServer1 tcpdump port 8080
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
16:37:10.630255 IP 192.168.1.58.webcache > 192.168.1.10.59954: S
1451463318:1451463318(0) ack 1722174179 win 5792 <mss 1460,sackOK,timestamp
266313190 66589561,nop,wscale 7>
16:37:10.630390 IP 192.168.1.10.59954 > 192.168.1.58.webcache: . ack 1 win
46 <nop,nop,timestamp 66589561 266313190>
16:37:10.630723 IP 192.168.1.10.59954 > 192.168.1.58.webcache: P 1:124(123)
ack 1 win 46 <nop,nop,timestamp 66589561 266313190>
16:37:10.630734 IP 192.168.1.58.webcache > 192.168.1.10.59954: . ack 124 win
46 <nop,nop,timestamp 266313190 66589561>
16:37:10.630928 IP 192.168.1.58.webcache > 192.168.1.10.59954: P 1:224(223)
ack 124 win 46 <nop,nop,timestamp 266313191 66589561>
16:37:10.630948 IP 192.168.1.58.webcache > 192.168.1.10.59954: F 224:224(0)
ack 124 win 46 <nop,nop,timestamp 266313191 66589561>
16:37:10.631136 IP 192.168.1.10.59954 > 192.168.1.58.webcache: . ack 224 win
54 <nop,nop,timestamp 66589561 266313191>
16:37:10.631611 IP 192.168.1.10.59954 > 192.168.1.58.webcache: F 124:124(0)
ack 225 win 54 <nop,nop,timestamp 66589561 266313191>
16:37:10.631620 IP 192.168.1.58.webcache > 192.168.1.10.59954: . ack 125 win
46 <nop,nop,timestamp 266313191 66589561>
16:37:12.638141 IP 192.168.1.10.59957 > 192.168.1.58.webcache: S
1714303313:1714303313(0) win 5840 <mss 1460,sackOK,timestamp 66590063
0,nop,wscale



Thanks In Advance,
Madan KN
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


j.stubbs at linkthink

Apr 19, 2008, 4:27 AM

Post #2 of 16 (1337 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

On Saturday 19 April 2008 20:07:02 JST, Madan KN wrote:
> Hi Folks,
> Am having problems load balancing tomcat port 8080 with the following
> configurations:
> Btw, Am new to configuring LVS. So please help me resolving my problem.
>
> ----------------------------------------------------------
> Trying to use LVS-NAT
> ----------------------------------------------------------
> Director1 192.168.1.10
> Real Server 1: 192.168.1.58
> Real Server 2: 192.168.1.60
> Real Server 3: 192.168.1.62

The tcpdumps you provided were what happens when accessing real server 1 from
the director, right? What about from a client? Is the client you are testing
from on the 192.168.1.0/24 network? If so, the following is happening:

client => director 192.168.1.xx:192.168.1.10
director => real server 192.168.1.xx:192.168.1.58
real server => client 192.168.1.58:192.168.1.xx

The client isn't expecting packets from 192.168.1.58 and so throws them away
(possibly sending a RST as well). With LVS-NAT, the return packets from the
real servers need to flow via the director to the client so that RIP:CIP can
be changed back to VIP:CIP.

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


jmack at wm7d

Apr 19, 2008, 4:44 AM

Post #3 of 16 (1334 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

On Sat, 19 Apr 2008, Madan KN wrote:

> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> TCP 192.168.1.10:8080 rr
> -> 192.168.1.62:8080 Masq 1 0 0
> -> 192.168.1.60:8080 Masq 1 0 0
> -> 192.168.1.58:8080 Masq 1 0 0

http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network

Joe

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


madan.kn at gmail

Apr 19, 2008, 4:45 AM

Post #4 of 16 (1335 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

Hi Jason,

Yes all my realservers are routed through director1 (192.168.1.10).


DEVICE=eth0
#BOOTPROTO=none
BOOTPROTO=static
HWADDR=00:1D:09:6B:53:D7
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.58
GATEWAY=192.168.1.10
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes


Please let me know if am missing anything. It would be really great full if
this starts working.

Thanks,
Madan KN


On Sat, Apr 19, 2008 at 4:57 PM, Jason Stubbs <j.stubbs [at] linkthink>
wrote:

> On Saturday 19 April 2008 20:07:02 JST, Madan KN wrote:
> > Hi Folks,
> > Am having problems load balancing tomcat port 8080 with the following
> > configurations:
> > Btw, Am new to configuring LVS. So please help me resolving my problem.
> >
> > ----------------------------------------------------------
> > Trying to use LVS-NAT
> > ----------------------------------------------------------
> > Director1 192.168.1.10
> > Real Server 1: 192.168.1.58
> > Real Server 2: 192.168.1.60
> > Real Server 3: 192.168.1.62
>
> The tcpdumps you provided were what happens when accessing real server 1
> from
> the director, right? What about from a client? Is the client you are
> testing
> from on the 192.168.1.0/24 network? If so, the following is happening:
>
> client => director 192.168.1.xx:192.168.1.10
> director => real server 192.168.1.xx:192.168.1.58
> real server => client 192.168.1.58:192.168.1.xx
>
> The client isn't expecting packets from 192.168.1.58 and so throws them
> away
> (possibly sending a RST as well). With LVS-NAT, the return packets from
> the
> real servers need to flow via the director to the client so that RIP:CIP
> can
> be changed back to VIP:CIP.
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


madan.kn at gmail

Apr 19, 2008, 10:47 AM

Post #5 of 16 (1333 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

Hi Jason/Joseph,

Thanks folks, It works :)

Thank you again.

Madan KN

On Sat, Apr 19, 2008 at 5:14 PM, Joseph Mack NA3T <jmack [at] wm7d> wrote:

> On Sat, 19 Apr 2008, Madan KN wrote:
>
> > IP Virtual Server version 1.2.1 (size=4096)
> > Prot LocalAddress:Port Scheduler Flags
> > -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> > TCP 192.168.1.10:8080 rr
> > -> 192.168.1.62:8080 Masq 1 0 0
> > -> 192.168.1.60:8080 Masq 1 0 0
> > -> 192.168.1.58:8080 Masq 1 0 0
>
>
> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
>
> Joe
>
> --
> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
> jmack (at) wm7d (dot) net - azimuthal equidistant map
> generator at http://www.wm7d.net/azproj.shtml
> Homepage http://www.austintek.com/ It's GNU/Linux!
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


bgs at bgs

Apr 19, 2008, 4:16 PM

Post #6 of 16 (1330 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

Hi,

If you don't want to route all non-lvs traffic through your director
(creating double traffic on you LAN and adding a spof), you can also mark
the traffic and use routing rules.


Regards
Bgs


On Sat, 19 Apr 2008 23:17:23 +0530, "Madan KN" <madan.kn [at] gmail> wrote:
> Hi Jason/Joseph,
>
> Thanks folks, It works :)
>
> Thank you again.
>
> Madan KN
>
> On Sat, Apr 19, 2008 at 5:14 PM, Joseph Mack NA3T <jmack [at] wm7d> wrote:
>
>> On Sat, 19 Apr 2008, Madan KN wrote:
>>
>> > IP Virtual Server version 1.2.1 (size=4096)
>> > Prot LocalAddress:Port Scheduler Flags
>> > -> RemoteAddress:Port Forward Weight ActiveConn InActConn
>> > TCP 192.168.1.10:8080 rr
>> > -> 192.168.1.62:8080 Masq 1 0 0
>> > -> 192.168.1.60:8080 Masq 1 0 0
>> > -> 192.168.1.58:8080 Masq 1 0 0
>>
>>
>>
>
http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
>>
>> Joe
>>
>> --
>> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
>> jmack (at) wm7d (dot) net - azimuthal equidistant map
>> generator at http://www.wm7d.net/azproj.shtml
>> Homepage http://www.austintek.com/ It's GNU/Linux!
>>
>> _______________________________________________
>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>> Send requests to lvs-users-request [at] LinuxVirtualServer
>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users


_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


madan.kn at gmail

Apr 21, 2008, 4:08 AM

Post #7 of 16 (1303 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

Hi,

Now my LVS-NAT is working fine. Just need to cross check.

When the client access the url from browser
http://61.12.16.250:8080/lvs2.jsp

Everytime they are hitting the same server in that browser session. Say
always hitting either 1,2 or 3rd Real server.

If they close the browser and open then they start hitting a different
server continously. Am i missing something. Please suggest.

Thanks,
Madan KN


On Sat, Apr 19, 2008 at 5:14 PM, Joseph Mack NA3T <jmack [at] wm7d> wrote:

> On Sat, 19 Apr 2008, Madan KN wrote:
>
> > IP Virtual Server version 1.2.1 (size=4096)
> > Prot LocalAddress:Port Scheduler Flags
> > -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> > TCP 192.168.1.10:8080 rr
> > -> 192.168.1.62:8080 Masq 1 0 0
> > -> 192.168.1.60:8080 Masq 1 0 0
> > -> 192.168.1.58:8080 Masq 1 0 0
>
>
> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
>
> Joe
>
> --
> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
> jmack (at) wm7d (dot) net - azimuthal equidistant map
> generator at http://www.wm7d.net/azproj.shtml
> Homepage http://www.austintek.com/ It's GNU/Linux!
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


bgs at bgs

Apr 21, 2008, 4:21 AM

Post #8 of 16 (1301 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

Most browsers is persistent connections, that is they send multiple
requests in a single tcp session. So if you do continuous browsing, you
will hit the same node.

Regards
Bgs


Madan KN wrote:
> Hi,
>
> Now my LVS-NAT is working fine. Just need to cross check.
>
> When the client access the url from browser
> http://61.12.16.250:8080/lvs2.jsp
>
> Everytime they are hitting the same server in that browser session. Say
> always hitting either 1,2 or 3rd Real server.
>
> If they close the browser and open then they start hitting a different
> server continously. Am i missing something. Please suggest.
>
> Thanks,
> Madan KN
>
>
> On Sat, Apr 19, 2008 at 5:14 PM, Joseph Mack NA3T <jmack [at] wm7d> wrote:
>
>> On Sat, 19 Apr 2008, Madan KN wrote:
>>
>>> IP Virtual Server version 1.2.1 (size=4096)
>>> Prot LocalAddress:Port Scheduler Flags
>>> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
>>> TCP 192.168.1.10:8080 rr
>>> -> 192.168.1.62:8080 Masq 1 0 0
>>> -> 192.168.1.60:8080 Masq 1 0 0
>>> -> 192.168.1.58:8080 Masq 1 0 0
>>
>> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
>>
>> Joe
>>
>> --
>> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
>> jmack (at) wm7d (dot) net - azimuthal equidistant map
>> generator at http://www.wm7d.net/azproj.shtml
>> Homepage http://www.austintek.com/ It's GNU/Linux!
>>
>> _______________________________________________
>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>> Send requests to lvs-users-request [at] LinuxVirtualServer
>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


madan.kn at gmail

Apr 21, 2008, 4:51 AM

Post #9 of 16 (1305 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

Hi,
Thanks for reminding this, Can you please suggest me how will we achieve
this.

Since all my traffic getting routed through Director. I want only LVS Port
8080 being routed through
Director.

Others using my default router hardware.

Thanks In Advance,
Madan KN

On Sun, Apr 20, 2008 at 4:46 AM, bgs <bgs [at] bgs> wrote:

>
> Hi,
>
> If you don't want to route all non-lvs traffic through your director
> (creating double traffic on you LAN and adding a spof), you can also mark
> the traffic and use routing rules.
>
>
> Regards
> Bgs
>
>
> On Sat, 19 Apr 2008 23:17:23 +0530, "Madan KN" <madan.kn [at] gmail> wrote:
> > Hi Jason/Joseph,
> >
> > Thanks folks, It works :)
> >
> > Thank you again.
> >
> > Madan KN
> >
> > On Sat, Apr 19, 2008 at 5:14 PM, Joseph Mack NA3T <jmack [at] wm7d>
> wrote:
> >
> >> On Sat, 19 Apr 2008, Madan KN wrote:
> >>
> >> > IP Virtual Server version 1.2.1 (size=4096)
> >> > Prot LocalAddress:Port Scheduler Flags
> >> > -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> >> > TCP 192.168.1.10:8080 rr
> >> > -> 192.168.1.62:8080 Masq 1 0 0
> >> > -> 192.168.1.60:8080 Masq 1 0 0
> >> > -> 192.168.1.58:8080 Masq 1 0 0
> >>
> >>
> >>
> >
>
> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
> >>
> >> Joe
> >>
> >> --
> >> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
> >> jmack (at) wm7d (dot) net - azimuthal equidistant map
> >> generator at http://www.wm7d.net/azproj.shtml
> >> Homepage http://www.austintek.com/ It's GNU/Linux!
> >>
> >> _______________________________________________
> >> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> >> Send requests to lvs-users-request [at] LinuxVirtualServer
> >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>
> > _______________________________________________
> > LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> > Send requests to lvs-users-request [at] LinuxVirtualServer
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


bgs at bgs

Apr 21, 2008, 5:07 AM

Post #10 of 16 (1304 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

Example (I used it a lot in production level env): connmark the traffic
coming from you director and mark it on output. The you can use fwmark
to set up a routing table for the director. This way you can keep your
normal default gateway on your realservers. You can also have multiple
directors if you want using this method. Works like a charm :)

Regards
Bgs


Madan KN wrote:
> Hi,
> Thanks for reminding this, Can you please suggest me how will we achieve
> this.
>
> Since all my traffic getting routed through Director. I want only LVS Port
> 8080 being routed through
> Director.
>
> Others using my default router hardware.
>
> Thanks In Advance,
> Madan KN
>
> On Sun, Apr 20, 2008 at 4:46 AM, bgs <bgs [at] bgs> wrote:
>
>> Hi,
>>
>> If you don't want to route all non-lvs traffic through your director
>> (creating double traffic on you LAN and adding a spof), you can also mark
>> the traffic and use routing rules.
>>
>>
>> Regards
>> Bgs
>>
>>
>> On Sat, 19 Apr 2008 23:17:23 +0530, "Madan KN" <madan.kn [at] gmail> wrote:
>>> Hi Jason/Joseph,
>>>
>>> Thanks folks, It works :)
>>>
>>> Thank you again.
>>>
>>> Madan KN
>>>
>>> On Sat, Apr 19, 2008 at 5:14 PM, Joseph Mack NA3T <jmack [at] wm7d>
>> wrote:
>>>> On Sat, 19 Apr 2008, Madan KN wrote:
>>>>
>>>>> IP Virtual Server version 1.2.1 (size=4096)
>>>>> Prot LocalAddress:Port Scheduler Flags
>>>>> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
>>>>> TCP 192.168.1.10:8080 rr
>>>>> -> 192.168.1.62:8080 Masq 1 0 0
>>>>> -> 192.168.1.60:8080 Masq 1 0 0
>>>>> -> 192.168.1.58:8080 Masq 1 0 0
>>>>
>>>>
>> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
>>>> Joe
>>>>
>>>> --
>>>> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
>>>> jmack (at) wm7d (dot) net - azimuthal equidistant map
>>>> generator at http://www.wm7d.net/azproj.shtml
>>>> Homepage http://www.austintek.com/ It's GNU/Linux!
>>>>
>>>> _______________________________________________
>>>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>>>> Send requests to lvs-users-request [at] LinuxVirtualServer
>>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>>>
>>> _______________________________________________
>>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>>> Send requests to lvs-users-request [at] LinuxVirtualServer
>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>
>> _______________________________________________
>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>> Send requests to lvs-users-request [at] LinuxVirtualServer
>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


graeme at graemef

Apr 21, 2008, 5:09 AM

Post #11 of 16 (1301 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

On Mon, 2008-04-21 at 16:38 +0530, Madan KN wrote:
> If they close the browser and open then they start hitting a different
> server continously. Am i missing something. Please suggest.

Set "KeepAlive Off" in your Apache config. The browser is keeping the
connection open because the server is allowing it to.

Graeme


_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


bgs at bgs

Apr 21, 2008, 5:15 AM

Post #12 of 16 (1302 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

Question is: is it a problem if they have keepalive on. With few
clients, you can achieve better balance with it off. But if it was just
a notice, it can still be good for testing and then turn it back on.

Regards
Bgs


Graeme Fowler wrote:
> On Mon, 2008-04-21 at 16:38 +0530, Madan KN wrote:
>> If they close the browser and open then they start hitting a different
>> server continously. Am i missing something. Please suggest.
>
> Set "KeepAlive Off" in your Apache config. The browser is keeping the
> connection open because the server is allowing it to.
>
> Graeme
>
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


madan.kn at gmail

Apr 21, 2008, 7:25 AM

Post #13 of 16 (1298 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

Hi,
Can you please refer me to Howto documentation to acheive the following
below.
Since am doing this for the first time, need some heads up.


Thanks,
Madan KN

On Mon, Apr 21, 2008 at 5:37 PM, Bgs <bgs [at] bgs> wrote:

>
> Example (I used it a lot in production level env): connmark the traffic
> coming from you director and mark it on output. The you can use fwmark
> to set up a routing table for the director. This way you can keep your
> normal default gateway on your realservers. You can also have multiple
> directors if you want using this method. Works like a charm :)
>
> Regards
> Bgs
>
>
> Madan KN wrote:
> > Hi,
> > Thanks for reminding this, Can you please suggest me how will we achieve
> > this.
> >
> > Since all my traffic getting routed through Director. I want only LVS
> Port
> > 8080 being routed through
> > Director.
> >
> > Others using my default router hardware.
> >
> > Thanks In Advance,
> > Madan KN
> >
> > On Sun, Apr 20, 2008 at 4:46 AM, bgs <bgs [at] bgs> wrote:
> >
> >> Hi,
> >>
> >> If you don't want to route all non-lvs traffic through your director
> >> (creating double traffic on you LAN and adding a spof), you can also
> mark
> >> the traffic and use routing rules.
> >>
> >>
> >> Regards
> >> Bgs
> >>
> >>
> >> On Sat, 19 Apr 2008 23:17:23 +0530, "Madan KN" <madan.kn [at] gmail>
> wrote:
> >>> Hi Jason/Joseph,
> >>>
> >>> Thanks folks, It works :)
> >>>
> >>> Thank you again.
> >>>
> >>> Madan KN
> >>>
> >>> On Sat, Apr 19, 2008 at 5:14 PM, Joseph Mack NA3T <jmack [at] wm7d>
> >> wrote:
> >>>> On Sat, 19 Apr 2008, Madan KN wrote:
> >>>>
> >>>>> IP Virtual Server version 1.2.1 (size=4096)
> >>>>> Prot LocalAddress:Port Scheduler Flags
> >>>>> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> >>>>> TCP 192.168.1.10:8080 rr
> >>>>> -> 192.168.1.62:8080 Masq 1 0 0
> >>>>> -> 192.168.1.60:8080 Masq 1 0 0
> >>>>> -> 192.168.1.58:8080 Masq 1 0 0
> >>>>
> >>>>
> >>
> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
> >>>> Joe
> >>>>
> >>>> --
> >>>> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
> >>>> jmack (at) wm7d (dot) net - azimuthal equidistant map
> >>>> generator at http://www.wm7d.net/azproj.shtml
> >>>> Homepage http://www.austintek.com/ It's GNU/Linux!
> >>>>
> >>>> _______________________________________________
> >>>> LinuxVirtualServer.org mailing list -
> lvs-users [at] LinuxVirtualServer
> >>>> Send requests to lvs-users-request [at] LinuxVirtualServer
> >>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>>>
> >>> _______________________________________________
> >>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> >>> Send requests to lvs-users-request [at] LinuxVirtualServer
> >>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>
> >> _______________________________________________
> >> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> >> Send requests to lvs-users-request [at] LinuxVirtualServer
> >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>
> > _______________________________________________
> > LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> > Send requests to lvs-users-request [at] LinuxVirtualServer
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


bgs at bgs

Apr 22, 2008, 6:50 AM

Post #14 of 16 (1284 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

There is no howto about it afaik. It's absolutely not a standard setup.
Actually I've never seen it anywhere before, but I've been using it in
high traffic production level environment for quite some time. We can
use an arbitrary number of loadbalancers to distribute traffic on the
same frontend server park.

Madan KN wrote:
> Hi,
> Can you please refer me to Howto documentation to acheive the following
> below.
> Since am doing this for the first time, need some heads up.
>
>
> Thanks,
> Madan KN
>
> On Mon, Apr 21, 2008 at 5:37 PM, Bgs <bgs [at] bgs> wrote:
>
>> Example (I used it a lot in production level env): connmark the traffic
>> coming from you director and mark it on output. The you can use fwmark
>> to set up a routing table for the director. This way you can keep your
>> normal default gateway on your realservers. You can also have multiple
>> directors if you want using this method. Works like a charm :)
>>
>> Regards
>> Bgs
>>
>>
>> Madan KN wrote:
>>> Hi,
>>> Thanks for reminding this, Can you please suggest me how will we achieve
>>> this.
>>>
>>> Since all my traffic getting routed through Director. I want only LVS
>> Port
>>> 8080 being routed through
>>> Director.
>>>
>>> Others using my default router hardware.
>>>
>>> Thanks In Advance,
>>> Madan KN
>>>
>>> On Sun, Apr 20, 2008 at 4:46 AM, bgs <bgs [at] bgs> wrote:
>>>
>>>> Hi,
>>>>
>>>> If you don't want to route all non-lvs traffic through your director
>>>> (creating double traffic on you LAN and adding a spof), you can also
>> mark
>>>> the traffic and use routing rules.
>>>>
>>>>
>>>> Regards
>>>> Bgs
>>>>
>>>>
>>>> On Sat, 19 Apr 2008 23:17:23 +0530, "Madan KN" <madan.kn [at] gmail>
>> wrote:
>>>>> Hi Jason/Joseph,
>>>>>
>>>>> Thanks folks, It works :)
>>>>>
>>>>> Thank you again.
>>>>>
>>>>> Madan KN
>>>>>
>>>>> On Sat, Apr 19, 2008 at 5:14 PM, Joseph Mack NA3T <jmack [at] wm7d>
>>>> wrote:
>>>>>> On Sat, 19 Apr 2008, Madan KN wrote:
>>>>>>
>>>>>>> IP Virtual Server version 1.2.1 (size=4096)
>>>>>>> Prot LocalAddress:Port Scheduler Flags
>>>>>>> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
>>>>>>> TCP 192.168.1.10:8080 rr
>>>>>>> -> 192.168.1.62:8080 Masq 1 0 0
>>>>>>> -> 192.168.1.60:8080 Masq 1 0 0
>>>>>>> -> 192.168.1.58:8080 Masq 1 0 0
>>>>>>
>> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
>>>>>> Joe
>>>>>>
>>>>>> --
>>>>>> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
>>>>>> jmack (at) wm7d (dot) net - azimuthal equidistant map
>>>>>> generator at http://www.wm7d.net/azproj.shtml
>>>>>> Homepage http://www.austintek.com/ It's GNU/Linux!
>>>>>>
>>>>>> _______________________________________________
>>>>>> LinuxVirtualServer.org mailing list -
>> lvs-users [at] LinuxVirtualServer
>>>>>> Send requests to lvs-users-request [at] LinuxVirtualServer
>>>>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>>>>>
>>>>> _______________________________________________
>>>>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>>>>> Send requests to lvs-users-request [at] LinuxVirtualServer
>>>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>>> _______________________________________________
>>>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>>>> Send requests to lvs-users-request [at] LinuxVirtualServer
>>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>>>
>>> _______________________________________________
>>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>>> Send requests to lvs-users-request [at] LinuxVirtualServer
>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>>
>> _______________________________________________
>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
>> Send requests to lvs-users-request [at] LinuxVirtualServer
>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


madan.kn at gmail

Apr 22, 2008, 7:51 AM

Post #15 of 16 (1280 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

*Hi,*
Now on each realserver i have 2 Nic's. (ex: 192.168.1.58/192.168.2.58)

My directory forwards all the requests on 192.168.1.58 n/w.
I need to set the routing table on realservers that to use only director as
gateway if destination is 192.168.1.0 n/w.
For others use 192.168.2.0 n/w.

The reason is my mysql connections take double the time if i use the
director as gateway.

Please guide me how to go about.

Thanks,
Madan KN




On Tue, Apr 22, 2008 at 7:20 PM, Bgs <bgs [at] bgs> wrote:

> There is no howto about it afaik. It's absolutely not a standard setup.
> Actually I've never seen it anywhere before, but I've been using it in
> high traffic production level environment for quite some time. We can
> use an arbitrary number of loadbalancers to distribute traffic on the
> same frontend server park.
>
> Madan KN wrote:
> > Hi,
> > Can you please refer me to Howto documentation to acheive the following
> > below.
> > Since am doing this for the first time, need some heads up.
> >
> >
> > Thanks,
> > Madan KN
> >
> > On Mon, Apr 21, 2008 at 5:37 PM, Bgs <bgs [at] bgs> wrote:
> >
> >> Example (I used it a lot in production level env): connmark the traffic
> >> coming from you director and mark it on output. The you can use fwmark
> >> to set up a routing table for the director. This way you can keep your
> >> normal default gateway on your realservers. You can also have multiple
> >> directors if you want using this method. Works like a charm :)
> >>
> >> Regards
> >> Bgs
> >>
> >>
> >> Madan KN wrote:
> >>> Hi,
> >>> Thanks for reminding this, Can you please suggest me how will we
> achieve
> >>> this.
> >>>
> >>> Since all my traffic getting routed through Director. I want only LVS
> >> Port
> >>> 8080 being routed through
> >>> Director.
> >>>
> >>> Others using my default router hardware.
> >>>
> >>> Thanks In Advance,
> >>> Madan KN
> >>>
> >>> On Sun, Apr 20, 2008 at 4:46 AM, bgs <bgs [at] bgs> wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> If you don't want to route all non-lvs traffic through your director
> >>>> (creating double traffic on you LAN and adding a spof), you can also
> >> mark
> >>>> the traffic and use routing rules.
> >>>>
> >>>>
> >>>> Regards
> >>>> Bgs
> >>>>
> >>>>
> >>>> On Sat, 19 Apr 2008 23:17:23 +0530, "Madan KN" <madan.kn [at] gmail>
> >> wrote:
> >>>>> Hi Jason/Joseph,
> >>>>>
> >>>>> Thanks folks, It works :)
> >>>>>
> >>>>> Thank you again.
> >>>>>
> >>>>> Madan KN
> >>>>>
> >>>>> On Sat, Apr 19, 2008 at 5:14 PM, Joseph Mack NA3T <jmack [at] wm7d>
> >>>> wrote:
> >>>>>> On Sat, 19 Apr 2008, Madan KN wrote:
> >>>>>>
> >>>>>>> IP Virtual Server version 1.2.1 (size=4096)
> >>>>>>> Prot LocalAddress:Port Scheduler Flags
> >>>>>>> -> RemoteAddress:Port Forward Weight ActiveConn
> InActConn
> >>>>>>> TCP 192.168.1.10:8080 rr
> >>>>>>> -> 192.168.1.62:8080 Masq 1 0 0
> >>>>>>> -> 192.168.1.60:8080 Masq 1 0 0
> >>>>>>> -> 192.168.1.58:8080 Masq 1 0 0
> >>>>>>
> >>
> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
> >>>>>> Joe
> >>>>>>
> >>>>>> --
> >>>>>> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
> >>>>>> jmack (at) wm7d (dot) net - azimuthal equidistant map
> >>>>>> generator at http://www.wm7d.net/azproj.shtml
> >>>>>> Homepage http://www.austintek.com/ It's GNU/Linux!
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> LinuxVirtualServer.org mailing list -
> >> lvs-users [at] LinuxVirtualServer
> >>>>>> Send requests to lvs-users-request [at] LinuxVirtualServer
> >>>>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>>>>>
> >>>>> _______________________________________________
> >>>>> LinuxVirtualServer.org mailing list -
> lvs-users [at] LinuxVirtualServer
> >>>>> Send requests to lvs-users-request [at] LinuxVirtualServer
> >>>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>>> _______________________________________________
> >>>> LinuxVirtualServer.org mailing list -
> lvs-users [at] LinuxVirtualServer
> >>>> Send requests to lvs-users-request [at] LinuxVirtualServer
> >>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>>>
> >>> _______________________________________________
> >>> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> >>> Send requests to lvs-users-request [at] LinuxVirtualServer
> >>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>>
> >> _______________________________________________
> >> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> >> Send requests to lvs-users-request [at] LinuxVirtualServer
> >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>
> > _______________________________________________
> > LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> > Send requests to lvs-users-request [at] LinuxVirtualServer
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


madan.kn at gmail

Apr 22, 2008, 8:38 AM

Post #16 of 16 (1285 views)
Permalink
Re: [lvs-users] LVS Routing Problems [In reply to]

Hi Folks,
Has anyone configured multiple gateways on 2 NIC's.
Please guide me HOW-TO.

Thanks In Advance
Madan KN

On Tue, Apr 22, 2008 at 8:21 PM, Madan KN <madan.kn [at] gmail> wrote:

> *Hi,*
> Now on each realserver i have 2 Nic's. (ex: 192.168.1.58/192.168.2.58)
>
> My directory forwards all the requests on 192.168.1.58 n/w.
> I need to set the routing table on realservers that to use only director
> as gateway if destination is 192.168.1.0 n/w.
> For others use 192.168.2.0 n/w.
>
> The reason is my mysql connections take double the time if i use the
> director as gateway.
>
> Please guide me how to go about.
>
> Thanks,
> Madan KN
>
>
>
>
>
> On Tue, Apr 22, 2008 at 7:20 PM, Bgs <bgs [at] bgs> wrote:
>
> > There is no howto about it afaik. It's absolutely not a standard setup.
> > Actually I've never seen it anywhere before, but I've been using it in
> > high traffic production level environment for quite some time. We can
> > use an arbitrary number of loadbalancers to distribute traffic on the
> > same frontend server park.
> >
> > Madan KN wrote:
> > > Hi,
> > > Can you please refer me to Howto documentation to acheive the
> > following
> > > below.
> > > Since am doing this for the first time, need some heads up.
> > >
> > >
> > > Thanks,
> > > Madan KN
> > >
> > > On Mon, Apr 21, 2008 at 5:37 PM, Bgs <bgs [at] bgs> wrote:
> > >
> > >> Example (I used it a lot in production level env): connmark the
> > traffic
> > >> coming from you director and mark it on output. The you can use
> > fwmark
> > >> to set up a routing table for the director. This way you can keep
> > your
> > >> normal default gateway on your realservers. You can also have
> > multiple
> > >> directors if you want using this method. Works like a charm :)
> > >>
> > >> Regards
> > >> Bgs
> > >>
> > >>
> > >> Madan KN wrote:
> > >>> Hi,
> > >>> Thanks for reminding this, Can you please suggest me how will we
> > achieve
> > >>> this.
> > >>>
> > >>> Since all my traffic getting routed through Director. I want only
> > LVS
> > >> Port
> > >>> 8080 being routed through
> > >>> Director.
> > >>>
> > >>> Others using my default router hardware.
> > >>>
> > >>> Thanks In Advance,
> > >>> Madan KN
> > >>>
> > >>> On Sun, Apr 20, 2008 at 4:46 AM, bgs <bgs [at] bgs> wrote:
> > >>>
> > >>>> Hi,
> > >>>>
> > >>>> If you don't want to route all non-lvs traffic through your
> > director
> > >>>> (creating double traffic on you LAN and adding a spof), you can
> > also
> > >> mark
> > >>>> the traffic and use routing rules.
> > >>>>
> > >>>>
> > >>>> Regards
> > >>>> Bgs
> > >>>>
> > >>>>
> > >>>> On Sat, 19 Apr 2008 23:17:23 +0530, "Madan KN" <madan.kn [at] gmail>
> > >> wrote:
> > >>>>> Hi Jason/Joseph,
> > >>>>>
> > >>>>> Thanks folks, It works :)
> > >>>>>
> > >>>>> Thank you again.
> > >>>>>
> > >>>>> Madan KN
> > >>>>>
> > >>>>> On Sat, Apr 19, 2008 at 5:14 PM, Joseph Mack NA3T <jmack [at] wm7d>
> > >>>> wrote:
> > >>>>>> On Sat, 19 Apr 2008, Madan KN wrote:
> > >>>>>>
> > >>>>>>> IP Virtual Server version 1.2.1 (size=4096)
> > >>>>>>> Prot LocalAddress:Port Scheduler Flags
> > >>>>>>> -> RemoteAddress:Port Forward Weight ActiveConn
> > InActConn
> > >>>>>>> TCP 192.168.1.10:8080 rr
> > >>>>>>> -> 192.168.1.62:8080 Masq 1 0 0
> > >>>>>>> -> 192.168.1.60:8080 Masq 1 0 0
> > >>>>>>> -> 192.168.1.58:8080 Masq 1 0 0
> > >>>>>>
> > >>
> > http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network
> > >>>>>> Joe
> > >>>>>>
> > >>>>>> --
> > >>>>>> Joseph Mack NA3T EME(B,D), FM05lw North Carolina
> > >>>>>> jmack (at) wm7d (dot) net - azimuthal equidistant map
> > >>>>>> generator at http://www.wm7d.net/azproj.shtml
> > >>>>>> Homepage http://www.austintek.com/ It's GNU/Linux!
> > >>>>>>
> > >>>>>> _______________________________________________
> > >>>>>> LinuxVirtualServer.org mailing list -
> > >> lvs-users [at] LinuxVirtualServer
> > >>>>>> Send requests to lvs-users-request [at] LinuxVirtualServer
> > >>>>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> > >>>>>>
> > >>>>> _______________________________________________
> > >>>>> LinuxVirtualServer.org mailing list -
> > lvs-users [at] LinuxVirtualServer
> > >>>>> Send requests to lvs-users-request [at] LinuxVirtualServer
> > >>>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> > >>>> _______________________________________________
> > >>>> LinuxVirtualServer.org mailing list -
> > lvs-users [at] LinuxVirtualServer
> > >>>> Send requests to lvs-users-request [at] LinuxVirtualServer
> > >>>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> > >>>>
> > >>> _______________________________________________
> > >>> LinuxVirtualServer.org mailing list -
> > lvs-users [at] LinuxVirtualServer
> > >>> Send requests to lvs-users-request [at] LinuxVirtualServer
> > >>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> > >>>
> > >> _______________________________________________
> > >> LinuxVirtualServer.org mailing list -
> > lvs-users [at] LinuxVirtualServer
> > >> Send requests to lvs-users-request [at] LinuxVirtualServer
> > >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> > >>
> > > _______________________________________________
> > > LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> > > Send requests to lvs-users-request [at] LinuxVirtualServer
> > > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> > >
> >
> > _______________________________________________
> > LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> > Send requests to lvs-users-request [at] LinuxVirtualServer
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
>
>
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.