-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EOP-253: Change documentation to reflect updated cloud settings
Signed-off-by: Doug Koerich <douglas.koerich@bird.com>
- Loading branch information
1 parent
5bf3436
commit 83373a8
Showing
2 changed files
with
43 additions
and
38 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 |
---|---|---|
@@ -1,30 +1,35 @@ | ||
--- | ||
lastUpdated: "03/26/2020" | ||
lastUpdated: "11/04/2024" | ||
title: "Adjusting /etc/sysctl.conf" | ||
description: "Momentum 4 uses a large number of connections and is able to establish them quickly This can overwhelm the operating system if special parameters are not used These issues can be addressed by configuring the following lines in etc sysctl conf These options are described below net ipv 4 tcp..." | ||
--- | ||
|
||
Momentum 4 uses a large number of connections and is able to establish them quickly. This can overwhelm the operating system if special parameters are not used. These issues can be addressed by configuring the following lines in `/etc/sysctl.conf`: | ||
|
||
``` | ||
fs.file-max = 9721865 | ||
net.core.netdev_max_backlog = 262144 | ||
net.core.optmem_max = 16777216 | ||
net.core.rmem_default = 67108864 | ||
net.core.rmem_max = 67108864 | ||
net.core.somaxconn = 8192 | ||
net.core.wmem_default = 67108864 | ||
net.core.wmem_max = 67108864 | ||
net.ipv4.tcp_base_mss = 1024 | ||
net.ipv4.tcp_fastopen = 1 | ||
net.ipv4.tcp_fin_timeout = 15 | ||
net.ipv4.tcp_max_syn_backlog = 65535 | ||
net.ipv4.tcp_max_tw_buckets = 2000000 | ||
net.ipv4.tcp_mem = 2885568 3847424 67108864 | ||
net.ipv4.tcp_mtu_probing = 1 | ||
net.ipv4.tcp_rmem = 4096 87380 67108864 | ||
net.ipv4.tcp_slow_start_after_idle = 0 | ||
net.ipv4.tcp_tw_reuse = 1 | ||
net.ipv4.tcp_tw_recycle = 1 | ||
net.core.somaxconn = 1024 | ||
net.core.rmem_max = 262144 | ||
vm.max_map_count = 768000 | ||
net.core.wmem_max = 262144 | ||
``` | ||
|
||
These options are described below: | ||
|
||
* `net.ipv4.tcp_tw_reuse` – Reuse sockets in the TIME_WAIT state for new connections when it is safe from a protocol viewpoint. Setting this to `1` enables reuse of open connections, increasing efficiency. | ||
|
||
* `net.ipv4.tcp_tw_recycle` – This kernel parameter enables fast recycling of TIME_WAIT sockets. A setting of `1` enables the reuse of sockets without the normal wait time. | ||
net.ipv4.tcp_wmem = 4096 65536 67108864 | ||
net.ipv4.udp_mem = 2885568 3847424 67108864 | ||
* `net.core.somaxconn = 1024` – This kernel parameter controls the number of incoming connections. Increasing it to `1024` allows Momentum to process more open connections. | ||
|
||
* `net.core.rmem_max` – This kernel parameter raises the maximum operating system receive buffer size for all types of connections. | ||
|
||
* `vm.max_map_count` – This kernel parameter controls mapped areas and needs to be increased. | ||
|
||
* `net.core.wmem_max` – This kernel parameter raises the maximum operating system send buffer size for all types of connections. | ||
vm.max_map_count = 1048575 | ||
``` |
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