Re: [SR-Users] Load balance on HA scenario

2020-10-22 Thread Yufei Tao
Hi Duarte, I'm not sure if your situation is more complicated than mine. I have two dispatcher nodes in the HA setup, with real IPs say IPa, IPb. They share a floating/virtual IP, let's call it VIP. Both nodes listen to the VIP (not its real IP), and use the VIP as the dispatcher's socket. In

Re: [SR-Users] Load balance on HA scenario

2020-10-21 Thread Duarte Rocha
Hi Yufei, I've tried to do that but unfortunately i'm facing a weird issue. I have nodes on probing mode, but dispatcher only sends probing via one of the sockets and then, in some cases, wrongfully updates the status of the elements of the pair. I've even tried to manually disable one of the

Re: [SR-Users] Load balance on HA scenario

2020-10-21 Thread Yufei Tao
Hi Joel, Thanks for the tip! Having the pings disabled and enable it on HA status being master sounds like a good idea :) Cheers, Yufei ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

Re: [SR-Users] Load balance on HA scenario

2020-10-20 Thread Joel Serrano
Yes. I do exactly this but with an extra step: 1. I have the default Kamailio dispatcher pings disabled. 2. I have the Kamailio init route check if we have the floating IP locally, if we do in startup that route will run the rpc cmd to enable pings. 3. On floating IP switchover, keepalived (or

Re: [SR-Users] Load balance on HA scenario

2020-10-20 Thread Yufei Tao
Hi Duarte, Not sure if I understand it correctly but are you trying to set up an HA pair of dispatchers? If so I am doing it differently in that, I use the Virtual/floating IP (VIP) as socket. This way the master node (which has got the VIP) can send OPTIONs pings out fine but the backup node

Re: [SR-Users] Load balance on HA scenario

2020-10-16 Thread Sergey Safarov
When you have detected a failed target, you can update the dispatcher table and then reload dispatchers On Thu, Oct 15, 2020 at 9:57 PM Sergey Safarov wrote: > you one dispatcher destination failed you can try other > > Example > >

Re: [SR-Users] Load balance on HA scenario

2020-10-15 Thread Sergey Safarov
you one dispatcher destination failed you can try other Example https://github.com/2600hz/kazoo-configs-kamailio/blob/master/kamailio/dispatcher-role-5.4.cfg#L205-L222 Think you can find more examples. On Thu, Oct 15, 2020 at 2:49 PM Duarte Rocha wrote: > Hi, > > I'll try to better clarify my

Re: [SR-Users] Load balance on HA scenario

2020-10-15 Thread Duarte Rocha
Hi, I'll try to better clarify my scenario. I can't use probing in this situation, as my peer won't allow it. This is my scenario : SET: { ID: 102 TARGETS: { DEST: { URI: sip:Peer_IP:5060 FLAGS: AX PRIORITY: 0

Re: [SR-Users] Load balance on HA scenario

2020-10-13 Thread Sergey Safarov
So issue with the source IP used for dispatcher probing? If Kamailio sends OPTIONS from own IP (not shared VIP), then all will be good? On Tue, Oct 13, 2020 at 1:17 PM Duarte Rocha wrote: > Hey. > > I'm already using ip_free_bind, but that is not my problem. > I cannot use probing on those

Re: [SR-Users] Load balance on HA scenario

2020-10-13 Thread Duarte Rocha
Hey. I'm already using ip_free_bind, but that is not my problem. I cannot use probing on those peers and I need to know if Dispatcher can be able to not include those peers in the destination list since their socket doesn't belong to the machine and include the peers in the destination list in

Re: [SR-Users] Load balance on HA scenario

2020-10-12 Thread Alex Balashov
How useful that Kamailio can now do this independently! On 10/13/20 12:48 AM, Sergey Safarov wrote: Are you looking   ip_free_bind = 1? https://www.kamailio.org/wiki/cookbooks/5.4.x/core On Mon, Oct 12, 2020 at 5:34 PM Duarte Rocha > wrote: Greetings,

Re: [SR-Users] Load balance on HA scenario

2020-10-12 Thread Sergey Safarov
Are you looking ip_free_bind = 1? https://www.kamailio.org/wiki/cookbooks/5.4.x/core On Mon, Oct 12, 2020 at 5:34 PM Duarte Rocha wrote: > Greetings, > > I have two machines with Kamailio in a HA setup with replicated DB. For > simplicity let's say each machine has one HA IP and that IP can

[SR-Users] Load balance on HA scenario

2020-10-12 Thread Duarte Rocha
Greetings, I have two machines with Kamailio in a HA setup with replicated DB. For simplicity let's say each machine has one HA IP and that IP can jump to the other machine in case something happens (kamailio stopping, etc). I'm using Dispatcher with load balance configuration. I have Dispatcher