Mailing List Archive

[lvs-users] DR and local forwarding method
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:

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
________________________________________________________________
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.
Re: [lvs-users] DR and local forwarding method [ In reply to ]
El 31/07/14 a las #4, Carlos R Laguna escribió:
> 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:
>
> 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
> ________________________________________________________________
> XII Edicion del Evento Nacional de Informatica para Jovenes. INFOCLUB.
> Abril. 2015. Ver www.jovenclub.cu
> ________________________________________________________________
>
>
>
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
knock knock, anyone? 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@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] DR and local forwarding method [ In reply to ]
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@ssi.bg>

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

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
Re: [lvs-users] DR and local forwarding method [ In reply to ]
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@ssi.bg>
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
> Send requests to lvs-users-request@LinuxVirtualServer.org
> 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@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users