Platform Team/Prosody

From Sugar Labs
Jump to navigation Jump to search

Purpose

The reasons to use Prosody Jabber/XMPP server:

  • be humble for consuming memory and CPU resources, especially for Sugar Server usecase (up to 1K users),
  • jabber server should be simply initially configured and work in unmaintained mode as long as possible.

Plugins

These plugins are tested against Prosody 0.8.2 version.

mod_sugar_roster

Provides global roster when every user sees all registered accounts.

mod_sugar_muc

The only difference in comparing with original mod_muc plugin is a workaround for telepathy-gabble/Prosody issue.

This plugin should be used instead of mod_muc until issue will be fixed in telepathy-gabble or in Prosody.

mod_sugar_saslauth

Original mod_saslauth plugin with preventing multiple auth from the same jid. See sm_make_authenticated() function in its sources.

This plugin should be used instead of mod_saslauth until more lightweight implementation is found.

Installation

To reuse sugar plugins, copy them to the directory with Prosody plugins. Or, install prosody-sugar package from Sugar Server repository.

Configuration

See sugar-server-templates sources for configuration example.

Getting involved

Please, read the HACKING file.

TODO

  • Dynamically remove users from the sugar roster if they are offline for some reasonable time (for now, there is a patch to kick offline users from sugar roster asap to workaround buggy sugar-0.9x collab code).
  • Compare Prosody resources consumption with existed ejabberd.

Resources