LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] DR and local forwarding method

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] DR and local forwarding method
From: Carlos R Laguna <carlosr@xxxxxxxxxxxx>
Date: Fri, 01 Aug 2014 15:54:34 -0400
El 01/08/14 a las #4, Julian Anastasov escribió:
>       Hello,
>
> On Thu, 31 Jul 2014, Carlos R Laguna wrote:
>
>> Hello to every one, after three day of struggle setting up a loadbalancer 
>> with
>> keepalived using realserver i notice searching in the web about that local
>> forwarding method is not used as default now:
>>
>> Archive List 13/12/2013
>>
>> ...." Now LOCALNODE is not set explicitly as forwarding
>>      method in real server to allow the connections to provide
>>      correct forwarding method to the backup server. Not sure if
>>      this breaks tools that expect to see 'Local' real server type.
>>      If needed, this can be supported with new flag IP_VS_DEST_F_LOCAL...."
>>
>> Ok so it said that still can be achieved using  IP_VS_DEST_F_LOCAL , now 
>> since
>> i am new to this i have no idea how translate IP_VS_DEST_F_LOCAL to a
>> keepalived config:
>       This flag is not implemented because nobody
> expressed such need. Now all methods support localnode
> feature, it is checked per-packet, not on configuration
> time.
>
>> virtual_server 172.17.1.13 25 {
>>    delay_loop 15
>>    lb_algo rr
>>    lb_kind DR
>>    persistence_timeout 50
>>    protocol TCP
>>
>> can anyone pointme in the right direction ? Thank  in advance for your time
>> and effort. Regards
>       There was discussion on such topic:
>
> http://marc.info/?t=138693668400001&r=1&w=2
>
>       What happens if you try with DR? NAT can be
> required if real server does not listen on VIP:VPORT.
>
> Regards
>
> --
> Julian Anastasov <ja@xxxxxx>
>
> _______________________________________________
> 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
>
Hi thank for you answer, it seem tha packeg is not forward to the 
realserver, in this case the loadbalancer and realserver are the same node,

  nmap  172.17.1.13
Nmap scan report for 172.17.1.13
Host is up (0.0043s latency).
Not shown: 998 closed ports
PORT   STATE SERVICE
25/tcp open  smtp

it says open but a telnet to the virtual ip dosen't respond

ipvsadm -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  172.17.1.13:25 rr
   -> 172.17.1.15:25               Route   1      0 0
   -> 172.17.1.16:25               Route   1      0          3


This is the partial conf

virtual_ipaddress {
     172.17.1.13/24
   }
   # Invoked to master transition
   notify_master "/etc/keepalived/bypass_ipvs.sh del 172.17.1.13"
   # Invoked to slave transition
   notify_backup "/etc/keepalived/bypass_ipvs.sh add 172.17.1.13"
   # Invoked to fault transition
   notify_fault "/etc/keepalived/bypass_ipvs.sh add 172.17.1.13"
}

# describe virtual mail server
virtual_server 172.17.1.13 25 {
   delay_loop 15
   lb_algo rr
   lb_kind DR
   persistence_timeout 50
   protocol TCP

   real_server 172.16.1.16 25 {
     TCP_CHECK {
       connect_timeout 3
     }
   }
   real_server 172.17.1.15 25 {
     TCP_CHECK {
       connect_timeout 3
     }
   }
}


Thanks ind advance for your time and effort. Regards



 ________________________________________________________________
 XII Edicion del Evento Nacional de Informatica para Jovenes. INFOCLUB.
 Abril. 2015. Ver www.jovenclub.cu
 ________________________________________________________________


-- 
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.


_______________________________________________
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>