Public servers

To contribute to the XMPP network, some people choose to run servers on which people can obtain free XMPP accounts.

This page aims to document some best practices for those servers. This is not a complete guide! Running a public server brings a fair amount of responsibility upon the admins, and requires a fair amount of oversight.

Scalability

If your server grows large, there are some things to consider:

  • Ensure that you are using libevent (install lua-event and set use_libevent = true in the config file)
  • Raise the per-process file limit. With our Debian/Ubuntu packages you can add to /etc/default/prosody (create the file if it doesn't exist):
    • MAXFDS=9999

Backups

As with any server, you need to have a good backup and restore plan. Your users will not be happy if a disk or database failure destroys all their accounts and data, for example.