Search code examples
azurehigh-availabilityfailoverkamailio

Azure - Load balancing/HA - two PIPs


I am trying to set up high availability for two servers (Kamailio) in Azure. The problem is - both servers have to use instance-level public IP addresses as described here. They are used to bypass the limitation on the number of endpoints per vm (we are using around 50000 of those as opposed to the allowed 150).

The problem is that neither traffic manager (routes to endpoint) nor vm load-balancing (limits endpoints) seem to be able to achieve that.

Does anyone have experience with this scenario and/or can advise a method that does not rely on DNS failover?

Thanks!


Solution

  • This has been solved by load-balancing Kamailio through load-balanced endpoints on a VIP, with RTPEngine advertising the PIP so that the RTP traffic passes through unobstructed.