Author |
Message |
ajlindy Brekeke Talented
Joined: 12 Sep 2017 Posts: 53
|
Posted: Wed Oct 17, 2018 1:53 pm Post subject: Question on potentially unintentional load balancing |
|
|
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 |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
Posted: Wed Oct 17, 2018 2:29 pm Post subject: |
|
|
> 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 |
|
dudley.aoi Brekeke Addict
Joined: 17 Oct 2018 Posts: 31
|
Posted: Wed Oct 17, 2018 3:07 pm Post subject: RE: Question on potentially unintentional load balancing |
|
|
@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 |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
Posted: Wed Oct 17, 2018 8:20 pm Post subject: |
|
|
> 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 |
|
ajlindy Brekeke Talented
Joined: 12 Sep 2017 Posts: 53
|
Posted: Thu Oct 18, 2018 8:34 am Post subject: |
|
|
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 |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
Posted: Thu Oct 18, 2018 11:50 am Post subject: |
|
|
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 |
|
ajlindy Brekeke Talented
Joined: 12 Sep 2017 Posts: 53
|
Posted: Thu Oct 18, 2018 12:34 pm Post subject: |
|
|
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 |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
Posted: Thu Oct 18, 2018 12:50 pm Post subject: |
|
|
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 |
|
|