Puppet Class: cassandra::system::transparent_hugepage
- Inherits:
- cassandra::params
- Defined in:
- manifests/system/transparent_hugepage.pp
Overview
Disable Transparant Huge Pages as suggested in docs.datastax.com/en/landing_page/doc/landing_page/recommendedSettingsLinux.html.
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}",
}
}
|