<div dir="ltr">Daryn,<div><br></div><div>That response was more general, not necessarily directed at you!</div><div><br></div><div>DNS-based load balancing has always been problematic for clients. They tend to not properly balance across SRV records, or failover to secondary A records.</div><div><br></div><div>However, I think the best solution would be something like what Daniel mentioned - to have multiple (maybe 2-4 but the number really depends on your availability and scalability requirements) Kamailio instances at the edge, each with a corresponding standby ready to take over that IP in a failover scenario.</div><div><br></div><div>Combine that setup with rotating the A and SRV records in your DNS server (most DNS servers support automatically rotating the records in a response), and you should be able to support all kinds of clients.</div><div><br></div><div>Best,</div><div>Colin<br><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 30, 2016 at 11:49 AM Daniel Tryba <<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Jun 30, 2016 at 05:15:19PM +0200, Giacomo Vacca wrote:<br>
> Remember though that the Load Balancer will be<br>
> your Single Point Of Failure. If the Load Balancer dies, for any reason,<br>
> the service is not available.<br>
...<br>
> Depending on the capabilities of the clients you may consider removing the<br>
> Load Balancer from the equation and perform DNS-based load balancing across<br>
> your Proxy/Registrar/PSTN Gw instances. You'd be removing a SPOF, use one<br>
> fewer machine, and simplify the architecture. This is not always possible<br>
> to achieve though, because it delegates load balancing and fail over to the<br>
> clients.<br>
<br>
Clients are to stupid to do this, you have to target the lowest common<br>
denominator which only connect to a single ip. The loadbalancer is one<br>
of the most simple possible config of kamailio possible (dispatcher and<br>
path).<br>
<br>
So if you worry (rightly so) about a single point of failure in the<br>
loadbalancer setup, make that one redundant by using a failover<br>
mechanisme (heartbeat/keepalive/whatever). And having multiple instances<br>
of this setup to use DNS based loadbalancing or simple primary/secondary<br>
endpoints for the clients to connect to make any kind of failover<br>
mechanisme for any type of client possible. The resources needed for a<br>
loadbalancer are the least of all machines needed.<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div></div>