Project

General

Profile

Http component with several nodes.

Oleg Shestakov
Added about 3 years ago

Good day. Do you test clustered muc with http component? And what is behaviour of ACS MUC when I create two rooms?

For example I sent request through http api and muc chose the local node and created room on it. I have a response. After I sent another request, muc chose second node, sent packet to it, and what do I have in response?


Replies (4)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 3 years ago

I do not get why you want to sent requests to MUC using HTTP component.

As for ACS MUC, this version handles packets in different ways depending on used clustering strategy (https://projects.tigase.org/projects/acs/wiki/Tigase_ACS_MUC_Configuration), but what I think is more important it should handle packet properly on in every case as ACS MUC from XMPP client view is just like a single non-clustered component - if packet received by ACS MUC needs to be routed to other cluster node then this is done internally but ACS MUC.

To give you more detailed answer I would need to get from you better description what are you trying to do using HTTP component and ACS MUC.

Added by Oleg Shestakov about 3 years ago

Ok. Suggest we send request with params to create room. Groovy script build packet for this and send packet to MUC ACS.

MUC ACS decides to forward to another node. Node acceptes cluster packet and create room. Question: where does node send response stanza of creation of room? Does it send to all occupants or not?

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 3 years ago

As you create a room then room is empty so no occupants are in room - so it would be no response, but this is not how MUC works.

ACS MUC same as MUC sends response to source address of request packet - in this case it should send response to HTTP component - same HTTP component instance which is responsible for sending request to create MUC room.

Added by Oleg Shestakov about 3 years ago

Ok. Another example, I create groovy script to find out info about room(). I build and send iq with disco XMLNS. But I got timeout on this request.

    (1-4/4)