Puppet Class: cassandra::system::transparent_hugepage

Inherits:
cassandra::params
Defined in:
manifests/system/transparent_hugepage.pp

Overview

Parameters:

  • path (string) (defaults to: '/sys/kernel/mm/transparent_hugepage/defrag')

    The full path to the file for checking/setting if Transparent Hugepages is enabled.

See Also:



6
7
8
9
10
11
12
13
14
# File 'manifests/system/transparent_hugepage.pp', line 6

class cassandra::system::transparent_hugepage (
  $path = '/sys/kernel/mm/transparent_hugepage/defrag',
) inherits cassandra::params {
  exec { 'Disable Java Hugepages':
    command => "/bin/echo never > ${path}",
    path    => ['/bin', '/usr/bin'],
    unless  => "grep -q '\\[never\\]' ${path}",
  }
}