Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Устранение системных ограничений на сетевые операции
- Loading branch information
Rolariali
authored and
Ririconj
committed
Jul 30, 2021
1 parent
d88ad81
commit 5ab62e0
Showing
5 changed files
with
35 additions
and
11 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,8 @@ | ||
net.core.rmem_default = 4194304 | ||
net.core.rmem_max = 4194304 | ||
|
||
net.core.wmem_default = 4194304 | ||
net.core.wmem_max = 4194304 | ||
|
||
net.core.somaxconn = 8184 | ||
net.core.netdev_max_backlog = 65536 |
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,3 @@ | ||
|
||
[Manager] | ||
DefaultLimitNOFILE=524288:524288 |
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
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
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,22 @@ | ||
#!/bin/bash | ||
|
||
if [[ $EUID -ne 0 ]]; then | ||
echo "This script must be run as root" | ||
exit 1 | ||
fi | ||
|
||
echo "System config update started" | ||
|
||
INSTALL_DIR=`pwd` | ||
|
||
cp $INSTALL_DIR/configs/journalctl/journald.conf /etc/systemd/journald.conf | ||
systemctl restart systemd-journald | ||
|
||
cp -v $INSTALL_DIR/configs/sysctl/sysctl.conf /etc/sysctl.conf | ||
# reload system settings(read /etc/sysctl.conf) | ||
sysctl --system | ||
|
||
cp -v $INSTALL_DIR/configs/systemd/system.conf /etc/systemd/system.conf | ||
systemctl daemon-reload | ||
|
||
echo "System config update ended" |