-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christian Berendt <[email protected]>
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
sidebar_label: Sysctl | ||
--- | ||
|
||
# Sysctl | ||
|
||
With the `osism.commons.sysctl` role, it is possible to manage the attributes of the kernel | ||
via [sysctl](https://en.wikipedia.org/wiki/Sysctl) on a node. | ||
|
||
The following defaults are set via the parameter `sysctl_defaults`. | ||
|
||
**Group** | **Attribute** | **Default** | ||
-----------------------------|----------------------------------------|--------------------- | ||
elasticsearch | vm.max_map_count | 262144 | ||
rabbitmq | net.ipv4.tcp_keepalive_time | 6 | ||
rabbitmq | net.ipv4.tcp_keepalive_intvl | 3 | ||
rabbitmq | net.ipv4.tcp_keepalive_probes | 3 | ||
rabbitmq | net.core.wmem_max | 16777216 | ||
rabbitmq | net.core.rmem_max | 16777216 | ||
rabbitmq | net.ipv4.tcp_fin_timeout | 20 | ||
rabbitmq | net.ipv4.tcp_tw_reuse | 1 | ||
rabbitmq | net.core.somaxconn | 4096 | ||
rabbitmq | net.ipv4.tcp_syncookies | 0 | ||
rabbitmq | net.ipv4.tcp_max_syn_backlog | 8192 | ||
generic | vm.swappiness | 1 | ||
compute | net.netfilter.nf_conntrack_max | 1048576 | ||
|
||
The `sysctl_extra` parameter can be used to set your own parameters or overwrite existing | ||
parameters in the defaults. | ||
|
||
```yaml title="Set attribute fs.inotify.max_user_instances to 256 for all nodes in group generic" | ||
sysctl_extra: | ||
generic: | ||
- name: fs.inotify.max_user_instances | ||
value: 256 | ||
``` |