[OpenSIPS-Users] 2.4 and AnyCast Setup

Vlad Patrascu vladp at opensips.org
Thu Jun 21 12:13:39 EDT 2018

Hi Jonathan,

OpenSIPS doesn't do that automatically because the setting should depend 
on what roles the nodes have when you first boot up your cluster. As 
such, on the node that first holds the VIP, and will generally be your 
primary node, OpenSIPS should start with the sharing tag as active in 
order to correctly process the traffic as soon as possible. And on the 
backup node, the opposite. From then on, when a switchover happens at 
runtime, the tag state will be changed by running the MI command 
"dlg_set_sharing_tag_active" when the VRRPD state transitions (this is 
where you will need some extra logic).


Vlad Patrascu
OpenSIPS Developer

On 21.06.2018 17:13, Jonathan Mabrito wrote:
> Thanks! So it does sound like AnyCast is at the routing protocol 
> level...I was thinking it was multicast for some reason. Alrighty 
> then...I know what needs to be done on my end and a few scenarios I 
> can try and get it working. My main roadblock is that we are running 
> Cisco EIGRP setup (not that this is your issue...just more summarizing 
> on what I found for anyone else who might be reading this)...so either 
> I can redistribute some static routes into our EIGRP process or setup 
> a new OSPF process and a new network address space (say another /24) 
> and redistribute that into our EIGRP process. OSPF would be the more 
> elegant and reliable way (as each server will be advertising itself 
> when its up) but static is going to be easier to get going and less 
> overhead of not having to setup OSPF (but with static, it wont 
> technically know when a server is down and I am then relying on longer 
> time outs before the other static route metric kicks in). Anywho...I 
> have some trial and error on my side now.
> I do have one more question. Right now we use VRRPD between our two 
> 2.3 nodes. If I was to stay with this method for 2.4, but do the 
> dialog replication, that would also be an acceptable solution for us. 
> I am confused though on this statement in the Clustering blog:
>  "When starting OpenSIPS, you need to check the HA status of the node 
> (by inspecting the HA system) and to decide which node will start as 
> owner of the tag:"
> Is that something OpenSIPS does automatically to determine if that 
> VRRPD VIP IP is active on itself and set the "dlg_sharing_tag" to 
> active  or do I have to add extra logic somewhere?
> On Thu, Jun 21, 2018 at 6:24 AM Răzvan Crainea <razvan at opensips.org 
> <mailto:razvan at opensips.org>> wrote:
>     Hi, Jonathan!
>     The guys from Irontech have written a very nice blogpost regarding
>     how
>     they set up their environment. You should definitely give it a try:
>     https://blog.irontec.com/testing-opensips-anycast-support/
>     Hope it helps!
>     Best regards,
>     Răzvan
>     On 06/20/2018 10:36 PM, Jonathan Mabrito wrote:
>     > Hoping I can get some guidance/pointed in the right direction on
>     this
>     > subject. Looking at standing up a 2.4 AnyCast 2 node cluster and
>     try out
>     > the new 2.4 dialog cluster features (will be a upgrade/migration
>     from
>     > 2.3). Not entirely sure what is needed to make this work from the
>     > AnyCast perspective
>     >
>     > When setting up AnyCast, I know the network and routers need
>     some config
>     > to support AnyCast. I know this question falls more in the
>     topics of
>     > networking, but hoping I can get some guidance on what was done
>     maybe on
>     > the test servers when it was developed? Not looking for specific
>     > configs, just xyz you should look at this or that type responses if
>     > possible.
>     >
>     > Right now, I have the two nodes stood up, but the AnyCast IP I
>     am trying
>     > to bring online is not reachable yet. I know I need to do some
>     network
>     > statements, just trying to grasp what they are.
>     >
>     > Any advice/help to point me in the right direction would be
>     appreciated.
>     > --
>     > -Jonathan
>     >
>     >
>     > _______________________________________________
>     > Users mailing list
>     > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     >
>     -- 
>     Răzvan Crainea
>     OpenSIPS Core Developer
>     http://www.opensips-solutions.com
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> -- 
> -Jonathan
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180621/279a122d/attachment.html>

More information about the Users mailing list