Project

General

Profile

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

w xy
Added about 1 month ago

Some time , it is ok, but some time it is not well.

sess-man (){

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

}

However, a large number of messages are lost because offline state is not synchronized.

So , i add stream management.

c2s{
    # Enable Stream Management bean
    'urn:xmpp:sm:3' () {}
    # Register tigase.server.xmppclient.SeeOtherHostDualIP as seeOtherHost bean
    seeOtherHost (class: none) {}
}

But, a large number of messages are still lost until offline state is not synchronized with log time.

Q1: how to solve the question that Offline state is not synchronized?

Q2: how to solve recovering message when stream management resume time out?


Replies (3)

Added by Wojciech Kapcia TigaseTeam about 1 month ago

Q1: how to solve the question that Offline state is not synchronized?

How come? Have you made sure that your cluster is working correctly? Are all nodes connected?

Q2: how to solve recovering message when stream management resume time out?

They will be stored in offline store and delivered to the user when he connects again.

Added by w xy about 1 month ago

Yes, all nodes could be connected, but some time, offline state is not synchronized?

Once, offline state is not synchronized and stream management resume time out, the messages will be not stored in offline store.

Added by Wojciech Kapcia TigaseTeam about 1 month ago

w xy wrote:

Yes, all nodes could be connected, but some time, offline state is not synchronized?

No, it's always synchronised. Please make sure there are no errors in cluster. Please make that network between nodes is reliable and of high performance (no disconnects). You should check tigase logs (errors, exceptions) and Tigase statistics (especially cluster node disconnects)

If you need hands-on help to troubleshoot this problem you can contact us https://tigase.tech/contact/ and inquire about possible support options.

Once, offline state is not synchronized and stream management resume time out, the messages will be not stored in offline store.

In general, messages are not lost - either they are in the stream-management cache or they are stored to repository.

Are you running vanilla version of Tigase?

    (1-3/3)