Project

General

Profile

A question about ShardingStrategy

Igor Khomenko
Added almost 4 years ago

Hi Tigase team,

I have a question about how ACS MUC works and also about ShardingStrategy.

Lets say we have 2 Tigase nodes with next settings:

--comp-name-2=muc
--comp-class-2=tigase.muc.cluster.MUCComponentClustered

--cluster-mode = true

Then lets say we have 2 MUC rooms.

According to this guide https://projects.tigase.org/projects/acs/wiki/Tigase_ACS_MUC_Configuration each Tigase node will load 1 room from 2 and will service it.

The most interested part is the next.

When a user logins to Tigase he will be connected to one of the nodes.

Then there are 2 scenarios:

If a user would like to join room1 - his request will be processed by current node where he is connected

And if a user would like to join room2 - then his request will be forwarded to Tigase node2

Is that a correct way how all this works?


Replies (1)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam almost 4 years ago

Yes, this is more or less how it works. However, the request forwarding is done within the clustered MUC component and is completely transparent to the user and the client software.

    (1-1/1)