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

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] real servers can't be removed and re-added to farm

 

 

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


alan.morais at vexcorp

Mar 1, 2012, 1:25 PM

Post #1 of 5 (389 views)
Permalink
[lvs-users] real servers can't be removed and re-added to farm

Hello everyone!

I'm trying to implement a LVS system on my company, but I'm having some
issues. When i reboot one of back-end servers, everything goes fine, but
when he's come up again, the client connections cannot be completed (
appears connecting on browser )


i use LVS-DR on debian ( package version )

root [at] serve:/var/log# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 173.193.xxx.xxx:http wlc persistent 300
-> 173.193.xx.xx1-static.rever Route 1 27 319
-> 173.193.xx.xx2-static.rever Route 1 29 334
-> 173.193.xx.xx4-static.rever Route 1 20 220
TCP 173.193.xxx.xxx:https wlc persistent 300
-> 173.193.xxx.xx1-static.rever Route 0 0 0
-> 173.193.xxx.xx2-static.rever Route 1 3 4
-> 173.193.xxx.xx4-static.rever Route 2 3 1

I need to use persistence because its a ssl website, and i think that
persistence is causing this issue, because when server 1 came back, LVS
will have 2 routes to same ip.

any ideas?

--
Alan Morais
Vex/Oi - Network Manager
alan.morais at vexcorp.com
http://www.vexcorp.com
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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


david at davidcoulson

Mar 1, 2012, 1:33 PM

Post #2 of 5 (377 views)
Permalink
Re: [lvs-users] real servers can't be removed and re-added to farm [In reply to]

On Mar 1, 2012, at 4:25 PM, Alan Morais wrote:

>
> I need to use persistence because its a ssl website, and i think that
> persistence is causing this issue, because when server 1 came back, LVS
> will have 2 routes to same ip.

Confused why SSL implies persistence is required?

David


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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


alan.morais at vexcorp

Mar 2, 2012, 4:37 AM

Post #3 of 5 (372 views)
Permalink
Re: [lvs-users] real servers can't be removed and re-added to farm [In reply to]

Hello David!

i have read the documentation here (
http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.persistent_connection.html)
and based on i have experienced here, the problem is not SSL and
persistence, they working great!, the problem is when i reboot one of my
backend servers, while this server is out of LVS table, the connections are
routed to another server, but when this server goes back online, apparently
the connections have two routes.

thats is what i think its happening, but may i can be wrong..


2012/3/1 David Coulson <david [at] davidcoulson>

> On Mar 1, 2012, at 4:25 PM, Alan Morais wrote:
>
> >
> > I need to use persistence because its a ssl website, and i think that
> > persistence is causing this issue, because when server 1 came back, LVS
> > will have 2 routes to same ip.
>
> Confused why SSL implies persistence is required?
>
> David
>
>


--
Alan Morais
Vex/Oi - Network Manager
alan.morais [at] vexcorp
http://www.vexcorp.com
Office: +55 11 4932 5927
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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


david at davidcoulson

Mar 2, 2012, 4:55 AM

Post #4 of 5 (369 views)
Permalink
Re: [lvs-users] real servers can't be removed and re-added to farm [In reply to]

I understand that - My point was that if persistence is causing your
issue, can you live without it? I run many SSL HTTP instances, and don't
utilizing persistence.

Can you reproduce the issue and do a 'ipvsadm -Lnc | grep <clientip>' so
we can see if you have multiple sessions being persisted to >1 real server?

David

On 3/2/12 7:37 AM, Alan Morais wrote:
> Hello David!
>
> i have read the documentation here (
> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.persistent_connection.html
> ) and based on i have experienced here, the problem is not SSL and
> persistence, they working great!, the problem is when i reboot one of
> my backend servers, while this server is out of LVS table, the
> connections are routed to another server, but when this server goes
> back online, apparently the connections have two routes.
>
> thats is what i think its happening, but may i can be wrong..
>
>
> 2012/3/1 David Coulson <david [at] davidcoulson
> <mailto:david [at] davidcoulson>>
>
> On Mar 1, 2012, at 4:25 PM, Alan Morais wrote:
>
> >
> > I need to use persistence because its a ssl website, and i think
> that
> > persistence is causing this issue, because when server 1 came
> back, LVS
> > will have 2 routes to same ip.
>
> Confused why SSL implies persistence is required?
>
> David
>
>
>
>
> --
> Alan Morais
> Vex/Oi - Network Manager
> alan.morais [at] vexcorp <mailto:alan.morais [at] vexcorp>
> http://www.vexcorp.com <http://www.vexcorp.com/>
> Office: +55 11 4932 5927
>
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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


alan.morais at vexcorp

Mar 7, 2012, 11:37 AM

Post #5 of 5 (335 views)
Permalink
Re: [lvs-users] real servers can't be removed and re-added to farm [In reply to]

hey man,

I've been testing since your suggestion, and we realize thats is not a LVS
persistence problem.
We tested the connections without persistence, and our website failed to
complete the transaction. Persistence back on, we changed a option on
apache thats causing this issue, the parameter "NameVirtualHost" was
configured with a domain, and was confused when they try to answer
requests i think. We changed this option to *:443 and apparently problem
solved!
I do not fully understood why this option could be confusing apache ( i
need to read apache docs again ), but now LVS works like a charm :-)

thank you for your support David

2012/3/2 David Coulson <david [at] davidcoulson>

> I understand that - My point was that if persistence is causing your
> issue, can you live without it? I run many SSL HTTP instances, and don't
> utilizing persistence.
>
> Can you reproduce the issue and do a 'ipvsadm -Lnc | grep <clientip>' so
> we can see if you have multiple sessions being persisted to >1 real server?
>
> David
>
>
> On 3/2/12 7:37 AM, Alan Morais wrote:
>
> Hello David!
>
> i have read the documentation here (
> http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.persistent_connection.html) and based on i have experienced here, the problem is not SSL and
> persistence, they working great!, the problem is when i reboot one of my
> backend servers, while this server is out of LVS table, the connections are
> routed to another server, but when this server goes back online, apparently
> the connections have two routes.
>
> thats is what i think its happening, but may i can be wrong..
>
>
> 2012/3/1 David Coulson <david [at] davidcoulson>
>
>> On Mar 1, 2012, at 4:25 PM, Alan Morais wrote:
>>
>> >
>> > I need to use persistence because its a ssl website, and i think that
>> > persistence is causing this issue, because when server 1 came back, LVS
>> > will have 2 routes to same ip.
>>
>> Confused why SSL implies persistence is required?
>>
>> David
>>
>>
>
>
> --
> Alan Morais
> Vex/Oi - Network Manager
> alan.morais [at] vexcorp
> http://www.vexcorp.com
> Office: +55 11 4932 5927
>
>


--
Alan Morais
Vex/Oi - Network Manager
alan.morais [at] vexcorp
http://www.vexcorp.com
Office: +55 11 4932 5927
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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.