Giter Site home page Giter Site logo

ansible-role-earlyoom's Introduction

Ansible Role: aisbergg.earlyoom

This Ansible role installs and configures the Early OOM Daemon on Linux systems.

Requirements

None.

Role Variables

Variable Default Comments
earlyoom_service_state started Set the service state (Possible values: started, restarted, stopped)
earlyoom_service_enabled true Enable/Disable the Early OOM Daemon.
earlyoom_service_restart_on_change true Restart Early OOM daemon service on configuration changes.
earlyoom_config {} Configuration options for the Early OOM Daemon.
earlyoom_config.minimum_memory_percent 5 (PERCENT[,KILL_PERCENT]) If the available memory is below this threshold earlyoom will send a SIGTERM, then a SIGKILL once below KILL_PERCENT(default PERCENT/2).
earlyoom_config.minimum_memory_size (SIZE[,KILL_SIZE]) Set available memory minimum to SIZE KiB.
earlyoom_config.minimum_swap_size (PERCENT[,KILL_PERCENT]) Set free swap minimum to PERCENT of total. Both memory and swap must be below minimum for earlyoom to act.
earlyoom_config.minimum_swap_percent (SIZE[,KILL_SIZE]) Set free swap minimum to SIZE KiB.
earlyoom_config.ignore_positive_oom_score_adj_values false User-space oom killer should ignore positive oom_score_adj values.
earlyoom_config.notify_send_enabled false Enable notifications using "notify-send"
earlyoom_config.notify_command Enable notifications using COMMAND.
earlyoom_config.memory_report_interval 0 Memory report interval in seconds.
earlyoom_config.lower_niceness false Set niceness of earlyoom to -20 and oom_score_adj to -100.
earlyoom_config.avoid_regex Prefer to kill processes matching REGEX.
earlyoom_config.prefer_regex Avoid killing processes matching REGEX.

Dependencies

None.

Example Playbook

- hosts: all
  vars:
    earlyoom_config:
      earlyoom_config:
      minimum_memory_percent: 5
      minimum_swap_percent: 5
      memory_report_interval: 0
      avoid_regex: '(^|/)(init|sshd|ssh-agent|gnome-.*)$'
  roles:
    - aisbergg.earlyoom

License

MIT

Author Information

Andre Lehmann ([email protected])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.