Projects tigase _server server-core Issues #1498
problem with DefaultClusteringStrategy (#1498)
Closed
Unknown opened 1 year ago

I have a problem using in the configuration the value strategy (class: tigase.server.cluster.strategy.DefaultClusteringStrategy) {}

that was valid for tigase 8.1.x, during start up of tigase 8.2.2 I get this error and then all the dependencies fails to start up

Loading plugin: message-archive=1:34896 ... 	, version: 8.2.0-b5938/6b5a3651
[2023-05-05 14:57:42:454] [WARNING ] [                  main ] Kernel.injectDependencies()      : 

=====================
Could not initialize bean jingle (class: class tigase.xmpp.impl.push.JinglePushNotificationsExtension), skipping injection of this bean
RootCause:
   -> tigase.kernel.KernelException: Can't inject <null> to field tigase.xmpp.impl.push.JinglePushNotificationsExtension.encryptedPushNotificationExtension
      [tigase.kernel.core.Kernel.inject(Kernel.java:1190)]
=====================

If instead if I use

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

the startup does not give errors:

Loading plugin: message-archive=1:34896 ... 	, version: 8.2.0-b5938/6b5a3651
Loading component: cluster-contr :: componentInfo{Title=Tigase XMPP Server, Version=8.2.0-b5938/6b5a3651, Class=tigase.cluster.ClusterController}

what is the class to use for the default strategy to use in development?

Details :

  • Tigase version: 8.2.2-b11697
Unknown commented 1 year ago

Let me start with clarifying one thing:

what is the class to use for the default strategy to use in development?

You can use ACS in development without issue (there is "demo" licence in that case)

Second problem is that currently the class for default strategy is tigase.cluster.strategy.DefaultClusteringStrategy !

Thirdly: There was a bug in one of .toString() methods (ref: server-1356) that actually made default strategy to fail.

Unknown commented 1 year ago

Second problem is that currently the class for default strategy is tigase.cluster.strategy.DefaultClusteringStrategy !

thank you, my fault

Thirdly: There was a bug in one of .toString() methods (ref: server-1356) that actually made default strategy to fail.

so this means that is better to not use the DefaultClusteringStrategy with the 8.2.2 ? (also if we do not use pubsub?)

Unknown commented 1 year ago

so this means that is better to not use the DefaultClusteringStrategy with the 8.2.2 ? (also if we do not use pubsub?)

Correct.

In general DefaultClusteringStrategy is not the best solution. For smaller deployments you can simply use single node, for bigger deployments it's better to use ACS. What's more, MUC and Pubsub don't support clustering with DefaultClusteringStrategy.

Unknown commented 1 year ago

ok thanks

issue 1 of 1
Type
Question
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1498
Please wait...
Page is in error, reload to recover