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.



  • Syntax: string, one of "one_queue", "no_queue", "queues", "parallel"
  • Default: "no_queue"

Strategy to handle incoming stanzas. For details, please refer to IQ processing policies.


  • Syntax: string, one of "mnesia", "rdbms", "riak"
  • Default: "mnesia"
  • Example: backend = "rdbms"

Storage backend.

Riak-specific options


  • Syntax: string
  • Default: "last"
  • Example: bucket_type = "last"

Riak bucket type.

Example Configuration

  backend = "rdbms"


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.