Hi!

I prefer to let Kamailio do what it does best (SIP) and let other tools manage whatever you need to do additionally.
In your case, I would use a Keepalived service, shared between the 2 database nodes (or any other number of nodes) and create a Virtual IP (VIP) shared between DB nodes. 
By default, the VIP would point to node #1 and listens to DB service. If DB fails, or node fails, Keepalived switches the VIP to node #2. Once node #1 is up, it will switch back the VIP to node #1.

You can also make use of the fantastic ProxySQL service. It is a fantastic tool!


Sérgio Charrua 
www.voip.pt

 





On Tue, Jan 9, 2024 at 4:29 PM SAMUEL MOYA TINOCO via sr-users <sr-users@lists.kamailio.org> wrote:

Good evening everyone,

 

I’m trying to configure my Kamailio to use another DB in case the one it commonly uses fails.

Does Kamailio has any built in function to do this? Do I have to do it with an ha-proxy?

 

Thank you in advance for your help

 

Samuel Moya Tinoco

Departamento de Sistemas y Redes

Móvil: (+34) 606985997

smoya@vivelibre.es

 

 

 

Soluciones inteligentes
para la autonomía personal

 

 

 

 

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe: