Puppet Class: profile::labs::db::kill_long_running_queries

Defined in:
modules/profile/manifests/labs/db/kill_long_running_queries.pp

Overview

patched version of pt-kill and configuration

This profile installs the config file for wmf-kill-wmf as well the wmf-pt-kill contains the systemd service and the patched script itself

Parameters:

  • victims (Any) (defaults to: hiera(profile::labs::db::kill_long_running_queries::pt_kill_victims,))
  • interval (Any) (defaults to: hiera(profile::labs::db::kill_long_running_queries::pt_kill_interval,))
  • busy_time (Any) (defaults to: hiera(profile::labs::db::kill_long_running_queries::pt_kill_busy_time,))
  • match_command (Any) (defaults to: hiera(profile::labs::db::kill_long_running_queries::pt_kill_match_command,))
  • match_user (Any) (defaults to: hiera(profile::labs::db::kill_long_running_queries::pt_kill_match_user,))
  • log (Any) (defaults to: hiera(profile::labs::db::kill_long_running_queries::pt_kill_log,))
  • socket (Any) (defaults to: hiera(profile::labs::db::kill_long_running_queries::pt_kill_socket,))


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'modules/profile/manifests/labs/db/kill_long_running_queries.pp', line 7

class profile::labs::db::kill_long_running_queries (
    $victims        = hiera(profile::labs::db::kill_long_running_queries::pt_kill_victims,),
    $interval      = hiera(profile::labs::db::kill_long_running_queries::pt_kill_interval,),
    $busy_time     = hiera(profile::labs::db::kill_long_running_queries::pt_kill_busy_time,),
    $match_command = hiera(profile::labs::db::kill_long_running_queries::pt_kill_match_command,),
    $match_user    = hiera(profile::labs::db::kill_long_running_queries::pt_kill_match_user,),
    $log           = hiera(profile::labs::db::kill_long_running_queries::pt_kill_log,),
    $socket        = hiera(profile::labs::db::kill_long_running_queries::pt_kill_socket,),
){
    file { '/etc/default/wmf-pt-kill':
        ensure  => file,
        content => template('role/mariadb/wmf-pt-kill.erb'),
        owner   => 'root',
        group   => 'root',
        mode    => '0644',
    }
    package { 'wmf-pt-kill':
        ensure => present,
    }
    service { 'wmf-pt-kill':
        ensure => running,
    }

}