Puppet Class: mediawiki::maintenance::jobqueue_stats

Defined in:
modules/mediawiki/manifests/maintenance/jobqueue_stats.pp

Overview

Class: mediawiki::maintenance::jobqueue_stats

Provisions a cron job which runs every minute and which reports the total size of the job queue to StatsD.

Parameters:

  • ensure (Any) (defaults to: present)


6
7
8
9
10
11
12
13
14
15
# File 'modules/mediawiki/manifests/maintenance/jobqueue_stats.pp', line 6

class mediawiki::maintenance::jobqueue_stats( $ensure = present ) {
    include ::mediawiki::users

    cron { 'jobqueue_stats_reporter':
        ensure  => $ensure,
        command => '/usr/local/bin/mwscript extensions/WikimediaMaintenance/getJobQueueLengths.php --report 2>/dev/null >/dev/null',
        user    => $::mediawiki::users::web,
        minute  => '*',
    }
}