Files
offline_kubespray/collection/community/mongodb/roles/mongodb_linux/README.md
ByeonJungHun 360c6eef4a offline 작업
2024-02-19 16:02:29 +09:00

1.0 KiB

mongodb_linux

A simple role to configure Linux Operating System settings, for Debian and RedHat systems, as advised in the MongoDB Production Notes.

A brief description of what we do in this role:

  • Set swappiness.
  • Ensure NTP (or equivalent) service is installed and running.
  • Ensure GNU C Library is the latest available.
  • Disable NUMA reclaim zone.
  • Add script to disable transparent-huge-pages and setup as a service.
  • Set pam limits.
  • Set various sysctl values.

Role Variables

swappiness: OS swappiness value. Default "1". ntp_package: Name of ntp package. Default ntp. ntp_service: Name of ntp service. Default ntpd.

  • On RedHat 8 and higher systems ntp_package and ntp_service are set to chrony and chronyd respectively.

Example Playbook

    - hosts: servers
      roles:
         - mongodb_linux

License

BSD

Author Information

Rhys Campbell (https://github.com/rhysmeister)