LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Connections being listed in a backup server

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Connections being listed in a backup server
From: Michael Schwartzkopff <misch@xxxxxxxxxxx>
Date: Thu, 28 May 2009 15:41:16 +0200
Am Donnerstag, 28. Mai 2009 14:51:33 schrieb Andre Nathan:
> Hello
>
> I have a working setup of LVS, and I'm trying to configure a backup
> machine for failover, with the virtual network interfaces configured as
> heartbeat resources.
>
> I've been using the same setup for some time without problems, but now I
> have installed a new pair of servers and I'm seeing the following
> behavior:
>
> When I start the master and backup daemons on both servers with
>
>   ipvsadm --start-daemon master --mcast-interface eth1
>   ipvsadm --start-daemon backup --mcast-interface eth1
>
> the ipvsadm command output in the backup server starts showing
> connections:
>
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  virtserver:mys wlc
>   -> realserver1:mysql            Route   1      1          35
>   -> realserver2:mysql            Route   1      1          44
>
> I have never seen this behavior before, and from the docs I believe it
> shouldn't happen, although the load balancing seems to keep working
> without problems.
>
> Does anyone know why could that happen?
>
> I'm running Linux 2.6.27 and ipvsadm 1.24.
>
> Thanks in advance,
> Andre

You are replicationg the state table. It is obious that you can see the 
entries on the backup node, too.

Important is only: "Which of the nodes does have the virtual IP adress of the 
cluster?" Through which node all traffic is routed?

Beware: In case of a failover you have to swap the master / backup roles. But 
you can start the replication daemon are master and backup on both nodes ;-)

Greetings,

-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: misch@xxxxxxxxxxx
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42

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

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>