Module Description

Implements XEP-0012: Last Activity.

Use with caution, as it was observed that a user disconnect spike might result in overloading the database with "last activity" writes.

Options

  • iqdisc (default: one_queue)
  • backend (atom, default: mnesia): Storage backend. Currently mnesia, rdbms and riak are supported.
Riak-specific options
  • bucket_type (default <<"last">>) - Riak bucket type.

Example Configuration

{mod_last, []}

Metrics

If you'd like to learn more about metrics in MongooseIM, please visit MongooseIM metrics page.

Backend action Description (when it gets incremented)
get_last A timestamp is fetched from DB.
set_last_info A timestamp is stored in DB.