Skip to content

mod_last

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

modules.mod_last.iqdisc.type

  • 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.

modules.mod_last.backend

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

Storage backend.

Riak-specific options

bucket_type

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

Riak bucket type.

Example Configuration

1
2
[modules.mod_last]
  backend = "rdbms"

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.