-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]Federation HA - Passive node not getting Presence syncing broadcast #3564
Comments
@xhuang-sangoma , it might be a bit a confusion here. The |
@bogdan-iancu Thanks for looking into this. Following your suggestion, I updated configuration like below: Active Node (Note that I've commented out the cluster_be_active_shtag option)
Backup Node:
The result
Seems the backup node is still trying to insert entries to presentity table. It's not supposed to do so as a backup node.
Active node prints out entry in subs_phtable_list:
Backup node has empty list:
|
@xhuang-sangoma , I'm a bit confused when comes to what you want to achieve here. Do you want to setup a pure active-backup configuration or a federation (with multiple active nodes sharing parts of the data) ?? |
Our final goal is to setup a Federation cluster. But right now we're only
testing the most simple cluster with two nodes, one active, one backup.
…On Wed, 29 Jan 2025, 01:15 Bogdan Andrei IANCU, ***@***.***> wrote:
@xhuang-sangoma <https://github.com/xhuang-sangoma> , I'm a bit confused
when comes to what you want to achieve here. Do you want to setup a pure
active-backup configuration or a federation (with multiple active nodes
sharing parts of the data) ??
—
Reply to this email directly, view it on GitHub
<#3564 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDZ7XP2HKLJY6SDGD6VOD332M6NKVAVCNFSM6AAAAABVUUNHNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJZGI4TIOBQGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
OpenSIPS version you are running
Describe the bug
This is a followup issue relating to a previous issue reported at: #2960
We have two opensips instances configured as active-backup HA pair in a federation cluster mode.
The active node has following settings:
The backup node has following settings:
This is the entries in clusterer table:
The VIP 69.168.214.70 is configured on the active node_id 1.
We have phones sending REGISTER and SUBSCRIBE (for BLF) requests to VIP on the active node. And the subscriptions are processed by active node and stored in memory.
Note that we set db_update_period and fallback2db to 0 and cluster_federation_mode to full-sharing as we don't want to use db to share the subscriptions. Instead we want the backup node to get subscriptions synced by receiving the cluster broadcast from the active node.
We are expecting that subscriptions processed by active node will also be synced to the backup node. And if we run "opensips-cli -x mi subs_phtable_list" on both active and backup node, they should show the same list.
The result is that only active node prints out the subscriptions list. And the backup node prints empty list.
This is causing an issue that if we switch VIP and make the backup node active, since the backup node doesn't have the subscriptions, it will fail to handle any PUBLISH and deliver NOTIFYs to subscribers.
We think the issue is related to this code commit: 8b96b70
In this code, the backup node checks the cluster_be_active_shtag, since it's off, the node will stop accepting any presence cluster traffic. We think this is incorrect.
The expected behaviour is that the backup node should continue to accept the presence cluster broadcast and store the subscriptions in memory. It just does NOT NEED TO PROCESS any of them.
The text was updated successfully, but these errors were encountered: