cassandra: configure zfs arc and mmap max page per process
For the moment the sysctl and modules configuration is only activated for cassandra node
We may move the 2 call from cassandra.pp
to the global configuration to activate the 2 modules for other nodes like granet or belvedere
octocatalog diff
diff origin/production/cassandra01.internal.softwareheritage.org current/cassandra01.internal.softwareheritage.org ******************************************* + Augeas[kmod::setting kmod::option zfs zfs] => parameters => "changes": [ "set options[. = 'zfs'] zfs", "set options[. = 'zfs']/zfs_arc_max 68719476736" ], "incl": "/etc/modprobe.d/zfs.conf", "lens": "Modprobe.lns" ******************************************* + Exec[enforce-sysctl-value-vm.max_map_count] => parameters => "command": "/sbin/sysctl -w vm.max_map_count=1048575", "unless": "/usr/bin/test \"$(/sbin/sysctl -n vm.max_map_count)\" = 1048575" ******************************************* + Exec[sysctl-vm.max_map_count] => parameters => "command": "sysctl -p /etc/sysctl.d/vm.max_map_count.conf", "path": [ "/usr/sbin", "/sbin", "/usr/bin", "/bin" ], "refreshonly": true ******************************************* + Exec[update-sysctl.conf-vm.max_map_count] => parameters => "command": "sed -i -e 's#^vm.max_map_count *=.*#vm.max_map_count = 1048575#'... "onlyif": "grep -E '^vm.max_map_count *=' /etc/sysctl.conf", "path": [ "/usr/sbin", "/sbin", "/usr/bin", "/bin" ], "refreshonly": true ******************************************* + File[/etc/modprobe.d/aliases.conf] => parameters => "ensure": "file", "group": "root", "mode": "0644", "owner": "root" ******************************************* + File[/etc/modprobe.d/blacklist.conf] => parameters => "ensure": "file", "group": "root", "mode": "0644", "owner": "root" ******************************************* + File[/etc/modprobe.d/modprobe.conf] => parameters => "ensure": "file", "group": "root", "mode": "0644", "owner": "root" ******************************************* + File[/etc/modprobe.d/zfs.conf] => parameters => "ensure": "file", "group": "root", "mode": "0644", "owner": "root" ******************************************* + File[/etc/modprobe.d] => parameters => "ensure": "directory", "group": "root", "mode": "0755", "owner": "root" ******************************************* + File[/etc/sysctl.d/99-sysctl.conf] => parameters => "ensure": "link", "group": "root", "owner": "root", "target": "../sysctl.conf" ******************************************* + File[/etc/sysctl.d/vm.max_map_count.conf] => parameters => "content": "vm.max_map_count = 1048575\n", "group": "root", "mode": "0644", "notify": [ "Exec[sysctl-vm.max_map_count]", "Exec[update-sysctl.conf-vm.max_map_count]" ], "owner": "root" ******************************************* + File[/etc/sysctl.d] => parameters => "ensure": "directory", "group": "root", "mode": "0755", "owner": "root", "purge": false, "recurse": false ******************************************* + Kmod::Option[zfs] => parameters => "ensure": "present", "file": "/etc/modprobe.d/zfs.conf", "module": "zfs", "option": "zfs_arc_max", "value": "68719476736" ******************************************* + Kmod::Setting[kmod::option zfs] => parameters => "category": "options", "ensure": "present", "file": "/etc/modprobe.d/zfs.conf", "module": "zfs", "option": "zfs_arc_max", "value": "68719476736" ******************************************* + Sysctl[vm.max_map_count] => parameters => "enforce": true, "suffix": ".conf", "value": "1048575" ******************************************* *** End octocatalog-diff on cassandra01.internal.softwareheritage.org
Related to swh/infra/sysadm-environment#4711 (closed)
/cc @teams/sysadmin
Edited by Vincent Sellier