Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Question on potentially unintentional load balancing
Author Message
ajlindy
Brekeke Talented


Joined: 12 Sep 2017
Posts: 53

PostPosted: Wed Oct 17, 2018 1:53 pm    Post subject: Question on potentially unintentional load balancing Reply with quote

1. Brekeke Product Name and Version: 3.8.5.2/493-3

2. Java version: 10.0.1

3. OS type and the version: Linux CentOS 7.5.1804 (Core)

4. UA (phone), gateway or other hardware/software involved: Asterisk

5. Your problem:

Set up two servers (primary and secondary) with Mirroring and heartbeats between them. Each has their own IP and then the Primary also has the virtual IP in place on it. What is happening, and is unexpected, is that SIP traffic (Active Sessions) are happening on both the Primary server and the Secondary server.

Is this a function of the Mirroring? Is Load Balancing actually happening here when it's not intended?
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Wed Oct 17, 2018 2:29 pm    Post subject: Reply with quote

> SIP traffic (Active Sessions) are happening on both the Primary server and the Secondary server.

This is because Primary Server's traffic are mirrored to the Secondary Server.
The Secondary server handles them virtually so the Secondary Server itself doesn't forwards these traffics until the Primary Server goes down.
Back to top
View user's profile
dudley.aoi
Brekeke Addict


Joined: 17 Oct 2018
Posts: 31

PostPosted: Wed Oct 17, 2018 3:07 pm    Post subject: RE: Question on potentially unintentional load balancing Reply with quote

@janp - Should the sessions on the primary be found in the active sessions list of the secondary, and vice-versa then?

For example, if we pick a random ongoing session from the active sessions list on the primary, would you expect to find a session with the same source and destination on the active sessions list on the secondary? Obviously this assumes that the session would be active and ongoing for the duration of said testing/verification.
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Wed Oct 17, 2018 8:20 pm    Post subject: Reply with quote

> Should the sessions on the primary be found in the active sessions list of the secondary,

Yes.

> and vice-versa then?

No. Because the Secondary doesn't mirror packets to the Primary.

> would you expect to find a session with the same source and destination on the active sessions list on the secondary?

Yes
Back to top
View user's profile
ajlindy
Brekeke Talented


Joined: 12 Sep 2017
Posts: 53

PostPosted: Thu Oct 18, 2018 8:34 am    Post subject: Reply with quote

So, what we see is a completely separate set of active sessions on the secondary proxy, totally different than those on the primary.

what would you need to see, log-wise, to help troubleshoot?
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Thu Oct 18, 2018 11:50 am    Post subject: Reply with quote

Assigning a SID (Session ID) is different at each SIP Server.

Also, depends on how call was ended (rejected or canceled), the Secondary Server keeps status of such ended sessions for a while even if the Primary Server doesn't show them at the Session List (technically Primary Server keep such status but doesn't show them in the list.)

So Session Lists look different between Primary and Secondary.
Back to top
View user's profile
ajlindy
Brekeke Talented


Joined: 12 Sep 2017
Posts: 53

PostPosted: Thu Oct 18, 2018 12:34 pm    Post subject: Reply with quote

Thank you, but for further clarification I want to write it this way:

ON the Primary I have a From:GC@ip and a To:5283@differentIP.
I can tell this call is active in our application so this is a Live Call.

On the Secondary server, I have no record of the To:5283@differentIP entry.

Should I?
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Thu Oct 18, 2018 12:50 pm    Post subject: Reply with quote

Do you have a DialPlan rule at the Primary server for routing this call?
If so, put the same DialPlan rule at the Secondary too.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1