Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

HA

46 views
Skip to first unread message

Amor klich

unread,
Jan 29, 2025, 11:28:36 AMJan 29
to CGRateS
Hello

I am looking for the best way to setup high availability with Cgrates 
 

Salvinder Parhar

unread,
Jan 29, 2025, 12:54:32 PMJan 29
to CGRateS
Hello, 

I've never really done this myself so I'm not sure what the actual architecture will look like, but I think you'll be using the DispatcherS component to achieve CGRateS HA. 

Thanks

Dan B

unread,
Feb 7, 2025, 7:38:19 AMFeb 7
to CGRateS
Hi klic...@gmail.com,

When it comes to HA, you have multiple approaches available:

1. Active/Passive at OS level: this would be the most easy to set up solution, just grab something like linux-ha and failover the IP between CGRateS engines set up identically with one shared DB behind (the solution of making that HA should depend on your DBAs). CGRateS allows you to start even without any IP interface available. It will learn the IPs on the fly.

2. Active/Passive at CGRateS level. Here you can use a rpc_conn profile with multiple connections inside. We automatically failover when we get no response. There are various connection types you can use (ie: same order, random, round-robin, load-balanced and so on).

3. Active/Passive at account/data level (so you can do active-active at service level), through the DispatcherS component. This one would be a bit trickier to set up and troubleshoot but it should be doable.

Hope it helps!

DanB

Amor klich

unread,
Feb 7, 2025, 3:36:20 PMFeb 7
to cgr...@googlegroups.com

Hello dan

Thank you for your time . What would you recommend ?


--
You received this message because you are subscribed to the Google Groups "CGRateS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cgrates+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cgrates/ff19a6f1-7f48-4e86-970a-321ef9bfaaa2n%40googlegroups.com.

Dan B

unread,
Feb 10, 2025, 6:56:37 AMFeb 10
to CGRateS
Hi klic...@gmail.com,

I would personally recommend to start simple and evolve once the model proves to be not suitable for your case. So yes, I would go for LinuxHA and CGRateS active/passive.

Hope this helps!

DanB

Reply all
Reply to author
Forward
0 new messages