Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voxpupuli/puppet-earlyoom
Installs and configures earlyoom
https://github.com/voxpupuli/puppet-earlyoom
centos-puppet-module debian-puppet-module hacktoberfest linux-puppet-module puppet redhat-puppet-module ubuntu-puppet-module
Last synced: 3 months ago
JSON representation
Installs and configures earlyoom
- Host: GitHub
- URL: https://github.com/voxpupuli/puppet-earlyoom
- Owner: voxpupuli
- License: apache-2.0
- Created: 2020-01-08T15:02:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T11:26:47.000Z (9 months ago)
- Last Synced: 2024-04-13T21:51:06.420Z (9 months ago)
- Topics: centos-puppet-module, debian-puppet-module, hacktoberfest, linux-puppet-module, puppet, redhat-puppet-module, ubuntu-puppet-module
- Language: Ruby
- Size: 93.8 KB
- Stars: 0
- Watchers: 40
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Puppet Module for EarlyOOM
[![Build Status](https://travis-ci.org/voxpupuli/puppet-earlyoom.png?branch=master)](https://travis-ci.org/voxpupuli/puppet-earlyoom)
[![Code Coverage](https://coveralls.io/repos/github/voxpupuli/puppet-earlyoom/badge.svg?branch=master)](https://coveralls.io/github/voxpupuli/puppet-earlyoom)
[![Puppet Forge](https://img.shields.io/puppetforge/v/puppet/earlyoom.svg)](https://forge.puppetlabs.com/puppet/earlyoom)
[![Puppet Forge - downloads](https://img.shields.io/puppetforge/dt/puppet/earlyoom.svg)](https://forge.puppetlabs.com/puppet/earlyoom)
[![Puppet Forge - endorsement](https://img.shields.io/puppetforge/e/puppet/earlyoom.svg)](https://forge.puppetlabs.com/puppet/earlyoom)
[![Puppet Forge - scores](https://img.shields.io/puppetforge/f/puppet/earlyoom.svg)](https://forge.puppetlabs.com/puppet/earlyoom)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](https://github.com/rfjakob/earlyoom)
## Examples
```puppet
class{'earlyoom':}
``````puppet
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](REFERENCE.md)
## License
Apache-2.0
## Copyright
Steve Traylen, [email protected], CERN, 2020.
## Contact
Steve Traylen [email protected]
## Support
Please log tickets and issues at our [Projects site](https://github.com/voxpupuli/puppet-earlyoom/issues)