Forge Home

earlyoom

Installs and configure earlyoom

3,670 downloads

2,517 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.1.0 (latest)
  • 1.0.0
released Sep 14th 2020
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x
  • Puppet >= 5.5.8 < 7.0.0
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppet-earlyoom', '1.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppet-earlyoom
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppet-earlyoom --version 1.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: earlyoom, oom

Documentation

puppet/earlyoom — version 1.1.0 Sep 14th 2020

Puppet Module for EarlyOOM

Build Status Code Coverage Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores

This puppet module:

  • Installs earlyoom package
  • Configures /etc/default/earlyoom
  • Controls the service earlyoom

The Early OOM Daemon checks the amount of available memory and free swap up to 10 times a second (less often if there is a lot of free memory). By default if both are below 10%, it will kill the largest process (highest oom_score). The percentage value is configurable via command line arguments.

github.com/rfjakob/earlyoom

Examples

class{'earlyoom':}
class{'earlyoom':
  interval        => 120,
  ignore_positive => true,
  notify_send     => true,
  debug           => true,
  priority        => true,
  prefer          => '(^|/)(init|X|sshd|firefox)$',
  avoid           => '(^|/)(cupsd|xrootd)$',
  notify_command  => '/bin/echo ${UID}',
  memory_percent  => 20,
  swap_percent    => [10,4]
  memory_size     => 20000,
  swap_size       => [30000,60000],
  dryrun          => false,
}

Documentation

See REFERENCE.md

License

Apache-2.0

Copyright

Steve Traylen, steve.traylen@cern.ch, CERN, 2020.

Contact

Steve Traylen steve.traylen@cern.ch

Support

Please log tickets and issues at our Projects site