Project

General

Profile

tigase 8.0 cluster strategy : OnlineUsersCachingStrategy, Offline state is not synchronized

w xy
Added 3 months ago

within cluster strategy : OnlineUsersCachingStrategy, online state is synchronized, but offline state is not synchronized. so , a lot of message were lost.

boolean isOnline = MonitorRuntime.getMonitorRuntime().isJidOnline(packet.getStanzaTo());

when i close in a side, but another side return true: is Online.

please help me, thanks a lot.

'config-type' = 'default'
admins = [ '10005@xmpp.server' ]

debug = [server,xmpp,shiku,db,net]
default-virtual-host = 'xmpp.server'

watchdog_delay = 30000
watchdog_ping_type = 'xmpp'

watchdog_timeout = 10000

'cluster-mode' = true
cm-ht-traffic-throttling' = 'xmpp:25k:0:disc,bin:200m:0:disc'

'cl-comp' {
'connect-all' = true

'cluster-connections-per-node' = 1

'repo-autoreload-interval' = 180
}

#customer

--confirm-open-keyword = 0

dataSource {
default () {
uri = 'mongodb://192.168.97.132:27017/tigase'
'schema-management' = false
}
muc-store () {
uri = 'mongodb://192.168.97.132:27017/imRoom'
'schema-management' = false
}
}

userRepository {
default () {
cls = 'tigase.mongodb.MongoRepository'
}
}
authRepository {
default () {
cls = 'tigase.mongodb.MongoRepository'
}
}

amp {
'amp-repo-class' = 'tigase.mongodb.MongoMsgRepository'
'amp-repo-uri' = 'mongodb://192.168.97.132:27017/tigase'
}

'message-router' {
'incoming-filters' = 'tigase.shiku.ShikuKeywordFilter'
}

muc (class: tigase.muc.cluster.MUCComponentClustered) {
muc-dao {
default () {
dataSourceName = 'muc-store'
'schema-management' = false
}
}
'history-db' = 'tigase.mongodb.muc.MongoHistoryProvider'

'muc-lock-new-room'= false
defaultRoomConfig {
'muc#maxhistoryfetch' = '100'
}
}

'sess-man' () {

amp {
'amp-repo-class' = 'tigase.mongodb.MongoMsgRepository'
'amp-repo-uri' = 'mongodb://192.168.97.132:27017/tigase'
}
'jabber:iq:register' () {}

strategy (class: tigase.server.cluster.strategy.OnlineUsersCachingStrategy) {}
starttls (active: false) {}
}


Replies (2)

Added by w xy 2 months ago

Recently, I found that offline status synchronization was delayed by 5-8 seconds.During this period, all the messages I sent were lost.

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam 2 months ago

The offline state is synchronized in the same way as the online state is synchronized and it takes the same amount of time to sync in both cases. Your estimate of a 5-8s delay is something unusual and never occurred in our testing.

Could you clarify how are you closing XMPP connection? are you just closing TCP connection? or properly closing XMPP stream by sending </stream:stream>?

    (1-2/2)