docs: bump nofiles recommendations to match maps

This commit is contained in:
Trent Nelson
2021-02-01 21:30:15 -07:00
committed by Trent Nelson
parent a5ba6b43bc
commit 894b412aef
6 changed files with 10 additions and 10 deletions

View File

@ -76,7 +76,7 @@ RestartForceExitStatus=SIGPIPE
TimeoutStartSec=10 TimeoutStartSec=10
TimeoutStopSec=0 TimeoutStopSec=0
KillMode=process KillMode=process
LimitNOFILE=500000 LimitNOFILE=700000
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -8,5 +8,5 @@ source "$HERE"/utils.sh
ensure_env || exit 1 ensure_env || exit 1
# Allow more files to be opened by a user # Allow more files to be opened by a user
echo "* - nofile 500000" > /etc/security/limits.d/90-solana-nofiles.conf echo "* - nofile 700000" > /etc/security/limits.d/90-solana-nofiles.conf

View File

@ -91,12 +91,12 @@ sudo sysctl -p /etc/sysctl.d/20-solana-mmaps.conf
``` ```
Add Add
``` ```
LimitNOFILE=500000 LimitNOFILE=700000
``` ```
to the `[Service]` section of your systemd service file, if you use one, to the `[Service]` section of your systemd service file, if you use one,
otherwise add otherwise add
``` ```
DefaultLimitNOFILE=500000 DefaultLimitNOFILE=700000
``` ```
to the `[Manager]` section of `/etc/systemd/system.conf`. to the `[Manager]` section of `/etc/systemd/system.conf`.
```bash ```bash
@ -105,7 +105,7 @@ sudo systemctl daemon-reload
```bash ```bash
sudo bash -c "cat >/etc/security/limits.d/90-solana-nofiles.conf <<EOF sudo bash -c "cat >/etc/security/limits.d/90-solana-nofiles.conf <<EOF
# Increase process file descriptor count limit # Increase process file descriptor count limit
* - nofile 500000 * - nofile 700000
EOF" EOF"
``` ```
```bash ```bash
@ -318,7 +318,7 @@ Type=simple
Restart=always Restart=always
RestartSec=1 RestartSec=1
User=sol User=sol
LimitNOFILE=500000 LimitNOFILE=700000
LogRateLimitIntervalSec=0 LogRateLimitIntervalSec=0
Environment="PATH=/bin:/usr/bin:/home/sol/.local/share/solana/install/active_release/bin" Environment="PATH=/bin:/usr/bin:/home/sol/.local/share/solana/install/active_release/bin"
ExecStart=/home/sol/bin/validator.sh ExecStart=/home/sol/bin/validator.sh

View File

@ -3550,7 +3550,7 @@ fn adjust_ulimit_nofile(_enforce_ulimit_nofile: bool) -> Result<()> {
fn adjust_ulimit_nofile(enforce_ulimit_nofile: bool) -> Result<()> { fn adjust_ulimit_nofile(enforce_ulimit_nofile: bool) -> Result<()> {
// Rocks DB likes to have many open files. The default open file descriptor limit is // Rocks DB likes to have many open files. The default open file descriptor limit is
// usually not enough // usually not enough
let desired_nofile = 500000; let desired_nofile = 700000;
fn get_nofile() -> libc::rlimit { fn get_nofile() -> libc::rlimit {
let mut nofile = libc::rlimit { let mut nofile = libc::rlimit {

View File

@ -6,12 +6,12 @@ https://hub.docker.com/r/solanalabs/solana/
### Usage: ### Usage:
Run the latest beta image: Run the latest beta image:
```bash ```bash
$ docker run --rm -p 8899:8899 --ulimit nofile=500000 solanalabs/solana:beta $ docker run --rm -p 8899:8899 --ulimit nofile=700000 solanalabs/solana:beta
``` ```
Run the latest edge image: Run the latest edge image:
```bash ```bash
$ docker run --rm -p 8899:8899 --ulimit nofile=500000 solanalabs/solana:edge $ docker run --rm -p 8899:8899 --ulimit nofile=700000 solanalabs/solana:edge
``` ```
Port *8899* is the JSON RPC port, which is used by clients to communicate with the network. Port *8899* is the JSON RPC port, which is used by clients to communicate with the network.

View File

@ -100,7 +100,7 @@ up)
--publish 8007:8007/udp # serve_repair --publish 8007:8007/udp # serve_repair
--publish 8008:8008/udp # broadcast --publish 8008:8008/udp # broadcast
--tty --tty
--ulimit "nofile=500000" --ulimit "nofile=700000"
--env "RUST_LOG=$RUST_LOG" --env "RUST_LOG=$RUST_LOG"
) )
if [[ -n $network ]]; then if [[ -n $network ]]; then