How to get rid off ejabberd number of chats limit - ejabberd

I need to make more than 20 muc chats in my ejabberd installation.
By default only limited number of chats can be active.
Are there any ways to get rid of this limit?

If your questions is about the number of chat room a given user can join, you should check option max_user_conferences in mod_muc. See ejabberd mod_muc documentation: https://docs.ejabberd.im/admin/configuration/#mod-muc
If your question is about the max number of resource a given user can connect to ejabberd, you can increase the max_user_sessions limit in your ejabberd ACLs configuration. This is explain in ejabberd documentation: https://docs.ejabberd.im/admin/configuration/#limiting-opened-sessions-with-acl

Related

How to get the messages between two users after a particular time stamp in ejabberd through iq stanzas?

Is there any iq stanza in ejabberd that returns messages between two users after a particular timestamp?
If mod_mam is enabled and used to store those messages, take a look at the protocol section 4.1.2 Filtering by time received

Is it possible to open 2000 streaming connections by impersonating 2000 mailboxes?

I am in the process of creating an Exchange Service account to listen for EWS notifications for up to 2000 mailboxes. I have been reading through the documentation and it states that
Sa1 can open the connection in the following ways:.... By
impersonating any of the users — m1 for example — so that the
connection is charged against a copy of m1’s budget. (M1 itself can
open ten connections by using Exchange Online, and all service
accounts impersonating m1 can open ten connections by using the copied
budget.)
If the connection limit is hit, the following workarounds are
available: If option 1 is used, the administrator can create multiple service accounts to impersonate additional users.
The microsoft documentation is here: (https://msdn.microsoft.com/EN-US/library/office/dn458789(v=exchg.150).aspx)
Can someone tell me if it is possible to open up 2000 streaming connections to EWS using the same service account by impersonating 2000 mailboxes?
Thanks.
Can someone tell me if it is possible to open up 2000 streaming connections to EWS using the same service account by impersonating 2000 mailboxes?
Yes I have apps that work with 3000+ users but it can be environment dependant. As the link you posted suggests that you should be using Grouping to maintain affinity in 2013 and greater. There is a maximum of 200 user per group (which basically means per connection). The concurrent connection charge if your using Grouping and Impersonation should be charged to the Mailbox your Anchoring the Group connection to (which is generally the first user in the group) not the service account. As each group should have a different anchor Mailbox you shouldn't run into any problems with the 10 User concurrent connection limit.
If you are using Exchange Online you'll find your users are spread across a large number of Servers and most probably data-centres so as long you implement grouping and impersonation correctly you shouldn't have any issues.

How to paginate roster fetch call on ejabberd

I am running my chat service on ejabberd, but after 4-5 months of no downtime, I have come to use case where it's taking a lot of time in fetching rosters for the users whose roster list is too big. At many places it's mentioned that pagination functionality is not present on ejabberd, but is there any way we can optimise it ?
To my knowledge, there is no XMPP specification that define roster pagination. ejabberd does not do anything special in that regard.
What you can look into is XMPP roster versioning (https://xmpp.org/extensions/xep-0237.html), but this is different from pagination.

Google cloud MySql saying too many connections

We are using Google cloud Sql services, I applied composite index to my table 2 hours ago
after this MySql not taking new connections
It's saying
ERROR 1040 (08004): Too many connections
Why we are getting this error??
How much does it require
What service do you buy?
According to google pricing page
you can have a package with just 250 Maximum Concurrent Connections.
So check how many do you really have?
How ca we know what service do you use and how?

Allowing multiple logins from one account with ejabberd

I have just started getting my hands dirty with building IM applications with ejabberd XMPP server and I have a requirement to allow one user account to login simultaneously from multiple devices and be able to follow conversations on all their logged in devices much like what gives in Skype, FB.
Is this possible with ejabberd out of the box or are there any further customizations one has to do?
Any pointers I can get woild be helpful. The body of knowledge out there is quite huge and knowing where to start looking has been quite daunting.
Yes, connecting from multiple devices at once is part of the XMPP standard. In a JID, the "resource" portion (e.g.: the part after the slash in jome#stackoverflow.com/desktop) is unique to a single connection and users may have many resources. So the resource could be your MAC or some unique device ID.
Vanilla XMPP allows users to specify priorities with each resource, and messages are routed to the highest-priority resource present. To follow a conversation across all resources at once, you need to enable XEP-0280.