19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'modules/cassandra/manifests/sysctl.pp', line 19
class cassandra::sysctl(
$vm_dirty_background_bytes = 0,
$vm_max_map_count = 1048575,
){
if (!is_integer($vm_dirty_background_bytes)) {
fail('vm_dirty_background_bytes must be a number')
}
if (!is_integer($vm_max_map_count)) {
fail('vm_max_map_count must be a number')
}
# 05-cassandra.conf
sysctl::parameters { 'cassandra':
values => {
'vm.dirty_background_bytes' => $vm_dirty_background_bytes,
'vm.max_map_count' => $vm_max_map_count,
},
priority => 5,
}
}
|