Skip to content

Autoscaling question: Does adding new node to cluster helps in reducing the load on existing muc rooms ? #4119

Answered by badlop
aadimurthy asked this question in Questions
Discussion options

You must be logged in to vote

we have a server running cluster 2, exclusively utilizing MUC rooms and not single chats. As far as I understand, both nodes run Erlang processes related to these MUCs and handle message routing for respective participants on their respective nodes.

Right. In ejabberd, a MUC room is represented by an erlang process. That process is created in the node where the XMPP client is connected when he requests the room creation. The room name and the process identifier is stored in the table muc_online_room.

For example I have two nodes that i joined using "join_cluster". Then a client logins to a node and creates a room. I check in an erlang shell in that node:

ets:tab2list(muc_online_room).
[{m…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mremond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants