---

govuk_safe_to_reboot::can_reboot: 'overnight'
govuk_safe_to_reboot::reason: 'Secondaries will reboot overnight if cluster is healthy'

lv:
  mongodb:
    pv:
    - '/dev/sdb1'
    - '/dev/sdd1'
    vg: 'backup'
  data:
    pv: '/dev/sdc1'
    vg: 'mongodb'
  s3backups:
    pv: '/dev/sde1'
    vg: 'mongo'

mount:
  /var/lib/mongodb:
    disk: '/dev/mapper/mongodb-data'
    govuk_lvm: 'data'
    mountoptions: 'defaults'
  /var/lib/automongodbbackup:
    disk: '/dev/mapper/backup-mongodb'
    govuk_lvm: 'mongodb'
    mountoptions: 'defaults'
  /var/lib/s3backup:
    disk: '/dev/mapper/mongo-s3backups'
    govuk_lvm: 's3backups'
    mountoptions: 'defaults'

mongodb::server::replicaset_members:
  'api-mongo-1':
  'api-mongo-2':
  'api-mongo-3':
  'api-mongo-4':
    hidden: true
    priority: 0

icinga::client::checks::disk_time_window_minutes: 7

---

govuk_safe_to_reboot::can_reboot: 'overnight'
govuk_safe_to_reboot::reason: 'Secondaries will reboot overnight if cluster is healthy'

lv:
  mongodb:
    pv:
    - '/dev/sdb1'
    - '/dev/sdd1'
    vg: 'backup'
  data:
    pv: '/dev/sdc1'
    vg: 'mongodb'
  s3backups:
    pv: '/dev/sde1'
    vg: 'mongo'

mount:
  /var/lib/mongodb:
    disk: '/dev/mapper/mongodb-data'
    govuk_lvm: 'data'
    mountoptions: 'defaults'
  /var/lib/automongodbbackup:
    disk: '/dev/mapper/backup-mongodb'
    govuk_lvm: 'mongodb'
    mountoptions: 'defaults'
  /var/lib/s3backup:
    disk: '/dev/mapper/mongo-s3backups'
    govuk_lvm: 's3backups'
    mountoptions: 'defaults'

mongodb::server::replicaset_members:
  'api-mongo-1':
  'api-mongo-2':
  'api-mongo-3':
  'api-mongo-4':
    hidden: true
    priority: 0

icinga::client::checks::disk_time_window_minutes: 10

Increase api-mongo disk time window
Increase api-mongo disk time window

api-mongo-2 runs 15 minutely backups that routinely alert for high disk
time. The disk time window is curently set to 7 minutes but this doesn't
seem to be sufficient.

This commit increases to 10 minutes for the `api_mongo` class.
