Hello. I have 4 kamailio nodes with same config:
modparam("dmq", "server_address", "sip:LOCALIP:5050") modparam("dmq", "notification_address", "sip:192.168.8.213:5050") modparam("dmq", "notification_address", "sip:192.168.10.54:5050") modparam("dmq", "notification_address", "sip:192.168.107.195:5050") modparam("dmq", "notification_address", "sip:192.168.150.225:5050") modparam("dmq", "num_workers", 6) modparam("dmq_usrloc", "enable", 1) modparam("dmq_usrloc", "sync", 1) modparam("dmq_usrloc", "batch_size", 2000) modparam("dmq_usrloc", "batch_usleep", 1000)
regularly (don't know why) I've got issues - replication is broken, for example now at all nodes I have: # kamcmd dmq.list_nodes { host: 192.168.8.213 port: 5050 resolved_ip: 192.168.8.213 status: 2 last_notification: 0 local: 0 } { host: 192.168.10.54 port: 5050 resolved_ip: 192.168.10.54 status: 2 last_notification: 0 local: 0 } { host: 192.168.150.225 port: 5050 resolved_ip: 192.168.150.225 status: 8 last_notification: 0 local: 0 } { host: 192.168.107.195 port: 5050 resolved_ip: 192.168.107.195 status: 2 last_notification: 0 local: 1 }
but at node 192.168.150.225: # kamcmd dmq.list_nodes { host: 192.168.150.225 port: 5050 resolved_ip: 192.168.150.225 status: 2 last_notification: 0 local: 0 } { host: 192.168.150.225 port: 5050 resolved_ip: 192.168.150.225 status: 2 last_notification: 0 local: 1 }
nodes restart doesn't help. but if i exec systemctl stop kamailio && sleep 15 && systemctl start kamailio it is partially solve my issue - dmq.list_nodes show all nodes, but at 192.168.150.225 i see not all user locations: they are added gradually
There is no errors in logs Dec 1 08:28:37 sipufa /usr/sbin/kamailio[18252]: NOTICE: <script>: ROOT: KDMQ notification_peer [15f3edf9258014d1-7114@192.168.8.213] Dec 1 08:28:38 sipufa /usr/sbin/kamailio[18271]: NOTICE: <script>: ROOT: KDMQ notification_peer [7acb9eae627482f8-87828@192.168.10.54] Dec 1 08:28:39 sipufa /usr/sbin/kamailio[18250]: NOTICE: <script>: ROOT: KDMQ notification_peer [621ad9f474b335e2-18272@192.168.150.225] Dec 1 08:28:40 sipufa /usr/sbin/kamailio[18252]: NOTICE: <script>: ROOT: KDMQ notification_peer [7b817f6a6244f923-8872@192.168.107.195] Dec 1 08:28:47 sipufa /usr/sbin/kamailio[18271]: NOTICE: <script>: ROOT: KDMQ usrloc [7acb9eae627482f2-87794@192.168.10.54] Dec 1 08:29:20 sipufa /usr/sbin/kamailio[18251]: NOTICE: <script>: ROOT: KDMQ usrloc [7acb9eae627482ef-87790@192.168.10.54]