ejabberd - Comments for "S2S Session management" https://www.ejabberd.im/forum/25143/s2s-session-management en Federation is by design pure https://www.ejabberd.im/forum/25143/s2s-session-management#comment-66144 <p>Federation is by design pure XMPP. You cannot make Erlang calls over federation. As you see, federation is no substitute for clustering.</p> Tue, 29 Sep 2015 07:19:58 +0000 mremond comment 66144 at https://www.ejabberd.im Hi, thanks for responding! https://www.ejabberd.im/forum/25143/s2s-session-management#comment-66137 <p>Hi, thanks for responding! I'm definitely talking about federation. Let me rephrase and give a specific use case.</p> <p>1) I have two XMPP servers with different domains: domain1.com and domain2.com<br /> 2) I have to users: <noindex><a href="mailto:user1@domain1.com" rel="nofollow" >user1@domain1.com</a></noindex> and <noindex><a href="mailto:user2@domain2.com" rel="nofollow" >user2@domain2.com</a></noindex><br /> 3) Messages between <noindex><a href="mailto:user1@domain1.com" rel="nofollow" >user1@domain1.com</a></noindex> and <noindex><a href="mailto:user2@domain2.com" rel="nofollow" >user2@domain2.com</a></noindex> work perfectly (both chat and muc)<br /> 4) From domain2 XMPP server, I need to know the online status of <noindex><a href="mailto:user1@domain1.com" rel="nofollow" >user1@domain1.com</a></noindex></p> <p>calling ejabberd_sm:get_user_resources(User, Server) seems to only have access to the local domain's sessions. By default, sessions are stored in mnesia?</p> <p>What is the recommended way to achieve this? Is this an uncommon use case? </p> <p>-Nelson</p> Thu, 24 Sep 2015 19:52:13 +0000 Nelson comment 66137 at https://www.ejabberd.im If you are talking about https://www.ejabberd.im/forum/25143/s2s-session-management#comment-66125 <p>If you are talking about federation, you are not talking about clustering. You have indeed to get the status by another mean. However, if your point multiple independant cluster to the same redis session management you may run into unexpected issue. We never tried that config. I am not sure what you are trying to achieve. I am under the impression that you are trying to use federation to simulate a single cluster, but I think all modules would not be aware of this intention and you would probably need to modify a lot of code in many part of ejabberd to achieve this.</p> Thu, 24 Sep 2015 09:19:42 +0000 mremond comment 66125 at https://www.ejabberd.im Just thinking out loud .. https://www.ejabberd.im/forum/25143/s2s-session-management#comment-66114 <p>Just thinking out loud .. I'm assuming odbc is not the way to go either as each cluster has it's own db. So is the solution to have a global redis server used by all clusters?</p> Mon, 21 Sep 2015 18:40:20 +0000 Nelson comment 66114 at https://www.ejabberd.im